; and (B) the order is necessary to prevent the injury described in subparagraph (A). (4) Duration An ex parte Federal order shall expire on the earlier of— (A) the date that is 14 days after the date of issuance; or (B) the date on which the court determines whether to issue a long-term Federal order with respect to the respondent. (d) Long-Term Federal orders (1) Hearing required If a court receives a petition for a long-term Federal extreme risk protection order for a respondent under subsection (b), the court shall hold a hearing to determine whether to issue a long-term Federal order with respect to the respondent either— (A) (i) if the court issues an ex parte order with respect to the respondent, not later than 72 hours after the ex parte order is served on the respondent; or (ii) if the respondent waives the right to a hearing within the 72-hour period under clause (i), or the court does not issue an ex parte order, within 14 days after the date on which the court receives the petition; or (B) in no event later than 14 days after the date on which the court receives the petition. (2) Notice and opportunity to be heard (A) In general The court shall provide the Federal order respondent with notice and the opportunity to be heard at a hearing under this subsection, sufficient to protect the due process rights of the respondent. (B) Right to counsel (i) In general At a hearing under this subsection, the Federal order respondent may be represented by counsel who is— (I) chosen by the respondent; and (II) authorized to practice at such a hearing. (ii) Court-provided counsel If the Federal order respondent is financially unable to obtain representation by counsel, the court, at the request of the respondent, shall ensure, to the extent practicable, that the respondent is represented by an attorney with respect to the petition. (3) Burden of proof; standard At a hearing under this subsection, the Federal order petitioner— (A) shall have the burden of proving all material facts