; or (II) the reasons that the sealing order should be entered. (B) Hearing (i) In general If a person files a sealing petition, the court shall— (I) except as provided in clause (iii), conduct a hearing in accordance with clause (ii); and (II) determine whether to enter a sealing order for the person in accordance with subparagraph (C). (ii) Opportunity to testify and offer evidence (I) Petitioner The petitioner may testify or offer evidence at the sealing hearing in support of sealing. (II) Prosecutor The Attorney General may send a representative to testify or offer evidence at the sealing hearing in support of or against sealing. (III) Other individuals An individual who receives notice under subparagraph (A)(ii) may testify or offer evidence at the sealing hearing as to the issues described in subclauses (I) and (II) of that subparagraph. (iii) Waiver of hearing If the petitioner and the Attorney General so agree, the court shall make a determination under subparagraph (C) without a hearing. (C) Basis for decision The court shall determine whether to grant the sealing petition after considering— (i) the sealing petition and any documents in the possession of the court; (ii) all the evidence and testimony presented at the sealing hearing, if such a hearing is conducted; (iii) the best interests of the petitioner; (iv) the age of the petitioner during his or her contact with the court or any law enforcement agency; (v) the nature of the juvenile nonviolent offense; (vi) the disposition of the case; (vii) the manner in which the petitioner participated in any court-ordered rehabilitative programming or supervised services; (viii) the length of the time period during which the petitioner has been without contact with any court or law enforcement agency; (ix) whether the petitioner has had any criminal or juvenile delinquency involvement since the disposition of the juvenile delinquency proceeding