During the late 1700s, nightmares were identified as a condition where a person during their sleep thinks that there is