If f(x) → 1 while g(x) → ∞, then lim f^g = e^(lim g·(f − 1)). The base creeping towards 1 and the power growing without bound balance out, and e records the result.
Saying the base tends to 1, so the answer is 1.
Near 0, tan(π/4 + x) ≈ 1 + 2x, and (1 + kx)^(1/x) → e^k, so the answer is e².