A point $P$ is chosen at random inside square $ABCD$. The probability that $\overline{AP}$ is neither the shortest nor the longest side of $\triangle APB$ can be written as $\frac{a + b \pi - c \sqrt{d}}{e}$, where $a, b, c, d,$ and $e$ are positive integers, $\text{gcd}(a, b, c, e) = 1$, and $d$ is not divisible by the square of a prime. What is $a+b+c+d+e$?
在正方形 $ABCD$ 内随机选择一点 $P$。直线 $\overline{AP}$ 既不是 $\triangle APB$ 的最短边也不是最长边的概率可以写成 $\frac{a + b \pi - c \sqrt{d}}{e}$,其中 $a, b, c, d,$ 和 $e$ 是正整数,$\text{gcd}(a, b, c, e) = 1$,且 $d$ 不可被任一质数的平方整除。求 $a+b+c+d+e$?