(c) Notwithstanding (a) of this section, a minor may be detained in an adult correctional facility, an adult jail, or a temporary secure juvenile holding area if the minor is arrested for criminal charges under AS 47.12.030 (a), if the minor is the subject of a petition filed with the court under this chapter seeking adjudication of the minor as a delinquent minor, or if the minor is in official detention pending the filing of that petition; however, detention in an adult correctional facility, an adult jail, or a temporary secure juvenile holding area under this subsection may not exceed the lesser of
(1) six hours, except under the criteria listed in (e) of this section; or(2) the time necessary to arrange the minor's transportation to a juvenile detention facility or comparable facility for the detention of minors.