Find the supremum and the infimum of $\frac{x}{\sin x}$ on the interval $\left (0, \frac{\pi}{2} \right ]$.