Read the excerpt below and answer the question.

… The spirit that I have seen
May be the devil: and the devil hath power
To assume a pleasing shape; yea, and perhaps
Out of my weakness and my melancholy, …

… (Hamlet; Act II, scene ii)

What is the meaning of the word melancholy, as it is used above?

depression
outrage
estasy
greed