In the acute-angled triangle $ABC$, the segment $AP$ was drawn and the center was marked $O$ of the circumscribed circle. The circumcircle of triangle $ABP$ intersects the line $AC$ for the second time at point $X$, the circumcircle of the triangle $ACP$ intersects the line $AB$ for the second time at the point $Y$. Prove that the lines $XY$ and $PO$ are perpendicular if and only if $P$ is the foor of the bisector of the triangle $ABC$.
Problem
Source: 2020 XXIII All-Ukrainian Tournament of Young Mathematicians named after M. Y. Yadrenko, Qualifying p11
Tags: perpendicular, angle bisector, geometry, Ukrainian TYM