If \( \sin\left(\frac{\pi}{4}\cot\theta\right) = \cos\left(\frac{\pi}{4}\tan\theta\right) \), then the general solution of \( \theta \) is: