(1) A person is guilty of escape in the second degree if:
(a) He or she knowingly escapes from a detention facility; or
(b) Having been charged with a felony or an equivalent juvenile offense, he or she knowingly escapes from custody; or
(c) Having been committed under chapter
10.77 RCW for a sex, violent, or felony harassment offense and being under an order of conditional release, he or she knowingly leaves or remains absent from the state of Washington without prior court authorization.
(2) It is an affirmative defense to a prosecution under this section that uncontrollable circumstances prevented the person from remaining in custody or in the detention facility or from returning to custody or to the detention facility, and that the person did not contribute to the creation of such circumstances in reckless disregard of the requirement to remain or return, and that the person returned to custody or the detention facility as soon as such circumstances ceased to exist.
(3) Escape in the second degree is a class C felony.