2. If real numbers $x, y$ satisfy $(x+2)^{2}+(y-5)^{2}=9$, then the maximum value of $(x-1)^{2}+(y-1)^{2}$ is ( ).
A. 2
B. 4
C. 8
D. 64
2. $\mathrm{D}$

As shown in Figure 1, $(x+2)^{2}+(y-5)^{2}=9$ represents a circle with center $O(-2,5)$ and radius 3, $\odot O^{\prime}(1,1)$ is internally tangent to $\odot \bigcirc$ at $T$, and the maximum value of $(x-1)^{2}+(y-1)^{2}$ is $\left|O^{\prime} T\right|^{2}=$ $(|O O|+|O T|)^{2}=(5+3)^{2}=64$