If $$\left( 1+\sqrt{1+a} \right) \tan \theta = 1+\sqrt{1-a}$$, where $$a \in \mathbb R$$ and $$-1 \le a \le 1$$, then what is $$\sin 4\theta$$?