Let \( f:(-\infty,-1] \rightarrow\left(\frac{\pi}{2}, \pi\right] \) be defined as \( f(x)=\sec ^{-1}\left(-x^{2}+x+a\right) \). If \( f(x) \) is surjective, then the range of \( a \) is :
(a) (1)
(b) \( \left\{\frac{-5}{4}\right\} \)
(c) \( \left(-\infty, \frac{-5}{4}\right] \)
(d) \( (-\infty, 1] \)