$\triangle A B C$ 中, $A C=\sqrt{2}, A B=2, A=45^{\circ}, P$ 是 $\triangle A B C$ 外接圆上一点, $\overrightarrow{A P}=\lambda \overrightarrow{A B}+\mu \overrightarrow{A C}$, 则 $\lambda+\mu$ 的最大值是
$ \text{A.} $ $\frac{\sqrt{2}+1}{2}$
$ \text{B.} $ $\frac{\sqrt{2}-1}{2}$
$ \text{C.} $ $\frac{\sqrt{3}-\sqrt{2}}{2}$
$ \text{D.} $ $\frac{\sqrt{3}+\sqrt{2}}{2}$