Kelly fell asleep and is picturing herself walking down a si…

Kelly fell asleep and is picturing herself walking down a sidewalk. Suddenly, she imagines herself tripping off the curb.  While this occurs in her mind, her leg kicks out in bed due to a muscle spasm, which wakes her up.  The stage of sleep that this occurs in is: