@malloy-publisher/server 0.0.110 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/Chip-QKOHsU1g.js +1 -0
- package/dist/app/assets/{Container-Dg_Kf31J.js → Container-L_WqT4jT.js} +1 -1
- package/dist/app/assets/{DialogTitle-CHBg1LY0.js → DialogTitle-Bn08FgCr.js} +1 -1
- package/dist/app/assets/{Edit-C6YfplwT.js → Edit-BJgSEJcw.js} +1 -1
- package/dist/app/assets/FormControlContext-Dw41r2fL.js +1 -0
- package/dist/app/assets/HomePage-7j10faAk.js +3 -0
- package/dist/app/assets/MainPage-CAwngISZ.js +1 -0
- package/dist/app/assets/MenuItem-lIU1AdLr.js +1 -0
- package/dist/app/assets/{Modal-BKeOa8cn.js → Modal-D1yZSrQW.js} +1 -1
- package/dist/app/assets/{ModelPage-PyBDJf_o.js → ModelPage-BZzRs40Z.js} +2 -2
- package/dist/app/assets/MoreVert-BnS0-_a-.js +1 -0
- package/dist/app/assets/PackagePage-CpVMURqi.js +2 -0
- package/dist/app/assets/{ProjectPage-D5jntFzr.js → ProjectPage-Wkk3rsE4.js} +1 -1
- package/dist/app/assets/{RouteError-DMmcYLCb.js → RouteError-DSynFzxI.js} +1 -1
- package/dist/app/assets/{WorkbookPage-DyeCwzrs.js → WorkbookPage-CAKkhCC4.js} +2 -2
- package/dist/app/assets/{index-BWeiQV2D.js → index-BTifa3VC.js} +1 -1
- package/dist/app/assets/index-Csigubii.js +420 -0
- package/dist/app/assets/{index-BrYw7sx9.js → index-GXiK4wJn.js} +1 -1
- package/dist/app/assets/{index.es20-7LPyahVV.js → index.es20-Xp2DiRye.js} +1 -1
- package/dist/app/assets/{index.es23-D1ICAtTa.js → index.es23-DEF5rVoS.js} +2 -2
- package/dist/app/assets/{index.es307-Hyqfwej7.js → index.es310-AKXDC8rl.js} +1 -1
- package/dist/app/assets/{index.es308-DazkJUgb.js → index.es311-CE0-K0fx.js} +1 -1
- package/dist/app/assets/{index.es311-Bdd10041.js → index.es314-CsD4AFJi.js} +1 -1
- package/dist/app/assets/{index.es316-CoGLDRT0.js → index.es319-BAaFF8nF.js} +1 -1
- package/dist/app/assets/{index.es324-BsszfF5h.js → index.es327-CLjg00CO.js} +1 -1
- package/dist/app/assets/{index.es325-DRDvBdmi.js → index.es328-Dk49f56D.js} +1 -1
- package/dist/app/assets/{index.es328-CFMQ5MRM.js → index.es331-CNjOIk10.js} +1 -1
- package/dist/app/assets/{index.es332-fOGuE522.js → index.es335-BeNrivcI.js} +1 -1
- package/dist/app/assets/{index.es335-DaItj58o.js → index.es338-BhR7SkS5.js} +1 -1
- package/dist/app/assets/{index.es338-UjLQeCTc.js → index.es341-C_6PzCoq.js} +1 -1
- package/dist/app/assets/{index.es339-DRQ2Op-C.js → index.es342-D1uAr8c1.js} +1 -1
- package/dist/app/assets/{index.es353-DJ9OBLYp.js → index.es356-7PPXN4m3.js} +1 -1
- package/dist/app/assets/{index.es354-C2ph-Vgb.js → index.es357-CJh2QG0N.js} +1 -1
- package/dist/app/assets/{index.es355-CdFcIAjR.js → index.es358-C_zZutkw.js} +1 -1
- package/dist/app/assets/{index.es357-DnD6YfsZ.js → index.es360-DeQ44nE8.js} +1 -1
- package/dist/app/assets/{index.es362-DQGGaNK3.js → index.es365-oFKdnBEe.js} +1 -1
- package/dist/app/assets/{index.es364-SjsfRDU5.js → index.es367-BUiiHWL7.js} +1 -1
- package/dist/app/assets/{index.es365-BFB9M3aQ.js → index.es368-Bb8Mmpp1.js} +1 -1
- package/dist/app/assets/{index.es370-Cykbl5AV.js → index.es373-C5Q5iXfG.js} +1 -1
- package/dist/app/assets/{index.es371-C1_-FGZD.js → index.es374-s3ewK3v_.js} +1 -1
- package/dist/app/assets/{index.es373-TI9wv2aA.js → index.es376-Dot0I9EF.js} +1 -1
- package/dist/app/assets/{index.es374-D2MetvHl.js → index.es377-B6TLwhtH.js} +1 -1
- package/dist/app/assets/{index.es375-Cl8RLiLz.js → index.es378-mEifvHi6.js} +1 -1
- package/dist/app/assets/{index.es378-DEt7_vw7.js → index.es381-DdV8KTBv.js} +1 -1
- package/dist/app/assets/{index.es380-B_rO6vHZ.js → index.es383-B762Qvzb.js} +1 -1
- package/dist/app/assets/{index.es381-BALGI3Ev.js → index.es384-DBjLFE2E.js} +1 -1
- package/dist/app/assets/{index.es382-WH9q9eN4.js → index.es385-DkDs29_v.js} +1 -1
- package/dist/app/assets/{index.es388-CvzBQwR4.js → index.es391-BOBiTPht.js} +1 -1
- package/dist/app/assets/{index.es389-Sf3IwiTw.js → index.es392-BGdYwXRd.js} +1 -1
- package/dist/app/assets/{index.es390-CvRV_DLA.js → index.es393-BnuSumNM.js} +1 -1
- package/dist/app/assets/{index.es391-BMUNnyko.js → index.es394-DMJpONen.js} +1 -1
- package/dist/app/assets/{index.es393-gzScel_V.js → index.es396-Dexy1Fdn.js} +1 -1
- package/dist/app/assets/{index.es397-ChSe2MGM.js → index.es400-V_MXD6ds.js} +1 -1
- package/dist/app/assets/{index.es398-BM1JIu87.js → index.es401-CAcCA7it.js} +1 -1
- package/dist/app/assets/{index.es406-jeYEdLwu.js → index.es409-DgSxLsfq.js} +1 -1
- package/dist/app/assets/{index.es409-JBGcHOPL.js → index.es412-wcTkTrNP.js} +1 -1
- package/dist/app/assets/{index.es412-BneQpd2K.js → index.es415-hnSTt9Hn.js} +1 -1
- package/dist/app/assets/{index.es415-D2YJmODz.js → index.es418-DwuHSZfi.js} +1 -1
- package/dist/app/assets/{index.es419-Be9XEXai.js → index.es422-DWsCMo9a.js} +1 -1
- package/dist/app/assets/{index.es421-DNif9a-1.js → index.es424-CX2jVTDC.js} +1 -1
- package/dist/app/assets/{index.es429-QvpEdVuu.js → index.es432-DpOOpPot.js} +1 -1
- package/dist/app/assets/{index.es430-BSC0RjJg.js → index.es433--E-hGrgp.js} +1 -1
- package/dist/app/assets/{index.es437-CU58aSis.js → index.es440-NJaU5ncf.js} +1 -1
- package/dist/app/assets/{index.es438-DLcyg_Nq.js → index.es441-CR0Ohpvp.js} +1 -1
- package/dist/app/assets/{index.es448-FCeFQPCW.js → index.es451-sHTEx-Dl.js} +1 -1
- package/dist/app/assets/{index.es452-BRZPWepa.js → index.es455-9ZC7rz1G.js} +1 -1
- package/dist/app/assets/{index.es458-Bpkji9ao.js → index.es461-DAQjszqb.js} +1 -1
- package/dist/app/assets/{index.es463-BaecNR2n.js → index.es466-sT_GOjPl.js} +1 -1
- package/dist/app/assets/{index.es464-CTWl2km5.js → index.es467-D1qnNYJr.js} +1 -1
- package/dist/app/assets/{index.es466-CfLTsC9T.js → index.es469-DW1np4pg.js} +1 -1
- package/dist/app/assets/{index.es470-8ULDOKZc.js → index.es473-wVAdvQ6_.js} +1 -1
- package/dist/app/assets/{index.es472-DcGdjhrt.js → index.es475-CZM7KBU8.js} +1 -1
- package/dist/app/assets/{index.es474-DEhGnLk1.js → index.es477-OAyIdwW_.js} +1 -1
- package/dist/app/assets/{index.es477-CL6caFH2.js → index.es480-DSR8isSz.js} +1 -1
- package/dist/app/assets/{index.es478-Bxqeavdu.js → index.es481-CBydsWwB.js} +1 -1
- package/dist/app/assets/{index.es482-CkcBD1qi.js → index.es485-CJc4fpNV.js} +1 -1
- package/dist/app/assets/{index.es484-mnzfO9M-.js → index.es487-C1wULFp4.js} +1 -1
- package/dist/app/assets/{index.es491-D7XbqGCN.js → index.es494-BLp6ucpV.js} +1 -1
- package/dist/app/assets/{index.es493-CnKU-AzQ.js → index.es496-Tis1R15L.js} +1 -1
- package/dist/app/assets/{index.es495-o1LZm3EH.js → index.es498-DnIxUf2o.js} +1 -1
- package/dist/app/assets/{index.es499-txiTaLX0.js → index.es502-DhEHE70J.js} +1 -1
- package/dist/app/assets/{index.es509-DAhk5QW9.js → index.es512-B---8rhN.js} +1 -1
- package/dist/app/assets/{index.es510-BTIWftZ_.js → index.es513-BU_koFtA.js} +1 -1
- package/dist/app/assets/{index.es517-_uBYPj5P.js → index.es520-ZlB1VPRK.js} +1 -1
- package/dist/app/assets/{index.es518-Duh4FRo0.js → index.es521-VBglaSPm.js} +1 -1
- package/dist/app/assets/index.es7-4Yy4RzF4.js +1 -0
- package/dist/app/assets/index.modern-DMvoTRLq.js +17 -0
- package/dist/app/assets/{index.umd-DFsry6Xq.js → index.umd-B5zPGg7f.js} +1 -1
- package/dist/app/assets/listItemTextClasses-gPHO1JUj.js +1 -0
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.js +2280 -1003
- package/dist/server.js +11373 -4120
- package/package.json +1 -1
- package/src/server.ts +11 -0
- package/src/service/connection.ts +10 -9
- package/src/service/project.ts +11 -17
- package/src/service/project_store.ts +156 -47
- package/dist/app/assets/Chip-CzV-d1RE.js +0 -1
- package/dist/app/assets/FormControlContext-VBpiETuD.js +0 -1
- package/dist/app/assets/HomePage-B7xMQBXw.js +0 -3
- package/dist/app/assets/MainPage-Cvxb9XmX.js +0 -1
- package/dist/app/assets/MenuItem-Ct1Eq8uZ.js +0 -1
- package/dist/app/assets/MoreVert-BXQIW75e.js +0 -1
- package/dist/app/assets/PackagePage-CdhWdIyz.js +0 -2
- package/dist/app/assets/index-D2hrtqN7.js +0 -420
- package/dist/app/assets/index.es7-CBMchwTf.js +0 -1
- package/dist/app/assets/index.modern-C9fiiwjh.js +0 -17
- package/dist/app/assets/listItemTextClasses-st6hnk8F.js +0 -1
- /package/dist/app/assets/{index.es296-CG6Dc4jp.js → index.es299-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es304-DsBKuouk.js → index.es307-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es305-D_z4Izcz.js → index.es308-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es306-727ZlQH0.js → index.es309-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es309-Dn00JSTd.js → index.es312-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es310-COJ4H7py.js → index.es313-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es312-Bu5BbsvL.js → index.es315-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es313-7O62HKoU.js → index.es316-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es314-BPT9niGB.js → index.es317-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es315-Dhn9LcZ4.js → index.es318-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es317-eg146-Ew.js → index.es320-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es318-Du268qiB.js → index.es321-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es319-fje9CFhw.js → index.es322-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es320-BwXTMy5W.js → index.es323-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es321-3xVqZejG.js → index.es324-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es322-xW4inM5L.js → index.es325-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es323-DHo0CJ0O.js → index.es326-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es326-C3t2pwGQ.js → index.es329-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es327-DNquZEk8.js → index.es330-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es329-BHOwM8T6.js → index.es332-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es330-DxSadP1t.js → index.es333-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es331-DbXoA79R.js → index.es334-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es333-Bp6g37R7.js → index.es336-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es334-sacFqUAJ.js → index.es337-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es336-C7gG9l05.js → index.es339-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es337-Dsg_Bt_b.js → index.es340-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es340-D9R-vmeu.js → index.es343-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es341-BPhBrDlE.js → index.es344-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es342-C-TU5hQ_.js → index.es345-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es343-DtFQj3wx.js → index.es346-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es344-m2LEI-9-.js → index.es347-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es345-BoXegm-a.js → index.es348-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es346-B9wLZaAG.js → index.es349-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es347-ClGRhx96.js → index.es350-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es348-DEIpsLCJ.js → index.es351-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es349-BgYniUM_.js → index.es352-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es350-COcR7UxN.js → index.es353-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es351-BjQB5zDj.js → index.es354-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es352-C-nORZOA.js → index.es355-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es356-BX77sIaO.js → index.es359-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es358-B-DoSBHF.js → index.es361-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es359-bCA53EVm.js → index.es362-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es360-w-ucz2PV.js → index.es363-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es361-Dayu4EKP.js → index.es364-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es363-DKXYxT9g.js → index.es366-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es366-DfxzS6Rs.js → index.es369-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es367-SKMF96pI.js → index.es370-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es368-ajMbGru0.js → index.es371-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es369--30QC5Em.js → index.es372--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es372-B430Bg39.js → index.es375-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es376-CM8KxXT1.js → index.es379-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es377-B1SYOhNW.js → index.es380-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es379-DkBy-JyN.js → index.es382-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es383-BILxekzW.js → index.es386-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es384-C5wWYbrZ.js → index.es387-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es385-HzYwdGDm.js → index.es388-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es386-T-Tgc4AT.js → index.es389-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es387-ifBTmRxC.js → index.es390-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es392-BMj5Y0dO.js → index.es395-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es394-BjABl1g7.js → index.es397-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es395-xI-RfyKK.js → index.es398-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es396-ySlJ1b_l.js → index.es399-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es399-BQoSv7ci.js → index.es402-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es400-w8dY5SsB.js → index.es403-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es401-TU54ms6u.js → index.es404-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es402-DREVFZK8.js → index.es405-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es403-BfivnA6A.js → index.es406-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es404-P4WzXJd0.js → index.es407-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es405-BAng5TT0.js → index.es408-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es407-B5lbUyaz.js → index.es410-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es408-mebxcVVE.js → index.es411-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es410-XBlWyCtg.js → index.es413-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es411-BfCpw3nA.js → index.es414-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es413-Cc5clBb7.js → index.es416-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es414-IuBKFhSY.js → index.es417-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es416-Du5NY7AG.js → index.es419-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es417-Bvotw-X0.js → index.es420-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es418-UIAJJxZW.js → index.es421-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es420-D9-PGadD.js → index.es423-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es422-sdHcTMYB.js → index.es425-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es423-Ci6OQyBP.js → index.es426-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es424-BC5c_5Pe.js → index.es427-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es425-Tz6hzZYG.js → index.es428-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es426-DB_GagMm.js → index.es429-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es427-DLbgOhZU.js → index.es430-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es428-B0XVJmRM.js → index.es431-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es431-shcSOmrb.js → index.es434-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es432-D4Tzg5kh.js → index.es435-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es433-Deuh7S70.js → index.es436-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es434-BUEGK8hf.js → index.es437-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es435-BNioltXt.js → index.es438-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es436-JqZropPD.js → index.es439-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es439-LKU2TuZ1.js → index.es442-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es440-BFLt1xDp.js → index.es443-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es441-DKykz6zU.js → index.es444-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es442-B3ZDOciz.js → index.es445-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es443-CSHBycmS.js → index.es446-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es444-BIEUsx6d.js → index.es447-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es445-B48N-Iqd.js → index.es448-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es446-BY-TUvya.js → index.es449-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es447-zocC4JxJ.js → index.es450-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es449-Cza_XSSt.js → index.es452-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es450-Bg-kzb6g.js → index.es453-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es451-DhUJRlN_.js → index.es454-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es453-C8lEn-DE.js → index.es456-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es454-DhMKtDLN.js → index.es457-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es455-CwjWoCRV.js → index.es458-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es456-CzouJOBO.js → index.es459-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es457-B1bQXN8T.js → index.es460-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es459-5LuOXUq_.js → index.es462-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es460-DWJ3fJO_.js → index.es463-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es461-DJlmqQ1C.js → index.es464-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es462-QhoSD0DR.js → index.es465-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es465-Be6lgOlo.js → index.es468-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es467-BJ4Li9vH.js → index.es470-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es468-DQVVAn-B.js → index.es471-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es469-BJGe-b2p.js → index.es472-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es471-BLhTXw86.js → index.es474-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es473-atvbtKCR.js → index.es476-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es475-DkLiglaE.js → index.es478-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es476-C1w2a3ep.js → index.es479-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es479-Cf8iN4DR.js → index.es482-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es480-COK4E0Yg.js → index.es483-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es481-BknIz3MU.js → index.es484-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es483-BeQkCIfX.js → index.es486-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es485-BSxZ-RaX.js → index.es488-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es486-C7L56vO4.js → index.es489-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es487-CUnW07Te.js → index.es490-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es488-C1XDQQGZ.js → index.es491-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es489-CQjiPCtT.js → index.es492-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es490-DQ1-QYvQ.js → index.es493-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es492-BbSNqyBO.js → index.es495-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es494-CB2ApiWb.js → index.es497-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es496-B_m7g4N7.js → index.es499-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es497-B6W0miNI.js → index.es500-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es498-BMR_PYu6.js → index.es501-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es500-Dj6nwHGl.js → index.es503-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es501-BpWG_bgh.js → index.es504-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es502-BVUVsWT6.js → index.es505-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es503-CAQ2eGtk.js → index.es506-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es504-BFOHcciG.js → index.es507-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es505-CdO5JTpU.js → index.es508-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es506-CJaU5se_.js → index.es509-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es507-DYoNaHQp.js → index.es510-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es508-m4uW47V2.js → index.es511-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es511-nyqBNV6O.js → index.es514-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es512-C6j12Q_x.js → index.es515-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es513-7A4Fjokl.js → index.es516-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es514-CB0Krxn9.js → index.es517-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es515-DCE3LsBG.js → index.es518-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es516-C3FkfJm5.js → index.es519-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es519-CVw76BM1.js → index.es522-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es520-HnGAYVZD.js → index.es523-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es521-BVz_zdnA.js → index.es524-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es522-C3khCPGq.js → index.es525-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es523-D-2ljcwZ.js → index.es526-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es524-Cv9koXgw.js → index.es527-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es525-CD_QflpE.js → index.es528-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es526-DRW-0cLl.js → index.es529-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es527-C-_shW-Y.js → index.es530-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es528-LGGdnPYs.js → index.es531-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es529-C3mMm8J8.js → index.es532-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es530-BzJJZx-M.js → index.es533-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es531-BXkSAIEj.js → index.es534-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es532-BgDCqdQA.js → index.es535-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es533-C8M2exoo.js → index.es536-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es534-DHJKELXO.js → index.es537-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es535-Cuk6v7N8.js → index.es538-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es536-DH5Ifo-i.js → index.es539-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es537-E3gJ1_iC.js → index.es540-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es538-DAi9KRSo.js → index.es541-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es539-D7oLnXFd.js → index.es542-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es540-BfjtVDDH.js → index.es543-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es541-DnULxvSX.js → index.es544-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es542-CkXjmgJE.js → index.es545-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es543-CfQXZHmo.js → index.es546-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es544-DWedfzmr.js → index.es547-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es545-DUszq2jm.js → index.es548-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es546-B7mTdjB0.js → index.es549-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es547-D5KoaKCx.js → index.es550-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es548-BfHTSMKl.js → index.es551-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es549-B0m2ddpp.js → index.es552-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es550-CyktbL80.js → index.es553-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es551-Csfq5Kiy.js → index.es554-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es552-CafNBF8u.js → index.es555-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es553-CTRr51gU.js → index.es556-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es554-D4h5O-jR.js → index.es557-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es555-C39BiMTA.js → index.es558-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es556-Ddv68eIx.js → index.es559-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es557-GBQ2dnAY.js → index.es560-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es558-PoHY5YXO.js → index.es561-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es559-3e1v2bzS.js → index.es562-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es560-CS3Unz2-.js → index.es563-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es561-bN70gL4F.js → index.es564-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es562-CmCqftbK.js → index.es565-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es563-Ds-gbosJ.js → index.es566-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es564-CjDtw9vr.js → index.es567-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es565-BthQWCQV.js → index.es568-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es566-DqwNpetd.js → index.es569-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es567-Bw305WKR.js → index.es570-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es568-DXbdFlpD.js → index.es571-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es569-L9t79GZl.js → index.es572-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es570-CbfX1IO0.js → index.es573-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es571-DBQeEorK.js → index.es574-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es572-BEBZ7ncR.js → index.es575-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es573-Bkuqu6BP.js → index.es576-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es574-D0r3Knsf.js → index.es577-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es575-CVO1_9PV.js → index.es578-CVO1_9PV.js} +0 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es310-AKXDC8rl.js","assets/index.es391-BOBiTPht.js","assets/index.es399-ySlJ1b_l.js","assets/index.es344-BPhBrDlE.js","assets/index.es311-CE0-K0fx.js","assets/index.es473-wVAdvQ6_.js","assets/index.es314-CsD4AFJi.js","assets/index.es520-ZlB1VPRK.js","assets/index.es398-xI-RfyKK.js","assets/index.es402-BQoSv7ci.js","assets/index.es319-BAaFF8nF.js","assets/index.es503-Dj6nwHGl.js","assets/index.es445-B3ZDOciz.js","assets/index.es327-CLjg00CO.js","assets/index.es483-COK4E0Yg.js","assets/index.es328-Dk49f56D.js","assets/index.es474-BLhTXw86.js","assets/index.es331-CNjOIk10.js","assets/index.es454-DhUJRlN_.js","assets/index.es335-BeNrivcI.js","assets/index.es338-BhR7SkS5.js","assets/index.es341-C_6PzCoq.js","assets/index.es463-DWJ3fJO_.js","assets/index.es378-mEifvHi6.js","assets/index.es329-C3t2pwGQ.js","assets/index.es342-D1uAr8c1.js","assets/index.es476-atvbtKCR.js","assets/index.es356-7PPXN4m3.js","assets/index.es392-BGdYwXRd.js","assets/index.es357-CJh2QG0N.js","assets/index.es358-C_zZutkw.js","assets/index.es360-DeQ44nE8.js","assets/index.es467-D1qnNYJr.js","assets/index.es384-DBjLFE2E.js","assets/index.es381-DdV8KTBv.js","assets/index.es408-BAng5TT0.js","assets/index.es500-B6W0miNI.js","assets/index.es418-DwuHSZfi.js","assets/index.es522-CVw76BM1.js","assets/index.es365-oFKdnBEe.js","assets/index.es366-DKXYxT9g.js","assets/index.es367-BUiiHWL7.js","assets/index.es421-UIAJJxZW.js","assets/index.es368-Bb8Mmpp1.js","assets/index.es370-SKMF96pI.js","assets/index.es369-DfxzS6Rs.js","assets/index.es373-C5Q5iXfG.js","assets/index.es352-BgYniUM_.js","assets/index.es374-s3ewK3v_.js","assets/index.es376-Dot0I9EF.js","assets/index.es377-B6TLwhtH.js","assets/index.es383-B762Qvzb.js","assets/index.es385-DkDs29_v.js","assets/index.es393-BnuSumNM.js","assets/index.es394-DMJpONen.js","assets/index.es387-C5wWYbrZ.js","assets/index.es396-Dexy1Fdn.js","assets/index.es400-V_MXD6ds.js","assets/index.es401-CAcCA7it.js","assets/index.es409-DgSxLsfq.js","assets/index.es458-CwjWoCRV.js","assets/index.es412-wcTkTrNP.js","assets/index.es496-Tis1R15L.js","assets/index.es415-hnSTt9Hn.js","assets/index.es422-DWsCMo9a.js","assets/index.es414-BfCpw3nA.js","assets/index.es424-CX2jVTDC.js","assets/index.es432-DpOOpPot.js","assets/index.es433--E-hGrgp.js","assets/index.es440-NJaU5ncf.js","assets/index.es441-CR0Ohpvp.js","assets/index.es451-sHTEx-Dl.js","assets/index.es455-9ZC7rz1G.js","assets/index.es461-DAQjszqb.js","assets/index.es343-D9R-vmeu.js","assets/index.es466-sT_GOjPl.js","assets/index.es334-DbXoA79R.js","assets/index.es469-DW1np4pg.js","assets/index.es475-CZM7KBU8.js","assets/index.es390-ifBTmRxC.js","assets/index.es477-OAyIdwW_.js","assets/index.es480-DSR8isSz.js","assets/index.es481-CBydsWwB.js","assets/index.es501-BMR_PYu6.js","assets/index.es485-CJc4fpNV.js","assets/index.es487-C1wULFp4.js","assets/index.es494-BLp6ucpV.js","assets/index.es380-B1SYOhNW.js","assets/index.es498-DnIxUf2o.js","assets/index.es502-DhEHE70J.js","assets/index.es512-B---8rhN.js","assets/index.es513-BU_koFtA.js","assets/index.es521-VBglaSPm.js","assets/index-GXiK4wJn.js","assets/index-BTifa3VC.js","assets/index.umd-B5zPGg7f.js","assets/HomePage-7j10faAk.js","assets/index.es20-Xp2DiRye.js","assets/MenuItem-lIU1AdLr.js","assets/Modal-D1yZSrQW.js","assets/listItemTextClasses-gPHO1JUj.js","assets/MoreVert-BnS0-_a-.js","assets/Edit-BJgSEJcw.js","assets/Container-L_WqT4jT.js","assets/Chip-QKOHsU1g.js","assets/MainPage-CAwngISZ.js","assets/ModelPage-BZzRs40Z.js","assets/index.es7-4Yy4RzF4.js","assets/index.modern-DMvoTRLq.js","assets/DialogTitle-Bn08FgCr.js","assets/PackagePage-CpVMURqi.js","assets/FormControlContext-Dw41r2fL.js","assets/ProjectPage-Wkk3rsE4.js","assets/RouteError-DSynFzxI.js","assets/WorkbookPage-CAKkhCC4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function p$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Gge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Av={exports:{}},Id={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var D2;function h$(){if(D2)return Id;D2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var s=null;if(o!==void 0&&(s=""+o),a.key!==void 0&&(s=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:o}}return Id.Fragment=t,Id.jsx=n,Id.jsxs=n,Id}var R2;function m$(){return R2||(R2=1,Av.exports=h$()),Av.exports}var P=m$(),xv={exports:{}},Dt={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var O2;function g$(){if(O2)return Dt;O2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function y(I){return I===null||typeof I!="object"?null:(I=h&&I[h]||I["@@iterator"],typeof I=="function"?I:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,E={};function T(I,ne,ee){this.props=I,this.context=ne,this.refs=E,this.updater=ee||g}T.prototype.isReactComponent={},T.prototype.setState=function(I,ne){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,ne,"setState")},T.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function A(){}A.prototype=T.prototype;function w(I,ne,ee){this.props=I,this.context=ne,this.refs=E,this.updater=ee||g}var k=w.prototype=new A;k.constructor=w,b(k,T.prototype),k.isPureReactComponent=!0;var O=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function F(I,ne,ee,L,te,be){return ee=be.ref,{$$typeof:e,type:I,key:ne,ref:ee!==void 0?ee:null,props:be}}function q(I,ne){return F(I.type,ne,void 0,void 0,void 0,I.props)}function z(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function $(I){var ne={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ee){return ne[ee]})}var H=/\/+/g;function C(I,ne){return typeof I=="object"&&I!==null&&I.key!=null?$(""+I.key):ne.toString(36)}function M(){}function B(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(M,M):(I.status="pending",I.then(function(ne){I.status==="pending"&&(I.status="fulfilled",I.value=ne)},function(ne){I.status==="pending"&&(I.status="rejected",I.reason=ne)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function W(I,ne,ee,L,te){var be=typeof I;(be==="undefined"||be==="boolean")&&(I=null);var de=!1;if(I===null)de=!0;else switch(be){case"bigint":case"string":case"number":de=!0;break;case"object":switch(I.$$typeof){case e:case t:de=!0;break;case p:return de=I._init,W(de(I._payload),ne,ee,L,te)}}if(de)return te=te(I),de=L===""?"."+C(I,0):L,O(te)?(ee="",de!=null&&(ee=de.replace(H,"$&/")+"/"),W(te,ne,ee,"",function(Oe){return Oe})):te!=null&&(z(te)&&(te=q(te,ee+(te.key==null||I&&I.key===te.key?"":(""+te.key).replace(H,"$&/")+"/")+de)),ne.push(te)),1;de=0;var xe=L===""?".":L+":";if(O(I))for(var ye=0;ye<I.length;ye++)L=I[ye],be=xe+C(L,ye),de+=W(L,ne,ee,be,te);else if(ye=y(I),typeof ye=="function")for(I=ye.call(I),ye=0;!(L=I.next()).done;)L=L.value,be=xe+C(L,ye++),de+=W(L,ne,ee,be,te);else if(be==="object"){if(typeof I.then=="function")return W(B(I),ne,ee,L,te);throw ne=String(I),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return de}function j(I,ne,ee){if(I==null)return I;var L=[],te=0;return W(I,L,"","",function(be){return ne.call(ee,be,te++)}),L}function Z(I){if(I._status===-1){var ne=I._result;ne=ne(),ne.then(function(ee){(I._status===0||I._status===-1)&&(I._status=1,I._result=ee)},function(ee){(I._status===0||I._status===-1)&&(I._status=2,I._result=ee)}),I._status===-1&&(I._status=0,I._result=ne)}if(I._status===1)return I._result.default;throw I._result}var Q=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function ae(){}return Dt.Children={map:j,forEach:function(I,ne,ee){j(I,function(){ne.apply(this,arguments)},ee)},count:function(I){var ne=0;return j(I,function(){ne++}),ne},toArray:function(I){return j(I,function(ne){return ne})||[]},only:function(I){if(!z(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Dt.Component=T,Dt.Fragment=n,Dt.Profiler=a,Dt.PureComponent=w,Dt.StrictMode=r,Dt.Suspense=u,Dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Dt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return R.H.useMemoCache(I)}},Dt.cache=function(I){return function(){return I.apply(null,arguments)}},Dt.cloneElement=function(I,ne,ee){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var L=b({},I.props),te=I.key,be=void 0;if(ne!=null)for(de in ne.ref!==void 0&&(be=void 0),ne.key!==void 0&&(te=""+ne.key),ne)!D.call(ne,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&ne.ref===void 0||(L[de]=ne[de]);var de=arguments.length-2;if(de===1)L.children=ee;else if(1<de){for(var xe=Array(de),ye=0;ye<de;ye++)xe[ye]=arguments[ye+2];L.children=xe}return F(I.type,te,void 0,void 0,be,L)},Dt.createContext=function(I){return I={$$typeof:s,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:o,_context:I},I},Dt.createElement=function(I,ne,ee){var L,te={},be=null;if(ne!=null)for(L in ne.key!==void 0&&(be=""+ne.key),ne)D.call(ne,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(te[L]=ne[L]);var de=arguments.length-2;if(de===1)te.children=ee;else if(1<de){for(var xe=Array(de),ye=0;ye<de;ye++)xe[ye]=arguments[ye+2];te.children=xe}if(I&&I.defaultProps)for(L in de=I.defaultProps,de)te[L]===void 0&&(te[L]=de[L]);return F(I,be,void 0,void 0,null,te)},Dt.createRef=function(){return{current:null}},Dt.forwardRef=function(I){return{$$typeof:c,render:I}},Dt.isValidElement=z,Dt.lazy=function(I){return{$$typeof:p,_payload:{_status:-1,_result:I},_init:Z}},Dt.memo=function(I,ne){return{$$typeof:d,type:I,compare:ne===void 0?null:ne}},Dt.startTransition=function(I){var ne=R.T,ee={};R.T=ee;try{var L=I(),te=R.S;te!==null&&te(ee,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(ae,Q)}catch(be){Q(be)}finally{R.T=ne}},Dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Dt.use=function(I){return R.H.use(I)},Dt.useActionState=function(I,ne,ee){return R.H.useActionState(I,ne,ee)},Dt.useCallback=function(I,ne){return R.H.useCallback(I,ne)},Dt.useContext=function(I){return R.H.useContext(I)},Dt.useDebugValue=function(){},Dt.useDeferredValue=function(I,ne){return R.H.useDeferredValue(I,ne)},Dt.useEffect=function(I,ne,ee){var L=R.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return L.useEffect(I,ne)},Dt.useId=function(){return R.H.useId()},Dt.useImperativeHandle=function(I,ne,ee){return R.H.useImperativeHandle(I,ne,ee)},Dt.useInsertionEffect=function(I,ne){return R.H.useInsertionEffect(I,ne)},Dt.useLayoutEffect=function(I,ne){return R.H.useLayoutEffect(I,ne)},Dt.useMemo=function(I,ne){return R.H.useMemo(I,ne)},Dt.useOptimistic=function(I,ne){return R.H.useOptimistic(I,ne)},Dt.useReducer=function(I,ne,ee){return R.H.useReducer(I,ne,ee)},Dt.useRef=function(I){return R.H.useRef(I)},Dt.useState=function(I){return R.H.useState(I)},Dt.useSyncExternalStore=function(I,ne,ee){return R.H.useSyncExternalStore(I,ne,ee)},Dt.useTransition=function(){return R.H.useTransition()},Dt.version="19.1.1",Dt}var I2;function PT(){return I2||(I2=1,xv.exports=g$()),xv.exports}var x=PT();const Tt=XO(x),ug=p$({__proto__:null,default:Tt},[x]);var wv={exports:{}},Nd={},kv={exports:{}},Dv={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var N2;function y$(){return N2||(N2=1,(function(e){function t(j,Z){var Q=j.length;j.push(Z);e:for(;0<Q;){var ae=Q-1>>>1,I=j[ae];if(0<a(I,Z))j[ae]=Z,j[Q]=I,Q=ae;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Z=j[0],Q=j.pop();if(Q!==Z){j[0]=Q;e:for(var ae=0,I=j.length,ne=I>>>1;ae<ne;){var ee=2*(ae+1)-1,L=j[ee],te=ee+1,be=j[te];if(0>a(L,Q))te<I&&0>a(be,L)?(j[ae]=be,j[te]=Q,ae=te):(j[ae]=L,j[ee]=Q,ae=ee);else if(te<I&&0>a(be,Q))j[ae]=be,j[te]=Q,ae=te;else break e}}return Z}function a(j,Z){var Q=j.sortIndex-Z.sortIndex;return Q!==0?Q:j.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var u=[],d=[],p=1,h=null,y=3,g=!1,b=!1,E=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function O(j){for(var Z=n(d);Z!==null;){if(Z.callback===null)r(d);else if(Z.startTime<=j)r(d),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=n(d)}}function R(j){if(E=!1,O(j),!b)if(n(u)!==null)b=!0,D||(D=!0,C());else{var Z=n(d);Z!==null&&W(R,Z.startTime-j)}}var D=!1,F=-1,q=5,z=-1;function $(){return T?!0:!(e.unstable_now()-z<q)}function H(){if(T=!1,D){var j=e.unstable_now();z=j;var Z=!0;try{e:{b=!1,E&&(E=!1,w(F),F=-1),g=!0;var Q=y;try{t:{for(O(j),h=n(u);h!==null&&!(h.expirationTime>j&&$());){var ae=h.callback;if(typeof ae=="function"){h.callback=null,y=h.priorityLevel;var I=ae(h.expirationTime<=j);if(j=e.unstable_now(),typeof I=="function"){h.callback=I,O(j),Z=!0;break t}h===n(u)&&r(u),O(j)}else r(u);h=n(u)}if(h!==null)Z=!0;else{var ne=n(d);ne!==null&&W(R,ne.startTime-j),Z=!1}}break e}finally{h=null,y=Q,g=!1}Z=void 0}}finally{Z?C():D=!1}}}var C;if(typeof k=="function")C=function(){k(H)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,B=M.port2;M.port1.onmessage=H,C=function(){B.postMessage(null)}}else C=function(){A(H,0)};function W(j,Z){F=A(function(){j(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(j){switch(y){case 1:case 2:case 3:var Z=3;break;default:Z=y}var Q=y;y=Z;try{return j()}finally{y=Q}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(j,Z){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Q=y;y=j;try{return Z()}finally{y=Q}},e.unstable_scheduleCallback=function(j,Z,Q){var ae=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ae+Q:ae):Q=ae,j){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=Q+I,j={id:p++,callback:Z,priorityLevel:j,startTime:Q,expirationTime:I,sortIndex:-1},Q>ae?(j.sortIndex=Q,t(d,j),n(u)===null&&j===n(d)&&(E?(w(F),F=-1):E=!0,W(R,Q-ae))):(j.sortIndex=I,t(u,j),b||g||(b=!0,D||(D=!0,C()))),j},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(j){var Z=y;return function(){var Q=y;y=Z;try{return j.apply(this,arguments)}finally{y=Q}}}})(Dv)),Dv}var L2;function v$(){return L2||(L2=1,kv.exports=y$()),kv.exports}var Rv={exports:{}},Dr={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var P2;function b$(){if(P2)return Dr;P2=1;var e=PT();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(u,d,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:u,containerInfo:d,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Dr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Dr.createPortal=function(u,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(u,d,null,p)},Dr.flushSync=function(u){var d=s.T,p=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=d,r.p=p,r.d.f()}},Dr.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Dr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Dr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:g}):p==="script"&&r.d.X(u,{crossOrigin:h,integrity:y,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Dr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Dr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin);r.d.L(u,p,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Dr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=c(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Dr.requestFormReset=function(u){r.d.r(u)},Dr.unstable_batchedUpdates=function(u,d){return u(d)},Dr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Dr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Dr.version="19.1.1",Dr}var M2;function ZO(){if(M2)return Rv.exports;M2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rv.exports=b$(),Rv.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var $2;function E$(){if($2)return Nd;$2=1;var e=v$(),t=PT(),n=ZO();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var l=i,f=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(f=l.return),i=l.return;while(i)}return l.tag===3?f:null}function s(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(o(i)!==i)throw Error(r(188))}function u(i){var l=i.alternate;if(!l){if(l=o(i),l===null)throw Error(r(188));return l!==i?null:i}for(var f=i,m=l;;){var v=f.return;if(v===null)break;var S=v.alternate;if(S===null){if(m=v.return,m!==null){f=m;continue}break}if(v.child===S.child){for(S=v.child;S;){if(S===f)return c(v),i;if(S===m)return c(v),l;S=S.sibling}throw Error(r(188))}if(f.return!==m.return)f=v,m=S;else{for(var N=!1,U=v.child;U;){if(U===f){N=!0,f=v,m=S;break}if(U===m){N=!0,m=v,f=S;break}U=U.sibling}if(!N){for(U=S.child;U;){if(U===f){N=!0,f=S,m=v;break}if(U===m){N=!0,m=S,f=v;break}U=U.sibling}if(!N)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?i:l}function d(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=d(i),l!==null)return l;i=i.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function C(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var M=Symbol.for("react.client.reference");function B(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===M?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList";case z:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case g:return"Portal";case k:return(i.displayName||"Context")+".Provider";case w:return(i._context.displayName||"Context")+".Consumer";case O:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case F:return l=i.displayName||null,l!==null?l:B(i.type)||"Memo";case q:l=i._payload,i=i._init;try{return B(i(l))}catch{}}return null}var W=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ae=[],I=-1;function ne(i){return{current:i}}function ee(i){0>I||(i.current=ae[I],ae[I]=null,I--)}function L(i,l){I++,ae[I]=i.current,i.current=l}var te=ne(null),be=ne(null),de=ne(null),xe=ne(null);function ye(i,l){switch(L(de,l),L(be,i),L(te,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?r2(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=r2(l),i=a2(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ee(te),L(te,i)}function Oe(){ee(te),ee(be),ee(de)}function Ue(i){i.memoizedState!==null&&L(xe,i);var l=te.current,f=a2(l,i.type);l!==f&&(L(be,i),L(te,f))}function Ie(i){be.current===i&&(ee(te),ee(be)),xe.current===i&&(ee(xe),wd._currentValue=Q)}var Ye=Object.prototype.hasOwnProperty,Ve=e.unstable_scheduleCallback,De=e.unstable_cancelCallback,Ot=e.unstable_shouldYield,Et=e.unstable_requestPaint,je=e.unstable_now,St=e.unstable_getCurrentPriorityLevel,it=e.unstable_ImmediatePriority,Ze=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,It=e.unstable_IdlePriority,kn=e.log,bt=e.unstable_setDisableYieldValue,ce=null,me=null;function Be(i){if(typeof kn=="function"&&bt(i),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(ce,i)}catch{}}var qe=Math.clz32?Math.clz32:cn,Qe=Math.log,gt=Math.LN2;function cn(i){return i>>>=0,i===0?32:31-(Qe(i)/gt|0)|0}var Qt=256,We=4194304;function Ee(i){var l=i&42;if(l!==0)return l;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Te(i,l,f){var m=i.pendingLanes;if(m===0)return 0;var v=0,S=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var U=m&134217727;return U!==0?(m=U&~S,m!==0?v=Ee(m):(N&=U,N!==0?v=Ee(N):f||(f=U&~i,f!==0&&(v=Ee(f))))):(U=m&~S,U!==0?v=Ee(U):N!==0?v=Ee(N):f||(f=m&~i,f!==0&&(v=Ee(f)))),v===0?0:l!==0&&l!==v&&(l&S)===0&&(S=v&-v,f=l&-l,S>=f||S===32&&(f&4194048)!==0)?l:v}function ut(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function nt(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bn(){var i=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),i}function Br(){var i=We;return We<<=1,(We&62914560)===0&&(We=4194304),i}function Sr(i){for(var l=[],f=0;31>f;f++)l.push(i);return l}function hr(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function mr(i,l,f,m,v,S){var N=i.pendingLanes;i.pendingLanes=f,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=f,i.entangledLanes&=f,i.errorRecoveryDisabledLanes&=f,i.shellSuspendCounter=0;var U=i.entanglements,X=i.expirationTimes,ue=i.hiddenUpdates;for(f=N&~f;0<f;){var Ce=31-qe(f),we=1<<Ce;U[Ce]=0,X[Ce]=-1;var fe=ue[Ce];if(fe!==null)for(ue[Ce]=null,Ce=0;Ce<fe.length;Ce++){var he=fe[Ce];he!==null&&(he.lane&=-536870913)}f&=~we}m!==0&&Ma(i,m,0),S!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=S&~(N&~l))}function Ma(i,l,f){i.pendingLanes|=l,i.suspendedLanes&=~l;var m=31-qe(l);i.entangledLanes|=l,i.entanglements[m]=i.entanglements[m]|1073741824|f&4194090}function In(i,l){var f=i.entangledLanes|=l;for(i=i.entanglements;f;){var m=31-qe(f),v=1<<m;v&l|i[m]&l&&(i[m]|=l),f&=~v}}function Ur(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ft(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function J(){var i=Z.p;return i!==0?i:(i=window.event,i===void 0?32:_2(i.type))}function ie(i,l){var f=Z.p;try{return Z.p=i,l()}finally{Z.p=f}}var pe=Math.random().toString(36).slice(2),ke="__reactFiber$"+pe,Me="__reactProps$"+pe,Xe="__reactContainer$"+pe,ot="__reactEvents$"+pe,Je="__reactListeners$"+pe,lt="__reactHandles$"+pe,pt="__reactResources$"+pe,et="__reactMarker$"+pe;function rt(i){delete i[ke],delete i[Me],delete i[ot],delete i[Je],delete i[lt]}function Nt(i){var l=i[ke];if(l)return l;for(var f=i.parentNode;f;){if(l=f[Xe]||f[ke]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(i=l2(i);i!==null;){if(f=i[ke])return f;i=l2(i)}return l}i=f,f=i.parentNode}return null}function rn(i){if(i=i[ke]||i[Xe]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function Nn(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function Hn(i){var l=i[pt];return l||(l=i[pt]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ct(i){i[et]=!0}var yn=new Set,wo={};function ga(i,l){jr(i,l),jr(i+"Capture",l)}function jr(i,l){for(wo[i]=l,i=0;i<l.length;i++)yn.add(l[i])}var $a=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yl={},Hi={};function ai(i){return Ye.call(Hi,i)?!0:Ye.call(Yl,i)?!1:$a.test(i)?Hi[i]=!0:(Yl[i]=!0,!1)}function oi(i,l,f){if(ai(l))if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+f)}}function ii(i,l,f){if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+f)}}function At(i,l,f,m){if(m===null)i.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(f);return}i.setAttributeNS(l,f,""+m)}}var nr,si;function Jr(i){if(nr===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);nr=l&&l[1]||"",si=-1<f.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+nr+i+si}var Un=!1;function zi(i,l){if(!i||Un)return"";Un=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(he){var fe=he}Reflect.construct(i,[],we)}else{try{we.call()}catch(he){fe=he}i.call(we.prototype)}}else{try{throw Error()}catch(he){fe=he}(we=i())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(he){if(he&&fe&&typeof he.stack=="string")return[he.stack,fe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=m.DetermineComponentFrameRoot(),N=S[0],U=S[1];if(N&&U){var X=N.split(`
|
|
45
|
+
`),ue=U.split(`
|
|
46
|
+
`);for(v=m=0;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;for(;v<ue.length&&!ue[v].includes("DetermineComponentFrameRoot");)v++;if(m===X.length||v===ue.length)for(m=X.length-1,v=ue.length-1;1<=m&&0<=v&&X[m]!==ue[v];)v--;for(;1<=m&&0<=v;m--,v--)if(X[m]!==ue[v]){if(m!==1||v!==1)do if(m--,v--,0>v||X[m]!==ue[v]){var Ce=`
|
|
47
|
+
`+X[m].replace(" at new "," at ");return i.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",i.displayName)),Ce}while(1<=m&&0<=v);break}}}finally{Un=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?Jr(f):""}function Xp(i){switch(i.tag){case 26:case 27:case 5:return Jr(i.type);case 16:return Jr("Lazy");case 13:return Jr("Suspense");case 19:return Jr("SuspenseList");case 0:case 15:return zi(i.type,!1);case 11:return zi(i.type.render,!1);case 1:return zi(i.type,!0);case 31:return Jr("Activity");default:return""}}function Zp(i){try{var l="";do l+=Xp(i),i=i.return;while(i);return l}catch(f){return`
|
|
48
|
+
Error generating stack: `+f.message+`
|
|
49
|
+
`+f.stack}}function Fa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Z_(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function l6(i){var l=Z_(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),m=""+i[l];if(!i.hasOwnProperty(l)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var v=f.get,S=f.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return v.call(this)},set:function(N){m=""+N,S.call(this,N)}}),Object.defineProperty(i,l,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(N){m=""+N},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Jp(i){i._valueTracker||(i._valueTracker=l6(i))}function J_(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var f=l.getValue(),m="";return i&&(m=Z_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(l.setValue(i),!0):!1}function eh(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var c6=/[\n"\\]/g;function Ba(i){return i.replace(c6,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Sy(i,l,f,m,v,S,N,U){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),l!=null?N==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+Fa(l)):i.value!==""+Fa(l)&&(i.value=""+Fa(l)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),l!=null?_y(i,N,Fa(l)):f!=null?_y(i,N,Fa(f)):m!=null&&i.removeAttribute("value"),v==null&&S!=null&&(i.defaultChecked=!!S),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?i.name=""+Fa(U):i.removeAttribute("name")}function eC(i,l,f,m,v,S,N,U){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.type=S),l!=null||f!=null){if(!(S!=="submit"&&S!=="reset"||l!=null))return;f=f!=null?""+Fa(f):"",l=l!=null?""+Fa(l):f,U||l===i.value||(i.value=l),i.defaultValue=l}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=U?i.checked:!!m,i.defaultChecked=!!m,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N)}function _y(i,l,f){l==="number"&&eh(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function Ql(i,l,f,m){if(i=i.options,l){l={};for(var v=0;v<f.length;v++)l["$"+f[v]]=!0;for(f=0;f<i.length;f++)v=l.hasOwnProperty("$"+i[f].value),i[f].selected!==v&&(i[f].selected=v),v&&m&&(i[f].defaultSelected=!0)}else{for(f=""+Fa(f),l=null,v=0;v<i.length;v++){if(i[v].value===f){i[v].selected=!0,m&&(i[v].defaultSelected=!0);return}l!==null||i[v].disabled||(l=i[v])}l!==null&&(l.selected=!0)}}function tC(i,l,f){if(l!=null&&(l=""+Fa(l),l!==i.value&&(i.value=l),f==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=f!=null?""+Fa(f):""}function nC(i,l,f,m){if(l==null){if(m!=null){if(f!=null)throw Error(r(92));if(W(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),l=f}f=Fa(l),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function Kl(i,l){if(l){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=l;return}}i.textContent=l}var u6=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function rC(i,l,f){var m=l.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":m?i.setProperty(l,f):typeof f!="number"||f===0||u6.has(l)?l==="float"?i.cssFloat=f:i[l]=(""+f).trim():i[l]=f+"px"}function aC(i,l,f){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var v in l)m=l[v],l.hasOwnProperty(v)&&f[v]!==m&&rC(i,v,m)}else for(var S in l)l.hasOwnProperty(S)&&rC(i,S,l[S])}function Cy(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var d6=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),f6=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function th(i){return f6.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Ay=null;function xy(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Xl=null,Zl=null;function oC(i){var l=rn(i);if(l&&(i=l.stateNode)){var f=i[Me]||null;e:switch(i=l.stateNode,l.type){case"input":if(Sy(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),l=f.name,f.type==="radio"&&l!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Ba(""+l)+'"][type="radio"]'),l=0;l<f.length;l++){var m=f[l];if(m!==i&&m.form===i.form){var v=m[Me]||null;if(!v)throw Error(r(90));Sy(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<f.length;l++)m=f[l],m.form===i.form&&J_(m)}break e;case"textarea":tC(i,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&Ql(i,!!f.multiple,l,!1)}}}var wy=!1;function iC(i,l,f){if(wy)return i(l,f);wy=!0;try{var m=i(l);return m}finally{if(wy=!1,(Xl!==null||Zl!==null)&&(Uh(),Xl&&(l=Xl,i=Zl,Zl=Xl=null,oC(l),i)))for(l=0;l<i.length;l++)oC(i[l])}}function Uu(i,l){var f=i.stateNode;if(f===null)return null;var m=f[Me]||null;if(m===null)return null;f=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(r(231,l,typeof f));return f}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ky=!1;if(li)try{var ju={};Object.defineProperty(ju,"passive",{get:function(){ky=!0}}),window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{ky=!1}var Vi=null,Dy=null,nh=null;function sC(){if(nh)return nh;var i,l=Dy,f=l.length,m,v="value"in Vi?Vi.value:Vi.textContent,S=v.length;for(i=0;i<f&&l[i]===v[i];i++);var N=f-i;for(m=1;m<=N&&l[f-m]===v[S-m];m++);return nh=v.slice(i,1<m?1-m:void 0)}function rh(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function ah(){return!0}function lC(){return!1}function ea(i){function l(f,m,v,S,N){this._reactName=f,this._targetInst=v,this.type=m,this.nativeEvent=S,this.target=N,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(f=i[U],this[U]=f?f(S):S[U]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?ah:lC,this.isPropagationStopped=lC,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ah)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ah)},persist:function(){},isPersistent:ah}),l}var Bs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oh=ea(Bs),Hu=p({},Bs,{view:0,detail:0}),p6=ea(Hu),Ry,Oy,zu,ih=p({},Hu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ny,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==zu&&(zu&&i.type==="mousemove"?(Ry=i.screenX-zu.screenX,Oy=i.screenY-zu.screenY):Oy=Ry=0,zu=i),Ry)},movementY:function(i){return"movementY"in i?i.movementY:Oy}}),cC=ea(ih),h6=p({},ih,{dataTransfer:0}),m6=ea(h6),g6=p({},Hu,{relatedTarget:0}),Iy=ea(g6),y6=p({},Bs,{animationName:0,elapsedTime:0,pseudoElement:0}),v6=ea(y6),b6=p({},Bs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),E6=ea(b6),T6=p({},Bs,{data:0}),uC=ea(T6),S6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_6={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},C6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A6(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=C6[i])?!!l[i]:!1}function Ny(){return A6}var x6=p({},Hu,{key:function(i){if(i.key){var l=S6[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=rh(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?_6[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ny,charCode:function(i){return i.type==="keypress"?rh(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?rh(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),w6=ea(x6),k6=p({},ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dC=ea(k6),D6=p({},Hu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ny}),R6=ea(D6),O6=p({},Bs,{propertyName:0,elapsedTime:0,pseudoElement:0}),I6=ea(O6),N6=p({},ih,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),L6=ea(N6),P6=p({},Bs,{newState:0,oldState:0}),M6=ea(P6),$6=[9,13,27,32],Ly=li&&"CompositionEvent"in window,Vu=null;li&&"documentMode"in document&&(Vu=document.documentMode);var F6=li&&"TextEvent"in window&&!Vu,fC=li&&(!Ly||Vu&&8<Vu&&11>=Vu),pC=" ",hC=!1;function mC(i,l){switch(i){case"keyup":return $6.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gC(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Jl=!1;function B6(i,l){switch(i){case"compositionend":return gC(l);case"keypress":return l.which!==32?null:(hC=!0,pC);case"textInput":return i=l.data,i===pC&&hC?null:i;default:return null}}function U6(i,l){if(Jl)return i==="compositionend"||!Ly&&mC(i,l)?(i=sC(),nh=Dy=Vi=null,Jl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return fC&&l.locale!=="ko"?null:l.data;default:return null}}var j6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yC(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!j6[i.type]:l==="textarea"}function vC(i,l,f,m){Xl?Zl?Zl.push(m):Zl=[m]:Xl=m,l=qh(l,"onChange"),0<l.length&&(f=new oh("onChange","change",null,f,m),i.push({event:f,listeners:l}))}var Gu=null,qu=null;function H6(i){Zx(i,0)}function sh(i){var l=Nn(i);if(J_(l))return i}function bC(i,l){if(i==="change")return l}var EC=!1;if(li){var Py;if(li){var My="oninput"in document;if(!My){var TC=document.createElement("div");TC.setAttribute("oninput","return;"),My=typeof TC.oninput=="function"}Py=My}else Py=!1;EC=Py&&(!document.documentMode||9<document.documentMode)}function SC(){Gu&&(Gu.detachEvent("onpropertychange",_C),qu=Gu=null)}function _C(i){if(i.propertyName==="value"&&sh(qu)){var l=[];vC(l,qu,i,xy(i)),iC(H6,l)}}function z6(i,l,f){i==="focusin"?(SC(),Gu=l,qu=f,Gu.attachEvent("onpropertychange",_C)):i==="focusout"&&SC()}function V6(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return sh(qu)}function G6(i,l){if(i==="click")return sh(l)}function q6(i,l){if(i==="input"||i==="change")return sh(l)}function W6(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var ya=typeof Object.is=="function"?Object.is:W6;function Wu(i,l){if(ya(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var f=Object.keys(i),m=Object.keys(l);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var v=f[m];if(!Ye.call(l,v)||!ya(i[v],l[v]))return!1}return!0}function CC(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function AC(i,l){var f=CC(i);i=0;for(var m;f;){if(f.nodeType===3){if(m=i+f.textContent.length,i<=l&&m>=l)return{node:f,offset:l-i};i=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=CC(f)}}function xC(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?xC(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function wC(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=eh(i.document);l instanceof i.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)i=l.contentWindow;else break;l=eh(i.document)}return l}function $y(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var Y6=li&&"documentMode"in document&&11>=document.documentMode,ec=null,Fy=null,Yu=null,By=!1;function kC(i,l,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;By||ec==null||ec!==eh(m)||(m=ec,"selectionStart"in m&&$y(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Yu&&Wu(Yu,m)||(Yu=m,m=qh(Fy,"onSelect"),0<m.length&&(l=new oh("onSelect","select",null,l,f),i.push({event:l,listeners:m}),l.target=ec)))}function Us(i,l){var f={};return f[i.toLowerCase()]=l.toLowerCase(),f["Webkit"+i]="webkit"+l,f["Moz"+i]="moz"+l,f}var tc={animationend:Us("Animation","AnimationEnd"),animationiteration:Us("Animation","AnimationIteration"),animationstart:Us("Animation","AnimationStart"),transitionrun:Us("Transition","TransitionRun"),transitionstart:Us("Transition","TransitionStart"),transitioncancel:Us("Transition","TransitionCancel"),transitionend:Us("Transition","TransitionEnd")},Uy={},DC={};li&&(DC=document.createElement("div").style,"AnimationEvent"in window||(delete tc.animationend.animation,delete tc.animationiteration.animation,delete tc.animationstart.animation),"TransitionEvent"in window||delete tc.transitionend.transition);function js(i){if(Uy[i])return Uy[i];if(!tc[i])return i;var l=tc[i],f;for(f in l)if(l.hasOwnProperty(f)&&f in DC)return Uy[i]=l[f];return i}var RC=js("animationend"),OC=js("animationiteration"),IC=js("animationstart"),Q6=js("transitionrun"),K6=js("transitionstart"),X6=js("transitioncancel"),NC=js("transitionend"),LC=new Map,jy="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");jy.push("scrollEnd");function po(i,l){LC.set(i,l),ga(l,[i])}var PC=new WeakMap;function Ua(i,l){if(typeof i=="object"&&i!==null){var f=PC.get(i);return f!==void 0?f:(l={value:i,source:l,stack:Zp(l)},PC.set(i,l),l)}return{value:i,source:l,stack:Zp(l)}}var ja=[],nc=0,Hy=0;function lh(){for(var i=nc,l=Hy=nc=0;l<i;){var f=ja[l];ja[l++]=null;var m=ja[l];ja[l++]=null;var v=ja[l];ja[l++]=null;var S=ja[l];if(ja[l++]=null,m!==null&&v!==null){var N=m.pending;N===null?v.next=v:(v.next=N.next,N.next=v),m.pending=v}S!==0&&MC(f,v,S)}}function ch(i,l,f,m){ja[nc++]=i,ja[nc++]=l,ja[nc++]=f,ja[nc++]=m,Hy|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function zy(i,l,f,m){return ch(i,l,f,m),uh(i)}function rc(i,l){return ch(i,null,null,l),uh(i)}function MC(i,l,f){i.lanes|=f;var m=i.alternate;m!==null&&(m.lanes|=f);for(var v=!1,S=i.return;S!==null;)S.childLanes|=f,m=S.alternate,m!==null&&(m.childLanes|=f),S.tag===22&&(i=S.stateNode,i===null||i._visibility&1||(v=!0)),i=S,S=S.return;return i.tag===3?(S=i.stateNode,v&&l!==null&&(v=31-qe(f),i=S.hiddenUpdates,m=i[v],m===null?i[v]=[l]:m.push(l),l.lane=f|536870912),S):null}function uh(i){if(50<bd)throw bd=0,Q1=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var ac={};function Z6(i,l,f,m){this.tag=i,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(i,l,f,m){return new Z6(i,l,f,m)}function Vy(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ci(i,l){var f=i.alternate;return f===null?(f=va(i.tag,l,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=l,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&65011712,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,l=i.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f.refCleanup=i.refCleanup,f}function $C(i,l){i.flags&=65011714;var f=i.alternate;return f===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=f.childLanes,i.lanes=f.lanes,i.child=f.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=f.memoizedProps,i.memoizedState=f.memoizedState,i.updateQueue=f.updateQueue,i.type=f.type,l=f.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function dh(i,l,f,m,v,S){var N=0;if(m=i,typeof i=="function")Vy(i)&&(N=1);else if(typeof i=="string")N=e$(i,f,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case z:return i=va(31,f,l,v),i.elementType=z,i.lanes=S,i;case b:return Hs(f.children,v,S,l);case E:N=8,v|=24;break;case T:return i=va(12,f,l,v|2),i.elementType=T,i.lanes=S,i;case R:return i=va(13,f,l,v),i.elementType=R,i.lanes=S,i;case D:return i=va(19,f,l,v),i.elementType=D,i.lanes=S,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case A:case k:N=10;break e;case w:N=9;break e;case O:N=11;break e;case F:N=14;break e;case q:N=16,m=null;break e}N=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return l=va(N,f,l,v),l.elementType=i,l.type=m,l.lanes=S,l}function Hs(i,l,f,m){return i=va(7,i,m,l),i.lanes=f,i}function Gy(i,l,f){return i=va(6,i,null,l),i.lanes=f,i}function qy(i,l,f){return l=va(4,i.children!==null?i.children:[],i.key,l),l.lanes=f,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var oc=[],ic=0,fh=null,ph=0,Ha=[],za=0,zs=null,ui=1,di="";function Vs(i,l){oc[ic++]=ph,oc[ic++]=fh,fh=i,ph=l}function FC(i,l,f){Ha[za++]=ui,Ha[za++]=di,Ha[za++]=zs,zs=i;var m=ui;i=di;var v=32-qe(m)-1;m&=~(1<<v),f+=1;var S=32-qe(l)+v;if(30<S){var N=v-v%5;S=(m&(1<<N)-1).toString(32),m>>=N,v-=N,ui=1<<32-qe(l)+v|f<<v|m,di=S+i}else ui=1<<S|f<<v|m,di=i}function Wy(i){i.return!==null&&(Vs(i,1),FC(i,1,0))}function Yy(i){for(;i===fh;)fh=oc[--ic],oc[ic]=null,ph=oc[--ic],oc[ic]=null;for(;i===zs;)zs=Ha[--za],Ha[za]=null,di=Ha[--za],Ha[za]=null,ui=Ha[--za],Ha[za]=null}var Hr=null,zn=null,an=!1,Gs=null,ko=!1,Qy=Error(r(519));function qs(i){var l=Error(r(418,""));throw Xu(Ua(l,i)),Qy}function BC(i){var l=i.stateNode,f=i.type,m=i.memoizedProps;switch(l[ke]=i,l[Me]=m,f){case"dialog":Bt("cancel",l),Bt("close",l);break;case"iframe":case"object":case"embed":Bt("load",l);break;case"video":case"audio":for(f=0;f<Td.length;f++)Bt(Td[f],l);break;case"source":Bt("error",l);break;case"img":case"image":case"link":Bt("error",l),Bt("load",l);break;case"details":Bt("toggle",l);break;case"input":Bt("invalid",l),eC(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Jp(l);break;case"select":Bt("invalid",l);break;case"textarea":Bt("invalid",l),nC(l,m.value,m.defaultValue,m.children),Jp(l)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||m.suppressHydrationWarning===!0||n2(l.textContent,f)?(m.popover!=null&&(Bt("beforetoggle",l),Bt("toggle",l)),m.onScroll!=null&&Bt("scroll",l),m.onScrollEnd!=null&&Bt("scrollend",l),m.onClick!=null&&(l.onclick=Wh),l=!0):l=!1,l||qs(i)}function UC(i){for(Hr=i.return;Hr;)switch(Hr.tag){case 5:case 13:ko=!1;return;case 27:case 3:ko=!0;return;default:Hr=Hr.return}}function Qu(i){if(i!==Hr)return!1;if(!an)return UC(i),an=!0,!1;var l=i.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||dv(i.type,i.memoizedProps)),f=!f),f&&zn&&qs(i),UC(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8)if(f=i.data,f==="/$"){if(l===0){zn=mo(i.nextSibling);break e}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++;i=i.nextSibling}zn=null}}else l===27?(l=zn,is(i.type)?(i=mv,mv=null,zn=i):zn=l):zn=Hr?mo(i.stateNode.nextSibling):null;return!0}function Ku(){zn=Hr=null,an=!1}function jC(){var i=Gs;return i!==null&&(ra===null?ra=i:ra.push.apply(ra,i),Gs=null),i}function Xu(i){Gs===null?Gs=[i]:Gs.push(i)}var Ky=ne(null),Ws=null,fi=null;function Gi(i,l,f){L(Ky,l._currentValue),l._currentValue=f}function pi(i){i._currentValue=Ky.current,ee(Ky)}function Xy(i,l,f){for(;i!==null;){var m=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),i===f)break;i=i.return}}function Zy(i,l,f,m){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var S=v.dependencies;if(S!==null){var N=v.child;S=S.firstContext;e:for(;S!==null;){var U=S;S=v;for(var X=0;X<l.length;X++)if(U.context===l[X]){S.lanes|=f,U=S.alternate,U!==null&&(U.lanes|=f),Xy(S.return,f,i),m||(N=null);break e}S=U.next}}else if(v.tag===18){if(N=v.return,N===null)throw Error(r(341));N.lanes|=f,S=N.alternate,S!==null&&(S.lanes|=f),Xy(N,f,i),N=null}else N=v.child;if(N!==null)N.return=v;else for(N=v;N!==null;){if(N===i){N=null;break}if(v=N.sibling,v!==null){v.return=N.return,N=v;break}N=N.return}v=N}}function Zu(i,l,f,m){i=null;for(var v=l,S=!1;v!==null;){if(!S){if((v.flags&524288)!==0)S=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var N=v.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var U=v.type;ya(v.pendingProps.value,N.value)||(i!==null?i.push(U):i=[U])}}else if(v===xe.current){if(N=v.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(wd):i=[wd])}v=v.return}i!==null&&Zy(l,i,f,m),l.flags|=262144}function hh(i){for(i=i.firstContext;i!==null;){if(!ya(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ys(i){Ws=i,fi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function kr(i){return HC(Ws,i)}function mh(i,l){return Ws===null&&Ys(i),HC(i,l)}function HC(i,l){var f=l._currentValue;if(l={context:l,memoizedValue:f,next:null},fi===null){if(i===null)throw Error(r(308));fi=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else fi=fi.next=l;return f}var J6=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(f,m){i.push(m)}};this.abort=function(){l.aborted=!0,i.forEach(function(f){return f()})}},eM=e.unstable_scheduleCallback,tM=e.unstable_NormalPriority,cr={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jy(){return{controller:new J6,data:new Map,refCount:0}}function Ju(i){i.refCount--,i.refCount===0&&eM(tM,function(){i.controller.abort()})}var ed=null,e1=0,sc=0,lc=null;function nM(i,l){if(ed===null){var f=ed=[];e1=0,sc=nv(),lc={status:"pending",value:void 0,then:function(m){f.push(m)}}}return e1++,l.then(zC,zC),l}function zC(){if(--e1===0&&ed!==null){lc!==null&&(lc.status="fulfilled");var i=ed;ed=null,sc=0,lc=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function rM(i,l){var f=[],m={status:"pending",value:null,reason:null,then:function(v){f.push(v)}};return i.then(function(){m.status="fulfilled",m.value=l;for(var v=0;v<f.length;v++)(0,f[v])(l)},function(v){for(m.status="rejected",m.reason=v,v=0;v<f.length;v++)(0,f[v])(void 0)}),m}var VC=j.S;j.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&nM(i,l),VC!==null&&VC(i,l)};var Qs=ne(null);function t1(){var i=Qs.current;return i!==null?i:Dn.pooledCache}function gh(i,l){l===null?L(Qs,Qs.current):L(Qs,l.pool)}function GC(){var i=t1();return i===null?null:{parent:cr._currentValue,pool:i}}var td=Error(r(460)),qC=Error(r(474)),yh=Error(r(542)),n1={then:function(){}};function WC(i){return i=i.status,i==="fulfilled"||i==="rejected"}function vh(){}function YC(i,l,f){switch(f=i[f],f===void 0?i.push(l):f!==l&&(l.then(vh,vh),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,KC(i),i;default:if(typeof l.status=="string")l.then(vh,vh);else{if(i=Dn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(m){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=m}},function(m){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,KC(i),i}throw nd=l,td}}var nd=null;function QC(){if(nd===null)throw Error(r(459));var i=nd;return nd=null,i}function KC(i){if(i===td||i===yh)throw Error(r(483))}var qi=!1;function r1(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function a1(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Wi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Yi(i,l,f){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(un&2)!==0){var v=m.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),m.pending=l,l=uh(i),MC(i,null,f),l}return ch(i,m,l,f),uh(i)}function rd(i,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194048)!==0)){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,In(i,f)}}function o1(i,l){var f=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var v=null,S=null;if(f=f.firstBaseUpdate,f!==null){do{var N={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};S===null?v=S=N:S=S.next=N,f=f.next}while(f!==null);S===null?v=S=l:S=S.next=l}else v=S=l;f={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:S,shared:m.shared,callbacks:m.callbacks},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=l:i.next=l,f.lastBaseUpdate=l}var i1=!1;function ad(){if(i1){var i=lc;if(i!==null)throw i}}function od(i,l,f,m){i1=!1;var v=i.updateQueue;qi=!1;var S=v.firstBaseUpdate,N=v.lastBaseUpdate,U=v.shared.pending;if(U!==null){v.shared.pending=null;var X=U,ue=X.next;X.next=null,N===null?S=ue:N.next=ue,N=X;var Ce=i.alternate;Ce!==null&&(Ce=Ce.updateQueue,U=Ce.lastBaseUpdate,U!==N&&(U===null?Ce.firstBaseUpdate=ue:U.next=ue,Ce.lastBaseUpdate=X))}if(S!==null){var we=v.baseState;N=0,Ce=ue=X=null,U=S;do{var fe=U.lane&-536870913,he=fe!==U.lane;if(he?(Gt&fe)===fe:(m&fe)===fe){fe!==0&&fe===sc&&(i1=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var vt=i,ht=U;fe=l;var En=f;switch(ht.tag){case 1:if(vt=ht.payload,typeof vt=="function"){we=vt.call(En,we,fe);break e}we=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=ht.payload,fe=typeof vt=="function"?vt.call(En,we,fe):vt,fe==null)break e;we=p({},we,fe);break e;case 2:qi=!0}}fe=U.callback,fe!==null&&(i.flags|=64,he&&(i.flags|=8192),he=v.callbacks,he===null?v.callbacks=[fe]:he.push(fe))}else he={lane:fe,tag:U.tag,payload:U.payload,callback:U.callback,next:null},Ce===null?(ue=Ce=he,X=we):Ce=Ce.next=he,N|=fe;if(U=U.next,U===null){if(U=v.shared.pending,U===null)break;he=U,U=he.next,he.next=null,v.lastBaseUpdate=he,v.shared.pending=null}}while(!0);Ce===null&&(X=we),v.baseState=X,v.firstBaseUpdate=ue,v.lastBaseUpdate=Ce,S===null&&(v.shared.lanes=0),ns|=N,i.lanes=N,i.memoizedState=we}}function XC(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function ZC(i,l){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)XC(f[i],l)}var cc=ne(null),bh=ne(0);function JC(i,l){i=Ei,L(bh,i),L(cc,l),Ei=i|l.baseLanes}function s1(){L(bh,Ei),L(cc,cc.current)}function l1(){Ei=bh.current,ee(cc),ee(bh)}var Qi=0,Pt=null,vn=null,rr=null,Eh=!1,uc=!1,Ks=!1,Th=0,id=0,dc=null,aM=0;function Xn(){throw Error(r(321))}function c1(i,l){if(l===null)return!1;for(var f=0;f<l.length&&f<i.length;f++)if(!ya(i[f],l[f]))return!1;return!0}function u1(i,l,f,m,v,S){return Qi=S,Pt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=i===null||i.memoizedState===null?MA:$A,Ks=!1,S=f(m,v),Ks=!1,uc&&(S=tA(l,f,m,v)),eA(i),S}function eA(i){j.H=wh;var l=vn!==null&&vn.next!==null;if(Qi=0,rr=vn=Pt=null,Eh=!1,id=0,dc=null,l)throw Error(r(300));i===null||gr||(i=i.dependencies,i!==null&&hh(i)&&(gr=!0))}function tA(i,l,f,m){Pt=i;var v=0;do{if(uc&&(dc=null),id=0,uc=!1,25<=v)throw Error(r(301));if(v+=1,rr=vn=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}j.H=dM,S=l(f,m)}while(uc);return S}function oM(){var i=j.H,l=i.useState()[0];return l=typeof l.then=="function"?sd(l):l,i=i.useState()[0],(vn!==null?vn.memoizedState:null)!==i&&(Pt.flags|=1024),l}function d1(){var i=Th!==0;return Th=0,i}function f1(i,l,f){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~f}function p1(i){if(Eh){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}Eh=!1}Qi=0,rr=vn=Pt=null,uc=!1,id=Th=0,dc=null}function ta(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rr===null?Pt.memoizedState=rr=i:rr=rr.next=i,rr}function ar(){if(vn===null){var i=Pt.alternate;i=i!==null?i.memoizedState:null}else i=vn.next;var l=rr===null?Pt.memoizedState:rr.next;if(l!==null)rr=l,vn=i;else{if(i===null)throw Pt.alternate===null?Error(r(467)):Error(r(310));vn=i,i={memoizedState:vn.memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},rr===null?Pt.memoizedState=rr=i:rr=rr.next=i}return rr}function h1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sd(i){var l=id;return id+=1,dc===null&&(dc=[]),i=YC(dc,i,l),l=Pt,(rr===null?l.memoizedState:rr.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?MA:$A),i}function Sh(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return sd(i);if(i.$$typeof===k)return kr(i)}throw Error(r(438,String(i)))}function m1(i){var l=null,f=Pt.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var m=Pt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),f===null&&(f=h1(),Pt.updateQueue=f),f.memoCache=l,f=l.data[l.index],f===void 0)for(f=l.data[l.index]=Array(i),m=0;m<i;m++)f[m]=$;return l.index++,f}function hi(i,l){return typeof l=="function"?l(i):l}function _h(i){var l=ar();return g1(l,vn,i)}function g1(i,l,f){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var v=i.baseQueue,S=m.pending;if(S!==null){if(v!==null){var N=v.next;v.next=S.next,S.next=N}l.baseQueue=v=S,m.pending=null}if(S=i.baseState,v===null)i.memoizedState=S;else{l=v.next;var U=N=null,X=null,ue=l,Ce=!1;do{var we=ue.lane&-536870913;if(we!==ue.lane?(Gt&we)===we:(Qi&we)===we){var fe=ue.revertLane;if(fe===0)X!==null&&(X=X.next={lane:0,revertLane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),we===sc&&(Ce=!0);else if((Qi&fe)===fe){ue=ue.next,fe===sc&&(Ce=!0);continue}else we={lane:0,revertLane:ue.revertLane,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null},X===null?(U=X=we,N=S):X=X.next=we,Pt.lanes|=fe,ns|=fe;we=ue.action,Ks&&f(S,we),S=ue.hasEagerState?ue.eagerState:f(S,we)}else fe={lane:we,revertLane:ue.revertLane,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null},X===null?(U=X=fe,N=S):X=X.next=fe,Pt.lanes|=we,ns|=we;ue=ue.next}while(ue!==null&&ue!==l);if(X===null?N=S:X.next=U,!ya(S,i.memoizedState)&&(gr=!0,Ce&&(f=lc,f!==null)))throw f;i.memoizedState=S,i.baseState=N,i.baseQueue=X,m.lastRenderedState=S}return v===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function y1(i){var l=ar(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=i;var m=f.dispatch,v=f.pending,S=l.memoizedState;if(v!==null){f.pending=null;var N=v=v.next;do S=i(S,N.action),N=N.next;while(N!==v);ya(S,l.memoizedState)||(gr=!0),l.memoizedState=S,l.baseQueue===null&&(l.baseState=S),f.lastRenderedState=S}return[S,m]}function nA(i,l,f){var m=Pt,v=ar(),S=an;if(S){if(f===void 0)throw Error(r(407));f=f()}else f=l();var N=!ya((vn||v).memoizedState,f);N&&(v.memoizedState=f,gr=!0),v=v.queue;var U=oA.bind(null,m,v,i);if(ld(2048,8,U,[i]),v.getSnapshot!==l||N||rr!==null&&rr.memoizedState.tag&1){if(m.flags|=2048,fc(9,Ch(),aA.bind(null,m,v,f,l),null),Dn===null)throw Error(r(349));S||(Qi&124)!==0||rA(m,l,f)}return f}function rA(i,l,f){i.flags|=16384,i={getSnapshot:l,value:f},l=Pt.updateQueue,l===null?(l=h1(),Pt.updateQueue=l,l.stores=[i]):(f=l.stores,f===null?l.stores=[i]:f.push(i))}function aA(i,l,f,m){l.value=f,l.getSnapshot=m,iA(l)&&sA(i)}function oA(i,l,f){return f(function(){iA(l)&&sA(i)})}function iA(i){var l=i.getSnapshot;i=i.value;try{var f=l();return!ya(i,f)}catch{return!0}}function sA(i){var l=rc(i,2);l!==null&&_a(l,i,2)}function v1(i){var l=ta();if(typeof i=="function"){var f=i;if(i=f(),Ks){Be(!0);try{f()}finally{Be(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:i},l}function lA(i,l,f,m){return i.baseState=f,g1(i,vn,typeof m=="function"?m:hi)}function iM(i,l,f,m,v){if(xh(i))throw Error(r(485));if(i=l.action,i!==null){var S={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){S.listeners.push(N)}};j.T!==null?f(!0):S.isTransition=!1,m(S),f=l.pending,f===null?(S.next=l.pending=S,cA(l,S)):(S.next=f.next,l.pending=f.next=S)}}function cA(i,l){var f=l.action,m=l.payload,v=i.state;if(l.isTransition){var S=j.T,N={};j.T=N;try{var U=f(v,m),X=j.S;X!==null&&X(N,U),uA(i,l,U)}catch(ue){b1(i,l,ue)}finally{j.T=S}}else try{S=f(v,m),uA(i,l,S)}catch(ue){b1(i,l,ue)}}function uA(i,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){dA(i,l,m)},function(m){return b1(i,l,m)}):dA(i,l,f)}function dA(i,l,f){l.status="fulfilled",l.value=f,fA(l),i.state=f,l=i.pending,l!==null&&(f=l.next,f===l?i.pending=null:(f=f.next,l.next=f,cA(i,f)))}function b1(i,l,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=f,fA(l),l=l.next;while(l!==m)}i.action=null}function fA(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function pA(i,l){return l}function hA(i,l){if(an){var f=Dn.formState;if(f!==null){e:{var m=Pt;if(an){if(zn){t:{for(var v=zn,S=ko;v.nodeType!==8;){if(!S){v=null;break t}if(v=mo(v.nextSibling),v===null){v=null;break t}}S=v.data,v=S==="F!"||S==="F"?v:null}if(v){zn=mo(v.nextSibling),m=v.data==="F!";break e}}qs(m)}m=!1}m&&(l=f[0])}}return f=ta(),f.memoizedState=f.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pA,lastRenderedState:l},f.queue=m,f=NA.bind(null,Pt,m),m.dispatch=f,m=v1(!1),S=C1.bind(null,Pt,!1,m.queue),m=ta(),v={state:l,dispatch:null,action:i,pending:null},m.queue=v,f=iM.bind(null,Pt,v,S,f),v.dispatch=f,m.memoizedState=i,[l,f,!1]}function mA(i){var l=ar();return gA(l,vn,i)}function gA(i,l,f){if(l=g1(i,l,pA)[0],i=_h(hi)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=sd(l)}catch(N){throw N===td?yh:N}else m=l;l=ar();var v=l.queue,S=v.dispatch;return f!==l.memoizedState&&(Pt.flags|=2048,fc(9,Ch(),sM.bind(null,v,f),null)),[m,S,i]}function sM(i,l){i.action=l}function yA(i){var l=ar(),f=vn;if(f!==null)return gA(l,f,i);ar(),l=l.memoizedState,f=ar();var m=f.queue.dispatch;return f.memoizedState=i,[l,m,!1]}function fc(i,l,f,m){return i={tag:i,create:f,deps:m,inst:l,next:null},l=Pt.updateQueue,l===null&&(l=h1(),Pt.updateQueue=l),f=l.lastEffect,f===null?l.lastEffect=i.next=i:(m=f.next,f.next=i,i.next=m,l.lastEffect=i),i}function Ch(){return{destroy:void 0,resource:void 0}}function vA(){return ar().memoizedState}function Ah(i,l,f,m){var v=ta();m=m===void 0?null:m,Pt.flags|=i,v.memoizedState=fc(1|l,Ch(),f,m)}function ld(i,l,f,m){var v=ar();m=m===void 0?null:m;var S=v.memoizedState.inst;vn!==null&&m!==null&&c1(m,vn.memoizedState.deps)?v.memoizedState=fc(l,S,f,m):(Pt.flags|=i,v.memoizedState=fc(1|l,S,f,m))}function bA(i,l){Ah(8390656,8,i,l)}function EA(i,l){ld(2048,8,i,l)}function TA(i,l){return ld(4,2,i,l)}function SA(i,l){return ld(4,4,i,l)}function _A(i,l){if(typeof l=="function"){i=i();var f=l(i);return function(){typeof f=="function"?f():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function CA(i,l,f){f=f!=null?f.concat([i]):null,ld(4,4,_A.bind(null,l,i),f)}function E1(){}function AA(i,l){var f=ar();l=l===void 0?null:l;var m=f.memoizedState;return l!==null&&c1(l,m[1])?m[0]:(f.memoizedState=[i,l],i)}function xA(i,l){var f=ar();l=l===void 0?null:l;var m=f.memoizedState;if(l!==null&&c1(l,m[1]))return m[0];if(m=i(),Ks){Be(!0);try{i()}finally{Be(!1)}}return f.memoizedState=[m,l],m}function T1(i,l,f){return f===void 0||(Qi&1073741824)!==0?i.memoizedState=l:(i.memoizedState=f,i=Dx(),Pt.lanes|=i,ns|=i,f)}function wA(i,l,f,m){return ya(f,l)?f:cc.current!==null?(i=T1(i,f,m),ya(i,l)||(gr=!0),i):(Qi&42)===0?(gr=!0,i.memoizedState=f):(i=Dx(),Pt.lanes|=i,ns|=i,l)}function kA(i,l,f,m,v){var S=Z.p;Z.p=S!==0&&8>S?S:8;var N=j.T,U={};j.T=U,C1(i,!1,l,f);try{var X=v(),ue=j.S;if(ue!==null&&ue(U,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var Ce=rM(X,m);cd(i,l,Ce,Sa(i))}else cd(i,l,m,Sa(i))}catch(we){cd(i,l,{then:function(){},status:"rejected",reason:we},Sa())}finally{Z.p=S,j.T=N}}function lM(){}function S1(i,l,f,m){if(i.tag!==5)throw Error(r(476));var v=DA(i).queue;kA(i,v,l,Q,f===null?lM:function(){return RA(i),f(m)})}function DA(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:Q},next:null};var f={};return l.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:f},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function RA(i){var l=DA(i).next.queue;cd(i,l,{},Sa())}function _1(){return kr(wd)}function OA(){return ar().memoizedState}function IA(){return ar().memoizedState}function cM(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var f=Sa();i=Wi(f);var m=Yi(l,i,f);m!==null&&(_a(m,l,f),rd(m,l,f)),l={cache:Jy()},i.payload=l;return}l=l.return}}function uM(i,l,f){var m=Sa();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},xh(i)?LA(l,f):(f=zy(i,l,f,m),f!==null&&(_a(f,i,m),PA(f,l,m)))}function NA(i,l,f){var m=Sa();cd(i,l,f,m)}function cd(i,l,f,m){var v={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(xh(i))LA(l,v);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=l.lastRenderedReducer,S!==null))try{var N=l.lastRenderedState,U=S(N,f);if(v.hasEagerState=!0,v.eagerState=U,ya(U,N))return ch(i,l,v,0),Dn===null&&lh(),!1}catch{}finally{}if(f=zy(i,l,v,m),f!==null)return _a(f,i,m),PA(f,l,m),!0}return!1}function C1(i,l,f,m){if(m={lane:2,revertLane:nv(),action:m,hasEagerState:!1,eagerState:null,next:null},xh(i)){if(l)throw Error(r(479))}else l=zy(i,f,m,2),l!==null&&_a(l,i,2)}function xh(i){var l=i.alternate;return i===Pt||l!==null&&l===Pt}function LA(i,l){uc=Eh=!0;var f=i.pending;f===null?l.next=l:(l.next=f.next,f.next=l),i.pending=l}function PA(i,l,f){if((f&4194048)!==0){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,In(i,f)}}var wh={readContext:kr,use:Sh,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useLayoutEffect:Xn,useInsertionEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useSyncExternalStore:Xn,useId:Xn,useHostTransitionStatus:Xn,useFormState:Xn,useActionState:Xn,useOptimistic:Xn,useMemoCache:Xn,useCacheRefresh:Xn},MA={readContext:kr,use:Sh,useCallback:function(i,l){return ta().memoizedState=[i,l===void 0?null:l],i},useContext:kr,useEffect:bA,useImperativeHandle:function(i,l,f){f=f!=null?f.concat([i]):null,Ah(4194308,4,_A.bind(null,l,i),f)},useLayoutEffect:function(i,l){return Ah(4194308,4,i,l)},useInsertionEffect:function(i,l){Ah(4,2,i,l)},useMemo:function(i,l){var f=ta();l=l===void 0?null:l;var m=i();if(Ks){Be(!0);try{i()}finally{Be(!1)}}return f.memoizedState=[m,l],m},useReducer:function(i,l,f){var m=ta();if(f!==void 0){var v=f(l);if(Ks){Be(!0);try{f(l)}finally{Be(!1)}}}else v=l;return m.memoizedState=m.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},m.queue=i,i=i.dispatch=uM.bind(null,Pt,i),[m.memoizedState,i]},useRef:function(i){var l=ta();return i={current:i},l.memoizedState=i},useState:function(i){i=v1(i);var l=i.queue,f=NA.bind(null,Pt,l);return l.dispatch=f,[i.memoizedState,f]},useDebugValue:E1,useDeferredValue:function(i,l){var f=ta();return T1(f,i,l)},useTransition:function(){var i=v1(!1);return i=kA.bind(null,Pt,i.queue,!0,!1),ta().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,f){var m=Pt,v=ta();if(an){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),Dn===null)throw Error(r(349));(Gt&124)!==0||rA(m,l,f)}v.memoizedState=f;var S={value:f,getSnapshot:l};return v.queue=S,bA(oA.bind(null,m,S,i),[i]),m.flags|=2048,fc(9,Ch(),aA.bind(null,m,S,f,l),null),f},useId:function(){var i=ta(),l=Dn.identifierPrefix;if(an){var f=di,m=ui;f=(m&~(1<<32-qe(m)-1)).toString(32)+f,l="«"+l+"R"+f,f=Th++,0<f&&(l+="H"+f.toString(32)),l+="»"}else f=aM++,l="«"+l+"r"+f.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:_1,useFormState:hA,useActionState:hA,useOptimistic:function(i){var l=ta();l.memoizedState=l.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=C1.bind(null,Pt,!0,f),f.dispatch=l,[i,l]},useMemoCache:m1,useCacheRefresh:function(){return ta().memoizedState=cM.bind(null,Pt)}},$A={readContext:kr,use:Sh,useCallback:AA,useContext:kr,useEffect:EA,useImperativeHandle:CA,useInsertionEffect:TA,useLayoutEffect:SA,useMemo:xA,useReducer:_h,useRef:vA,useState:function(){return _h(hi)},useDebugValue:E1,useDeferredValue:function(i,l){var f=ar();return wA(f,vn.memoizedState,i,l)},useTransition:function(){var i=_h(hi)[0],l=ar().memoizedState;return[typeof i=="boolean"?i:sd(i),l]},useSyncExternalStore:nA,useId:OA,useHostTransitionStatus:_1,useFormState:mA,useActionState:mA,useOptimistic:function(i,l){var f=ar();return lA(f,vn,i,l)},useMemoCache:m1,useCacheRefresh:IA},dM={readContext:kr,use:Sh,useCallback:AA,useContext:kr,useEffect:EA,useImperativeHandle:CA,useInsertionEffect:TA,useLayoutEffect:SA,useMemo:xA,useReducer:y1,useRef:vA,useState:function(){return y1(hi)},useDebugValue:E1,useDeferredValue:function(i,l){var f=ar();return vn===null?T1(f,i,l):wA(f,vn.memoizedState,i,l)},useTransition:function(){var i=y1(hi)[0],l=ar().memoizedState;return[typeof i=="boolean"?i:sd(i),l]},useSyncExternalStore:nA,useId:OA,useHostTransitionStatus:_1,useFormState:yA,useActionState:yA,useOptimistic:function(i,l){var f=ar();return vn!==null?lA(f,vn,i,l):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:m1,useCacheRefresh:IA},pc=null,ud=0;function kh(i){var l=ud;return ud+=1,pc===null&&(pc=[]),YC(pc,i,l)}function dd(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function Dh(i,l){throw l.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function FA(i){var l=i._init;return l(i._payload)}function BA(i){function l(oe,re){if(i){var se=oe.deletions;se===null?(oe.deletions=[re],oe.flags|=16):se.push(re)}}function f(oe,re){if(!i)return null;for(;re!==null;)l(oe,re),re=re.sibling;return null}function m(oe){for(var re=new Map;oe!==null;)oe.key!==null?re.set(oe.key,oe):re.set(oe.index,oe),oe=oe.sibling;return re}function v(oe,re){return oe=ci(oe,re),oe.index=0,oe.sibling=null,oe}function S(oe,re,se){return oe.index=se,i?(se=oe.alternate,se!==null?(se=se.index,se<re?(oe.flags|=67108866,re):se):(oe.flags|=67108866,re)):(oe.flags|=1048576,re)}function N(oe){return i&&oe.alternate===null&&(oe.flags|=67108866),oe}function U(oe,re,se,Ae){return re===null||re.tag!==6?(re=Gy(se,oe.mode,Ae),re.return=oe,re):(re=v(re,se),re.return=oe,re)}function X(oe,re,se,Ae){var Ke=se.type;return Ke===b?Ce(oe,re,se.props.children,Ae,se.key):re!==null&&(re.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===q&&FA(Ke)===re.type)?(re=v(re,se.props),dd(re,se),re.return=oe,re):(re=dh(se.type,se.key,se.props,null,oe.mode,Ae),dd(re,se),re.return=oe,re)}function ue(oe,re,se,Ae){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=qy(se,oe.mode,Ae),re.return=oe,re):(re=v(re,se.children||[]),re.return=oe,re)}function Ce(oe,re,se,Ae,Ke){return re===null||re.tag!==7?(re=Hs(se,oe.mode,Ae,Ke),re.return=oe,re):(re=v(re,se),re.return=oe,re)}function we(oe,re,se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Gy(""+re,oe.mode,se),re.return=oe,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case y:return se=dh(re.type,re.key,re.props,null,oe.mode,se),dd(se,re),se.return=oe,se;case g:return re=qy(re,oe.mode,se),re.return=oe,re;case q:var Ae=re._init;return re=Ae(re._payload),we(oe,re,se)}if(W(re)||C(re))return re=Hs(re,oe.mode,se,null),re.return=oe,re;if(typeof re.then=="function")return we(oe,kh(re),se);if(re.$$typeof===k)return we(oe,mh(oe,re),se);Dh(oe,re)}return null}function fe(oe,re,se,Ae){var Ke=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ke!==null?null:U(oe,re,""+se,Ae);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case y:return se.key===Ke?X(oe,re,se,Ae):null;case g:return se.key===Ke?ue(oe,re,se,Ae):null;case q:return Ke=se._init,se=Ke(se._payload),fe(oe,re,se,Ae)}if(W(se)||C(se))return Ke!==null?null:Ce(oe,re,se,Ae,null);if(typeof se.then=="function")return fe(oe,re,kh(se),Ae);if(se.$$typeof===k)return fe(oe,re,mh(oe,se),Ae);Dh(oe,se)}return null}function he(oe,re,se,Ae,Ke){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return oe=oe.get(se)||null,U(re,oe,""+Ae,Ke);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case y:return oe=oe.get(Ae.key===null?se:Ae.key)||null,X(re,oe,Ae,Ke);case g:return oe=oe.get(Ae.key===null?se:Ae.key)||null,ue(re,oe,Ae,Ke);case q:var Mt=Ae._init;return Ae=Mt(Ae._payload),he(oe,re,se,Ae,Ke)}if(W(Ae)||C(Ae))return oe=oe.get(se)||null,Ce(re,oe,Ae,Ke,null);if(typeof Ae.then=="function")return he(oe,re,se,kh(Ae),Ke);if(Ae.$$typeof===k)return he(oe,re,se,mh(re,Ae),Ke);Dh(re,Ae)}return null}function vt(oe,re,se,Ae){for(var Ke=null,Mt=null,st=re,yt=re=0,vr=null;st!==null&&yt<se.length;yt++){st.index>yt?(vr=st,st=null):vr=st.sibling;var nn=fe(oe,st,se[yt],Ae);if(nn===null){st===null&&(st=vr);break}i&&st&&nn.alternate===null&&l(oe,st),re=S(nn,re,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn,st=vr}if(yt===se.length)return f(oe,st),an&&Vs(oe,yt),Ke;if(st===null){for(;yt<se.length;yt++)st=we(oe,se[yt],Ae),st!==null&&(re=S(st,re,yt),Mt===null?Ke=st:Mt.sibling=st,Mt=st);return an&&Vs(oe,yt),Ke}for(st=m(st);yt<se.length;yt++)vr=he(st,oe,yt,se[yt],Ae),vr!==null&&(i&&vr.alternate!==null&&st.delete(vr.key===null?yt:vr.key),re=S(vr,re,yt),Mt===null?Ke=vr:Mt.sibling=vr,Mt=vr);return i&&st.forEach(function(ds){return l(oe,ds)}),an&&Vs(oe,yt),Ke}function ht(oe,re,se,Ae){if(se==null)throw Error(r(151));for(var Ke=null,Mt=null,st=re,yt=re=0,vr=null,nn=se.next();st!==null&&!nn.done;yt++,nn=se.next()){st.index>yt?(vr=st,st=null):vr=st.sibling;var ds=fe(oe,st,nn.value,Ae);if(ds===null){st===null&&(st=vr);break}i&&st&&ds.alternate===null&&l(oe,st),re=S(ds,re,yt),Mt===null?Ke=ds:Mt.sibling=ds,Mt=ds,st=vr}if(nn.done)return f(oe,st),an&&Vs(oe,yt),Ke;if(st===null){for(;!nn.done;yt++,nn=se.next())nn=we(oe,nn.value,Ae),nn!==null&&(re=S(nn,re,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn);return an&&Vs(oe,yt),Ke}for(st=m(st);!nn.done;yt++,nn=se.next())nn=he(st,oe,yt,nn.value,Ae),nn!==null&&(i&&nn.alternate!==null&&st.delete(nn.key===null?yt:nn.key),re=S(nn,re,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn);return i&&st.forEach(function(f$){return l(oe,f$)}),an&&Vs(oe,yt),Ke}function En(oe,re,se,Ae){if(typeof se=="object"&&se!==null&&se.type===b&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case y:e:{for(var Ke=se.key;re!==null;){if(re.key===Ke){if(Ke=se.type,Ke===b){if(re.tag===7){f(oe,re.sibling),Ae=v(re,se.props.children),Ae.return=oe,oe=Ae;break e}}else if(re.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===q&&FA(Ke)===re.type){f(oe,re.sibling),Ae=v(re,se.props),dd(Ae,se),Ae.return=oe,oe=Ae;break e}f(oe,re);break}else l(oe,re);re=re.sibling}se.type===b?(Ae=Hs(se.props.children,oe.mode,Ae,se.key),Ae.return=oe,oe=Ae):(Ae=dh(se.type,se.key,se.props,null,oe.mode,Ae),dd(Ae,se),Ae.return=oe,oe=Ae)}return N(oe);case g:e:{for(Ke=se.key;re!==null;){if(re.key===Ke)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){f(oe,re.sibling),Ae=v(re,se.children||[]),Ae.return=oe,oe=Ae;break e}else{f(oe,re);break}else l(oe,re);re=re.sibling}Ae=qy(se,oe.mode,Ae),Ae.return=oe,oe=Ae}return N(oe);case q:return Ke=se._init,se=Ke(se._payload),En(oe,re,se,Ae)}if(W(se))return vt(oe,re,se,Ae);if(C(se)){if(Ke=C(se),typeof Ke!="function")throw Error(r(150));return se=Ke.call(se),ht(oe,re,se,Ae)}if(typeof se.then=="function")return En(oe,re,kh(se),Ae);if(se.$$typeof===k)return En(oe,re,mh(oe,se),Ae);Dh(oe,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(f(oe,re.sibling),Ae=v(re,se),Ae.return=oe,oe=Ae):(f(oe,re),Ae=Gy(se,oe.mode,Ae),Ae.return=oe,oe=Ae),N(oe)):f(oe,re)}return function(oe,re,se,Ae){try{ud=0;var Ke=En(oe,re,se,Ae);return pc=null,Ke}catch(st){if(st===td||st===yh)throw st;var Mt=va(29,st,null,oe.mode);return Mt.lanes=Ae,Mt.return=oe,Mt}finally{}}}var hc=BA(!0),UA=BA(!1),Va=ne(null),Do=null;function Ki(i){var l=i.alternate;L(ur,ur.current&1),L(Va,i),Do===null&&(l===null||cc.current!==null||l.memoizedState!==null)&&(Do=i)}function jA(i){if(i.tag===22){if(L(ur,ur.current),L(Va,i),Do===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(Do=i)}}else Xi()}function Xi(){L(ur,ur.current),L(Va,Va.current)}function mi(i){ee(Va),Do===i&&(Do=null),ee(ur)}var ur=ne(0);function Rh(i){for(var l=i;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||hv(f)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function A1(i,l,f,m){l=i.memoizedState,f=f(m,l),f=f==null?l:p({},l,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var x1={enqueueSetState:function(i,l,f){i=i._reactInternals;var m=Sa(),v=Wi(m);v.payload=l,f!=null&&(v.callback=f),l=Yi(i,v,m),l!==null&&(_a(l,i,m),rd(l,i,m))},enqueueReplaceState:function(i,l,f){i=i._reactInternals;var m=Sa(),v=Wi(m);v.tag=1,v.payload=l,f!=null&&(v.callback=f),l=Yi(i,v,m),l!==null&&(_a(l,i,m),rd(l,i,m))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var f=Sa(),m=Wi(f);m.tag=2,l!=null&&(m.callback=l),l=Yi(i,m,f),l!==null&&(_a(l,i,f),rd(l,i,f))}};function HA(i,l,f,m,v,S,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,S,N):l.prototype&&l.prototype.isPureReactComponent?!Wu(f,m)||!Wu(v,S):!0}function zA(i,l,f,m){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,m),l.state!==i&&x1.enqueueReplaceState(l,l.state,null)}function Xs(i,l){var f=l;if("ref"in l){f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}if(i=i.defaultProps){f===l&&(f=p({},f));for(var v in i)f[v]===void 0&&(f[v]=i[v])}return f}var Oh=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function VA(i){Oh(i)}function GA(i){console.error(i)}function qA(i){Oh(i)}function Ih(i,l){try{var f=i.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function WA(i,l,f){try{var m=i.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function w1(i,l,f){return f=Wi(f),f.tag=3,f.payload={element:null},f.callback=function(){Ih(i,l)},f}function YA(i){return i=Wi(i),i.tag=3,i}function QA(i,l,f,m){var v=f.type.getDerivedStateFromError;if(typeof v=="function"){var S=m.value;i.payload=function(){return v(S)},i.callback=function(){WA(l,f,m)}}var N=f.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){WA(l,f,m),typeof v!="function"&&(rs===null?rs=new Set([this]):rs.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})})}function fM(i,l,f,m,v){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=f.alternate,l!==null&&Zu(l,f,v,!0),f=Va.current,f!==null){switch(f.tag){case 13:return Do===null?X1():f.alternate===null&&Vn===0&&(Vn=3),f.flags&=-257,f.flags|=65536,f.lanes=v,m===n1?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([m]):l.add(m),J1(i,m,v)),!1;case 22:return f.flags|=65536,m===n1?f.flags|=16384:(l=f.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=l):(f=l.retryQueue,f===null?l.retryQueue=new Set([m]):f.add(m)),J1(i,m,v)),!1}throw Error(r(435,f.tag))}return J1(i,m,v),X1(),!1}if(an)return l=Va.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,m!==Qy&&(i=Error(r(422),{cause:m}),Xu(Ua(i,f)))):(m!==Qy&&(l=Error(r(423),{cause:m}),Xu(Ua(l,f))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,m=Ua(m,f),v=w1(i.stateNode,m,v),o1(i,v),Vn!==4&&(Vn=2)),!1;var S=Error(r(520),{cause:m});if(S=Ua(S,f),vd===null?vd=[S]:vd.push(S),Vn!==4&&(Vn=2),l===null)return!0;m=Ua(m,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,i=v&-v,f.lanes|=i,i=w1(f.stateNode,m,i),o1(f,i),!1;case 1:if(l=f.type,S=f.stateNode,(f.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(rs===null||!rs.has(S))))return f.flags|=65536,v&=-v,f.lanes|=v,v=YA(v),QA(v,i,f,m),o1(f,v),!1}f=f.return}while(f!==null);return!1}var KA=Error(r(461)),gr=!1;function _r(i,l,f,m){l.child=i===null?UA(l,null,f,m):hc(l,i.child,f,m)}function XA(i,l,f,m,v){f=f.render;var S=l.ref;if("ref"in m){var N={};for(var U in m)U!=="ref"&&(N[U]=m[U])}else N=m;return Ys(l),m=u1(i,l,f,N,S,v),U=d1(),i!==null&&!gr?(f1(i,l,v),gi(i,l,v)):(an&&U&&Wy(l),l.flags|=1,_r(i,l,m,v),l.child)}function ZA(i,l,f,m,v){if(i===null){var S=f.type;return typeof S=="function"&&!Vy(S)&&S.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=S,JA(i,l,S,m,v)):(i=dh(f.type,null,m,l,l.mode,v),i.ref=l.ref,i.return=l,l.child=i)}if(S=i.child,!P1(i,v)){var N=S.memoizedProps;if(f=f.compare,f=f!==null?f:Wu,f(N,m)&&i.ref===l.ref)return gi(i,l,v)}return l.flags|=1,i=ci(S,m),i.ref=l.ref,i.return=l,l.child=i}function JA(i,l,f,m,v){if(i!==null){var S=i.memoizedProps;if(Wu(S,m)&&i.ref===l.ref)if(gr=!1,l.pendingProps=m=S,P1(i,v))(i.flags&131072)!==0&&(gr=!0);else return l.lanes=i.lanes,gi(i,l,v)}return k1(i,l,f,m,v)}function ex(i,l,f){var m=l.pendingProps,v=m.children,S=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((l.flags&128)!==0){if(m=S!==null?S.baseLanes|f:f,i!==null){for(v=l.child=i.child,S=0;v!==null;)S=S|v.lanes|v.childLanes,v=v.sibling;l.childLanes=S&~m}else l.childLanes=0,l.child=null;return tx(i,l,m,f)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&gh(l,S!==null?S.cachePool:null),S!==null?JC(l,S):s1(),jA(l);else return l.lanes=l.childLanes=536870912,tx(i,l,S!==null?S.baseLanes|f:f,f)}else S!==null?(gh(l,S.cachePool),JC(l,S),Xi(),l.memoizedState=null):(i!==null&&gh(l,null),s1(),Xi());return _r(i,l,v,f),l.child}function tx(i,l,f,m){var v=t1();return v=v===null?null:{parent:cr._currentValue,pool:v},l.memoizedState={baseLanes:f,cachePool:v},i!==null&&gh(l,null),s1(),jA(l),i!==null&&Zu(i,l,m,!0),null}function Nh(i,l){var f=l.ref;if(f===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(i===null||i.ref!==f)&&(l.flags|=4194816)}}function k1(i,l,f,m,v){return Ys(l),f=u1(i,l,f,m,void 0,v),m=d1(),i!==null&&!gr?(f1(i,l,v),gi(i,l,v)):(an&&m&&Wy(l),l.flags|=1,_r(i,l,f,v),l.child)}function nx(i,l,f,m,v,S){return Ys(l),l.updateQueue=null,f=tA(l,m,f,v),eA(i),m=d1(),i!==null&&!gr?(f1(i,l,S),gi(i,l,S)):(an&&m&&Wy(l),l.flags|=1,_r(i,l,f,S),l.child)}function rx(i,l,f,m,v){if(Ys(l),l.stateNode===null){var S=ac,N=f.contextType;typeof N=="object"&&N!==null&&(S=kr(N)),S=new f(m,S),l.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=x1,l.stateNode=S,S._reactInternals=l,S=l.stateNode,S.props=m,S.state=l.memoizedState,S.refs={},r1(l),N=f.contextType,S.context=typeof N=="object"&&N!==null?kr(N):ac,S.state=l.memoizedState,N=f.getDerivedStateFromProps,typeof N=="function"&&(A1(l,f,N,m),S.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(N=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),N!==S.state&&x1.enqueueReplaceState(S,S.state,null),od(l,m,S,v),ad(),S.state=l.memoizedState),typeof S.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(i===null){S=l.stateNode;var U=l.memoizedProps,X=Xs(f,U);S.props=X;var ue=S.context,Ce=f.contextType;N=ac,typeof Ce=="object"&&Ce!==null&&(N=kr(Ce));var we=f.getDerivedStateFromProps;Ce=typeof we=="function"||typeof S.getSnapshotBeforeUpdate=="function",U=l.pendingProps!==U,Ce||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(U||ue!==N)&&zA(l,S,m,N),qi=!1;var fe=l.memoizedState;S.state=fe,od(l,m,S,v),ad(),ue=l.memoizedState,U||fe!==ue||qi?(typeof we=="function"&&(A1(l,f,we,m),ue=l.memoizedState),(X=qi||HA(l,f,X,m,fe,ue,N))?(Ce||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(l.flags|=4194308)):(typeof S.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=ue),S.props=m,S.state=ue,S.context=N,m=X):(typeof S.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{S=l.stateNode,a1(i,l),N=l.memoizedProps,Ce=Xs(f,N),S.props=Ce,we=l.pendingProps,fe=S.context,ue=f.contextType,X=ac,typeof ue=="object"&&ue!==null&&(X=kr(ue)),U=f.getDerivedStateFromProps,(ue=typeof U=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(N!==we||fe!==X)&&zA(l,S,m,X),qi=!1,fe=l.memoizedState,S.state=fe,od(l,m,S,v),ad();var he=l.memoizedState;N!==we||fe!==he||qi||i!==null&&i.dependencies!==null&&hh(i.dependencies)?(typeof U=="function"&&(A1(l,f,U,m),he=l.memoizedState),(Ce=qi||HA(l,f,Ce,m,fe,he,X)||i!==null&&i.dependencies!==null&&hh(i.dependencies))?(ue||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(m,he,X),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(m,he,X)),typeof S.componentDidUpdate=="function"&&(l.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof S.componentDidUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(l.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=he),S.props=m,S.state=he,S.context=X,m=Ce):(typeof S.componentDidUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(l.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(l.flags|=1024),m=!1)}return S=m,Nh(i,l),m=(l.flags&128)!==0,S||m?(S=l.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:S.render(),l.flags|=1,i!==null&&m?(l.child=hc(l,i.child,null,v),l.child=hc(l,null,f,v)):_r(i,l,f,v),l.memoizedState=S.state,i=l.child):i=gi(i,l,v),i}function ax(i,l,f,m){return Ku(),l.flags|=256,_r(i,l,f,m),l.child}var D1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function R1(i){return{baseLanes:i,cachePool:GC()}}function O1(i,l,f){return i=i!==null?i.childLanes&~f:0,l&&(i|=Ga),i}function ox(i,l,f){var m=l.pendingProps,v=!1,S=(l.flags&128)!==0,N;if((N=S)||(N=i!==null&&i.memoizedState===null?!1:(ur.current&2)!==0),N&&(v=!0,l.flags&=-129),N=(l.flags&32)!==0,l.flags&=-33,i===null){if(an){if(v?Ki(l):Xi(),an){var U=zn,X;if(X=U){e:{for(X=U,U=ko;X.nodeType!==8;){if(!U){U=null;break e}if(X=mo(X.nextSibling),X===null){U=null;break e}}U=X}U!==null?(l.memoizedState={dehydrated:U,treeContext:zs!==null?{id:ui,overflow:di}:null,retryLane:536870912,hydrationErrors:null},X=va(18,null,null,0),X.stateNode=U,X.return=l,l.child=X,Hr=l,zn=null,X=!0):X=!1}X||qs(l)}if(U=l.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return hv(U)?l.lanes=32:l.lanes=536870912,null;mi(l)}return U=m.children,m=m.fallback,v?(Xi(),v=l.mode,U=Lh({mode:"hidden",children:U},v),m=Hs(m,v,f,null),U.return=l,m.return=l,U.sibling=m,l.child=U,v=l.child,v.memoizedState=R1(f),v.childLanes=O1(i,N,f),l.memoizedState=D1,m):(Ki(l),I1(l,U))}if(X=i.memoizedState,X!==null&&(U=X.dehydrated,U!==null)){if(S)l.flags&256?(Ki(l),l.flags&=-257,l=N1(i,l,f)):l.memoizedState!==null?(Xi(),l.child=i.child,l.flags|=128,l=null):(Xi(),v=m.fallback,U=l.mode,m=Lh({mode:"visible",children:m.children},U),v=Hs(v,U,f,null),v.flags|=2,m.return=l,v.return=l,m.sibling=v,l.child=m,hc(l,i.child,null,f),m=l.child,m.memoizedState=R1(f),m.childLanes=O1(i,N,f),l.memoizedState=D1,l=v);else if(Ki(l),hv(U)){if(N=U.nextSibling&&U.nextSibling.dataset,N)var ue=N.dgst;N=ue,m=Error(r(419)),m.stack="",m.digest=N,Xu({value:m,source:null,stack:null}),l=N1(i,l,f)}else if(gr||Zu(i,l,f,!1),N=(f&i.childLanes)!==0,gr||N){if(N=Dn,N!==null&&(m=f&-f,m=(m&42)!==0?1:Ur(m),m=(m&(N.suspendedLanes|f))!==0?0:m,m!==0&&m!==X.retryLane))throw X.retryLane=m,rc(i,m),_a(N,i,m),KA;U.data==="$?"||X1(),l=N1(i,l,f)}else U.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=X.treeContext,zn=mo(U.nextSibling),Hr=l,an=!0,Gs=null,ko=!1,i!==null&&(Ha[za++]=ui,Ha[za++]=di,Ha[za++]=zs,ui=i.id,di=i.overflow,zs=l),l=I1(l,m.children),l.flags|=4096);return l}return v?(Xi(),v=m.fallback,U=l.mode,X=i.child,ue=X.sibling,m=ci(X,{mode:"hidden",children:m.children}),m.subtreeFlags=X.subtreeFlags&65011712,ue!==null?v=ci(ue,v):(v=Hs(v,U,f,null),v.flags|=2),v.return=l,m.return=l,m.sibling=v,l.child=m,m=v,v=l.child,U=i.child.memoizedState,U===null?U=R1(f):(X=U.cachePool,X!==null?(ue=cr._currentValue,X=X.parent!==ue?{parent:ue,pool:ue}:X):X=GC(),U={baseLanes:U.baseLanes|f,cachePool:X}),v.memoizedState=U,v.childLanes=O1(i,N,f),l.memoizedState=D1,m):(Ki(l),f=i.child,i=f.sibling,f=ci(f,{mode:"visible",children:m.children}),f.return=l,f.sibling=null,i!==null&&(N=l.deletions,N===null?(l.deletions=[i],l.flags|=16):N.push(i)),l.child=f,l.memoizedState=null,f)}function I1(i,l){return l=Lh({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Lh(i,l){return i=va(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function N1(i,l,f){return hc(l,i.child,null,f),i=I1(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function ix(i,l,f){i.lanes|=l;var m=i.alternate;m!==null&&(m.lanes|=l),Xy(i.return,l,f)}function L1(i,l,f,m,v){var S=i.memoizedState;S===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:v}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=m,S.tail=f,S.tailMode=v)}function sx(i,l,f){var m=l.pendingProps,v=m.revealOrder,S=m.tail;if(_r(i,l,m.children,f),m=ur.current,(m&2)!==0)m=m&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&ix(i,f,l);else if(i.tag===19)ix(i,f,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(L(ur,m),v){case"forwards":for(f=l.child,v=null;f!==null;)i=f.alternate,i!==null&&Rh(i)===null&&(v=f),f=f.sibling;f=v,f===null?(v=l.child,l.child=null):(v=f.sibling,f.sibling=null),L1(l,!1,v,f,S);break;case"backwards":for(f=null,v=l.child,l.child=null;v!==null;){if(i=v.alternate,i!==null&&Rh(i)===null){l.child=v;break}i=v.sibling,v.sibling=f,f=v,v=i}L1(l,!0,f,null,S);break;case"together":L1(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function gi(i,l,f){if(i!==null&&(l.dependencies=i.dependencies),ns|=l.lanes,(f&l.childLanes)===0)if(i!==null){if(Zu(i,l,f,!1),(f&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,f=ci(i,i.pendingProps),l.child=f,f.return=l;i.sibling!==null;)i=i.sibling,f=f.sibling=ci(i,i.pendingProps),f.return=l;f.sibling=null}return l.child}function P1(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&hh(i)))}function pM(i,l,f){switch(l.tag){case 3:ye(l,l.stateNode.containerInfo),Gi(l,cr,i.memoizedState.cache),Ku();break;case 27:case 5:Ue(l);break;case 4:ye(l,l.stateNode.containerInfo);break;case 10:Gi(l,l.type,l.memoizedProps.value);break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(Ki(l),l.flags|=128,null):(f&l.child.childLanes)!==0?ox(i,l,f):(Ki(l),i=gi(i,l,f),i!==null?i.sibling:null);Ki(l);break;case 19:var v=(i.flags&128)!==0;if(m=(f&l.childLanes)!==0,m||(Zu(i,l,f,!1),m=(f&l.childLanes)!==0),v){if(m)return sx(i,l,f);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),L(ur,ur.current),m)break;return null;case 22:case 23:return l.lanes=0,ex(i,l,f);case 24:Gi(l,cr,i.memoizedState.cache)}return gi(i,l,f)}function lx(i,l,f){if(i!==null)if(i.memoizedProps!==l.pendingProps)gr=!0;else{if(!P1(i,f)&&(l.flags&128)===0)return gr=!1,pM(i,l,f);gr=(i.flags&131072)!==0}else gr=!1,an&&(l.flags&1048576)!==0&&FC(l,ph,l.index);switch(l.lanes=0,l.tag){case 16:e:{i=l.pendingProps;var m=l.elementType,v=m._init;if(m=v(m._payload),l.type=m,typeof m=="function")Vy(m)?(i=Xs(m,i),l.tag=1,l=rx(null,l,m,i,f)):(l.tag=0,l=k1(null,l,m,i,f));else{if(m!=null){if(v=m.$$typeof,v===O){l.tag=11,l=XA(null,l,m,i,f);break e}else if(v===F){l.tag=14,l=ZA(null,l,m,i,f);break e}}throw l=B(m)||m,Error(r(306,l,""))}}return l;case 0:return k1(i,l,l.type,l.pendingProps,f);case 1:return m=l.type,v=Xs(m,l.pendingProps),rx(i,l,m,v,f);case 3:e:{if(ye(l,l.stateNode.containerInfo),i===null)throw Error(r(387));m=l.pendingProps;var S=l.memoizedState;v=S.element,a1(i,l),od(l,m,null,f);var N=l.memoizedState;if(m=N.cache,Gi(l,cr,m),m!==S.cache&&Zy(l,[cr],f,!0),ad(),m=N.element,S.isDehydrated)if(S={element:m,isDehydrated:!1,cache:N.cache},l.updateQueue.baseState=S,l.memoizedState=S,l.flags&256){l=ax(i,l,m,f);break e}else if(m!==v){v=Ua(Error(r(424)),l),Xu(v),l=ax(i,l,m,f);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(zn=mo(i.firstChild),Hr=l,an=!0,Gs=null,ko=!0,f=UA(l,null,m,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Ku(),m===v){l=gi(i,l,f);break e}_r(i,l,m,f)}l=l.child}return l;case 26:return Nh(i,l),i===null?(f=f2(l.type,null,l.pendingProps,null))?l.memoizedState=f:an||(f=l.type,i=l.pendingProps,m=Yh(de.current).createElement(f),m[ke]=l,m[Me]=i,Ar(m,f,i),Ct(m),l.stateNode=m):l.memoizedState=f2(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return Ue(l),i===null&&an&&(m=l.stateNode=c2(l.type,l.pendingProps,de.current),Hr=l,ko=!0,v=zn,is(l.type)?(mv=v,zn=mo(m.firstChild)):zn=v),_r(i,l,l.pendingProps.children,f),Nh(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&an&&((v=m=zn)&&(m=jM(m,l.type,l.pendingProps,ko),m!==null?(l.stateNode=m,Hr=l,zn=mo(m.firstChild),ko=!1,v=!0):v=!1),v||qs(l)),Ue(l),v=l.type,S=l.pendingProps,N=i!==null?i.memoizedProps:null,m=S.children,dv(v,S)?m=null:N!==null&&dv(v,N)&&(l.flags|=32),l.memoizedState!==null&&(v=u1(i,l,oM,null,null,f),wd._currentValue=v),Nh(i,l),_r(i,l,m,f),l.child;case 6:return i===null&&an&&((i=f=zn)&&(f=HM(f,l.pendingProps,ko),f!==null?(l.stateNode=f,Hr=l,zn=null,i=!0):i=!1),i||qs(l)),null;case 13:return ox(i,l,f);case 4:return ye(l,l.stateNode.containerInfo),m=l.pendingProps,i===null?l.child=hc(l,null,m,f):_r(i,l,m,f),l.child;case 11:return XA(i,l,l.type,l.pendingProps,f);case 7:return _r(i,l,l.pendingProps,f),l.child;case 8:return _r(i,l,l.pendingProps.children,f),l.child;case 12:return _r(i,l,l.pendingProps.children,f),l.child;case 10:return m=l.pendingProps,Gi(l,l.type,m.value),_r(i,l,m.children,f),l.child;case 9:return v=l.type._context,m=l.pendingProps.children,Ys(l),v=kr(v),m=m(v),l.flags|=1,_r(i,l,m,f),l.child;case 14:return ZA(i,l,l.type,l.pendingProps,f);case 15:return JA(i,l,l.type,l.pendingProps,f);case 19:return sx(i,l,f);case 31:return m=l.pendingProps,f=l.mode,m={mode:m.mode,children:m.children},i===null?(f=Lh(m,f),f.ref=l.ref,l.child=f,f.return=l,l=f):(f=ci(i.child,m),f.ref=l.ref,l.child=f,f.return=l,l=f),l;case 22:return ex(i,l,f);case 24:return Ys(l),m=kr(cr),i===null?(v=t1(),v===null&&(v=Dn,S=Jy(),v.pooledCache=S,S.refCount++,S!==null&&(v.pooledCacheLanes|=f),v=S),l.memoizedState={parent:m,cache:v},r1(l),Gi(l,cr,v)):((i.lanes&f)!==0&&(a1(i,l),od(l,null,null,f),ad()),v=i.memoizedState,S=l.memoizedState,v.parent!==m?(v={parent:m,cache:m},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),Gi(l,cr,m)):(m=S.cache,Gi(l,cr,m),m!==v.cache&&Zy(l,[cr],f,!0))),_r(i,l,l.pendingProps.children,f),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function yi(i){i.flags|=4}function cx(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!y2(l)){if(l=Va.current,l!==null&&((Gt&4194048)===Gt?Do!==null:(Gt&62914560)!==Gt&&(Gt&536870912)===0||l!==Do))throw nd=n1,qC;i.flags|=8192}}function Ph(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Br():536870912,i.lanes|=l,vc|=l)}function fd(i,l){if(!an)switch(i.tailMode){case"hidden":l=i.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function jn(i){var l=i.alternate!==null&&i.alternate.child===i.child,f=0,m=0;if(l)for(var v=i.child;v!==null;)f|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)f|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=m,i.childLanes=f,l}function hM(i,l,f){var m=l.pendingProps;switch(Yy(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(l),null;case 1:return jn(l),null;case 3:return f=l.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),pi(cr),Oe(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Qu(l)?yi(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,jC())),jn(l),null;case 26:return f=l.memoizedState,i===null?(yi(l),f!==null?(jn(l),cx(l,f)):(jn(l),l.flags&=-16777217)):f?f!==i.memoizedState?(yi(l),jn(l),cx(l,f)):(jn(l),l.flags&=-16777217):(i.memoizedProps!==m&&yi(l),jn(l),l.flags&=-16777217),null;case 27:Ie(l),f=de.current;var v=l.type;if(i!==null&&l.stateNode!=null)i.memoizedProps!==m&&yi(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return jn(l),null}i=te.current,Qu(l)?BC(l):(i=c2(v,m,f),l.stateNode=i,yi(l))}return jn(l),null;case 5:if(Ie(l),f=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==m&&yi(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return jn(l),null}if(i=te.current,Qu(l))BC(l);else{switch(v=Yh(de.current),i){case 1:i=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:i=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":i=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":i=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":i=v.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?v.createElement("select",{is:m.is}):v.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?v.createElement(f,{is:m.is}):v.createElement(f)}}i[ke]=l,i[Me]=m;e:for(v=l.child;v!==null;){if(v.tag===5||v.tag===6)i.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===l)break e;for(;v.sibling===null;){if(v.return===null||v.return===l)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}l.stateNode=i;e:switch(Ar(i,f,m),f){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&yi(l)}}return jn(l),l.flags&=-16777217,null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==m&&yi(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(i=de.current,Qu(l)){if(i=l.stateNode,f=l.memoizedProps,m=null,v=Hr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}i[ke]=l,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||n2(i.nodeValue,f)),i||qs(l)}else i=Yh(i).createTextNode(m),i[ke]=l,l.stateNode=i}return jn(l),null;case 13:if(m=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Qu(l),m!==null&&m.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[ke]=l}else Ku(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;jn(l),v=!1}else v=jC(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(mi(l),l):(mi(l),null)}if(mi(l),(l.flags&128)!==0)return l.lanes=f,l;if(f=m!==null,i=i!==null&&i.memoizedState!==null,f){m=l.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool);var S=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==v&&(m.flags|=2048)}return f!==i&&f&&(l.child.flags|=8192),Ph(l,l.updateQueue),jn(l),null;case 4:return Oe(),i===null&&iv(l.stateNode.containerInfo),jn(l),null;case 10:return pi(l.type),jn(l),null;case 19:if(ee(ur),v=l.memoizedState,v===null)return jn(l),null;if(m=(l.flags&128)!==0,S=v.rendering,S===null)if(m)fd(v,!1);else{if(Vn!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(S=Rh(i),S!==null){for(l.flags|=128,fd(v,!1),i=S.updateQueue,l.updateQueue=i,Ph(l,i),l.subtreeFlags=0,i=f,f=l.child;f!==null;)$C(f,i),f=f.sibling;return L(ur,ur.current&1|2),l.child}i=i.sibling}v.tail!==null&&je()>Fh&&(l.flags|=128,m=!0,fd(v,!1),l.lanes=4194304)}else{if(!m)if(i=Rh(S),i!==null){if(l.flags|=128,m=!0,i=i.updateQueue,l.updateQueue=i,Ph(l,i),fd(v,!0),v.tail===null&&v.tailMode==="hidden"&&!S.alternate&&!an)return jn(l),null}else 2*je()-v.renderingStartTime>Fh&&f!==536870912&&(l.flags|=128,m=!0,fd(v,!1),l.lanes=4194304);v.isBackwards?(S.sibling=l.child,l.child=S):(i=v.last,i!==null?i.sibling=S:l.child=S,v.last=S)}return v.tail!==null?(l=v.tail,v.rendering=l,v.tail=l.sibling,v.renderingStartTime=je(),l.sibling=null,i=ur.current,L(ur,m?i&1|2:i&1),l):(jn(l),null);case 22:case 23:return mi(l),l1(),m=l.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(f&536870912)!==0&&(l.flags&128)===0&&(jn(l),l.subtreeFlags&6&&(l.flags|=8192)):jn(l),f=l.updateQueue,f!==null&&Ph(l,f.retryQueue),f=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048),i!==null&&ee(Qs),null;case 24:return f=null,i!==null&&(f=i.memoizedState.cache),l.memoizedState.cache!==f&&(l.flags|=2048),pi(cr),jn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function mM(i,l){switch(Yy(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return pi(cr),Oe(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return Ie(l),null;case 13:if(mi(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ku()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return ee(ur),null;case 4:return Oe(),null;case 10:return pi(l.type),null;case 22:case 23:return mi(l),l1(),i!==null&&ee(Qs),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return pi(cr),null;case 25:return null;default:return null}}function ux(i,l){switch(Yy(l),l.tag){case 3:pi(cr),Oe();break;case 26:case 27:case 5:Ie(l);break;case 4:Oe();break;case 13:mi(l);break;case 19:ee(ur);break;case 10:pi(l.type);break;case 22:case 23:mi(l),l1(),i!==null&&ee(Qs);break;case 24:pi(cr)}}function pd(i,l){try{var f=l.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var v=m.next;f=v;do{if((f.tag&i)===i){m=void 0;var S=f.create,N=f.inst;m=S(),N.destroy=m}f=f.next}while(f!==v)}}catch(U){Cn(l,l.return,U)}}function Zi(i,l,f){try{var m=l.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var S=v.next;m=S;do{if((m.tag&i)===i){var N=m.inst,U=N.destroy;if(U!==void 0){N.destroy=void 0,v=l;var X=f,ue=U;try{ue()}catch(Ce){Cn(v,X,Ce)}}}m=m.next}while(m!==S)}}catch(Ce){Cn(l,l.return,Ce)}}function dx(i){var l=i.updateQueue;if(l!==null){var f=i.stateNode;try{ZC(l,f)}catch(m){Cn(i,i.return,m)}}}function fx(i,l,f){f.props=Xs(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){Cn(i,l,m)}}function hd(i,l){try{var f=i.ref;if(f!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof f=="function"?i.refCleanup=f(m):f.current=m}}catch(v){Cn(i,l,v)}}function Ro(i,l){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(v){Cn(i,l,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(v){Cn(i,l,v)}else f.current=null}function px(i){var l=i.type,f=i.memoizedProps,m=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(v){Cn(i,i.return,v)}}function M1(i,l,f){try{var m=i.stateNode;MM(m,i.type,f,l),m[Me]=l}catch(v){Cn(i,i.return,v)}}function hx(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&is(i.type)||i.tag===4}function $1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&is(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function F1(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(i,l):(l=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,l.appendChild(i),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=Wh));else if(m!==4&&(m===27&&is(i.type)&&(f=i.stateNode,l=null),i=i.child,i!==null))for(F1(i,l,f),i=i.sibling;i!==null;)F1(i,l,f),i=i.sibling}function Mh(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?f.insertBefore(i,l):f.appendChild(i);else if(m!==4&&(m===27&&is(i.type)&&(f=i.stateNode),i=i.child,i!==null))for(Mh(i,l,f),i=i.sibling;i!==null;)Mh(i,l,f),i=i.sibling}function mx(i){var l=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);Ar(l,m,f),l[ke]=i,l[Me]=f}catch(S){Cn(i,i.return,S)}}var vi=!1,Zn=!1,B1=!1,gx=typeof WeakSet=="function"?WeakSet:Set,yr=null;function gM(i,l){if(i=i.containerInfo,cv=em,i=wC(i),$y(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var v=m.anchorOffset,S=m.focusNode;m=m.focusOffset;try{f.nodeType,S.nodeType}catch{f=null;break e}var N=0,U=-1,X=-1,ue=0,Ce=0,we=i,fe=null;t:for(;;){for(var he;we!==f||v!==0&&we.nodeType!==3||(U=N+v),we!==S||m!==0&&we.nodeType!==3||(X=N+m),we.nodeType===3&&(N+=we.nodeValue.length),(he=we.firstChild)!==null;)fe=we,we=he;for(;;){if(we===i)break t;if(fe===f&&++ue===v&&(U=N),fe===S&&++Ce===m&&(X=N),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}f=U===-1||X===-1?null:{start:U,end:X}}else f=null}f=f||{start:0,end:0}}else f=null;for(uv={focusedElem:i,selectionRange:f},em=!1,yr=l;yr!==null;)if(l=yr,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,yr=i;else for(;yr!==null;){switch(l=yr,S=l.alternate,i=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&S!==null){i=void 0,f=l,v=S.memoizedProps,S=S.memoizedState,m=f.stateNode;try{var vt=Xs(f.type,v,f.elementType===f.type);i=m.getSnapshotBeforeUpdate(vt,S),m.__reactInternalSnapshotBeforeUpdate=i}catch(ht){Cn(f,f.return,ht)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,f=i.nodeType,f===9)pv(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":pv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,yr=i;break}yr=l.return}}function yx(i,l,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Ji(i,f),m&4&&pd(5,f);break;case 1:if(Ji(i,f),m&4)if(i=f.stateNode,l===null)try{i.componentDidMount()}catch(N){Cn(f,f.return,N)}else{var v=Xs(f.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(v,l,i.__reactInternalSnapshotBeforeUpdate)}catch(N){Cn(f,f.return,N)}}m&64&&dx(f),m&512&&hd(f,f.return);break;case 3:if(Ji(i,f),m&64&&(i=f.updateQueue,i!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=f.child.stateNode;break;case 1:l=f.child.stateNode}try{ZC(i,l)}catch(N){Cn(f,f.return,N)}}break;case 27:l===null&&m&4&&mx(f);case 26:case 5:Ji(i,f),l===null&&m&4&&px(f),m&512&&hd(f,f.return);break;case 12:Ji(i,f);break;case 13:Ji(i,f),m&4&&Ex(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=AM.bind(null,f),zM(i,f))));break;case 22:if(m=f.memoizedState!==null||vi,!m){l=l!==null&&l.memoizedState!==null||Zn,v=vi;var S=Zn;vi=m,(Zn=l)&&!S?es(i,f,(f.subtreeFlags&8772)!==0):Ji(i,f),vi=v,Zn=S}break;case 30:break;default:Ji(i,f)}}function vx(i){var l=i.alternate;l!==null&&(i.alternate=null,vx(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&rt(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Ln=null,na=!1;function bi(i,l,f){for(f=f.child;f!==null;)bx(i,l,f),f=f.sibling}function bx(i,l,f){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(ce,f)}catch{}switch(f.tag){case 26:Zn||Ro(f,l),bi(i,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Zn||Ro(f,l);var m=Ln,v=na;is(f.type)&&(Ln=f.stateNode,na=!1),bi(i,l,f),_d(f.stateNode),Ln=m,na=v;break;case 5:Zn||Ro(f,l);case 6:if(m=Ln,v=na,Ln=null,bi(i,l,f),Ln=m,na=v,Ln!==null)if(na)try{(Ln.nodeType===9?Ln.body:Ln.nodeName==="HTML"?Ln.ownerDocument.body:Ln).removeChild(f.stateNode)}catch(S){Cn(f,l,S)}else try{Ln.removeChild(f.stateNode)}catch(S){Cn(f,l,S)}break;case 18:Ln!==null&&(na?(i=Ln,s2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),Od(i)):s2(Ln,f.stateNode));break;case 4:m=Ln,v=na,Ln=f.stateNode.containerInfo,na=!0,bi(i,l,f),Ln=m,na=v;break;case 0:case 11:case 14:case 15:Zn||Zi(2,f,l),Zn||Zi(4,f,l),bi(i,l,f);break;case 1:Zn||(Ro(f,l),m=f.stateNode,typeof m.componentWillUnmount=="function"&&fx(f,l,m)),bi(i,l,f);break;case 21:bi(i,l,f);break;case 22:Zn=(m=Zn)||f.memoizedState!==null,bi(i,l,f),Zn=m;break;default:bi(i,l,f)}}function Ex(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Od(i)}catch(f){Cn(l,l.return,f)}}function yM(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new gx),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new gx),l;default:throw Error(r(435,i.tag))}}function U1(i,l){var f=yM(i);l.forEach(function(m){var v=xM.bind(null,i,m);f.has(m)||(f.add(m),m.then(v,v))})}function ba(i,l){var f=l.deletions;if(f!==null)for(var m=0;m<f.length;m++){var v=f[m],S=i,N=l,U=N;e:for(;U!==null;){switch(U.tag){case 27:if(is(U.type)){Ln=U.stateNode,na=!1;break e}break;case 5:Ln=U.stateNode,na=!1;break e;case 3:case 4:Ln=U.stateNode.containerInfo,na=!0;break e}U=U.return}if(Ln===null)throw Error(r(160));bx(S,N,v),Ln=null,na=!1,S=v.alternate,S!==null&&(S.return=null),v.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Tx(l,i),l=l.sibling}var ho=null;function Tx(i,l){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ba(l,i),Ea(i),m&4&&(Zi(3,i,i.return),pd(3,i),Zi(5,i,i.return));break;case 1:ba(l,i),Ea(i),m&512&&(Zn||f===null||Ro(f,f.return)),m&64&&vi&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(f=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var v=ho;if(ba(l,i),Ea(i),m&512&&(Zn||f===null||Ro(f,f.return)),m&4){var S=f!==null?f.memoizedState:null;if(m=i.memoizedState,f===null)if(m===null)if(i.stateNode===null){e:{m=i.type,f=i.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":S=v.getElementsByTagName("title")[0],(!S||S[et]||S[ke]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=v.createElement(m),v.head.insertBefore(S,v.querySelector("head > title"))),Ar(S,m,f),S[ke]=i,Ct(S),m=S;break e;case"link":var N=m2("link","href",v).get(m+(f.href||""));if(N){for(var U=0;U<N.length;U++)if(S=N[U],S.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&S.getAttribute("rel")===(f.rel==null?null:f.rel)&&S.getAttribute("title")===(f.title==null?null:f.title)&&S.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){N.splice(U,1);break t}}S=v.createElement(m),Ar(S,m,f),v.head.appendChild(S);break;case"meta":if(N=m2("meta","content",v).get(m+(f.content||""))){for(U=0;U<N.length;U++)if(S=N[U],S.getAttribute("content")===(f.content==null?null:""+f.content)&&S.getAttribute("name")===(f.name==null?null:f.name)&&S.getAttribute("property")===(f.property==null?null:f.property)&&S.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&S.getAttribute("charset")===(f.charSet==null?null:f.charSet)){N.splice(U,1);break t}}S=v.createElement(m),Ar(S,m,f),v.head.appendChild(S);break;default:throw Error(r(468,m))}S[ke]=i,Ct(S),m=S}i.stateNode=m}else g2(v,i.type,i.stateNode);else i.stateNode=h2(v,m,i.memoizedProps);else S!==m?(S===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):S.count--,m===null?g2(v,i.type,i.stateNode):h2(v,m,i.memoizedProps)):m===null&&i.stateNode!==null&&M1(i,i.memoizedProps,f.memoizedProps)}break;case 27:ba(l,i),Ea(i),m&512&&(Zn||f===null||Ro(f,f.return)),f!==null&&m&4&&M1(i,i.memoizedProps,f.memoizedProps);break;case 5:if(ba(l,i),Ea(i),m&512&&(Zn||f===null||Ro(f,f.return)),i.flags&32){v=i.stateNode;try{Kl(v,"")}catch(he){Cn(i,i.return,he)}}m&4&&i.stateNode!=null&&(v=i.memoizedProps,M1(i,v,f!==null?f.memoizedProps:v)),m&1024&&(B1=!0);break;case 6:if(ba(l,i),Ea(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(he){Cn(i,i.return,he)}}break;case 3:if(Xh=null,v=ho,ho=Qh(l.containerInfo),ba(l,i),ho=v,Ea(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Od(l.containerInfo)}catch(he){Cn(i,i.return,he)}B1&&(B1=!1,Sx(i));break;case 4:m=ho,ho=Qh(i.stateNode.containerInfo),ba(l,i),Ea(i),ho=m;break;case 12:ba(l,i),Ea(i);break;case 13:ba(l,i),Ea(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(q1=je()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,U1(i,m)));break;case 22:v=i.memoizedState!==null;var X=f!==null&&f.memoizedState!==null,ue=vi,Ce=Zn;if(vi=ue||v,Zn=Ce||X,ba(l,i),Zn=Ce,vi=ue,Ea(i),m&8192)e:for(l=i.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(f===null||X||vi||Zn||Zs(i)),f=null,l=i;;){if(l.tag===5||l.tag===26){if(f===null){X=f=l;try{if(S=X.stateNode,v)N=S.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{U=X.stateNode;var we=X.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;U.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){Cn(X,X.return,he)}}}else if(l.tag===6){if(f===null){X=l;try{X.stateNode.nodeValue=v?"":X.memoizedProps}catch(he){Cn(X,X.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;f===l&&(f=null),l=l.return}f===l&&(f=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=i.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,U1(i,f))));break;case 19:ba(l,i),Ea(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,U1(i,m)));break;case 30:break;case 21:break;default:ba(l,i),Ea(i)}}function Ea(i){var l=i.flags;if(l&2){try{for(var f,m=i.return;m!==null;){if(hx(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var v=f.stateNode,S=$1(i);Mh(i,S,v);break;case 5:var N=f.stateNode;f.flags&32&&(Kl(N,""),f.flags&=-33);var U=$1(i);Mh(i,U,N);break;case 3:case 4:var X=f.stateNode.containerInfo,ue=$1(i);F1(i,ue,X);break;default:throw Error(r(161))}}catch(Ce){Cn(i,i.return,Ce)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function Sx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;Sx(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function Ji(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)yx(i,l.alternate,l),l=l.sibling}function Zs(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:Zi(4,l,l.return),Zs(l);break;case 1:Ro(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&fx(l,l.return,f),Zs(l);break;case 27:_d(l.stateNode);case 26:case 5:Ro(l,l.return),Zs(l);break;case 22:l.memoizedState===null&&Zs(l);break;case 30:Zs(l);break;default:Zs(l)}i=i.sibling}}function es(i,l,f){for(f=f&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,v=i,S=l,N=S.flags;switch(S.tag){case 0:case 11:case 15:es(v,S,f),pd(4,S);break;case 1:if(es(v,S,f),m=S,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ue){Cn(m,m.return,ue)}if(m=S,v=m.updateQueue,v!==null){var U=m.stateNode;try{var X=v.shared.hiddenCallbacks;if(X!==null)for(v.shared.hiddenCallbacks=null,v=0;v<X.length;v++)XC(X[v],U)}catch(ue){Cn(m,m.return,ue)}}f&&N&64&&dx(S),hd(S,S.return);break;case 27:mx(S);case 26:case 5:es(v,S,f),f&&m===null&&N&4&&px(S),hd(S,S.return);break;case 12:es(v,S,f);break;case 13:es(v,S,f),f&&N&4&&Ex(v,S);break;case 22:S.memoizedState===null&&es(v,S,f),hd(S,S.return);break;case 30:break;default:es(v,S,f)}l=l.sibling}}function j1(i,l){var f=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==f&&(i!=null&&i.refCount++,f!=null&&Ju(f))}function H1(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Ju(i))}function Oo(i,l,f,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)_x(i,l,f,m),l=l.sibling}function _x(i,l,f,m){var v=l.flags;switch(l.tag){case 0:case 11:case 15:Oo(i,l,f,m),v&2048&&pd(9,l);break;case 1:Oo(i,l,f,m);break;case 3:Oo(i,l,f,m),v&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Ju(i)));break;case 12:if(v&2048){Oo(i,l,f,m),i=l.stateNode;try{var S=l.memoizedProps,N=S.id,U=S.onPostCommit;typeof U=="function"&&U(N,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(X){Cn(l,l.return,X)}}else Oo(i,l,f,m);break;case 13:Oo(i,l,f,m);break;case 23:break;case 22:S=l.stateNode,N=l.alternate,l.memoizedState!==null?S._visibility&2?Oo(i,l,f,m):md(i,l):S._visibility&2?Oo(i,l,f,m):(S._visibility|=2,mc(i,l,f,m,(l.subtreeFlags&10256)!==0)),v&2048&&j1(N,l);break;case 24:Oo(i,l,f,m),v&2048&&H1(l.alternate,l);break;default:Oo(i,l,f,m)}}function mc(i,l,f,m,v){for(v=v&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var S=i,N=l,U=f,X=m,ue=N.flags;switch(N.tag){case 0:case 11:case 15:mc(S,N,U,X,v),pd(8,N);break;case 23:break;case 22:var Ce=N.stateNode;N.memoizedState!==null?Ce._visibility&2?mc(S,N,U,X,v):md(S,N):(Ce._visibility|=2,mc(S,N,U,X,v)),v&&ue&2048&&j1(N.alternate,N);break;case 24:mc(S,N,U,X,v),v&&ue&2048&&H1(N.alternate,N);break;default:mc(S,N,U,X,v)}l=l.sibling}}function md(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var f=i,m=l,v=m.flags;switch(m.tag){case 22:md(f,m),v&2048&&j1(m.alternate,m);break;case 24:md(f,m),v&2048&&H1(m.alternate,m);break;default:md(f,m)}l=l.sibling}}var gd=8192;function gc(i){if(i.subtreeFlags&gd)for(i=i.child;i!==null;)Cx(i),i=i.sibling}function Cx(i){switch(i.tag){case 26:gc(i),i.flags&gd&&i.memoizedState!==null&&n$(ho,i.memoizedState,i.memoizedProps);break;case 5:gc(i);break;case 3:case 4:var l=ho;ho=Qh(i.stateNode.containerInfo),gc(i),ho=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=gd,gd=16777216,gc(i),gd=l):gc(i));break;default:gc(i)}}function Ax(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function yd(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];yr=m,wx(m,i)}Ax(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xx(i),i=i.sibling}function xx(i){switch(i.tag){case 0:case 11:case 15:yd(i),i.flags&2048&&Zi(9,i,i.return);break;case 3:yd(i);break;case 12:yd(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,$h(i)):yd(i);break;default:yd(i)}}function $h(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];yr=m,wx(m,i)}Ax(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:Zi(8,l,l.return),$h(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,$h(l));break;default:$h(l)}i=i.sibling}}function wx(i,l){for(;yr!==null;){var f=yr;switch(f.tag){case 0:case 11:case 15:Zi(8,f,l);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Ju(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,yr=m;else e:for(f=i;yr!==null;){m=yr;var v=m.sibling,S=m.return;if(vx(m),m===f){yr=null;break e}if(v!==null){v.return=S,yr=v;break e}yr=S}}}var vM={getCacheForType:function(i){var l=kr(cr),f=l.data.get(i);return f===void 0&&(f=i(),l.data.set(i,f)),f}},bM=typeof WeakMap=="function"?WeakMap:Map,un=0,Dn=null,Ft=null,Gt=0,dn=0,Ta=null,ts=!1,yc=!1,z1=!1,Ei=0,Vn=0,ns=0,Js=0,V1=0,Ga=0,vc=0,vd=null,ra=null,G1=!1,q1=0,Fh=1/0,Bh=null,rs=null,Cr=0,as=null,bc=null,Ec=0,W1=0,Y1=null,kx=null,bd=0,Q1=null;function Sa(){if((un&2)!==0&&Gt!==0)return Gt&-Gt;if(j.T!==null){var i=sc;return i!==0?i:nv()}return J()}function Dx(){Ga===0&&(Ga=(Gt&536870912)===0||an?Bn():536870912);var i=Va.current;return i!==null&&(i.flags|=32),Ga}function _a(i,l,f){(i===Dn&&(dn===2||dn===9)||i.cancelPendingCommit!==null)&&(Tc(i,0),os(i,Gt,Ga,!1)),hr(i,f),((un&2)===0||i!==Dn)&&(i===Dn&&((un&2)===0&&(Js|=f),Vn===4&&os(i,Gt,Ga,!1)),Io(i))}function Rx(i,l,f){if((un&6)!==0)throw Error(r(327));var m=!f&&(l&124)===0&&(l&i.expiredLanes)===0||ut(i,l),v=m?SM(i,l):Z1(i,l,!0),S=m;do{if(v===0){yc&&!m&&os(i,l,0,!1);break}else{if(f=i.current.alternate,S&&!EM(f)){v=Z1(i,l,!1),S=!1;continue}if(v===2){if(S=l,i.errorRecoveryDisabledLanes&S)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){l=N;e:{var U=i;v=vd;var X=U.current.memoizedState.isDehydrated;if(X&&(Tc(U,N).flags|=256),N=Z1(U,N,!1),N!==2){if(z1&&!X){U.errorRecoveryDisabledLanes|=S,Js|=S,v=4;break e}S=ra,ra=v,S!==null&&(ra===null?ra=S:ra.push.apply(ra,S))}v=N}if(S=!1,v!==2)continue}}if(v===1){Tc(i,0),os(i,l,0,!0);break}e:{switch(m=i,S=v,S){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:os(m,l,Ga,!ts);break e;case 2:ra=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=q1+300-je(),10<v)){if(os(m,l,Ga,!ts),Te(m,0,!0)!==0)break e;m.timeoutHandle=o2(Ox.bind(null,m,f,ra,Bh,G1,l,Ga,Js,vc,ts,S,2,-0,0),v);break e}Ox(m,f,ra,Bh,G1,l,Ga,Js,vc,ts,S,0,-0,0)}}break}while(!0);Io(i)}function Ox(i,l,f,m,v,S,N,U,X,ue,Ce,we,fe,he){if(i.timeoutHandle=-1,we=l.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(xd={stylesheets:null,count:0,unsuspend:t$},Cx(l),we=r$(),we!==null)){i.cancelPendingCommit=we(Fx.bind(null,i,l,S,f,m,v,N,U,X,Ce,1,fe,he)),os(i,S,N,!ue);return}Fx(i,l,S,f,m,v,N,U,X)}function EM(i){for(var l=i;;){var f=l.tag;if((f===0||f===11||f===15)&&l.flags&16384&&(f=l.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var v=f[m],S=v.getSnapshot;v=v.value;try{if(!ya(S(),v))return!1}catch{return!1}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function os(i,l,f,m){l&=~V1,l&=~Js,i.suspendedLanes|=l,i.pingedLanes&=~l,m&&(i.warmLanes|=l),m=i.expirationTimes;for(var v=l;0<v;){var S=31-qe(v),N=1<<S;m[S]=-1,v&=~N}f!==0&&Ma(i,f,l)}function Uh(){return(un&6)===0?(Ed(0),!1):!0}function K1(){if(Ft!==null){if(dn===0)var i=Ft.return;else i=Ft,fi=Ws=null,p1(i),pc=null,ud=0,i=Ft;for(;i!==null;)ux(i.alternate,i),i=i.return;Ft=null}}function Tc(i,l){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,FM(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),K1(),Dn=i,Ft=f=ci(i.current,null),Gt=l,dn=0,Ta=null,ts=!1,yc=ut(i,l),z1=!1,vc=Ga=V1=Js=ns=Vn=0,ra=vd=null,G1=!1,(l&8)!==0&&(l|=l&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=l;0<m;){var v=31-qe(m),S=1<<v;l|=i[v],m&=~S}return Ei=l,lh(),f}function Ix(i,l){Pt=null,j.H=wh,l===td||l===yh?(l=QC(),dn=3):l===qC?(l=QC(),dn=4):dn=l===KA?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Ta=l,Ft===null&&(Vn=1,Ih(i,Ua(l,i.current)))}function Nx(){var i=j.H;return j.H=wh,i===null?wh:i}function Lx(){var i=j.A;return j.A=vM,i}function X1(){Vn=4,ts||(Gt&4194048)!==Gt&&Va.current!==null||(yc=!0),(ns&134217727)===0&&(Js&134217727)===0||Dn===null||os(Dn,Gt,Ga,!1)}function Z1(i,l,f){var m=un;un|=2;var v=Nx(),S=Lx();(Dn!==i||Gt!==l)&&(Bh=null,Tc(i,l)),l=!1;var N=Vn;e:do try{if(dn!==0&&Ft!==null){var U=Ft,X=Ta;switch(dn){case 8:K1(),N=6;break e;case 3:case 2:case 9:case 6:Va.current===null&&(l=!0);var ue=dn;if(dn=0,Ta=null,Sc(i,U,X,ue),f&&yc){N=0;break e}break;default:ue=dn,dn=0,Ta=null,Sc(i,U,X,ue)}}TM(),N=Vn;break}catch(Ce){Ix(i,Ce)}while(!0);return l&&i.shellSuspendCounter++,fi=Ws=null,un=m,j.H=v,j.A=S,Ft===null&&(Dn=null,Gt=0,lh()),N}function TM(){for(;Ft!==null;)Px(Ft)}function SM(i,l){var f=un;un|=2;var m=Nx(),v=Lx();Dn!==i||Gt!==l?(Bh=null,Fh=je()+500,Tc(i,l)):yc=ut(i,l);e:do try{if(dn!==0&&Ft!==null){l=Ft;var S=Ta;t:switch(dn){case 1:dn=0,Ta=null,Sc(i,l,S,1);break;case 2:case 9:if(WC(S)){dn=0,Ta=null,Mx(l);break}l=function(){dn!==2&&dn!==9||Dn!==i||(dn=7),Io(i)},S.then(l,l);break e;case 3:dn=7;break e;case 4:dn=5;break e;case 7:WC(S)?(dn=0,Ta=null,Mx(l)):(dn=0,Ta=null,Sc(i,l,S,7));break;case 5:var N=null;switch(Ft.tag){case 26:N=Ft.memoizedState;case 5:case 27:var U=Ft;if(!N||y2(N)){dn=0,Ta=null;var X=U.sibling;if(X!==null)Ft=X;else{var ue=U.return;ue!==null?(Ft=ue,jh(ue)):Ft=null}break t}}dn=0,Ta=null,Sc(i,l,S,5);break;case 6:dn=0,Ta=null,Sc(i,l,S,6);break;case 8:K1(),Vn=6;break e;default:throw Error(r(462))}}_M();break}catch(Ce){Ix(i,Ce)}while(!0);return fi=Ws=null,j.H=m,j.A=v,un=f,Ft!==null?0:(Dn=null,Gt=0,lh(),Vn)}function _M(){for(;Ft!==null&&!Ot();)Px(Ft)}function Px(i){var l=lx(i.alternate,i,Ei);i.memoizedProps=i.pendingProps,l===null?jh(i):Ft=l}function Mx(i){var l=i,f=l.alternate;switch(l.tag){case 15:case 0:l=nx(f,l,l.pendingProps,l.type,void 0,Gt);break;case 11:l=nx(f,l,l.pendingProps,l.type.render,l.ref,Gt);break;case 5:p1(l);default:ux(f,l),l=Ft=$C(l,Ei),l=lx(f,l,Ei)}i.memoizedProps=i.pendingProps,l===null?jh(i):Ft=l}function Sc(i,l,f,m){fi=Ws=null,p1(l),pc=null,ud=0;var v=l.return;try{if(fM(i,v,l,f,Gt)){Vn=1,Ih(i,Ua(f,i.current)),Ft=null;return}}catch(S){if(v!==null)throw Ft=v,S;Vn=1,Ih(i,Ua(f,i.current)),Ft=null;return}l.flags&32768?(an||m===1?i=!0:yc||(Gt&536870912)!==0?i=!1:(ts=i=!0,(m===2||m===9||m===3||m===6)&&(m=Va.current,m!==null&&m.tag===13&&(m.flags|=16384))),$x(l,i)):jh(l)}function jh(i){var l=i;do{if((l.flags&32768)!==0){$x(l,ts);return}i=l.return;var f=hM(l.alternate,l,Ei);if(f!==null){Ft=f;return}if(l=l.sibling,l!==null){Ft=l;return}Ft=l=i}while(l!==null);Vn===0&&(Vn=5)}function $x(i,l){do{var f=mM(i.alternate,i);if(f!==null){f.flags&=32767,Ft=f;return}if(f=i.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!l&&(i=i.sibling,i!==null)){Ft=i;return}Ft=i=f}while(i!==null);Vn=6,Ft=null}function Fx(i,l,f,m,v,S,N,U,X){i.cancelPendingCommit=null;do Hh();while(Cr!==0);if((un&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(S=l.lanes|l.childLanes,S|=Hy,mr(i,f,S,N,U,X),i===Dn&&(Ft=Dn=null,Gt=0),bc=l,as=i,Ec=f,W1=S,Y1=v,kx=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,wM(Ge,function(){return zx(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=j.T,j.T=null,v=Z.p,Z.p=2,N=un,un|=4;try{gM(i,l,f)}finally{un=N,Z.p=v,j.T=m}}Cr=1,Bx(),Ux(),jx()}}function Bx(){if(Cr===1){Cr=0;var i=as,l=bc,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=j.T,j.T=null;var m=Z.p;Z.p=2;var v=un;un|=4;try{Tx(l,i);var S=uv,N=wC(i.containerInfo),U=S.focusedElem,X=S.selectionRange;if(N!==U&&U&&U.ownerDocument&&xC(U.ownerDocument.documentElement,U)){if(X!==null&&$y(U)){var ue=X.start,Ce=X.end;if(Ce===void 0&&(Ce=ue),"selectionStart"in U)U.selectionStart=ue,U.selectionEnd=Math.min(Ce,U.value.length);else{var we=U.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),vt=U.textContent.length,ht=Math.min(X.start,vt),En=X.end===void 0?ht:Math.min(X.end,vt);!he.extend&&ht>En&&(N=En,En=ht,ht=N);var oe=AC(U,ht),re=AC(U,En);if(oe&&re&&(he.rangeCount!==1||he.anchorNode!==oe.node||he.anchorOffset!==oe.offset||he.focusNode!==re.node||he.focusOffset!==re.offset)){var se=we.createRange();se.setStart(oe.node,oe.offset),he.removeAllRanges(),ht>En?(he.addRange(se),he.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),he.addRange(se))}}}}for(we=[],he=U;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<we.length;U++){var Ae=we[U];Ae.element.scrollLeft=Ae.left,Ae.element.scrollTop=Ae.top}}em=!!cv,uv=cv=null}finally{un=v,Z.p=m,j.T=f}}i.current=l,Cr=2}}function Ux(){if(Cr===2){Cr=0;var i=as,l=bc,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=j.T,j.T=null;var m=Z.p;Z.p=2;var v=un;un|=4;try{yx(i,l.alternate,l)}finally{un=v,Z.p=m,j.T=f}}Cr=3}}function jx(){if(Cr===4||Cr===3){Cr=0,Et();var i=as,l=bc,f=Ec,m=kx;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Cr=5:(Cr=0,bc=as=null,Hx(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(rs=null),ft(f),l=l.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(ce,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=j.T,v=Z.p,Z.p=2,j.T=null;try{for(var S=i.onRecoverableError,N=0;N<m.length;N++){var U=m[N];S(U.value,{componentStack:U.stack})}}finally{j.T=l,Z.p=v}}(Ec&3)!==0&&Hh(),Io(i),v=i.pendingLanes,(f&4194090)!==0&&(v&42)!==0?i===Q1?bd++:(bd=0,Q1=i):bd=0,Ed(0)}}function Hx(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Ju(l)))}function Hh(i){return Bx(),Ux(),jx(),zx()}function zx(){if(Cr!==5)return!1;var i=as,l=W1;W1=0;var f=ft(Ec),m=j.T,v=Z.p;try{Z.p=32>f?32:f,j.T=null,f=Y1,Y1=null;var S=as,N=Ec;if(Cr=0,bc=as=null,Ec=0,(un&6)!==0)throw Error(r(331));var U=un;if(un|=4,xx(S.current),_x(S,S.current,N,f),un=U,Ed(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(ce,S)}catch{}return!0}finally{Z.p=v,j.T=m,Hx(i,l)}}function Vx(i,l,f){l=Ua(f,l),l=w1(i.stateNode,l,2),i=Yi(i,l,2),i!==null&&(hr(i,2),Io(i))}function Cn(i,l,f){if(i.tag===3)Vx(i,i,f);else for(;l!==null;){if(l.tag===3){Vx(l,i,f);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(rs===null||!rs.has(m))){i=Ua(f,i),f=YA(2),m=Yi(l,f,2),m!==null&&(QA(f,m,l,i),hr(m,2),Io(m));break}}l=l.return}}function J1(i,l,f){var m=i.pingCache;if(m===null){m=i.pingCache=new bM;var v=new Set;m.set(l,v)}else v=m.get(l),v===void 0&&(v=new Set,m.set(l,v));v.has(f)||(z1=!0,v.add(f),i=CM.bind(null,i,l,f),l.then(i,i))}function CM(i,l,f){var m=i.pingCache;m!==null&&m.delete(l),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,Dn===i&&(Gt&f)===f&&(Vn===4||Vn===3&&(Gt&62914560)===Gt&&300>je()-q1?(un&2)===0&&Tc(i,0):V1|=f,vc===Gt&&(vc=0)),Io(i)}function Gx(i,l){l===0&&(l=Br()),i=rc(i,l),i!==null&&(hr(i,l),Io(i))}function AM(i){var l=i.memoizedState,f=0;l!==null&&(f=l.retryLane),Gx(i,f)}function xM(i,l){var f=0;switch(i.tag){case 13:var m=i.stateNode,v=i.memoizedState;v!==null&&(f=v.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),Gx(i,f)}function wM(i,l){return Ve(i,l)}var zh=null,_c=null,ev=!1,Vh=!1,tv=!1,el=0;function Io(i){i!==_c&&i.next===null&&(_c===null?zh=_c=i:_c=_c.next=i),Vh=!0,ev||(ev=!0,DM())}function Ed(i,l){if(!tv&&Vh){tv=!0;do for(var f=!1,m=zh;m!==null;){if(i!==0){var v=m.pendingLanes;if(v===0)var S=0;else{var N=m.suspendedLanes,U=m.pingedLanes;S=(1<<31-qe(42|i)+1)-1,S&=v&~(N&~U),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(f=!0,Qx(m,S))}else S=Gt,S=Te(m,m===Dn?S:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(S&3)===0||ut(m,S)||(f=!0,Qx(m,S));m=m.next}while(f);tv=!1}}function kM(){qx()}function qx(){Vh=ev=!1;var i=0;el!==0&&($M()&&(i=el),el=0);for(var l=je(),f=null,m=zh;m!==null;){var v=m.next,S=Wx(m,l);S===0?(m.next=null,f===null?zh=v:f.next=v,v===null&&(_c=f)):(f=m,(i!==0||(S&3)!==0)&&(Vh=!0)),m=v}Ed(i)}function Wx(i,l){for(var f=i.suspendedLanes,m=i.pingedLanes,v=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var N=31-qe(S),U=1<<N,X=v[N];X===-1?((U&f)===0||(U&m)!==0)&&(v[N]=nt(U,l)):X<=l&&(i.expiredLanes|=U),S&=~U}if(l=Dn,f=Gt,f=Te(i,i===l?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,f===0||i===l&&(dn===2||dn===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&De(m),i.callbackNode=null,i.callbackPriority=0;if((f&3)===0||ut(i,f)){if(l=f&-f,l===i.callbackPriority)return l;switch(m!==null&&De(m),ft(f)){case 2:case 8:f=Ze;break;case 32:f=Ge;break;case 268435456:f=It;break;default:f=Ge}return m=Yx.bind(null,i),f=Ve(f,m),i.callbackPriority=l,i.callbackNode=f,l}return m!==null&&m!==null&&De(m),i.callbackPriority=2,i.callbackNode=null,2}function Yx(i,l){if(Cr!==0&&Cr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(Hh()&&i.callbackNode!==f)return null;var m=Gt;return m=Te(i,i===Dn?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(Rx(i,m,l),Wx(i,je()),i.callbackNode!=null&&i.callbackNode===f?Yx.bind(null,i):null)}function Qx(i,l){if(Hh())return null;Rx(i,l,!0)}function DM(){BM(function(){(un&6)!==0?Ve(it,kM):qx()})}function nv(){return el===0&&(el=Bn()),el}function Kx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:th(""+i)}function Xx(i,l){var f=l.ownerDocument.createElement("input");return f.name=l.name,f.value=l.value,i.id&&f.setAttribute("form",i.id),l.parentNode.insertBefore(f,l),i=new FormData(i),f.parentNode.removeChild(f),i}function RM(i,l,f,m,v){if(l==="submit"&&f&&f.stateNode===v){var S=Kx((v[Me]||null).action),N=m.submitter;N&&(l=(l=N[Me]||null)?Kx(l.formAction):N.getAttribute("formAction"),l!==null&&(S=l,N=null));var U=new oh("action","action",null,m,v);i.push({event:U,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(el!==0){var X=N?Xx(v,N):new FormData(v);S1(f,{pending:!0,data:X,method:v.method,action:S},null,X)}}else typeof S=="function"&&(U.preventDefault(),X=N?Xx(v,N):new FormData(v),S1(f,{pending:!0,data:X,method:v.method,action:S},S,X))},currentTarget:v}]})}}for(var rv=0;rv<jy.length;rv++){var av=jy[rv],OM=av.toLowerCase(),IM=av[0].toUpperCase()+av.slice(1);po(OM,"on"+IM)}po(RC,"onAnimationEnd"),po(OC,"onAnimationIteration"),po(IC,"onAnimationStart"),po("dblclick","onDoubleClick"),po("focusin","onFocus"),po("focusout","onBlur"),po(Q6,"onTransitionRun"),po(K6,"onTransitionStart"),po(X6,"onTransitionCancel"),po(NC,"onTransitionEnd"),jr("onMouseEnter",["mouseout","mouseover"]),jr("onMouseLeave",["mouseout","mouseover"]),jr("onPointerEnter",["pointerout","pointerover"]),jr("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Td="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),NM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Td));function Zx(i,l){l=(l&4)!==0;for(var f=0;f<i.length;f++){var m=i[f],v=m.event;m=m.listeners;e:{var S=void 0;if(l)for(var N=m.length-1;0<=N;N--){var U=m[N],X=U.instance,ue=U.currentTarget;if(U=U.listener,X!==S&&v.isPropagationStopped())break e;S=U,v.currentTarget=ue;try{S(v)}catch(Ce){Oh(Ce)}v.currentTarget=null,S=X}else for(N=0;N<m.length;N++){if(U=m[N],X=U.instance,ue=U.currentTarget,U=U.listener,X!==S&&v.isPropagationStopped())break e;S=U,v.currentTarget=ue;try{S(v)}catch(Ce){Oh(Ce)}v.currentTarget=null,S=X}}}}function Bt(i,l){var f=l[ot];f===void 0&&(f=l[ot]=new Set);var m=i+"__bubble";f.has(m)||(Jx(l,i,2,!1),f.add(m))}function ov(i,l,f){var m=0;l&&(m|=4),Jx(f,i,m,l)}var Gh="_reactListening"+Math.random().toString(36).slice(2);function iv(i){if(!i[Gh]){i[Gh]=!0,yn.forEach(function(f){f!=="selectionchange"&&(NM.has(f)||ov(f,!1,i),ov(f,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Gh]||(l[Gh]=!0,ov("selectionchange",!1,l))}}function Jx(i,l,f,m){switch(_2(l)){case 2:var v=i$;break;case 8:v=s$;break;default:v=Ev}f=v.bind(null,l,f,i),v=void 0,!ky||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),m?v!==void 0?i.addEventListener(l,f,{capture:!0,passive:v}):i.addEventListener(l,f,!0):v!==void 0?i.addEventListener(l,f,{passive:v}):i.addEventListener(l,f,!1)}function sv(i,l,f,m,v){var S=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var N=m.tag;if(N===3||N===4){var U=m.stateNode.containerInfo;if(U===v)break;if(N===4)for(N=m.return;N!==null;){var X=N.tag;if((X===3||X===4)&&N.stateNode.containerInfo===v)return;N=N.return}for(;U!==null;){if(N=Nt(U),N===null)return;if(X=N.tag,X===5||X===6||X===26||X===27){m=S=N;continue e}U=U.parentNode}}m=m.return}iC(function(){var ue=S,Ce=xy(f),we=[];e:{var fe=LC.get(i);if(fe!==void 0){var he=oh,vt=i;switch(i){case"keypress":if(rh(f)===0)break e;case"keydown":case"keyup":he=w6;break;case"focusin":vt="focus",he=Iy;break;case"focusout":vt="blur",he=Iy;break;case"beforeblur":case"afterblur":he=Iy;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=cC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=m6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=R6;break;case RC:case OC:case IC:he=v6;break;case NC:he=I6;break;case"scroll":case"scrollend":he=p6;break;case"wheel":he=L6;break;case"copy":case"cut":case"paste":he=E6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=dC;break;case"toggle":case"beforetoggle":he=M6}var ht=(l&4)!==0,En=!ht&&(i==="scroll"||i==="scrollend"),oe=ht?fe!==null?fe+"Capture":null:fe;ht=[];for(var re=ue,se;re!==null;){var Ae=re;if(se=Ae.stateNode,Ae=Ae.tag,Ae!==5&&Ae!==26&&Ae!==27||se===null||oe===null||(Ae=Uu(re,oe),Ae!=null&&ht.push(Sd(re,Ae,se))),En)break;re=re.return}0<ht.length&&(fe=new he(fe,vt,null,f,Ce),we.push({event:fe,listeners:ht}))}}if((l&7)===0){e:{if(fe=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",fe&&f!==Ay&&(vt=f.relatedTarget||f.fromElement)&&(Nt(vt)||vt[Xe]))break e;if((he||fe)&&(fe=Ce.window===Ce?Ce:(fe=Ce.ownerDocument)?fe.defaultView||fe.parentWindow:window,he?(vt=f.relatedTarget||f.toElement,he=ue,vt=vt?Nt(vt):null,vt!==null&&(En=o(vt),ht=vt.tag,vt!==En||ht!==5&&ht!==27&&ht!==6)&&(vt=null)):(he=null,vt=ue),he!==vt)){if(ht=cC,Ae="onMouseLeave",oe="onMouseEnter",re="mouse",(i==="pointerout"||i==="pointerover")&&(ht=dC,Ae="onPointerLeave",oe="onPointerEnter",re="pointer"),En=he==null?fe:Nn(he),se=vt==null?fe:Nn(vt),fe=new ht(Ae,re+"leave",he,f,Ce),fe.target=En,fe.relatedTarget=se,Ae=null,Nt(Ce)===ue&&(ht=new ht(oe,re+"enter",vt,f,Ce),ht.target=se,ht.relatedTarget=En,Ae=ht),En=Ae,he&&vt)t:{for(ht=he,oe=vt,re=0,se=ht;se;se=Cc(se))re++;for(se=0,Ae=oe;Ae;Ae=Cc(Ae))se++;for(;0<re-se;)ht=Cc(ht),re--;for(;0<se-re;)oe=Cc(oe),se--;for(;re--;){if(ht===oe||oe!==null&&ht===oe.alternate)break t;ht=Cc(ht),oe=Cc(oe)}ht=null}else ht=null;he!==null&&e2(we,fe,he,ht,!1),vt!==null&&En!==null&&e2(we,En,vt,ht,!0)}}e:{if(fe=ue?Nn(ue):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var Ke=bC;else if(yC(fe))if(EC)Ke=q6;else{Ke=V6;var Mt=z6}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?ue&&Cy(ue.elementType)&&(Ke=bC):Ke=G6;if(Ke&&(Ke=Ke(i,ue))){vC(we,Ke,f,Ce);break e}Mt&&Mt(i,fe,ue),i==="focusout"&&ue&&fe.type==="number"&&ue.memoizedProps.value!=null&&_y(fe,"number",fe.value)}switch(Mt=ue?Nn(ue):window,i){case"focusin":(yC(Mt)||Mt.contentEditable==="true")&&(ec=Mt,Fy=ue,Yu=null);break;case"focusout":Yu=Fy=ec=null;break;case"mousedown":By=!0;break;case"contextmenu":case"mouseup":case"dragend":By=!1,kC(we,f,Ce);break;case"selectionchange":if(Y6)break;case"keydown":case"keyup":kC(we,f,Ce)}var st;if(Ly)e:{switch(i){case"compositionstart":var yt="onCompositionStart";break e;case"compositionend":yt="onCompositionEnd";break e;case"compositionupdate":yt="onCompositionUpdate";break e}yt=void 0}else Jl?mC(i,f)&&(yt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(yt="onCompositionStart");yt&&(fC&&f.locale!=="ko"&&(Jl||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&Jl&&(st=sC()):(Vi=Ce,Dy="value"in Vi?Vi.value:Vi.textContent,Jl=!0)),Mt=qh(ue,yt),0<Mt.length&&(yt=new uC(yt,i,null,f,Ce),we.push({event:yt,listeners:Mt}),st?yt.data=st:(st=gC(f),st!==null&&(yt.data=st)))),(st=F6?B6(i,f):U6(i,f))&&(yt=qh(ue,"onBeforeInput"),0<yt.length&&(Mt=new uC("onBeforeInput","beforeinput",null,f,Ce),we.push({event:Mt,listeners:yt}),Mt.data=st)),RM(we,i,ue,f,Ce)}Zx(we,l)})}function Sd(i,l,f){return{instance:i,listener:l,currentTarget:f}}function qh(i,l){for(var f=l+"Capture",m=[];i!==null;){var v=i,S=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||S===null||(v=Uu(i,f),v!=null&&m.unshift(Sd(i,v,S)),v=Uu(i,l),v!=null&&m.push(Sd(i,v,S))),i.tag===3)return m;i=i.return}return[]}function Cc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function e2(i,l,f,m,v){for(var S=l._reactName,N=[];f!==null&&f!==m;){var U=f,X=U.alternate,ue=U.stateNode;if(U=U.tag,X!==null&&X===m)break;U!==5&&U!==26&&U!==27||ue===null||(X=ue,v?(ue=Uu(f,S),ue!=null&&N.unshift(Sd(f,ue,X))):v||(ue=Uu(f,S),ue!=null&&N.push(Sd(f,ue,X)))),f=f.return}N.length!==0&&i.push({event:l,listeners:N})}var LM=/\r\n?/g,PM=/\u0000|\uFFFD/g;function t2(i){return(typeof i=="string"?i:""+i).replace(LM,`
|
|
50
|
+
`).replace(PM,"")}function n2(i,l){return l=t2(l),t2(i)===l}function Wh(){}function bn(i,l,f,m,v,S){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||Kl(i,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&Kl(i,""+m);break;case"className":ii(i,"class",m);break;case"tabIndex":ii(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(i,f,m);break;case"style":aC(i,m,S);break;case"data":if(l!=="object"){ii(i,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||f!=="href")){i.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=th(""+m),i.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(f==="formAction"?(l!=="input"&&bn(i,l,"name",v.name,v,null),bn(i,l,"formEncType",v.formEncType,v,null),bn(i,l,"formMethod",v.formMethod,v,null),bn(i,l,"formTarget",v.formTarget,v,null)):(bn(i,l,"encType",v.encType,v,null),bn(i,l,"method",v.method,v,null),bn(i,l,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=th(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=Wh);break;case"onScroll":m!=null&&Bt("scroll",i);break;case"onScrollEnd":m!=null&&Bt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}f=th(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,""+m):i.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,""):i.removeAttribute(f);break;case"capture":case"download":m===!0?i.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,m):i.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(f,m):i.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(f):i.setAttribute(f,m);break;case"popover":Bt("beforetoggle",i),Bt("toggle",i),oi(i,"popover",m);break;case"xlinkActuate":At(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":At(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":At(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":At(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":At(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":At(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":At(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":At(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":At(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":oi(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=d6.get(f)||f,oi(i,f,m))}}function lv(i,l,f,m,v,S){switch(f){case"style":aC(i,m,S);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"children":typeof m=="string"?Kl(i,m):(typeof m=="number"||typeof m=="bigint")&&Kl(i,""+m);break;case"onScroll":m!=null&&Bt("scroll",i);break;case"onScrollEnd":m!=null&&Bt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Wh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wo.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(v=f.endsWith("Capture"),l=f.slice(2,v?f.length-7:void 0),S=i[Me]||null,S=S!=null?S[f]:null,typeof S=="function"&&i.removeEventListener(l,S,v),typeof m=="function")){typeof S!="function"&&S!==null&&(f in i?i[f]=null:i.hasAttribute(f)&&i.removeAttribute(f)),i.addEventListener(l,m,v);break e}f in i?i[f]=m:m===!0?i.setAttribute(f,""):oi(i,f,m)}}}function Ar(i,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",i),Bt("load",i);var m=!1,v=!1,S;for(S in f)if(f.hasOwnProperty(S)){var N=f[S];if(N!=null)switch(S){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:bn(i,l,S,N,f,null)}}v&&bn(i,l,"srcSet",f.srcSet,f,null),m&&bn(i,l,"src",f.src,f,null);return;case"input":Bt("invalid",i);var U=S=N=v=null,X=null,ue=null;for(m in f)if(f.hasOwnProperty(m)){var Ce=f[m];if(Ce!=null)switch(m){case"name":v=Ce;break;case"type":N=Ce;break;case"checked":X=Ce;break;case"defaultChecked":ue=Ce;break;case"value":S=Ce;break;case"defaultValue":U=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,l));break;default:bn(i,l,m,Ce,f,null)}}eC(i,S,U,X,ue,N,v,!1),Jp(i);return;case"select":Bt("invalid",i),m=N=S=null;for(v in f)if(f.hasOwnProperty(v)&&(U=f[v],U!=null))switch(v){case"value":S=U;break;case"defaultValue":N=U;break;case"multiple":m=U;default:bn(i,l,v,U,f,null)}l=S,f=N,i.multiple=!!m,l!=null?Ql(i,!!m,l,!1):f!=null&&Ql(i,!!m,f,!0);return;case"textarea":Bt("invalid",i),S=v=m=null;for(N in f)if(f.hasOwnProperty(N)&&(U=f[N],U!=null))switch(N){case"value":m=U;break;case"defaultValue":v=U;break;case"children":S=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:bn(i,l,N,U,f,null)}nC(i,m,v,S),Jp(i);return;case"option":for(X in f)if(f.hasOwnProperty(X)&&(m=f[X],m!=null))switch(X){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:bn(i,l,X,m,f,null)}return;case"dialog":Bt("beforetoggle",i),Bt("toggle",i),Bt("cancel",i),Bt("close",i);break;case"iframe":case"object":Bt("load",i);break;case"video":case"audio":for(m=0;m<Td.length;m++)Bt(Td[m],i);break;case"image":Bt("error",i),Bt("load",i);break;case"details":Bt("toggle",i);break;case"embed":case"source":case"link":Bt("error",i),Bt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ue in f)if(f.hasOwnProperty(ue)&&(m=f[ue],m!=null))switch(ue){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:bn(i,l,ue,m,f,null)}return;default:if(Cy(l)){for(Ce in f)f.hasOwnProperty(Ce)&&(m=f[Ce],m!==void 0&&lv(i,l,Ce,m,f,void 0));return}}for(U in f)f.hasOwnProperty(U)&&(m=f[U],m!=null&&bn(i,l,U,m,f,null))}function MM(i,l,f,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,S=null,N=null,U=null,X=null,ue=null,Ce=null;for(he in f){var we=f[he];if(f.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":X=we;default:m.hasOwnProperty(he)||bn(i,l,he,null,m,we)}}for(var fe in m){var he=m[fe];if(we=f[fe],m.hasOwnProperty(fe)&&(he!=null||we!=null))switch(fe){case"type":S=he;break;case"name":v=he;break;case"checked":ue=he;break;case"defaultChecked":Ce=he;break;case"value":N=he;break;case"defaultValue":U=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,l));break;default:he!==we&&bn(i,l,fe,he,m,we)}}Sy(i,N,U,X,ue,Ce,S,v);return;case"select":he=N=U=fe=null;for(S in f)if(X=f[S],f.hasOwnProperty(S)&&X!=null)switch(S){case"value":break;case"multiple":he=X;default:m.hasOwnProperty(S)||bn(i,l,S,null,m,X)}for(v in m)if(S=m[v],X=f[v],m.hasOwnProperty(v)&&(S!=null||X!=null))switch(v){case"value":fe=S;break;case"defaultValue":U=S;break;case"multiple":N=S;default:S!==X&&bn(i,l,v,S,m,X)}l=U,f=N,m=he,fe!=null?Ql(i,!!f,fe,!1):!!m!=!!f&&(l!=null?Ql(i,!!f,l,!0):Ql(i,!!f,f?[]:"",!1));return;case"textarea":he=fe=null;for(U in f)if(v=f[U],f.hasOwnProperty(U)&&v!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:bn(i,l,U,null,m,v)}for(N in m)if(v=m[N],S=f[N],m.hasOwnProperty(N)&&(v!=null||S!=null))switch(N){case"value":fe=v;break;case"defaultValue":he=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==S&&bn(i,l,N,v,m,S)}tC(i,fe,he);return;case"option":for(var vt in f)if(fe=f[vt],f.hasOwnProperty(vt)&&fe!=null&&!m.hasOwnProperty(vt))switch(vt){case"selected":i.selected=!1;break;default:bn(i,l,vt,null,m,fe)}for(X in m)if(fe=m[X],he=f[X],m.hasOwnProperty(X)&&fe!==he&&(fe!=null||he!=null))switch(X){case"selected":i.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:bn(i,l,X,fe,m,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ht in f)fe=f[ht],f.hasOwnProperty(ht)&&fe!=null&&!m.hasOwnProperty(ht)&&bn(i,l,ht,null,m,fe);for(ue in m)if(fe=m[ue],he=f[ue],m.hasOwnProperty(ue)&&fe!==he&&(fe!=null||he!=null))switch(ue){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,l));break;default:bn(i,l,ue,fe,m,he)}return;default:if(Cy(l)){for(var En in f)fe=f[En],f.hasOwnProperty(En)&&fe!==void 0&&!m.hasOwnProperty(En)&&lv(i,l,En,void 0,m,fe);for(Ce in m)fe=m[Ce],he=f[Ce],!m.hasOwnProperty(Ce)||fe===he||fe===void 0&&he===void 0||lv(i,l,Ce,fe,m,he);return}}for(var oe in f)fe=f[oe],f.hasOwnProperty(oe)&&fe!=null&&!m.hasOwnProperty(oe)&&bn(i,l,oe,null,m,fe);for(we in m)fe=m[we],he=f[we],!m.hasOwnProperty(we)||fe===he||fe==null&&he==null||bn(i,l,we,fe,m,he)}var cv=null,uv=null;function Yh(i){return i.nodeType===9?i:i.ownerDocument}function r2(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function a2(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function dv(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var fv=null;function $M(){var i=window.event;return i&&i.type==="popstate"?i===fv?!1:(fv=i,!0):(fv=null,!1)}var o2=typeof setTimeout=="function"?setTimeout:void 0,FM=typeof clearTimeout=="function"?clearTimeout:void 0,i2=typeof Promise=="function"?Promise:void 0,BM=typeof queueMicrotask=="function"?queueMicrotask:typeof i2<"u"?function(i){return i2.resolve(null).then(i).catch(UM)}:o2;function UM(i){setTimeout(function(){throw i})}function is(i){return i==="head"}function s2(i,l){var f=l,m=0,v=0;do{var S=f.nextSibling;if(i.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(0<m&&8>m){f=m;var N=i.ownerDocument;if(f&1&&_d(N.documentElement),f&2&&_d(N.body),f&4)for(f=N.head,_d(f),N=f.firstChild;N;){var U=N.nextSibling,X=N.nodeName;N[et]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&N.rel.toLowerCase()==="stylesheet"||f.removeChild(N),N=U}}if(v===0){i.removeChild(S),Od(l);return}v--}else f==="$"||f==="$?"||f==="$!"?v++:m=f.charCodeAt(0)-48;else m=0;f=S}while(f);Od(l)}function pv(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":pv(f),rt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function jM(i,l,f,m){for(;i.nodeType===1;){var v=f;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[et])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(S=i.getAttribute("src"),(S!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var S=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=mo(i.nextSibling),i===null)break}return null}function HM(i,l,f){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=mo(i.nextSibling),i===null))return null;return i}function hv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function zM(i,l){var f=i.ownerDocument;if(i.data!=="$?"||f.readyState==="complete")l();else{var m=function(){l(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function mo(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return i}var mv=null;function l2(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(l===0)return i;l--}else f==="/$"&&l++}i=i.previousSibling}return null}function c2(i,l,f){switch(l=Yh(f),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function _d(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);rt(i)}var qa=new Map,u2=new Set;function Qh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ti=Z.d;Z.d={f:VM,r:GM,D:qM,C:WM,L:YM,m:QM,X:XM,S:KM,M:ZM};function VM(){var i=Ti.f(),l=Uh();return i||l}function GM(i){var l=rn(i);l!==null&&l.tag===5&&l.type==="form"?RA(l):Ti.r(i)}var Ac=typeof document>"u"?null:document;function d2(i,l,f){var m=Ac;if(m&&typeof l=="string"&&l){var v=Ba(l);v='link[rel="'+i+'"][href="'+v+'"]',typeof f=="string"&&(v+='[crossorigin="'+f+'"]'),u2.has(v)||(u2.add(v),i={rel:i,crossOrigin:f,href:l},m.querySelector(v)===null&&(l=m.createElement("link"),Ar(l,"link",i),Ct(l),m.head.appendChild(l)))}}function qM(i){Ti.D(i),d2("dns-prefetch",i,null)}function WM(i,l){Ti.C(i,l),d2("preconnect",i,l)}function YM(i,l,f){Ti.L(i,l,f);var m=Ac;if(m&&i&&l){var v='link[rel="preload"][as="'+Ba(l)+'"]';l==="image"&&f&&f.imageSrcSet?(v+='[imagesrcset="'+Ba(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(v+='[imagesizes="'+Ba(f.imageSizes)+'"]')):v+='[href="'+Ba(i)+'"]';var S=v;switch(l){case"style":S=xc(i);break;case"script":S=wc(i)}qa.has(S)||(i=p({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:i,as:l},f),qa.set(S,i),m.querySelector(v)!==null||l==="style"&&m.querySelector(Cd(S))||l==="script"&&m.querySelector(Ad(S))||(l=m.createElement("link"),Ar(l,"link",i),Ct(l),m.head.appendChild(l)))}}function QM(i,l){Ti.m(i,l);var f=Ac;if(f&&i){var m=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Ba(m)+'"][href="'+Ba(i)+'"]',S=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=wc(i)}if(!qa.has(S)&&(i=p({rel:"modulepreload",href:i},l),qa.set(S,i),f.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Ad(S)))return}m=f.createElement("link"),Ar(m,"link",i),Ct(m),f.head.appendChild(m)}}}function KM(i,l,f){Ti.S(i,l,f);var m=Ac;if(m&&i){var v=Hn(m).hoistableStyles,S=xc(i);l=l||"default";var N=v.get(S);if(!N){var U={loading:0,preload:null};if(N=m.querySelector(Cd(S)))U.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":l},f),(f=qa.get(S))&&gv(i,f);var X=N=m.createElement("link");Ct(X),Ar(X,"link",i),X._p=new Promise(function(ue,Ce){X.onload=ue,X.onerror=Ce}),X.addEventListener("load",function(){U.loading|=1}),X.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Kh(N,l,m)}N={type:"stylesheet",instance:N,count:1,state:U},v.set(S,N)}}}function XM(i,l){Ti.X(i,l);var f=Ac;if(f&&i){var m=Hn(f).hoistableScripts,v=wc(i),S=m.get(v);S||(S=f.querySelector(Ad(v)),S||(i=p({src:i,async:!0},l),(l=qa.get(v))&&yv(i,l),S=f.createElement("script"),Ct(S),Ar(S,"link",i),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(v,S))}}function ZM(i,l){Ti.M(i,l);var f=Ac;if(f&&i){var m=Hn(f).hoistableScripts,v=wc(i),S=m.get(v);S||(S=f.querySelector(Ad(v)),S||(i=p({src:i,async:!0,type:"module"},l),(l=qa.get(v))&&yv(i,l),S=f.createElement("script"),Ct(S),Ar(S,"link",i),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(v,S))}}function f2(i,l,f,m){var v=(v=de.current)?Qh(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=xc(f.href),f=Hn(v).hoistableStyles,m=f.get(l),m||(m={type:"style",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){i=xc(f.href);var S=Hn(v).hoistableStyles,N=S.get(i);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,N),(S=v.querySelector(Cd(i)))&&!S._p&&(N.instance=S,N.state.loading=5),qa.has(i)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},qa.set(i,f),S||JM(v,i,f,N.state))),l&&m===null)throw Error(r(528,""));return N}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=wc(f),f=Hn(v).hoistableScripts,m=f.get(l),m||(m={type:"script",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function xc(i){return'href="'+Ba(i)+'"'}function Cd(i){return'link[rel="stylesheet"]['+i+"]"}function p2(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function JM(i,l,f,m){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=i.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),Ar(l,"link",f),Ct(l),i.head.appendChild(l))}function wc(i){return'[src="'+Ba(i)+'"]'}function Ad(i){return"script[async]"+i}function h2(i,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=i.querySelector('style[data-href~="'+Ba(f.href)+'"]');if(m)return l.instance=m,Ct(m),m;var v=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),Ct(m),Ar(m,"style",v),Kh(m,f.precedence,i),l.instance=m;case"stylesheet":v=xc(f.href);var S=i.querySelector(Cd(v));if(S)return l.state.loading|=4,l.instance=S,Ct(S),S;m=p2(f),(v=qa.get(v))&&gv(m,v),S=(i.ownerDocument||i).createElement("link"),Ct(S);var N=S;return N._p=new Promise(function(U,X){N.onload=U,N.onerror=X}),Ar(S,"link",m),l.state.loading|=4,Kh(S,f.precedence,i),l.instance=S;case"script":return S=wc(f.src),(v=i.querySelector(Ad(S)))?(l.instance=v,Ct(v),v):(m=f,(v=qa.get(S))&&(m=p({},f),yv(m,v)),i=i.ownerDocument||i,v=i.createElement("script"),Ct(v),Ar(v,"link",m),i.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,Kh(m,f.precedence,i));return l.instance}function Kh(i,l,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,S=v,N=0;N<m.length;N++){var U=m[N];if(U.dataset.precedence===l)S=U;else if(S!==v)break}S?S.parentNode.insertBefore(i,S.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(i,l.firstChild))}function gv(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function yv(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var Xh=null;function m2(i,l,f){if(Xh===null){var m=new Map,v=Xh=new Map;v.set(f,m)}else v=Xh,m=v.get(f),m||(m=new Map,v.set(f,m));if(m.has(i))return m;for(m.set(i,null),f=f.getElementsByTagName(i),v=0;v<f.length;v++){var S=f[v];if(!(S[et]||S[ke]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var N=S.getAttribute(l)||"";N=i+N;var U=m.get(N);U?U.push(S):m.set(N,[S])}}return m}function g2(i,l,f){i=i.ownerDocument||i,i.head.insertBefore(f,l==="title"?i.querySelector("head > title"):null)}function e$(i,l,f){if(f===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function y2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var xd=null;function t$(){}function n$(i,l,f){if(xd===null)throw Error(r(475));var m=xd;if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=xc(f.href),S=i.querySelector(Cd(v));if(S){i=S._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Zh.bind(m),i.then(m,m)),l.state.loading|=4,l.instance=S,Ct(S);return}S=i.ownerDocument||i,f=p2(f),(v=qa.get(v))&&gv(f,v),S=S.createElement("link"),Ct(S);var N=S;N._p=new Promise(function(U,X){N.onload=U,N.onerror=X}),Ar(S,"link",f),l.instance=S}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(m.count++,l=Zh.bind(m),i.addEventListener("load",l),i.addEventListener("error",l))}}function r$(){if(xd===null)throw Error(r(475));var i=xd;return i.stylesheets&&i.count===0&&vv(i,i.stylesheets),0<i.count?function(l){var f=setTimeout(function(){if(i.stylesheets&&vv(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(f)}}:null}function Zh(){if(this.count--,this.count===0){if(this.stylesheets)vv(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Jh=null;function vv(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Jh=new Map,l.forEach(a$,i),Jh=null,Zh.call(i))}function a$(i,l){if(!(l.state.loading&4)){var f=Jh.get(i);if(f)var m=f.get(null);else{f=new Map,Jh.set(i,f);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<v.length;S++){var N=v[S];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(f.set(N.dataset.precedence,N),m=N)}m&&f.set(null,m)}v=l.instance,N=v.getAttribute("data-precedence"),S=f.get(N)||m,S===m&&f.set(null,v),f.set(N,v),this.count++,m=Zh.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),S?S.parentNode.insertBefore(v,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),l.state.loading|=4}}var wd={$$typeof:k,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function o$(i,l,f,m,v,S,N,U){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sr(0),this.hiddenUpdates=Sr(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=S,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function v2(i,l,f,m,v,S,N,U,X,ue,Ce,we){return i=new o$(i,l,f,N,U,X,ue,we),l=1,S===!0&&(l|=24),S=va(3,null,null,l),i.current=S,S.stateNode=i,l=Jy(),l.refCount++,i.pooledCache=l,l.refCount++,S.memoizedState={element:m,isDehydrated:f,cache:l},r1(S),i}function b2(i){return i?(i=ac,i):ac}function E2(i,l,f,m,v,S){v=b2(v),m.context===null?m.context=v:m.pendingContext=v,m=Wi(l),m.payload={element:f},S=S===void 0?null:S,S!==null&&(m.callback=S),f=Yi(i,m,l),f!==null&&(_a(f,i,l),rd(f,i,l))}function T2(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<l?f:l}}function bv(i,l){T2(i,l),(i=i.alternate)&&T2(i,l)}function S2(i){if(i.tag===13){var l=rc(i,67108864);l!==null&&_a(l,i,67108864),bv(i,67108864)}}var em=!0;function i$(i,l,f,m){var v=j.T;j.T=null;var S=Z.p;try{Z.p=2,Ev(i,l,f,m)}finally{Z.p=S,j.T=v}}function s$(i,l,f,m){var v=j.T;j.T=null;var S=Z.p;try{Z.p=8,Ev(i,l,f,m)}finally{Z.p=S,j.T=v}}function Ev(i,l,f,m){if(em){var v=Tv(m);if(v===null)sv(i,l,m,tm,f),C2(i,m);else if(c$(v,i,l,f,m))m.stopPropagation();else if(C2(i,m),l&4&&-1<l$.indexOf(i)){for(;v!==null;){var S=rn(v);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var N=Ee(S.pendingLanes);if(N!==0){var U=S;for(U.pendingLanes|=2,U.entangledLanes|=2;N;){var X=1<<31-qe(N);U.entanglements[1]|=X,N&=~X}Io(S),(un&6)===0&&(Fh=je()+500,Ed(0))}}break;case 13:U=rc(S,2),U!==null&&_a(U,S,2),Uh(),bv(S,2)}if(S=Tv(m),S===null&&sv(i,l,m,tm,f),S===v)break;v=S}v!==null&&m.stopPropagation()}else sv(i,l,m,null,f)}}function Tv(i){return i=xy(i),Sv(i)}var tm=null;function Sv(i){if(tm=null,i=Nt(i),i!==null){var l=o(i);if(l===null)i=null;else{var f=l.tag;if(f===13){if(i=s(l),i!==null)return i;i=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return tm=i,null}function _2(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(St()){case it:return 2;case Ze:return 8;case Ge:case Pe:return 32;case It:return 268435456;default:return 32}default:return 32}}var _v=!1,ss=null,ls=null,cs=null,kd=new Map,Dd=new Map,us=[],l$="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function C2(i,l){switch(i){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":cs=null;break;case"pointerover":case"pointerout":kd.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dd.delete(l.pointerId)}}function Rd(i,l,f,m,v,S){return i===null||i.nativeEvent!==S?(i={blockedOn:l,domEventName:f,eventSystemFlags:m,nativeEvent:S,targetContainers:[v]},l!==null&&(l=rn(l),l!==null&&S2(l)),i):(i.eventSystemFlags|=m,l=i.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),i)}function c$(i,l,f,m,v){switch(l){case"focusin":return ss=Rd(ss,i,l,f,m,v),!0;case"dragenter":return ls=Rd(ls,i,l,f,m,v),!0;case"mouseover":return cs=Rd(cs,i,l,f,m,v),!0;case"pointerover":var S=v.pointerId;return kd.set(S,Rd(kd.get(S)||null,i,l,f,m,v)),!0;case"gotpointercapture":return S=v.pointerId,Dd.set(S,Rd(Dd.get(S)||null,i,l,f,m,v)),!0}return!1}function A2(i){var l=Nt(i.target);if(l!==null){var f=o(l);if(f!==null){if(l=f.tag,l===13){if(l=s(f),l!==null){i.blockedOn=l,ie(i.priority,function(){if(f.tag===13){var m=Sa();m=Ur(m);var v=rc(f,m);v!==null&&_a(v,f,m),bv(f,m)}});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function nm(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var f=Tv(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);Ay=m,f.target.dispatchEvent(m),Ay=null}else return l=rn(f),l!==null&&S2(l),i.blockedOn=f,!1;l.shift()}return!0}function x2(i,l,f){nm(i)&&f.delete(l)}function u$(){_v=!1,ss!==null&&nm(ss)&&(ss=null),ls!==null&&nm(ls)&&(ls=null),cs!==null&&nm(cs)&&(cs=null),kd.forEach(x2),Dd.forEach(x2)}function rm(i,l){i.blockedOn===l&&(i.blockedOn=null,_v||(_v=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,u$)))}var am=null;function w2(i){am!==i&&(am=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){am===i&&(am=null);for(var l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],v=i[l+2];if(typeof m!="function"){if(Sv(m||f)===null)continue;break}var S=rn(f);S!==null&&(i.splice(l,3),l-=3,S1(S,{pending:!0,data:v,method:f.method,action:m},m,v))}}))}function Od(i){function l(X){return rm(X,i)}ss!==null&&rm(ss,i),ls!==null&&rm(ls,i),cs!==null&&rm(cs,i),kd.forEach(l),Dd.forEach(l);for(var f=0;f<us.length;f++){var m=us[f];m.blockedOn===i&&(m.blockedOn=null)}for(;0<us.length&&(f=us[0],f.blockedOn===null);)A2(f),f.blockedOn===null&&us.shift();if(f=(i.ownerDocument||i).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var v=f[m],S=f[m+1],N=v[Me]||null;if(typeof S=="function")N||w2(f);else if(N){var U=null;if(S&&S.hasAttribute("formAction")){if(v=S,N=S[Me]||null)U=N.formAction;else if(Sv(v)!==null)continue}else U=N.action;typeof U=="function"?f[m+1]=U:(f.splice(m,3),m-=3),w2(f)}}}function Cv(i){this._internalRoot=i}om.prototype.render=Cv.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=Sa();E2(f,m,i,l,null,null)},om.prototype.unmount=Cv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;E2(i.current,2,null,i,null,null),Uh(),l[Xe]=null}};function om(i){this._internalRoot=i}om.prototype.unstable_scheduleHydration=function(i){if(i){var l=J();i={blockedOn:null,target:i,priority:l};for(var f=0;f<us.length&&l!==0&&l<us[f].priority;f++);us.splice(f,0,i),f===0&&A2(i)}};var k2=t.version;if(k2!=="19.1.1")throw Error(r(527,k2,"19.1.1"));Z.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(l),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var d$={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var im=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!im.isDisabled&&im.supportsFiber)try{ce=im.inject(d$),me=im}catch{}}return Nd.createRoot=function(i,l){if(!a(i))throw Error(r(299));var f=!1,m="",v=VA,S=GA,N=qA,U=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(U=l.unstable_transitionCallbacks)),l=v2(i,1,!1,null,null,f,m,v,S,N,U,null),i[Xe]=l.current,iv(i),new Cv(l)},Nd.hydrateRoot=function(i,l,f){if(!a(i))throw Error(r(299));var m=!1,v="",S=VA,N=GA,U=qA,X=null,ue=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(v=f.identifierPrefix),f.onUncaughtError!==void 0&&(S=f.onUncaughtError),f.onCaughtError!==void 0&&(N=f.onCaughtError),f.onRecoverableError!==void 0&&(U=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(X=f.unstable_transitionCallbacks),f.formState!==void 0&&(ue=f.formState)),l=v2(i,1,!0,l,f??null,m,v,S,N,U,X,ue),l.context=b2(null),f=l.current,m=Sa(),m=Ur(m),v=Wi(m),v.callback=null,Yi(f,v,m),f=m,l.current.lanes=f,hr(l,f),Io(l),i[Xe]=l.current,iv(i),new om(l)},Nd.version="19.1.1",Nd}var F2;function T$(){if(F2)return wv.exports;F2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wv.exports=E$(),wv.exports}var S$=T$();/**
|
|
51
|
+
* react-router v7.9.1
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var JO=e=>{throw TypeError(e)},_$=(e,t,n)=>t.has(e)||JO("Cannot "+n),Ov=(e,t,n)=>(_$(e,t,"read from private field"),n?n.call(e):t.get(e)),C$=(e,t,n)=>t.has(e)?JO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B2="popstate";function A$(e={}){function t(r,a){let{pathname:o,search:s,hash:c}=r.location;return Bf("",{pathname:o,search:s,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Os(a)}return w$(t,n,null,e)}function Ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function x$(){return Math.random().toString(36).substring(2,10)}function U2(e,t){return{usr:e.state,key:e.key,idx:t}}function Bf(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ms(t):t,state:n,key:t&&t.key||r||x$()}}function Os({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function w$(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,c="POP",u=null,d=p();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function p(){return(s.state||{idx:null}).idx}function h(){c="POP";let T=p(),A=T==null?null:T-d;d=T,u&&u({action:c,location:E.location,delta:A})}function y(T,A){c="PUSH";let w=Bf(E.location,T,A);d=p()+1;let k=U2(w,d),O=E.createHref(w);try{s.pushState(k,"",O)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(O)}o&&u&&u({action:c,location:E.location,delta:1})}function g(T,A){c="REPLACE";let w=Bf(E.location,T,A);d=p();let k=U2(w,d),O=E.createHref(w);s.replaceState(k,"",O),o&&u&&u({action:c,location:E.location,delta:0})}function b(T){return eI(T)}let E={get action(){return c},get location(){return e(a,s)},listen(T){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(B2,h),u=T,()=>{a.removeEventListener(B2,h),u=null}},createHref(T){return t(a,T)},createURL:b,encodeLocation(T){let A=b(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:y,replace:g,go(T){return s.go(T)}};return E}function eI(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ut(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Os(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var lf,j2=class{constructor(e){if(C$(this,lf,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Ov(this,lf).has(e))return Ov(this,lf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Ov(this,lf).set(e,t)}};lf=new WeakMap;var k$=new Set(["lazy","caseSensitive","path","id","index","children"]);function D$(e){return k$.has(e)}var R$=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function O$(e){return R$.has(e)}function I$(e){return e.index===!0}function Uf(e,t,n=[],r={},a=!1){return e.map((o,s)=>{let c=[...n,String(s)],u=typeof o.id=="string"?o.id:c.join("-");if(Ut(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ut(a||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),I$(o)){let d={...o,...t(o),id:u};return r[u]=d,d}else{let d={...o,...t(o),id:u,children:void 0};return r[u]=d,o.children&&(d.children=Uf(o.children,t,c,r,a)),d}})}function bs(e,t,n="/"){return Mm(e,t,n,!1)}function Mm(e,t,n,r){let a=typeof t=="string"?Ms(t):t,o=io(a.pathname||"/",n);if(o==null)return null;let s=tI(e);L$(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let d=G$(o);c=z$(s[u],d,r)}return c}function N$(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function tI(e,t=[],n=[],r="",a=!1){let o=(s,c,u=a,d)=>{let p={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&u)return;Ut(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let h=Wo([r,p.relativePath]),y=n.concat(p);s.children&&s.children.length>0&&(Ut(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),tI(s.children,t,y,h,u)),!(s.path==null&&!s.index)&&t.push({path:h,score:j$(h,s.index),routesMeta:y})};return e.forEach((s,c)=>{if(s.path===""||!s.path?.includes("?"))o(s,c);else for(let u of nI(s.path))o(s,c,!0,u)}),t}function nI(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let s=nI(r.join("/")),c=[];return c.push(...s.map(u=>u===""?o:[o,u].join("/"))),a&&c.push(...s),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function L$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var P$=/^:[\w-]+$/,M$=3,$$=2,F$=1,B$=10,U$=-2,H2=e=>e==="*";function j$(e,t){let n=e.split("/"),r=n.length;return n.some(H2)&&(r+=U$),t&&(r+=$$),n.filter(a=>!H2(a)).reduce((a,o)=>a+(P$.test(o)?M$:o===""?F$:B$),r)}function H$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function z$(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",s=[];for(let c=0;c<r.length;++c){let u=r[c],d=c===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=dg({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),y=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=dg({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(a,h.params),s.push({params:a,pathname:Wo([o,h.pathname]),pathnameBase:Q$(Wo([o,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(o=Wo([o,h.pathnameBase]))}return s}function dg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=V$(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},y)=>{if(p==="*"){let b=c[y]||"";s=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const g=c[y];return h&&!g?d[p]=void 0:d[p]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function V$(e,t=!1,n=!0){lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function G$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function io(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function q$({basename:e,pathname:t}){return t==="/"?e:Wo([e,t])}function W$(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:Y$(n,t):t,search:K$(r),hash:X$(a)}}function Y$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Iv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function MT(e){let t=rI(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function $T(e,t,n,r=!1){let a;typeof e=="string"?a=Ms(e):(a={...e},Ut(!a.pathname||!a.pathname.includes("?"),Iv("?","pathname","search",a)),Ut(!a.pathname||!a.pathname.includes("#"),Iv("#","pathname","hash",a)),Ut(!a.search||!a.search.includes("#"),Iv("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,c;if(s==null)c=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}c=h>=0?t[h]:"/"}let u=W$(a,c),d=s&&s!=="/"&&s.endsWith("/"),p=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var Wo=e=>e.join("/").replace(/\/\/+/g,"/"),Q$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,X$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,fg=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function jf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var aI=["POST","PUT","PATCH","DELETE"],Z$=new Set(aI),J$=["GET",...aI],e7=new Set(J$),t7=new Set([301,302,303,307,308]),n7=new Set([307,308]),Nv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},r7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ld={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},a7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FT=e=>a7.test(e),o7=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),oI="remix-router-transitions",iI=Symbol("ResetLoaderData");function i7(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Ut(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||o7,o={},s=Uf(e.routes,a,void 0,o),c,u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let d=e.dataStrategy||d7,p={...e.future},h=null,y=new Set,g=null,b=null,E=null,T=e.hydrationData!=null,A=bs(s,e.history.location,u),w=!1,k=null,O;if(A==null&&!e.patchRoutesOnNavigation){let J=Ya(404,{pathname:e.history.location.pathname}),{matches:ie,route:pe}=sm(s);O=!0,A=ie,k={[pe.id]:J}}else if(A&&!e.hydrationData&&Ma(A,s,e.history.location.pathname).active&&(A=null),A)if(A.some(J=>J.route.lazy))O=!1;else if(!A.some(J=>J.route.loader))O=!0;else{let J=e.hydrationData?e.hydrationData.loaderData:null,ie=e.hydrationData?e.hydrationData.errors:null;if(ie){let pe=A.findIndex(ke=>ie[ke.route.id]!==void 0);O=A.slice(0,pe+1).every(ke=>!Xb(ke.route,J,ie))}else O=A.every(pe=>!Xb(pe.route,J,ie))}else{O=!1,A=[];let J=Ma(null,s,e.history.location.pathname);J.active&&J.matches&&(w=!0,A=J.matches)}let R,D={historyAction:e.history.action,location:e.history.location,matches:A,initialized:O,navigation:Nv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},F="POP",q=!1,z,$=!1,H=new Map,C=null,M=!1,B=!1,W=new Set,j=new Map,Z=0,Q=-1,ae=new Map,I=new Set,ne=new Map,ee=new Map,L=new Set,te=new Map,be,de=null;function xe(){if(h=e.history.listen(({action:J,location:ie,delta:pe})=>{if(be){be(),be=void 0;return}lr(te.size===0||pe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ke=nt({currentLocation:D.location,nextLocation:ie,historyAction:J});if(ke&&pe!=null){let Me=new Promise(Xe=>{be=Xe});e.history.go(pe*-1),ut(ke,{state:"blocked",location:ie,proceed(){ut(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),Me.then(()=>e.history.go(pe))},reset(){let Xe=new Map(D.blockers);Xe.set(ke,Ld),Ue({blockers:Xe})}});return}return De(J,ie)}),n){x7(t,H);let J=()=>w7(t,H);t.addEventListener("pagehide",J),C=()=>t.removeEventListener("pagehide",J)}return D.initialized||De("POP",D.location,{initialHydration:!0}),R}function ye(){h&&h(),C&&C(),y.clear(),z&&z.abort(),D.fetchers.forEach((J,ie)=>qe(ie)),D.blockers.forEach((J,ie)=>Te(ie))}function Oe(J){return y.add(J),()=>y.delete(J)}function Ue(J,ie={}){J.matches&&(J.matches=J.matches.map(Me=>{let Xe=o[Me.route.id],ot=Me.route;return ot.element!==Xe.element||ot.errorElement!==Xe.errorElement||ot.hydrateFallbackElement!==Xe.hydrateFallbackElement?{...Me,route:Xe}:Me})),D={...D,...J};let pe=[],ke=[];D.fetchers.forEach((Me,Xe)=>{Me.state==="idle"&&(L.has(Xe)?pe.push(Xe):ke.push(Xe))}),L.forEach(Me=>{!D.fetchers.has(Me)&&!j.has(Me)&&pe.push(Me)}),[...y].forEach(Me=>Me(D,{deletedFetchers:pe,viewTransitionOpts:ie.viewTransitionOpts,flushSync:ie.flushSync===!0})),pe.forEach(Me=>qe(Me)),ke.forEach(Me=>D.fetchers.delete(Me))}function Ie(J,ie,{flushSync:pe}={}){let ke=D.actionData!=null&&D.navigation.formMethod!=null&&ia(D.navigation.formMethod)&&D.navigation.state==="loading"&&J.state?._isRedirect!==!0,Me;ie.actionData?Object.keys(ie.actionData).length>0?Me=ie.actionData:Me=null:ke?Me=D.actionData:Me=null;let Xe=ie.loaderData?Z2(D.loaderData,ie.loaderData,ie.matches||[],ie.errors):D.loaderData,ot=D.blockers;ot.size>0&&(ot=new Map(ot),ot.forEach((et,rt)=>ot.set(rt,Ld)));let Je=M?!1:mr(J,ie.matches||D.matches),lt=q===!0||D.navigation.formMethod!=null&&ia(D.navigation.formMethod)&&J.state?._isRedirect!==!0;c&&(s=c,c=void 0),M||F==="POP"||(F==="PUSH"?e.history.push(J,J.state):F==="REPLACE"&&e.history.replace(J,J.state));let pt;if(F==="POP"){let et=H.get(D.location.pathname);et&&et.has(J.pathname)?pt={currentLocation:D.location,nextLocation:J}:H.has(J.pathname)&&(pt={currentLocation:J,nextLocation:D.location})}else if($){let et=H.get(D.location.pathname);et?et.add(J.pathname):(et=new Set([J.pathname]),H.set(D.location.pathname,et)),pt={currentLocation:D.location,nextLocation:J}}Ue({...ie,actionData:Me,loaderData:Xe,historyAction:F,location:J,initialized:!0,navigation:Nv,revalidation:"idle",restoreScrollPosition:Je,preventScrollReset:lt,blockers:ot},{viewTransitionOpts:pt,flushSync:pe===!0}),F="POP",q=!1,$=!1,M=!1,B=!1,de?.resolve(),de=null}async function Ye(J,ie){if(typeof J=="number"){e.history.go(J);return}let pe=Kb(D.location,D.matches,u,J,ie?.fromRouteId,ie?.relative),{path:ke,submission:Me,error:Xe}=z2(!1,pe,ie),ot=D.location,Je=Bf(D.location,ke,ie&&ie.state);Je={...Je,...e.history.encodeLocation(Je)};let lt=ie&&ie.replace!=null?ie.replace:void 0,pt="PUSH";lt===!0?pt="REPLACE":lt===!1||Me!=null&&ia(Me.formMethod)&&Me.formAction===D.location.pathname+D.location.search&&(pt="REPLACE");let et=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,rt=(ie&&ie.flushSync)===!0,Nt=nt({currentLocation:ot,nextLocation:Je,historyAction:pt});if(Nt){ut(Nt,{state:"blocked",location:Je,proceed(){ut(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),Ye(J,ie)},reset(){let rn=new Map(D.blockers);rn.set(Nt,Ld),Ue({blockers:rn})}});return}await De(pt,Je,{submission:Me,pendingError:Xe,preventScrollReset:et,replace:ie&&ie.replace,enableViewTransition:ie&&ie.viewTransition,flushSync:rt})}function Ve(){de||(de=k7()),bt(),Ue({revalidation:"loading"});let J=de.promise;return D.navigation.state==="submitting"?J:D.navigation.state==="idle"?(De(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),J):(De(F||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:$===!0}),J)}async function De(J,ie,pe){z&&z.abort(),z=null,F=J,M=(pe&&pe.startUninterruptedRevalidation)===!0,hr(D.location,D.matches),q=(pe&&pe.preventScrollReset)===!0,$=(pe&&pe.enableViewTransition)===!0;let ke=c||s,Me=pe&&pe.overrideNavigation,Xe=pe?.initialHydration&&D.matches&&D.matches.length>0&&!w?D.matches:bs(ke,ie,u),ot=(pe&&pe.flushSync)===!0;if(Xe&&D.initialized&&!B&&b7(D.location,ie)&&!(pe&&pe.submission&&ia(pe.submission.formMethod))){Ie(ie,{matches:Xe},{flushSync:ot});return}let Je=Ma(Xe,ke,ie.pathname);if(Je.active&&Je.matches&&(Xe=Je.matches),!Xe){let{error:Hn,notFoundMatches:Ct,route:yn}=Bn(ie.pathname);Ie(ie,{matches:Ct,loaderData:{},errors:{[yn.id]:Hn}},{flushSync:ot});return}z=new AbortController;let lt=Vc(e.history,ie,z.signal,pe&&pe.submission),pt=e.getContext?await e.getContext():new j2,et;if(pe&&pe.pendingError)et=[Es(Xe).route.id,{type:"error",error:pe.pendingError}];else if(pe&&pe.submission&&ia(pe.submission.formMethod)){let Hn=await Ot(lt,ie,pe.submission,Xe,pt,Je.active,pe&&pe.initialHydration===!0,{replace:pe.replace,flushSync:ot});if(Hn.shortCircuited)return;if(Hn.pendingActionResult){let[Ct,yn]=Hn.pendingActionResult;if(wa(yn)&&jf(yn.error)&&yn.error.status===404){z=null,Ie(ie,{matches:Hn.matches,loaderData:{},errors:{[Ct]:yn.error}});return}}Xe=Hn.matches||Xe,et=Hn.pendingActionResult,Me=Lv(ie,pe.submission),ot=!1,Je.active=!1,lt=Vc(e.history,lt.url,lt.signal)}let{shortCircuited:rt,matches:Nt,loaderData:rn,errors:Nn}=await Et(lt,ie,Xe,pt,Je.active,Me,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,ot,et);rt||(z=null,Ie(ie,{matches:Nt||Xe,...J2(et),loaderData:rn,errors:Nn}))}async function Ot(J,ie,pe,ke,Me,Xe,ot,Je={}){bt();let lt=C7(ie,pe);if(Ue({navigation:lt},{flushSync:Je.flushSync===!0}),Xe){let rt=await In(ke,ie.pathname,J.signal);if(rt.type==="aborted")return{shortCircuited:!0};if(rt.type==="error"){if(rt.partialMatches.length===0){let{matches:rn,route:Nn}=sm(s);return{matches:rn,pendingActionResult:[Nn.id,{type:"error",error:rt.error}]}}let Nt=Es(rt.partialMatches).route.id;return{matches:rt.partialMatches,pendingActionResult:[Nt,{type:"error",error:rt.error}]}}else if(rt.matches)ke=rt.matches;else{let{notFoundMatches:Nt,error:rn,route:Nn}=Bn(ie.pathname);return{matches:Nt,pendingActionResult:[Nn.id,{type:"error",error:rn}]}}}let pt,et=$m(ke,ie);if(!et.route.action&&!et.route.lazy)pt={type:"error",error:Ya(405,{method:J.method,pathname:ie.pathname,routeId:et.route.id})};else{let rt=Xc(a,o,J,ke,et,ot?[]:r,Me),Nt=await It(J,rt,Me,null);if(pt=Nt[et.route.id],!pt){for(let rn of ke)if(Nt[rn.route.id]){pt=Nt[rn.route.id];break}}if(J.signal.aborted)return{shortCircuited:!0}}if(pl(pt)){let rt;return Je&&Je.replace!=null?rt=Je.replace:rt=Q2(pt.response.headers.get("Location"),new URL(J.url),u)===D.location.pathname+D.location.search,await Pe(J,pt,!0,{submission:pe,replace:rt}),{shortCircuited:!0}}if(wa(pt)){let rt=Es(ke,et.route.id);return(Je&&Je.replace)!==!0&&(F="PUSH"),{matches:ke,pendingActionResult:[rt.route.id,pt,et.route.id]}}return{matches:ke,pendingActionResult:[et.route.id,pt]}}async function Et(J,ie,pe,ke,Me,Xe,ot,Je,lt,pt,et,rt){let Nt=Xe||Lv(ie,ot),rn=ot||Je||tw(Nt),Nn=!M&&!pt;if(Me){if(Nn){let nr=je(rt);Ue({navigation:Nt,...nr!==void 0?{actionData:nr}:{}},{flushSync:et})}let At=await In(pe,ie.pathname,J.signal);if(At.type==="aborted")return{shortCircuited:!0};if(At.type==="error"){if(At.partialMatches.length===0){let{matches:si,route:Jr}=sm(s);return{matches:si,loaderData:{},errors:{[Jr.id]:At.error}}}let nr=Es(At.partialMatches).route.id;return{matches:At.partialMatches,loaderData:{},errors:{[nr]:At.error}}}else if(At.matches)pe=At.matches;else{let{error:nr,notFoundMatches:si,route:Jr}=Bn(ie.pathname);return{matches:si,loaderData:{},errors:{[Jr.id]:nr}}}}let Hn=c||s,{dsMatches:Ct,revalidatingFetchers:yn}=V2(J,ke,a,o,e.history,D,pe,rn,ie,pt?[]:r,pt===!0,B,W,L,ne,I,Hn,u,e.patchRoutesOnNavigation!=null,rt);if(Q=++Z,!e.dataStrategy&&!Ct.some(At=>At.shouldLoad)&&!Ct.some(At=>At.route.middleware)&&yn.length===0){let At=Qt();return Ie(ie,{matches:pe,loaderData:{},errors:rt&&wa(rt[1])?{[rt[0]]:rt[1].error}:null,...J2(rt),...At?{fetchers:new Map(D.fetchers)}:{}},{flushSync:et}),{shortCircuited:!0}}if(Nn){let At={};if(!Me){At.navigation=Nt;let nr=je(rt);nr!==void 0&&(At.actionData=nr)}yn.length>0&&(At.fetchers=St(yn)),Ue(At,{flushSync:et})}yn.forEach(At=>{gt(At.key),At.controller&&j.set(At.key,At.controller)});let wo=()=>yn.forEach(At=>gt(At.key));z&&z.signal.addEventListener("abort",wo);let{loaderResults:ga,fetcherResults:jr}=await kn(Ct,yn,J,ke);if(J.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",wo),yn.forEach(At=>j.delete(At.key));let $a=lm(ga);if($a)return await Pe(J,$a.result,!0,{replace:lt}),{shortCircuited:!0};if($a=lm(jr),$a)return I.add($a.key),await Pe(J,$a.result,!0,{replace:lt}),{shortCircuited:!0};let{loaderData:Yl,errors:Hi}=X2(D,pe,ga,rt,yn,jr);pt&&D.errors&&(Hi={...D.errors,...Hi});let ai=Qt(),oi=We(Q),ii=ai||oi||yn.length>0;return{matches:pe,loaderData:Yl,errors:Hi,...ii?{fetchers:new Map(D.fetchers)}:{}}}function je(J){if(J&&!wa(J[1]))return{[J[0]]:J[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function St(J){return J.forEach(ie=>{let pe=D.fetchers.get(ie.key),ke=Pd(void 0,pe?pe.data:void 0);D.fetchers.set(ie.key,ke)}),new Map(D.fetchers)}async function it(J,ie,pe,ke){gt(J);let Me=(ke&&ke.flushSync)===!0,Xe=c||s,ot=Kb(D.location,D.matches,u,pe,ie,ke?.relative),Je=bs(Xe,ot,u),lt=Ma(Je,Xe,ot);if(lt.active&<.matches&&(Je=lt.matches),!Je){me(J,ie,Ya(404,{pathname:ot}),{flushSync:Me});return}let{path:pt,submission:et,error:rt}=z2(!0,ot,ke);if(rt){me(J,ie,rt,{flushSync:Me});return}let Nt=e.getContext?await e.getContext():new j2,rn=(ke&&ke.preventScrollReset)===!0;if(et&&ia(et.formMethod)){await Ze(J,ie,pt,Je,Nt,lt.active,Me,rn,et);return}ne.set(J,{routeId:ie,path:pt}),await Ge(J,ie,pt,Je,Nt,lt.active,Me,rn,et)}async function Ze(J,ie,pe,ke,Me,Xe,ot,Je,lt){bt(),ne.delete(J);let pt=D.fetchers.get(J);ce(J,A7(lt,pt),{flushSync:ot});let et=new AbortController,rt=Vc(e.history,pe,et.signal,lt);if(Xe){let Un=await In(ke,new URL(rt.url).pathname,rt.signal,J);if(Un.type==="aborted")return;if(Un.type==="error"){me(J,ie,Un.error,{flushSync:ot});return}else if(Un.matches)ke=Un.matches;else{me(J,ie,Ya(404,{pathname:pe}),{flushSync:ot});return}}let Nt=$m(ke,pe);if(!Nt.route.action&&!Nt.route.lazy){let Un=Ya(405,{method:lt.formMethod,pathname:pe,routeId:ie});me(J,ie,Un,{flushSync:ot});return}j.set(J,et);let rn=Z,Nn=Xc(a,o,rt,ke,Nt,r,Me),Ct=(await It(rt,Nn,Me,J))[Nt.route.id];if(rt.signal.aborted){j.get(J)===et&&j.delete(J);return}if(L.has(J)){if(pl(Ct)||wa(Ct)){ce(J,gs(void 0));return}}else{if(pl(Ct))if(j.delete(J),Q>rn){ce(J,gs(void 0));return}else return I.add(J),ce(J,Pd(lt)),Pe(rt,Ct,!1,{fetcherSubmission:lt,preventScrollReset:Je});if(wa(Ct)){me(J,ie,Ct.error);return}}let yn=D.navigation.location||D.location,wo=Vc(e.history,yn,et.signal),ga=c||s,jr=D.navigation.state!=="idle"?bs(ga,D.navigation.location,u):D.matches;Ut(jr,"Didn't find any matches after fetcher action");let $a=++Z;ae.set(J,$a);let Yl=Pd(lt,Ct.data);D.fetchers.set(J,Yl);let{dsMatches:Hi,revalidatingFetchers:ai}=V2(wo,Me,a,o,e.history,D,jr,lt,yn,r,!1,B,W,L,ne,I,ga,u,e.patchRoutesOnNavigation!=null,[Nt.route.id,Ct]);ai.filter(Un=>Un.key!==J).forEach(Un=>{let zi=Un.key,Xp=D.fetchers.get(zi),Zp=Pd(void 0,Xp?Xp.data:void 0);D.fetchers.set(zi,Zp),gt(zi),Un.controller&&j.set(zi,Un.controller)}),Ue({fetchers:new Map(D.fetchers)});let oi=()=>ai.forEach(Un=>gt(Un.key));et.signal.addEventListener("abort",oi);let{loaderResults:ii,fetcherResults:At}=await kn(Hi,ai,wo,Me);if(et.signal.aborted)return;if(et.signal.removeEventListener("abort",oi),ae.delete(J),j.delete(J),ai.forEach(Un=>j.delete(Un.key)),D.fetchers.has(J)){let Un=gs(Ct.data);D.fetchers.set(J,Un)}let nr=lm(ii);if(nr)return Pe(wo,nr.result,!1,{preventScrollReset:Je});if(nr=lm(At),nr)return I.add(nr.key),Pe(wo,nr.result,!1,{preventScrollReset:Je});let{loaderData:si,errors:Jr}=X2(D,jr,ii,void 0,ai,At);We($a),D.navigation.state==="loading"&&$a>Q?(Ut(F,"Expected pending action"),z&&z.abort(),Ie(D.navigation.location,{matches:jr,loaderData:si,errors:Jr,fetchers:new Map(D.fetchers)})):(Ue({errors:Jr,loaderData:Z2(D.loaderData,si,jr,Jr),fetchers:new Map(D.fetchers)}),B=!1)}async function Ge(J,ie,pe,ke,Me,Xe,ot,Je,lt){let pt=D.fetchers.get(J);ce(J,Pd(lt,pt?pt.data:void 0),{flushSync:ot});let et=new AbortController,rt=Vc(e.history,pe,et.signal);if(Xe){let yn=await In(ke,new URL(rt.url).pathname,rt.signal,J);if(yn.type==="aborted")return;if(yn.type==="error"){me(J,ie,yn.error,{flushSync:ot});return}else if(yn.matches)ke=yn.matches;else{me(J,ie,Ya(404,{pathname:pe}),{flushSync:ot});return}}let Nt=$m(ke,pe);j.set(J,et);let rn=Z,Nn=Xc(a,o,rt,ke,Nt,r,Me),Ct=(await It(rt,Nn,Me,J))[Nt.route.id];if(j.get(J)===et&&j.delete(J),!rt.signal.aborted){if(L.has(J)){ce(J,gs(void 0));return}if(pl(Ct))if(Q>rn){ce(J,gs(void 0));return}else{I.add(J),await Pe(rt,Ct,!1,{preventScrollReset:Je});return}if(wa(Ct)){me(J,ie,Ct.error);return}ce(J,gs(Ct.data))}}async function Pe(J,ie,pe,{submission:ke,fetcherSubmission:Me,preventScrollReset:Xe,replace:ot}={}){ie.response.headers.has("X-Remix-Revalidate")&&(B=!0);let Je=ie.response.headers.get("Location");Ut(Je,"Expected a Location header on the redirect Response"),Je=Q2(Je,new URL(J.url),u);let lt=Bf(D.location,Je,{_isRedirect:!0});if(n){let Nn=!1;if(ie.response.headers.has("X-Remix-Reload-Document"))Nn=!0;else if(FT(Je)){const Hn=eI(Je,!0);Nn=Hn.origin!==t.location.origin||io(Hn.pathname,u)==null}if(Nn){ot?t.location.replace(Je):t.location.assign(Je);return}}z=null;let pt=ot===!0||ie.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:et,formAction:rt,formEncType:Nt}=D.navigation;!ke&&!Me&&et&&rt&&Nt&&(ke=tw(D.navigation));let rn=ke||Me;if(n7.has(ie.response.status)&&rn&&ia(rn.formMethod))await De(pt,lt,{submission:{...rn,formAction:Je},preventScrollReset:Xe||q,enableViewTransition:pe?$:void 0});else{let Nn=Lv(lt,ke);await De(pt,lt,{overrideNavigation:Nn,fetcherSubmission:Me,preventScrollReset:Xe||q,enableViewTransition:pe?$:void 0})}}async function It(J,ie,pe,ke){let Me,Xe={};try{Me=await p7(d,J,ie,ke,pe,!1)}catch(ot){return ie.filter(Je=>Je.shouldLoad).forEach(Je=>{Xe[Je.route.id]={type:"error",error:ot}}),Xe}if(J.signal.aborted)return Xe;for(let[ot,Je]of Object.entries(Me))if(S7(Je)){let lt=Je.result;Xe[ot]={type:"redirect",response:y7(lt,J,ot,ie,u)}}else Xe[ot]=await g7(Je);return Xe}async function kn(J,ie,pe,ke){let Me=It(pe,J,ke,null),Xe=Promise.all(ie.map(async lt=>{if(lt.matches&<.match&<.request&<.controller){let et=(await It(lt.request,lt.matches,ke,lt.key))[lt.match.route.id];return{[lt.key]:et}}else return Promise.resolve({[lt.key]:{type:"error",error:Ya(404,{pathname:lt.path})}})})),ot=await Me,Je=(await Xe).reduce((lt,pt)=>Object.assign(lt,pt),{});return{loaderResults:ot,fetcherResults:Je}}function bt(){B=!0,ne.forEach((J,ie)=>{j.has(ie)&&W.add(ie),gt(ie)})}function ce(J,ie,pe={}){D.fetchers.set(J,ie),Ue({fetchers:new Map(D.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function me(J,ie,pe,ke={}){let Me=Es(D.matches,ie);qe(J),Ue({errors:{[Me.route.id]:pe},fetchers:new Map(D.fetchers)},{flushSync:(ke&&ke.flushSync)===!0})}function Be(J){return ee.set(J,(ee.get(J)||0)+1),L.has(J)&&L.delete(J),D.fetchers.get(J)||r7}function qe(J){let ie=D.fetchers.get(J);j.has(J)&&!(ie&&ie.state==="loading"&&ae.has(J))&>(J),ne.delete(J),ae.delete(J),I.delete(J),L.delete(J),W.delete(J),D.fetchers.delete(J)}function Qe(J){let ie=(ee.get(J)||0)-1;ie<=0?(ee.delete(J),L.add(J)):ee.set(J,ie),Ue({fetchers:new Map(D.fetchers)})}function gt(J){let ie=j.get(J);ie&&(ie.abort(),j.delete(J))}function cn(J){for(let ie of J){let pe=Be(ie),ke=gs(pe.data);D.fetchers.set(ie,ke)}}function Qt(){let J=[],ie=!1;for(let pe of I){let ke=D.fetchers.get(pe);Ut(ke,`Expected fetcher: ${pe}`),ke.state==="loading"&&(I.delete(pe),J.push(pe),ie=!0)}return cn(J),ie}function We(J){let ie=[];for(let[pe,ke]of ae)if(ke<J){let Me=D.fetchers.get(pe);Ut(Me,`Expected fetcher: ${pe}`),Me.state==="loading"&&(gt(pe),ae.delete(pe),ie.push(pe))}return cn(ie),ie.length>0}function Ee(J,ie){let pe=D.blockers.get(J)||Ld;return te.get(J)!==ie&&te.set(J,ie),pe}function Te(J){D.blockers.delete(J),te.delete(J)}function ut(J,ie){let pe=D.blockers.get(J)||Ld;Ut(pe.state==="unblocked"&&ie.state==="blocked"||pe.state==="blocked"&&ie.state==="blocked"||pe.state==="blocked"&&ie.state==="proceeding"||pe.state==="blocked"&&ie.state==="unblocked"||pe.state==="proceeding"&&ie.state==="unblocked",`Invalid blocker state transition: ${pe.state} -> ${ie.state}`);let ke=new Map(D.blockers);ke.set(J,ie),Ue({blockers:ke})}function nt({currentLocation:J,nextLocation:ie,historyAction:pe}){if(te.size===0)return;te.size>1&&lr(!1,"A router only supports one blocker at a time");let ke=Array.from(te.entries()),[Me,Xe]=ke[ke.length-1],ot=D.blockers.get(Me);if(!(ot&&ot.state==="proceeding")&&Xe({currentLocation:J,nextLocation:ie,historyAction:pe}))return Me}function Bn(J){let ie=Ya(404,{pathname:J}),pe=c||s,{matches:ke,route:Me}=sm(pe);return{notFoundMatches:ke,route:Me,error:ie}}function Br(J,ie,pe){if(g=J,E=ie,b=pe||null,!T&&D.navigation===Nv){T=!0;let ke=mr(D.location,D.matches);ke!=null&&Ue({restoreScrollPosition:ke})}return()=>{g=null,E=null,b=null}}function Sr(J,ie){return b&&b(J,ie.map(ke=>N$(ke,D.loaderData)))||J.key}function hr(J,ie){if(g&&E){let pe=Sr(J,ie);g[pe]=E()}}function mr(J,ie){if(g){let pe=Sr(J,ie),ke=g[pe];if(typeof ke=="number")return ke}return null}function Ma(J,ie,pe){if(e.patchRoutesOnNavigation)if(J){if(Object.keys(J[0].params).length>0)return{active:!0,matches:Mm(ie,pe,u,!0)}}else return{active:!0,matches:Mm(ie,pe,u,!0)||[]};return{active:!1,matches:null}}async function In(J,ie,pe,ke){if(!e.patchRoutesOnNavigation)return{type:"success",matches:J};let Me=J;for(;;){let Xe=c==null,ot=c||s,Je=o;try{await e.patchRoutesOnNavigation({signal:pe,path:ie,matches:Me,fetcherKey:ke,patch:(et,rt)=>{pe.aborted||G2(et,rt,ot,Je,a,!1)}})}catch(et){return{type:"error",error:et,partialMatches:Me}}finally{Xe&&!pe.aborted&&(s=[...s])}if(pe.aborted)return{type:"aborted"};let lt=bs(ot,ie,u);if(lt)return{type:"success",matches:lt};let pt=Mm(ot,ie,u,!0);if(!pt||Me.length===pt.length&&Me.every((et,rt)=>et.route.id===pt[rt].route.id))return{type:"success",matches:null};Me=pt}}function Ur(J){o={},c=Uf(J,a,void 0,o)}function ft(J,ie,pe=!1){let ke=c==null;G2(J,ie,c||s,o,a,pe),ke&&(s=[...s],Ue({}))}return R={get basename(){return u},get future(){return p},get state(){return D},get routes(){return s},get window(){return t},initialize:xe,subscribe:Oe,enableScrollRestoration:Br,navigate:Ye,fetch:it,revalidate:Ve,createHref:J=>e.history.createHref(J),encodeLocation:J=>e.history.encodeLocation(J),getFetcher:Be,deleteFetcher:Qe,dispose:ye,getBlocker:Ee,deleteBlocker:Te,patchRoutes:ft,_internalFetchControllers:j,_internalSetRoutes:Ur,_internalSetStateDoNotUseOrYouWillBreakYourApp(J){Ue(J)}},R}function s7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Kb(e,t,n,r,a,o){let s,c;if(a){s=[];for(let d of t)if(s.push(d),d.route.id===a){c=d;break}}else s=t,c=t[t.length-1];let u=$T(r||".",MT(s),io(e.pathname,n)||e.pathname,o==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&c){let d=BT(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let y=p.toString();u.search=y?`?${y}`:""}}return n!=="/"&&(u.pathname=q$({basename:n,pathname:u.pathname})),Os(u)}function z2(e,t,n){if(!n||!s7(n))return{path:t};if(n.formMethod&&!_7(n.formMethod))return{path:t,error:Ya(405,{method:n.formMethod})};let r=()=>({path:t,error:Ya(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),s=fI(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ia(o))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[g,b])=>`${y}${g}=${b}
|
|
60
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!ia(o))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}Ut(typeof FormData=="function","FormData is not available in this environment");let c,u;if(n.formData)c=Jb(n.formData),u=n.formData;else if(n.body instanceof FormData)c=Jb(n.body),u=n.body;else if(n.body instanceof URLSearchParams)c=n.body,u=K2(c);else if(n.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(n.body),u=K2(c)}catch{return r()}let d={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ia(d.formMethod))return{path:t,submission:d};let p=Ms(t);return e&&p.search&&BT(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Os(p),submission:d}}function V2(e,t,n,r,a,o,s,c,u,d,p,h,y,g,b,E,T,A,w,k){let O=k?wa(k[1])?k[1].error:k[1].data:void 0,R=a.createURL(o.location),D=a.createURL(u),F;if(p&&o.errors){let M=Object.keys(o.errors)[0];F=s.findIndex(B=>B.route.id===M)}else if(k&&wa(k[1])){let M=k[0];F=s.findIndex(B=>B.route.id===M)-1}let q=k?k[1].statusCode:void 0,z=q&&q>=400,$={currentUrl:R,currentParams:o.matches[0]?.params||{},nextUrl:D,nextParams:s[0].params,...c,actionResult:O,actionStatus:q},H=s.map((M,B)=>{let{route:W}=M,j=null;if(F!=null&&B>F?j=!1:W.lazy?j=!0:W.loader==null?j=!1:p?j=Xb(W,o.loaderData,o.errors):l7(o.loaderData,o.matches[B],M)&&(j=!0),j!==null)return Zb(n,r,e,M,d,t,j);let Z=z?!1:h||R.pathname+R.search===D.pathname+D.search||R.search!==D.search||c7(o.matches[B],M),Q={...$,defaultShouldRevalidate:Z},ae=pg(M,Q);return Zb(n,r,e,M,d,t,ae,Q)}),C=[];return b.forEach((M,B)=>{if(p||!s.some(ee=>ee.route.id===M.routeId)||g.has(B))return;let W=o.fetchers.get(B),j=W&&W.state!=="idle"&&W.data===void 0,Z=bs(T,M.path,A);if(!Z){if(w&&j)return;C.push({key:B,routeId:M.routeId,path:M.path,matches:null,match:null,request:null,controller:null});return}if(E.has(B))return;let Q=$m(Z,M.path),ae=new AbortController,I=Vc(a,M.path,ae.signal),ne=null;if(y.has(B))y.delete(B),ne=Xc(n,r,I,Z,Q,d,t);else if(j)h&&(ne=Xc(n,r,I,Z,Q,d,t));else{let ee={...$,defaultShouldRevalidate:z?!1:h};pg(Q,ee)&&(ne=Xc(n,r,I,Z,Q,d,t,ee))}ne&&C.push({key:B,routeId:M.routeId,path:M.path,matches:ne,match:Q,request:I,controller:ae})}),{dsMatches:H,revalidatingFetchers:C}}function Xb(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function l7(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function c7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function pg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function G2(e,t,n,r,a,o){let s;if(e){let d=r[e];Ut(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),s=d.children}else s=n;let c=[],u=[];if(t.forEach(d=>{let p=s.find(h=>sI(d,h));p?u.push({existingRoute:p,newRoute:d}):c.push(d)}),c.length>0){let d=Uf(c,a,[e||"_","patch",String(s?.length||"0")],r);s.push(...d)}if(o&&u.length>0)for(let d=0;d<u.length;d++){let{existingRoute:p,newRoute:h}=u[d],y=p,[g]=Uf([h],a,[],{},!0);Object.assign(y,{element:g.element?g.element:y.element,errorElement:g.errorElement?g.errorElement:y.errorElement,hydrateFallbackElement:g.hydrateFallbackElement?g.hydrateFallbackElement:y.hydrateFallbackElement})}}function sI(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>sI(n,a))):!1}var q2=new WeakMap,lI=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Ut(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let s=q2.get(a);s||(s={},q2.set(a,s));let c=s[e];if(c)return c;let u=(async()=>{let d=D$(e),h=a[e]!==void 0&&e!=="hasErrorBoundary";if(d)lr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)lr(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return s[e]=u,u},W2=new WeakMap;function u7(e,t,n,r,a){let o=n[e.id];if(Ut(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=W2.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Ut(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),g={};for(let b in y){let E=y[b];if(E===void 0)continue;let T=O$(b),w=o[b]!==void 0&&b!=="hasErrorBoundary";T?lr(!T,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):w?lr(!w,`Route "${o.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):g[b]=E}Object.assign(o,g),Object.assign(o,{...r(o),lazy:void 0})})();return W2.set(o,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),c=[],u;for(let p of s){if(a&&a.includes(p))continue;let h=lI({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(c.push(h),p===t&&(u=h))}let d=c.length>0?Promise.all(c).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function Y2(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{n[t[o].route.id]=a}),n}async function d7(e){return e.matches.some(t=>t.route.middleware)?cI(e,()=>Y2(e)):Y2(e)}function cI(e,t){return f7(e,t,r=>r,E7,n);function n(r,a,o){if(o)return Promise.resolve(Object.assign(o.value,{[a]:{type:"error",result:r}}));{let{matches:s}=e,c=Math.min(s.findIndex(d=>d.route.id===a)||0,s.findIndex(d=>d.unstable_shouldCallHandler())||0),u=Es(s,s[c].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function f7(e,t,n,r,a){let{matches:o,request:s,params:c,context:u}=e,d=o.flatMap(h=>h.route.middleware?h.route.middleware.map(y=>[h.route.id,y]):[]);return await uI({request:s,params:c,context:u},d,t,n,r,a)}async function uI(e,t,n,r,a,o,s=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let u=t[s];if(!u)return await n();let[d,p]=u,h,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await uI(e,t,n,r,a,o,s+1)},h.value}catch(g){return h={value:await o(g,d,h)},h.value}};try{let g=await p(e,y),b=g!=null?r(g):void 0;return a(b)?b:h?b??h.value:(h={value:await y()},h.value)}catch(g){return await o(g,d,h)}}function dI(e,t,n,r,a){let o=lI({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=u7(r.route,ia(n.method)?"action":"loader",t,e,a);return{middleware:o,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function Zb(e,t,n,r,a,o,s,c=null){let u=!1,d=dI(e,t,n,r,a);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return u=!0,c?typeof p=="boolean"?pg(r,{...c,defaultShouldRevalidate:p}):pg(r,c):s},resolve(p){return u||s||p&&!ia(n.method)&&(r.route.lazy||r.route.loader)?h7({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Xc(e,t,n,r,a,o,s,c=null){return r.map(u=>u.route.id!==a.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:dI(e,t,n,u,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Zb(e,t,n,u,o,s,!0,c))}async function p7(e,t,n,r,a,o){n.some(d=>d._lazyPromises?.middleware)&&await Promise.all(n.map(d=>d._lazyPromises?.middleware));let s={request:t,params:n[0].params,context:a,matches:n},u=await e({...s,fetcherKey:r,runClientMiddleware:d=>{let p=s;return cI(p,()=>d({...p,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return u}async function h7({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:o}){let s,c,u=ia(e.method),d=u?"action":"loader",p=h=>{let y,g=new Promise((T,A)=>y=A);c=()=>y(),e.signal.addEventListener("abort",c);let b=T=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):h({request:e,params:t.params,context:o},...T!==void 0?[T]:[]),E=(async()=>{try{return{type:"data",result:await(a?a(A=>b(A)):b())}}catch(T){return{type:"error",result:T}}})();return Promise.race([E,g])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let y,[g]=await Promise.all([p(h).catch(b=>{y=b}),n,r]);if(y!==void 0)throw y;s=g}else{await n;let y=u?t.route.action:t.route.loader;if(y)[s]=await Promise.all([p(y),r]);else if(d==="action"){let g=new URL(e.url),b=g.pathname+g.search;throw Ya(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(h)s=await p(h);else{let y=new URL(e.url),g=y.pathname+y.search;throw Ya(404,{pathname:g})}}catch(h){return{type:"error",result:h}}finally{c&&e.signal.removeEventListener("abort",c)}return s}async function m7(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function g7(e){let{result:t,type:n}=e;if(pI(t)){let r;try{r=await m7(t)}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new fg(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?ew(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new fg(t.init?.status||500,void 0,t.data),statusCode:jf(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:jf(t)?t.status:void 0}:ew(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function y7(e,t,n,r,a){let o=e.headers.get("Location");if(Ut(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!FT(o)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=Kb(new URL(t.url),s,a,o),e.headers.set("Location",o)}return e}function Q2(e,t,n){if(FT(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=io(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Vc(e,t,n,r){let a=e.createURL(fI(t)).toString(),o={signal:n};if(r&&ia(r.formMethod)){let{formMethod:s,formEncType:c}=r;o.method=s.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(r.json)):c==="text/plain"?o.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?o.body=Jb(r.formData):o.body=r.formData}return new Request(a,o)}function Jb(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function K2(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function v7(e,t,n,r=!1,a=!1){let o={},s=null,c,u=!1,d={},p=n&&wa(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,g=t[y];if(Ut(!pl(g),"Cannot handle redirect results in processLoaderData"),wa(g)){let b=g.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},a)s[y]=b;else{let E=Es(e,y);s[E.route.id]==null&&(s[E.route.id]=b)}r||(o[y]=iI),u||(u=!0,c=jf(g.error)?g.error.status:500),g.headers&&(d[y]=g.headers)}else o[y]=g.data,g.statusCode&&g.statusCode!==200&&!u&&(c=g.statusCode),g.headers&&(d[y]=g.headers)}),p!==void 0&&n&&(s={[n[0]]:p},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:s,statusCode:c||200,loaderHeaders:d}}function X2(e,t,n,r,a,o){let{loaderData:s,errors:c}=v7(t,n,r);return a.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:p,controller:h}=u;if(h&&h.signal.aborted)return;let y=o[d];if(Ut(y,"Did not find corresponding fetcher result"),wa(y)){let g=Es(e.matches,p?.route.id);c&&c[g.route.id]||(c={...c,[g.route.id]:y.error}),e.fetchers.delete(d)}else if(pl(y))Ut(!1,"Unhandled fetcher revalidation redirect");else{let g=gs(y.data);e.fetchers.set(d,g)}}),{loaderData:s,errors:c}}function Z2(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==iI).reduce((o,[s,c])=>(o[s]=c,o),{});for(let o of n){let s=o.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&o.route.loader&&(a[s]=e[s]),r&&r.hasOwnProperty(s))break}return a}function J2(e){return e?wa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Es(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function sm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ya(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",c=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new fg(e||500,s,new Error(c),!0)}function lm(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(pl(a))return{key:r,result:a}}}function fI(e){let t=typeof e=="string"?Ms(e):e;return Os({...t,hash:""})}function b7(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function E7(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&T7(n))}function T7(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function S7(e){return pI(e.result)&&t7.has(e.result.status)}function wa(e){return e.type==="error"}function pl(e){return(e&&e.type)==="redirect"}function ew(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function pI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _7(e){return e7.has(e.toUpperCase())}function ia(e){return Z$.has(e.toUpperCase())}function BT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $m(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&BT(n||""))return e[e.length-1];let r=rI(e);return r[r.length-1]}function tw(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:s}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Lv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function C7(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Pd(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function A7(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function gs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function x7(e,t){try{let n=e.sessionStorage.getItem(oI);if(n){let r=JSON.parse(n);for(let[a,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function w7(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(oI,JSON.stringify(n))}catch(r){lr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function k7(){let e,t,n=new Promise((r,a)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{a(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var jl=x.createContext(null);jl.displayName="DataRouter";var vp=x.createContext(null);vp.displayName="DataRouterState";x.createContext(!1);var UT=x.createContext({isTransitioning:!1});UT.displayName="ViewTransition";var hI=x.createContext(new Map);hI.displayName="Fetchers";var D7=x.createContext(null);D7.displayName="Await";var Jo=x.createContext(null);Jo.displayName="Navigation";var n0=x.createContext(null);n0.displayName="Location";var _o=x.createContext({outlet:null,matches:[],isDataRoute:!1});_o.displayName="Route";var jT=x.createContext(null);jT.displayName="RouteError";function R7(e,{relative:t}={}){Ut(bp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=x.useContext(Jo),{hash:a,pathname:o,search:s}=Ep(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Wo([n,o])),r.createHref({pathname:c,search:s,hash:a})}function bp(){return x.useContext(n0)!=null}function Hl(){return Ut(bp(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(n0).location}var mI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gI(e){x.useContext(Jo).static||x.useLayoutEffect(e)}function O7(){let{isDataRoute:e}=x.useContext(_o);return e?q7():I7()}function I7(){Ut(bp(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(jl),{basename:t,navigator:n}=x.useContext(Jo),{matches:r}=x.useContext(_o),{pathname:a}=Hl(),o=JSON.stringify(MT(r)),s=x.useRef(!1);return gI(()=>{s.current=!0}),x.useCallback((u,d={})=>{if(lr(s.current,mI),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=$T(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Wo([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,o,a,e])}var N7=x.createContext(null);function L7(e){let t=x.useContext(_o).outlet;return t&&x.createElement(N7.Provider,{value:e},t)}function qge(){let{matches:e}=x.useContext(_o),t=e[e.length-1];return t?t.params:{}}function Ep(e,{relative:t}={}){let{matches:n}=x.useContext(_o),{pathname:r}=Hl(),a=JSON.stringify(MT(n));return x.useMemo(()=>$T(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function P7(e,t,n,r,a){Ut(bp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=x.useContext(Jo),{matches:s}=x.useContext(_o),c=s[s.length-1],u=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",h=c&&c.route;{let w=h&&h.path||"";yI(d,!h||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
61
|
+
|
|
62
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let y=Hl(),g;g=y;let b=g.pathname||"/",E=b;if(p!=="/"){let w=p.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(w.length).join("/")}let T=bs(e,{pathname:E});return lr(h||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),lr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),U7(T&&T.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:Wo([p,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:Wo([p,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r,a)}function M7(){let e=G7(),t=jf(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:o},"ErrorBoundary")," or"," ",x.createElement("code",{style:o},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:a},n):null,s)}var $7=x.createElement(M7,null),F7=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?x.createElement(_o.Provider,{value:this.props.routeContext},x.createElement(jT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function B7({routeContext:e,match:t,children:n}){let r=x.useContext(jl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(_o.Provider,{value:e},n)}function U7(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let d=o.findIndex(p=>p.route.id&&s?.[p.route.id]!==void 0);Ut(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n)for(let d=0;d<o.length;d++){let p=o[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:h,errors:y}=n,g=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||g){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,p,h)=>{let y,g=!1,b=null,E=null;n&&(y=s&&p.route.id?s[p.route.id]:void 0,b=p.route.errorElement||$7,c&&(u<0&&h===0?(yI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,E=null):u===h&&(g=!0,E=p.route.hydrateFallbackElement||null)));let T=t.concat(o.slice(0,h+1)),A=()=>{let w;return y?w=b:g?w=E:p.route.Component?w=x.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,x.createElement(B7,{match:p,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?x.createElement(F7,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:A(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:r}):A()},null)}function HT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j7(e){let t=x.useContext(jl);return Ut(t,HT(e)),t}function H7(e){let t=x.useContext(vp);return Ut(t,HT(e)),t}function z7(e){let t=x.useContext(_o);return Ut(t,HT(e)),t}function zT(e){let t=z7(e),n=t.matches[t.matches.length-1];return Ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function V7(){return zT("useRouteId")}function G7(){let e=x.useContext(jT),t=H7("useRouteError"),n=zT("useRouteError");return e!==void 0?e:t.errors?.[n]}function q7(){let{router:e}=j7("useNavigate"),t=zT("useNavigate"),n=x.useRef(!1);return gI(()=>{n.current=!0}),x.useCallback(async(a,o={})=>{lr(n.current,mI),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var nw={};function yI(e,t,n){!t&&!nw[e]&&(nw[e]=!0,lr(!1,n))}var rw={};function aw(e,t){!e&&!rw[t]&&(rw[t]=!0,console.warn(t))}function W7(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&lr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:x.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&lr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&lr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Y7=["HydrateFallback","hydrateFallbackElement"],Q7=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function K7({router:e,flushSync:t,unstable_onError:n}){let[r,a]=x.useState(e.state),[o,s]=x.useState(),[c,u]=x.useState({isTransitioning:!1}),[d,p]=x.useState(),[h,y]=x.useState(),[g,b]=x.useState(),E=x.useRef(new Map),T=x.useCallback(R=>{a(D=>(R.errors&&n&&Object.entries(R.errors).forEach(([F,q])=>{D.errors?.[F]!==q&&n(q)}),R))},[n]),A=x.useCallback((R,{deletedFetchers:D,flushSync:F,viewTransitionOpts:q})=>{R.fetchers.forEach(($,H)=>{$.data!==void 0&&E.current.set(H,$.data)}),D.forEach($=>E.current.delete($)),aw(F===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(aw(q==null||z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!q||!z){t&&F?t(()=>T(R)):x.startTransition(()=>T(R));return}if(t&&F){t(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let $=e.window.document.startViewTransition(()=>{t(()=>T(R))});$.finished.finally(()=>{t(()=>{p(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),t(()=>y($));return}h?(d&&d.resolve(),h.skipTransition(),b({state:R,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(s(R),u({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[e.window,t,h,d,T]);x.useLayoutEffect(()=>e.subscribe(A),[e,A]),x.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new Q7)},[c]),x.useEffect(()=>{if(d&&o&&e.window){let R=o,D=d.promise,F=e.window.document.startViewTransition(async()=>{x.startTransition(()=>T(R)),await D});F.finished.finally(()=>{p(void 0),y(void 0),s(void 0),u({isTransitioning:!1})}),y(F)}},[o,d,e.window,T]),x.useEffect(()=>{d&&o&&r.location.key===o.location.key&&d.resolve()},[d,h,r.location,o]),x.useEffect(()=>{!c.isTransitioning&&g&&(s(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),b(void 0))},[c.isTransitioning,g]);let w=x.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:R=>e.navigate(R),push:(R,D,F)=>e.navigate(R,{state:D,preventScrollReset:F?.preventScrollReset}),replace:(R,D,F)=>e.navigate(R,{replace:!0,state:D,preventScrollReset:F?.preventScrollReset})}),[e]),k=e.basename||"/",O=x.useMemo(()=>({router:e,navigator:w,static:!1,basename:k,unstable_onError:n}),[e,w,k,n]);return x.createElement(x.Fragment,null,x.createElement(jl.Provider,{value:O},x.createElement(vp.Provider,{value:r},x.createElement(hI.Provider,{value:E.current},x.createElement(UT.Provider,{value:c},x.createElement(J7,{basename:k,location:r.location,navigationType:r.historyAction,navigator:w},x.createElement(X7,{routes:e.routes,future:e.future,state:r,unstable_onError:n})))))),null)}var X7=x.memo(Z7);function Z7({routes:e,future:t,state:n,unstable_onError:r}){return P7(e,void 0,n,r,t)}function Wge(e){return L7(e.context)}function J7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Ut(!bp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:s,navigator:a,static:o,future:{}}),[s,a,o]);typeof n=="string"&&(n=Ms(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:y="default"}=n,g=x.useMemo(()=>{let b=io(u,s);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:y},navigationType:r}},[s,u,d,p,h,y,r]);return lr(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:x.createElement(Jo.Provider,{value:c},x.createElement(n0.Provider,{children:t,value:g}))}var Fm="get",Bm="application/x-www-form-urlencoded";function r0(e){return e!=null&&typeof e.tagName=="string"}function e8(e){return r0(e)&&e.tagName.toLowerCase()==="button"}function t8(e){return r0(e)&&e.tagName.toLowerCase()==="form"}function n8(e){return r0(e)&&e.tagName.toLowerCase()==="input"}function r8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function a8(e,t){return e.button===0&&(!t||t==="_self")&&!r8(e)}var cm=null;function o8(){if(cm===null)try{new FormData(document.createElement("form"),0),cm=!1}catch{cm=!0}return cm}var i8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pv(e){return e!=null&&!i8.has(e)?(lr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bm}"`),null):e}function s8(e,t){let n,r,a,o,s;if(t8(e)){let c=e.getAttribute("action");r=c?io(c,t):null,n=e.getAttribute("method")||Fm,a=Pv(e.getAttribute("enctype"))||Bm,o=new FormData(e)}else if(e8(e)||n8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(r=u?io(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Fm,a=Pv(e.getAttribute("formenctype"))||Pv(c.getAttribute("enctype"))||Bm,o=new FormData(c,e),!o8()){let{name:d,type:p,value:h}=e;if(p==="image"){let y=d?`${d}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else d&&o.append(d,h)}}else{if(r0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fm,r=null,a=Bm,s=e}return o&&a==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function VT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function l8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&io(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function c8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function d8(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let s=await c8(o,n);return s.links?s.links():[]}return[]}));return m8(r.flat(1).filter(u8).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ow(e,t,n,r,a,o){let s=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,c=(u,d)=>n[d].pathname!==u.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==u.params["*"];return o==="assets"?t.filter((u,d)=>s(u,d)||c(u,d)):o==="data"?t.filter((u,d)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(s(u,d)||c(u,d))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function f8(e,t,{includeHydrateFallback:n}={}){return p8(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function p8(e){return[...new Set(e)]}function h8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function m8(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(h8(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function vI(){let e=x.useContext(jl);return VT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function g8(){let e=x.useContext(vp);return VT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var GT=x.createContext(void 0);GT.displayName="FrameworkContext";function bI(){let e=x.useContext(GT);return VT(e,"You must render this element inside a <HydratedRouter> element"),e}function y8(e,t){let n=x.useContext(GT),[r,a]=x.useState(!1),[o,s]=x.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,y=x.useRef(null);x.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let E=A=>{A.forEach(w=>{s(w.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return y.current&&T.observe(y.current),()=>{T.disconnect()}}},[e]),x.useEffect(()=>{if(r){let E=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(E)}}},[r]);let g=()=>{a(!0)},b=()=>{a(!1),s(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:Md(c,g),onBlur:Md(u,b),onMouseEnter:Md(d,g),onMouseLeave:Md(p,b),onTouchStart:Md(h,g)}]:[!1,y,{}]}function Md(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function v8({page:e,...t}){let{router:n}=vI(),r=x.useMemo(()=>bs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?x.createElement(E8,{page:e,matches:r,...t}):null}function b8(e){let{manifest:t,routeModules:n}=bI(),[r,a]=x.useState([]);return x.useEffect(()=>{let o=!1;return d8(e,t,n).then(s=>{o||a(s)}),()=>{o=!0}},[e,t,n]),r}function E8({page:e,matches:t,...n}){let r=Hl(),{manifest:a,routeModules:o}=bI(),{basename:s}=vI(),{loaderData:c,matches:u}=g8(),d=x.useMemo(()=>ow(e,t,u,a,r,"data"),[e,t,u,a,r]),p=x.useMemo(()=>ow(e,t,u,a,r,"assets"),[e,t,u,a,r]),h=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,E=!1;if(t.forEach(A=>{let w=a.routes[A.route.id];!w||!w.hasLoader||(!d.some(k=>k.route.id===A.route.id)&&A.route.id in c&&o[A.route.id]?.shouldRevalidate||w.hasClientLoader?E=!0:b.add(A.route.id))}),b.size===0)return[];let T=l8(e,s,"data");return E&&b.size>0&&T.searchParams.set("_routes",t.filter(A=>b.has(A.route.id)).map(A=>A.route.id).join(",")),[T.pathname+T.search]},[s,c,r,a,d,t,e,o]),y=x.useMemo(()=>f8(p,a),[p,a]),g=b8(p);return x.createElement(x.Fragment,null,h.map(b=>x.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),y.map(b=>x.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:E})=>x.createElement("link",{key:b,nonce:n.nonce,...E})))}function T8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var EI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{EI&&(window.__reactRouterVersion="7.9.1")}catch{}function S8(e,t){return i7({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:A$({window:t?.window}),hydrationData:_8(),routes:e,mapRouteProperties:W7,hydrationRouteProperties:Y7,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function _8(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:C8(e.errors)}),e}function C8(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new fg(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let s=new o(a.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(a.message);o.stack="",n[r]=o}}else n[r]=a;return n}var TI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SI=x.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:s,state:c,target:u,to:d,preventScrollReset:p,viewTransition:h,...y},g){let{basename:b}=x.useContext(Jo),E=typeof d=="string"&&TI.test(d),T,A=!1;if(typeof d=="string"&&E&&(T=d,EI))try{let z=new URL(window.location.href),$=d.startsWith("//")?new URL(z.protocol+d):new URL(d),H=io($.pathname,b);$.origin===z.origin&&H!=null?d=H+$.search+$.hash:A=!0}catch{lr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=R7(d,{relative:a}),[k,O,R]=y8(r,y),D=k8(d,{replace:s,state:c,target:u,preventScrollReset:p,relative:a,viewTransition:h});function F(z){t&&t(z),z.defaultPrevented||D(z)}let q=x.createElement("a",{...y,...R,href:T||w,onClick:A||o?t:F,ref:T8(g,O),target:u,"data-discover":!E&&n==="render"?"true":void 0});return k&&!E?x.createElement(x.Fragment,null,q,x.createElement(v8,{page:w})):q});SI.displayName="Link";var A8=x.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:s,viewTransition:c,children:u,...d},p){let h=Ep(s,{relative:d.relative}),y=Hl(),g=x.useContext(vp),{navigator:b,basename:E}=x.useContext(Jo),T=g!=null&&N8(h)&&c===!0,A=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,w=y.pathname,k=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(w=w.toLowerCase(),k=k?k.toLowerCase():null,A=A.toLowerCase()),k&&E&&(k=io(k,E)||k);const O=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let R=w===A||!a&&w.startsWith(A)&&w.charAt(O)==="/",D=k!=null&&(k===A||!a&&k.startsWith(A)&&k.charAt(A.length)==="/"),F={isActive:R,isPending:D,isTransitioning:T},q=R?t:void 0,z;typeof r=="function"?z=r(F):z=[r,R?"active":null,D?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let $=typeof o=="function"?o(F):o;return x.createElement(SI,{...d,"aria-current":q,className:z,ref:p,style:$,to:s,viewTransition:c},typeof u=="function"?u(F):u)});A8.displayName="NavLink";var x8=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=Fm,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...y},g)=>{let b=O8(),E=I8(c,{relative:d}),T=s.toLowerCase()==="get"?"get":"post",A=typeof c=="string"&&TI.test(c),w=k=>{if(u&&u(k),k.defaultPrevented)return;k.preventDefault();let O=k.nativeEvent.submitter,R=O?.getAttribute("formmethod")||s;b(O||k.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:o,relative:d,preventScrollReset:p,viewTransition:h})};return x.createElement("form",{ref:g,method:T,action:E,onSubmit:r?u:w,...y,"data-discover":!A&&e==="render"?"true":void 0})});x8.displayName="Form";function w8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _I(e){let t=x.useContext(jl);return Ut(t,w8(e)),t}function k8(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:s}={}){let c=O7(),u=Hl(),d=Ep(e,{relative:o});return x.useCallback(p=>{if(a8(p,t)){p.preventDefault();let h=n!==void 0?n:Os(u)===Os(d);c(e,{replace:h,state:r,preventScrollReset:a,relative:o,viewTransition:s})}},[u,c,d,n,r,t,e,a,o,s])}var D8=0,R8=()=>`__${String(++D8)}__`;function O8(){let{router:e}=_I("useSubmit"),{basename:t}=x.useContext(Jo),n=V7();return x.useCallback(async(r,a={})=>{let{action:o,method:s,encType:c,formData:u,body:d}=s8(r,t);if(a.navigate===!1){let p=a.fetcherKey||R8();await e.fetch(p,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:u,body:d,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:u,body:d,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function I8(e,{relative:t}={}){let{basename:n}=x.useContext(Jo),r=x.useContext(_o);Ut(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Ep(e||".",{relative:t})},s=Hl();if(e==null){o.search=s.search;let c=new URLSearchParams(o.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(h=>h).forEach(h=>c.append("index",h));let p=c.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Wo([n,o.pathname])),Os(o)}function N8(e,{relative:t}={}){let n=x.useContext(UT);Ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_I("useViewTransitionState"),a=Ep(e,{relative:t});if(!n.isTransitioning)return!1;let o=io(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=io(n.nextLocation.pathname,r)||n.nextLocation.pathname;return dg(a.pathname,s)!=null||dg(a.pathname,o)!=null}var Tp=ZO();const Ts=XO(Tp);function L8(e){return x.createElement(K7,{flushSync:Tp.flushSync,...e})}const P8="modulepreload",M8=function(e){return"/"+e},iw={},G=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let s=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");a=s(n.map(d=>{if(d=M8(d),d in iw)return;iw[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":P8,p||(y.as="script"),y.crossOrigin="",y.href=d,u&&y.setAttribute("nonce",u),document.head.appendChild(y),p)return new Promise((g,b)=>{y.addEventListener("load",g),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return a.then(s=>{for(const c of s||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},Hf={black:"#000",white:"#fff"},kc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Dc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Oc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ic={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},$d={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},$8={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Rl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Yo="$$material";function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(null,arguments)}function F8(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function B8(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var U8=(function(){function e(n){var r=this;this._insertTag=function(a){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,o),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(B8(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=F8(a);try{o.insertRule(r,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Rr="-ms-",mg="-moz-",on="-webkit-",CI="comm",qT="rule",WT="decl",j8="@import",AI="@keyframes",H8="@layer",z8=Math.abs,a0=String.fromCharCode,V8=Object.assign;function G8(e,t){return xr(e,0)^45?(((t<<2^xr(e,0))<<2^xr(e,1))<<2^xr(e,2))<<2^xr(e,3):0}function xI(e){return e.trim()}function q8(e,t){return(e=t.exec(e))?e[0]:e}function sn(e,t,n){return e.replace(t,n)}function eE(e,t){return e.indexOf(t)}function xr(e,t){return e.charCodeAt(t)|0}function zf(e,t,n){return e.slice(t,n)}function jo(e){return e.length}function YT(e){return e.length}function um(e,t){return t.push(e),e}function W8(e,t){return e.map(t).join("")}var o0=1,lu=1,wI=0,fa=0,sr=0,Su="";function i0(e,t,n,r,a,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:o0,column:lu,length:s,return:""}}function Fd(e,t){return V8(i0("",null,null,"",null,null,0),e,{length:-e.length},t)}function Y8(){return sr}function Q8(){return sr=fa>0?xr(Su,--fa):0,lu--,sr===10&&(lu=1,o0--),sr}function Ia(){return sr=fa<wI?xr(Su,fa++):0,lu++,sr===10&&(lu=1,o0++),sr}function Qo(){return xr(Su,fa)}function Um(){return fa}function Sp(e,t){return zf(Su,e,t)}function Vf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kI(e){return o0=lu=1,wI=jo(Su=e),fa=0,[]}function DI(e){return Su="",e}function jm(e){return xI(Sp(fa-1,tE(e===91?e+2:e===40?e+1:e)))}function K8(e){for(;(sr=Qo())&&sr<33;)Ia();return Vf(e)>2||Vf(sr)>3?"":" "}function X8(e,t){for(;--t&&Ia()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return Sp(e,Um()+(t<6&&Qo()==32&&Ia()==32))}function tE(e){for(;Ia();)switch(sr){case e:return fa;case 34:case 39:e!==34&&e!==39&&tE(sr);break;case 40:e===41&&tE(e);break;case 92:Ia();break}return fa}function Z8(e,t){for(;Ia()&&e+sr!==57;)if(e+sr===84&&Qo()===47)break;return"/*"+Sp(t,fa-1)+"*"+a0(e===47?e:Ia())}function J8(e){for(;!Vf(Qo());)Ia();return Sp(e,fa)}function eF(e){return DI(Hm("",null,null,null,[""],e=kI(e),0,[0],e))}function Hm(e,t,n,r,a,o,s,c,u){for(var d=0,p=0,h=s,y=0,g=0,b=0,E=1,T=1,A=1,w=0,k="",O=a,R=o,D=r,F=k;T;)switch(b=w,w=Ia()){case 40:if(b!=108&&xr(F,h-1)==58){eE(F+=sn(jm(w),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:F+=jm(w);break;case 9:case 10:case 13:case 32:F+=K8(b);break;case 92:F+=X8(Um()-1,7);continue;case 47:switch(Qo()){case 42:case 47:um(tF(Z8(Ia(),Um()),t,n),u);break;default:F+="/"}break;case 123*E:c[d++]=jo(F)*A;case 125*E:case 59:case 0:switch(w){case 0:case 125:T=0;case 59+p:A==-1&&(F=sn(F,/\f/g,"")),g>0&&jo(F)-h&&um(g>32?lw(F+";",r,n,h-1):lw(sn(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(um(D=sw(F,t,n,d,p,a,c,k,O=[],R=[],h),o),w===123)if(p===0)Hm(F,t,D,D,O,o,h,c,R);else switch(y===99&&xr(F,3)===110?100:y){case 100:case 108:case 109:case 115:Hm(e,D,D,r&&um(sw(e,D,D,0,0,a,c,k,a,O=[],h),R),a,R,h,c,r?O:R);break;default:Hm(F,D,D,D,[""],R,0,c,R)}}d=p=g=0,E=A=1,k=F="",h=s;break;case 58:h=1+jo(F),g=b;default:if(E<1){if(w==123)--E;else if(w==125&&E++==0&&Q8()==125)continue}switch(F+=a0(w),w*E){case 38:A=p>0?1:(F+="\f",-1);break;case 44:c[d++]=(jo(F)-1)*A,A=1;break;case 64:Qo()===45&&(F+=jm(Ia())),y=Qo(),p=h=jo(k=F+=J8(Um())),w++;break;case 45:b===45&&jo(F)==2&&(E=0)}}return o}function sw(e,t,n,r,a,o,s,c,u,d,p){for(var h=a-1,y=a===0?o:[""],g=YT(y),b=0,E=0,T=0;b<r;++b)for(var A=0,w=zf(e,h+1,h=z8(E=s[b])),k=e;A<g;++A)(k=xI(E>0?y[A]+" "+w:sn(w,/&\f/g,y[A])))&&(u[T++]=k);return i0(e,t,n,a===0?qT:c,u,d,p)}function tF(e,t,n){return i0(e,t,n,CI,a0(Y8()),zf(e,2,-2),0)}function lw(e,t,n,r){return i0(e,t,n,WT,zf(e,0,r),zf(e,r+1,-1),r)}function Zc(e,t){for(var n="",r=YT(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function nF(e,t,n,r){switch(e.type){case H8:if(e.children.length)break;case j8:case WT:return e.return=e.return||e.value;case CI:return"";case AI:return e.return=e.value+"{"+Zc(e.children,r)+"}";case qT:e.value=e.props.join(",")}return jo(n=Zc(e.children,r))?e.return=e.value+"{"+n+"}":""}function rF(e){var t=YT(e);return function(n,r,a,o){for(var s="",c=0;c<t;c++)s+=e[c](n,r,a,o)||"";return s}}function aF(e){return function(t){t.root||(t=t.return)&&e(t)}}function RI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var oF=function(t,n,r){for(var a=0,o=0;a=o,o=Qo(),a===38&&o===12&&(n[r]=1),!Vf(o);)Ia();return Sp(t,fa)},iF=function(t,n){var r=-1,a=44;do switch(Vf(a)){case 0:a===38&&Qo()===12&&(n[r]=1),t[r]+=oF(fa-1,n,r);break;case 2:t[r]+=jm(a);break;case 4:if(a===44){t[++r]=Qo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=a0(a)}while(a=Ia());return t},sF=function(t,n){return DI(iF(kI(t),n))},cw=new WeakMap,lF=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!cw.get(r))&&!a){cw.set(t,!0);for(var o=[],s=sF(n,o),c=r.props,u=0,d=0;u<s.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=o[u]?s[u].replace(/&\f/g,c[p]):c[p]+" "+s[u]}}},cF=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OI(e,t){switch(G8(e,t)){case 5103:return on+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return on+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return on+e+mg+e+Rr+e+e;case 6828:case 4268:return on+e+Rr+e+e;case 6165:return on+e+Rr+"flex-"+e+e;case 5187:return on+e+sn(e,/(\w+).+(:[^]+)/,on+"box-$1$2"+Rr+"flex-$1$2")+e;case 5443:return on+e+Rr+"flex-item-"+sn(e,/flex-|-self/,"")+e;case 4675:return on+e+Rr+"flex-line-pack"+sn(e,/align-content|flex-|-self/,"")+e;case 5548:return on+e+Rr+sn(e,"shrink","negative")+e;case 5292:return on+e+Rr+sn(e,"basis","preferred-size")+e;case 6060:return on+"box-"+sn(e,"-grow","")+on+e+Rr+sn(e,"grow","positive")+e;case 4554:return on+sn(e,/([^-])(transform)/g,"$1"+on+"$2")+e;case 6187:return sn(sn(sn(e,/(zoom-|grab)/,on+"$1"),/(image-set)/,on+"$1"),e,"")+e;case 5495:case 3959:return sn(e,/(image-set\([^]*)/,on+"$1$`$1");case 4968:return sn(sn(e,/(.+:)(flex-)?(.*)/,on+"box-pack:$3"+Rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+on+e+e;case 4095:case 3583:case 4068:case 2532:return sn(e,/(.+)-inline(.+)/,on+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jo(e)-1-t>6)switch(xr(e,t+1)){case 109:if(xr(e,t+4)!==45)break;case 102:return sn(e,/(.+:)(.+)-([^]+)/,"$1"+on+"$2-$3$1"+mg+(xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eE(e,"stretch")?OI(sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xr(e,t+1)!==115)break;case 6444:switch(xr(e,jo(e)-3-(~eE(e,"!important")&&10))){case 107:return sn(e,":",":"+on)+e;case 101:return sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+on+(xr(e,14)===45?"inline-":"")+"box$3$1"+on+"$2$3$1"+Rr+"$2box$3")+e}break;case 5936:switch(xr(e,t+11)){case 114:return on+e+Rr+sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return on+e+Rr+sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return on+e+Rr+sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return on+e+Rr+e+e}return e}var uF=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case WT:t.return=OI(t.value,t.length);break;case AI:return Zc([Fd(t,{value:sn(t.value,"@","@"+on)})],a);case qT:if(t.length)return W8(t.props,function(o){switch(q8(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zc([Fd(t,{props:[sn(o,/:(read-\w+)/,":"+mg+"$1")]})],a);case"::placeholder":return Zc([Fd(t,{props:[sn(o,/:(plac\w+)/,":"+on+"input-$1")]}),Fd(t,{props:[sn(o,/:(plac\w+)/,":"+mg+"$1")]}),Fd(t,{props:[sn(o,/:(plac\w+)/,Rr+"input-$1")]})],a)}return""})}},dF=[uF],fF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var T=E.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||dF,o={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var T=E.getAttribute("data-emotion").split(" "),A=1;A<T.length;A++)o[T[A]]=!0;c.push(E)});var u,d=[lF,cF];{var p,h=[nF,aF(function(E){p.insert(E)})],y=rF(d.concat(a,h)),g=function(T){return Zc(eF(T),y)};u=function(T,A,w,k){p=w,g(T?T+"{"+A.styles+"}":A.styles),k&&(b.inserted[A.name]=!0)}}var b={key:n,sheet:new U8({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return b.sheet.hydrate(c),b},Mv={exports:{}},ln={};/** @license React v16.13.1
|
|
63
|
+
* react-is.production.min.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var uw;function pF(){if(uw)return ln;uw=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(R){if(typeof R=="object"&&R!==null){var D=R.$$typeof;switch(D){case t:switch(R=R.type,R){case u:case d:case r:case o:case a:case h:return R;default:switch(R=R&&R.$$typeof,R){case c:case p:case b:case g:case s:return R;default:return D}}case n:return D}}}function O(R){return k(R)===d}return ln.AsyncMode=u,ln.ConcurrentMode=d,ln.ContextConsumer=c,ln.ContextProvider=s,ln.Element=t,ln.ForwardRef=p,ln.Fragment=r,ln.Lazy=b,ln.Memo=g,ln.Portal=n,ln.Profiler=o,ln.StrictMode=a,ln.Suspense=h,ln.isAsyncMode=function(R){return O(R)||k(R)===u},ln.isConcurrentMode=O,ln.isContextConsumer=function(R){return k(R)===c},ln.isContextProvider=function(R){return k(R)===s},ln.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},ln.isForwardRef=function(R){return k(R)===p},ln.isFragment=function(R){return k(R)===r},ln.isLazy=function(R){return k(R)===b},ln.isMemo=function(R){return k(R)===g},ln.isPortal=function(R){return k(R)===n},ln.isProfiler=function(R){return k(R)===o},ln.isStrictMode=function(R){return k(R)===a},ln.isSuspense=function(R){return k(R)===h},ln.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===o||R===a||R===h||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===b||R.$$typeof===g||R.$$typeof===s||R.$$typeof===c||R.$$typeof===p||R.$$typeof===T||R.$$typeof===A||R.$$typeof===w||R.$$typeof===E)},ln.typeOf=k,ln}var dw;function hF(){return dw||(dw=1,Mv.exports=pF()),Mv.exports}var $v,fw;function mF(){if(fw)return $v;fw=1;var e=hF(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=a;function s(b){return e.isMemo(b)?a:o[b.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function g(b,E,T){if(typeof E!="string"){if(y){var A=h(E);A&&A!==y&&g(b,A,T)}var w=u(E);d&&(w=w.concat(d(E)));for(var k=s(b),O=s(E),R=0;R<w.length;++R){var D=w[R];if(!n[D]&&!(T&&T[D])&&!(O&&O[D])&&!(k&&k[D])){var F=p(E,D);try{c(b,D,F)}catch{}}}}return b}return $v=g,$v}mF();var gF=!0;function II(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var QT=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||gF===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},KT=function(t,n,r){QT(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function yF(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bF=/[A-Z]|^ms/g,EF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NI=function(t){return t.charCodeAt(1)===45},pw=function(t){return t!=null&&typeof t!="boolean"},Fv=RI(function(e){return NI(e)?e:e.replace(bF,"-$&").toLowerCase()}),hw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(EF,function(r,a,o){return Ho={name:a,styles:o,next:Ho},a})}return vF[t]!==1&&!NI(t)&&typeof n=="number"&&n!==0?n+"px":n};function Gf(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Ho={name:a.name,styles:a.styles,next:Ho},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ho={name:s.name,styles:s.styles,next:Ho},s=s.next;var c=o.styles+";";return c}return TF(e,t,n)}case"function":{if(e!==void 0){var u=Ho,d=n(e);return Ho=u,Gf(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function TF(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Gf(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=o+"{"+t[c]+"}":pw(c)&&(r+=Fv(o)+":"+hw(o,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)pw(s[u])&&(r+=Fv(o)+":"+hw(o,s[u])+";");else{var d=Gf(e,t,s);switch(o){case"animation":case"animationName":{r+=Fv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var mw=/label:\s*([^\s;{]+)\s*(;|$)/g,Ho;function _p(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Ho=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Gf(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Gf(n,t,e[c]),r){var u=o;a+=u[c]}mw.lastIndex=0;for(var d="",p;(p=mw.exec(a))!==null;)d+="-"+p[1];var h=yF(a)+d;return{name:h,styles:a,next:Ho}}var SF=function(t){return t()},LI=ug.useInsertionEffect?ug.useInsertionEffect:!1,PI=LI||SF,gw=LI||x.useLayoutEffect,MI=x.createContext(typeof HTMLElement<"u"?fF({key:"css"}):null);MI.Provider;var XT=function(t){return x.forwardRef(function(n,r){var a=x.useContext(MI);return t(n,a,r)})},_u=x.createContext({}),ZT={}.hasOwnProperty,nE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_F=function(t,n){var r={};for(var a in n)ZT.call(n,a)&&(r[a]=n[a]);return r[nE]=t,r},CF=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return QT(n,r,a),PI(function(){return KT(n,r,a)}),null},AF=XT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[nE],o=[r],s="";typeof e.className=="string"?s=II(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var c=_p(o,void 0,x.useContext(_u));s+=t.key+"-"+c.name;var u={};for(var d in e)ZT.call(e,d)&&d!=="css"&&d!==nE&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),x.createElement(x.Fragment,null,x.createElement(CF,{cache:t,serialized:c,isStringTag:typeof a=="string"}),x.createElement(a,u))}),xF=AF,yw=function(t,n){var r=arguments;if(n==null||!ZT.call(n,"css"))return x.createElement.apply(void 0,r);var a=r.length,o=new Array(a);o[0]=xF,o[1]=_F(t,n);for(var s=2;s<a;s++)o[s]=r[s];return x.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(yw||(yw={}));var wF=XT(function(e,t){var n=e.styles,r=_p([n],void 0,x.useContext(_u)),a=x.useRef();return gw(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",o),s.hydrate([u])),a.current=[s,c],function(){s.flush()}},[t]),gw(function(){var o=a.current,s=o[0],c=o[1];if(c){o[1]=!1;return}if(r.next!==void 0&&KT(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _p(t)}function ei(){var e=Cp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var kF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DF=RI(function(e){return kF.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),RF=DF,OF=function(t){return t!=="theme"},vw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?RF:OF},bw=function(t,n,r){var a;if(n){var o=n.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},IF=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return QT(n,r,a),PI(function(){return KT(n,r,a)}),null},NF=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var c=bw(t,n,r),u=c||vw(a),d=!u("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var g=p.length,b=1;b<g;b++)h.push(p[b],y[b])}var E=XT(function(T,A,w){var k=d&&T.as||a,O="",R=[],D=T;if(T.theme==null){D={};for(var F in T)D[F]=T[F];D.theme=x.useContext(_u)}typeof T.className=="string"?O=II(A.registered,R,T.className):T.className!=null&&(O=T.className+" ");var q=_p(h.concat(R),A.registered,D);O+=A.key+"-"+q.name,s!==void 0&&(O+=" "+s);var z=d&&c===void 0?vw(k):u,$={};for(var H in T)d&&H==="as"||z(H)&&($[H]=T[H]);return $.className=O,w&&($.ref=w),x.createElement(x.Fragment,null,x.createElement(IF,{cache:A,serialized:q,isStringTag:typeof k=="string"}),x.createElement(k,$))});return E.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=h,E.__emotion_forwardProp=c,Object.defineProperty(E,"toString",{value:function(){return"."+s}}),E.withComponent=function(T,A){var w=e(T,hg({},n,A,{shouldForwardProp:bw(E,A,!0)}));return w.apply(void 0,h)},E}},LF=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],gg=NF.bind(null);LF.forEach(function(e){gg[e]=gg(e)});function PF(e){return e==null||Object.keys(e).length===0}function $I(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(PF(a)?n:a):t;return P.jsx(wF,{styles:r})}function FI(e,t){return gg(e,t)}function MF(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ew=[];function ws(e){return Ew[0]=e,_p(Ew)}var Bv={exports:{}},Tn={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* react-is.production.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var Tw;function $F(){if(Tw)return Tn;Tw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case n:case a:case r:case u:case d:case y:return E;default:switch(E=E&&E.$$typeof,E){case s:case c:case h:case p:return E;case o:return E;default:return T}}case t:return T}}}return Tn.ContextConsumer=o,Tn.ContextProvider=s,Tn.Element=e,Tn.ForwardRef=c,Tn.Fragment=n,Tn.Lazy=h,Tn.Memo=p,Tn.Portal=t,Tn.Profiler=a,Tn.StrictMode=r,Tn.Suspense=u,Tn.SuspenseList=d,Tn.isContextConsumer=function(E){return b(E)===o},Tn.isContextProvider=function(E){return b(E)===s},Tn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Tn.isForwardRef=function(E){return b(E)===c},Tn.isFragment=function(E){return b(E)===n},Tn.isLazy=function(E){return b(E)===h},Tn.isMemo=function(E){return b(E)===p},Tn.isPortal=function(E){return b(E)===t},Tn.isProfiler=function(E){return b(E)===a},Tn.isStrictMode=function(E){return b(E)===r},Tn.isSuspense=function(E){return b(E)===u},Tn.isSuspenseList=function(E){return b(E)===d},Tn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===a||E===r||E===u||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===h||E.$$typeof===p||E.$$typeof===s||E.$$typeof===o||E.$$typeof===c||E.$$typeof===g||E.getModuleId!==void 0)},Tn.typeOf=b,Tn}var Sw;function FF(){return Sw||(Sw=1,Bv.exports=$F()),Bv.exports}var BI=FF();function Go(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function UI(e){if(x.isValidElement(e)||BI.isValidElementType(e)||!Go(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=UI(e[n])}),t}function Wr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Go(e)&&Go(t)&&Object.keys(t).forEach(a=>{x.isValidElement(t[a])||BI.isValidElementType(t[a])?r[a]=t[a]:Go(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Go(e[a])?r[a]=Wr(e[a],t[a],n):n.clone?r[a]=Go(t[a])?UI(t[a]):t[a]:r[a]=t[a]}),r}const BF=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function UF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=BF(t),s=Object.keys(o);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function p(y){return s.indexOf(y)+1<s.length?d(y,s[s.indexOf(y)+1]):c(y)}function h(y){const g=s.indexOf(y);return g===0?c(s[1]):g===s.length-1?u(s[g]):d(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:c,down:u,between:d,only:p,not:h,unit:n,...a}}function _w(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function jF(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function HF(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function zF(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...c)=>t(e.breakpoints.up(...c),s),o.down=(...c)=>t(e.breakpoints.down(...c),s),o.between=(...c)=>t(e.breakpoints.between(...c),s),o.only=(...c)=>t(e.breakpoints.only(...c),s),o.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const VF={borderRadius:4};function vf(e,t){return t?Wr(e,t,{clone:!1}):e}const s0={xs:0,sm:600,md:900,lg:1200,xl:1536},Cw={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${s0[e]}px)`},GF={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:s0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function bo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Cw;return t.reduce((s,c,u)=>(s[o.up(o.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Cw;return Object.keys(t).reduce((s,c)=>{if(jF(o.keys,c)){const u=HF(r.containerQueries?r:GF,c);u&&(s[u]=n(t[c],c))}else if(Object.keys(o.values||s0).includes(c)){const u=o.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function jI(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function rE(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function qF(e,...t){const n=jI(e),r=[n,...t].reduce((a,o)=>Wr(a,o),{});return rE(Object.keys(n),r)}function WF(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((a,o)=>{o<e.length&&(n[a]=!0)}):r.forEach(a=>{e[a]!=null&&(n[a]=!0)}),n}function Uv({values:e,breakpoints:t,base:n}){const r=n||WF(e,t),a=Object.keys(r);if(a.length===0)return e;let o;return a.reduce((s,c,u)=>(Array.isArray(e)?(s[c]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(s[c]=e[c]!=null?e[c]:e[o],o=c):s[c]=e,s),{})}function tn(e){if(typeof e!="string")throw new Error(Rl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function l0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function yg(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=l0(e,n)||r,t&&(a=t(a,r,e)),a}function er(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=l0(u,r)||{};return bo(s,c,h=>{let y=yg(d,a,h);return h===y&&typeof h=="string"&&(y=yg(d,a,`${t}${h==="default"?"":tn(h)}`,h)),n===!1?y:{[n]:y}})};return o.propTypes={},o.filterProps=[t],o}function YF(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QF={m:"margin",p:"padding"},KF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XF=YF(e=>{if(e.length>2)if(Aw[e])e=Aw[e];else return[e];const[t,n]=e.split(""),r=QF[t],a=KF[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),JT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...JT,...eS];function Ap(e,t,n,r){const a=l0(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),c=a[s];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function c0(e){return Ap(e,"spacing",8)}function Ol(e,t){return typeof t=="string"||t==null?t:e(t)}function ZF(e,t){return n=>e.reduce((r,a)=>(r[a]=Ol(t,n),r),{})}function JF(e,t,n,r){if(!t.includes(n))return null;const a=XF(n),o=ZF(a,r),s=e[n];return bo(e,s,o)}function HI(e,t){const n=c0(e.theme);return Object.keys(e).map(r=>JF(e,t,r,n)).reduce(vf,{})}function Gn(e){return HI(e,JT)}Gn.propTypes={};Gn.filterProps=JT;function qn(e){return HI(e,eS)}qn.propTypes={};qn.filterProps=eS;function tS(e=8,t=c0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function u0(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?vf(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Za(e){return typeof e!="number"?e:`${e}px solid`}function co(e,t){return er({prop:e,themeKey:"borders",transform:t})}const e9=co("border",Za),t9=co("borderTop",Za),n9=co("borderRight",Za),r9=co("borderBottom",Za),a9=co("borderLeft",Za),o9=co("borderColor"),i9=co("borderTopColor"),s9=co("borderRightColor"),l9=co("borderBottomColor"),c9=co("borderLeftColor"),u9=co("outline",Za),d9=co("outlineColor"),d0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ap(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ol(t,r)});return bo(e,e.borderRadius,n)}return null};d0.propTypes={};d0.filterProps=["borderRadius"];u0(e9,t9,n9,r9,a9,o9,i9,s9,l9,c9,d0,u9,d9);const f0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ap(e.theme,"spacing",8),n=r=>({gap:Ol(t,r)});return bo(e,e.gap,n)}return null};f0.propTypes={};f0.filterProps=["gap"];const p0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ap(e.theme,"spacing",8),n=r=>({columnGap:Ol(t,r)});return bo(e,e.columnGap,n)}return null};p0.propTypes={};p0.filterProps=["columnGap"];const h0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ap(e.theme,"spacing",8),n=r=>({rowGap:Ol(t,r)});return bo(e,e.rowGap,n)}return null};h0.propTypes={};h0.filterProps=["rowGap"];const f9=er({prop:"gridColumn"}),p9=er({prop:"gridRow"}),h9=er({prop:"gridAutoFlow"}),m9=er({prop:"gridAutoColumns"}),g9=er({prop:"gridAutoRows"}),y9=er({prop:"gridTemplateColumns"}),v9=er({prop:"gridTemplateRows"}),b9=er({prop:"gridTemplateAreas"}),E9=er({prop:"gridArea"});u0(f0,p0,h0,f9,p9,h9,m9,g9,y9,v9,b9,E9);function Jc(e,t){return t==="grey"?t:e}const T9=er({prop:"color",themeKey:"palette",transform:Jc}),S9=er({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jc}),_9=er({prop:"backgroundColor",themeKey:"palette",transform:Jc});u0(T9,S9,_9);function ka(e){return e<=1&&e!==0?`${e*100}%`:e}const C9=er({prop:"width",transform:ka}),nS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||s0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ka(n)}};return bo(e,e.maxWidth,t)}return null};nS.filterProps=["maxWidth"];const A9=er({prop:"minWidth",transform:ka}),x9=er({prop:"height",transform:ka}),w9=er({prop:"maxHeight",transform:ka}),k9=er({prop:"minHeight",transform:ka});er({prop:"size",cssProperty:"width",transform:ka});er({prop:"size",cssProperty:"height",transform:ka});const D9=er({prop:"boxSizing"});u0(C9,nS,A9,x9,w9,k9,D9);const xp={border:{themeKey:"borders",transform:Za},borderTop:{themeKey:"borders",transform:Za},borderRight:{themeKey:"borders",transform:Za},borderBottom:{themeKey:"borders",transform:Za},borderLeft:{themeKey:"borders",transform:Za},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Za},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:d0},color:{themeKey:"palette",transform:Jc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jc},backgroundColor:{themeKey:"palette",transform:Jc},p:{style:qn},pt:{style:qn},pr:{style:qn},pb:{style:qn},pl:{style:qn},px:{style:qn},py:{style:qn},padding:{style:qn},paddingTop:{style:qn},paddingRight:{style:qn},paddingBottom:{style:qn},paddingLeft:{style:qn},paddingX:{style:qn},paddingY:{style:qn},paddingInline:{style:qn},paddingInlineStart:{style:qn},paddingInlineEnd:{style:qn},paddingBlock:{style:qn},paddingBlockStart:{style:qn},paddingBlockEnd:{style:qn},m:{style:Gn},mt:{style:Gn},mr:{style:Gn},mb:{style:Gn},ml:{style:Gn},mx:{style:Gn},my:{style:Gn},margin:{style:Gn},marginTop:{style:Gn},marginRight:{style:Gn},marginBottom:{style:Gn},marginLeft:{style:Gn},marginX:{style:Gn},marginY:{style:Gn},marginInline:{style:Gn},marginInlineStart:{style:Gn},marginInlineEnd:{style:Gn},marginBlock:{style:Gn},marginBlockStart:{style:Gn},marginBlockEnd:{style:Gn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:f0},rowGap:{style:h0},columnGap:{style:p0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ka},maxWidth:{style:nS},minWidth:{transform:ka},height:{transform:ka},maxHeight:{transform:ka},minHeight:{transform:ka},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function R9(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function O9(e,t){return typeof e=="function"?e(t):e}function I9(){function e(n,r,a,o){const s={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=l0(a,d)||{};return h?h(s):bo(s,r,b=>{let E=yg(y,p,b);return b===E&&typeof b=="string"&&(E=yg(y,p,`${n}${b==="default"?"":tn(b)}`,b)),u===!1?E:{[u]:E}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const s=a.unstable_sxConfig??xp;function c(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const p=jI(a.breakpoints),h=Object.keys(p);let y=p;return Object.keys(d).forEach(g=>{const b=O9(d[g],a);if(b!=null)if(typeof b=="object")if(s[g])y=vf(y,e(g,b,a,s));else{const E=bo({theme:a},b,T=>({[g]:T}));R9(E,b)?y[g]=t({sx:b,theme:a,nested:!0}):y=vf(y,E)}else y=vf(y,e(g,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":_w(a,rE(h,y))}:_w(a,rE(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Is=I9();Is.filterProps=["sx"];function N9(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function m0(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=UF(n),u=tS(a);let d=Wr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...VF,...o}},s);return d=zF(d),d.applyStyles=N9,d=t.reduce((p,h)=>Wr(p,h),d),d.unstable_sxConfig={...xp,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Is({sx:h,theme:this})},d}function L9(e){return Object.keys(e).length===0}function rS(e=null){const t=x.useContext(_u);return!t||L9(t)?e:t}const P9=m0();function wp(e=P9){return rS(e)}function jv(e){const t=ws(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function aS({styles:e,themeId:t,defaultTheme:n={}}){const r=wp(n),a=t&&r[t]||r;let o=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(o)?o=o.map(s=>jv(typeof s=="function"?s(a):s)):o=jv(o)),P.jsx($I,{styles:o})}const M9=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??xp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function oS(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=M9(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const c=t(...s);return Go(c)?{...r,...c}:r}:o={...r,...t},{...a,sx:o}}const xw=e=>e,$9=()=>{let e=xw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xw}}},iS=$9();function zI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function An(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zI(e))&&(r&&(r+=" "),r+=t);return r}function VI(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,o=FI("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Is);return x.forwardRef(function(u,d){const p=wp(n),{className:h,component:y="div",...g}=oS(u);return P.jsx(o,{as:y,ref:d,className:An(h,a?a(r):r),theme:t&&p[t]||p,...g})})}const F9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ha(e,t,n="Mui"){const r=F9[t];return r?`${n}-${r}`:`${iS.generate(e)}-${t}`}function Kr(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=ha(e,a,n)}),r}const B9=Kr("MuiBox",["root"]),U9=VI({defaultClassName:B9.root,generateClassName:iS.generate});function GI(e){const{variants:t,...n}=e,r={variants:t,style:ws(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=ws(a.style))}),r}const j9=m0();function zm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function H9(e){return e?(t,n)=>n[e]:null}function z9(e,t,n){e.theme=G9(e.theme)?n:e.theme[t]||e.theme}function Vm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Vm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?hl(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?hl(ws(s),n):s}return qI(e,r.variants,[a],n)}return r?.isProcessed?n?hl(ws(r.style),n):r.style:n?hl(ws(r),n):r}function qI(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&e.ownerState?.[c]!==s.props[c])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hl(ws(s.style(a)),r):s.style(a))):n.push(r?hl(ws(s.style),r):s.style)}return n}function WI(e={}){const{themeId:t,defaultTheme:n=j9,rootShouldForwardProp:r=zm,slotShouldForwardProp:a=zm}=e;function o(c){z9(c,t,n)}return(c,u={})=>{MF(c,D=>D.filter(F=>F!==Is));const{name:d,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:g=H9(W9(p)),...b}=u,E=d&&d.startsWith("Mui")||p?"components":"custom",T=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,A=y||!1;let w=zm;p==="Root"||p==="root"?w=r:p?w=a:q9(c)&&(w=void 0);const k=FI(c,{shouldForwardProp:w,label:V9(),...b}),O=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(q){return Vm(q,D,q.theme.modularCssLayers?E:void 0)};if(Go(D)){const F=GI(D);return function(z){return F.variants?Vm(z,F,z.theme.modularCssLayers?E:void 0):z.theme.modularCssLayers?hl(F.style,E):F.style}}return D},R=(...D)=>{const F=[],q=D.map(O),z=[];if(F.push(o),d&&g&&z.push(function(M){const W=M.theme.components?.[d]?.styleOverrides;if(!W)return null;const j={};for(const Z in W)j[Z]=Vm(M,W[Z],M.theme.modularCssLayers?"theme":void 0);return g(M,j)}),d&&!T&&z.push(function(M){const W=M.theme?.components?.[d]?.variants;return W?qI(M,W,[],M.theme.modularCssLayers?"theme":void 0):null}),A||z.push(Is),Array.isArray(q[0])){const C=q.shift(),M=new Array(F.length).fill(""),B=new Array(z.length).fill("");let W;W=[...M,...C,...B],W.raw=[...M,...C.raw,...B],F.unshift(W)}const $=[...F,...q,...z],H=k(...$);return c.muiName&&(H.muiName=c.muiName),H};return k.withConfig&&(R.withConfig=k.withConfig),R}}function V9(e,t){return void 0}function G9(e){for(const t in e)return!1;return!0}function q9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function W9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Y9=WI();function qf(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const o=a;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],c=t[o];if(!c)r[o]=s||{};else if(!s)r[o]=c;else{r[o]={...c};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[o][d]=qf(s[d],c[d],n)}}}else o==="className"&&n&&t.className?r.className=An(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}function Q9(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qf(t.components[n].defaultProps,r)}function K9({props:e,name:t,defaultTheme:n,themeId:r}){let a=wp(n);return r&&(a=a[r]||a),Q9({theme:a,name:t,props:e})}const Il=typeof window<"u"?x.useLayoutEffect:x.useEffect;function X9(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sS(e,t=0,n=1){return X9(e,t,n)}function Z9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ns(e){if(e.type)return e;if(e.charAt(0)==="#")return Ns(Z9(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Rl(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Rl(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const J9=e=>{const t=Ns(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},cf=(e,t)=>{try{return J9(e)}catch{return e}};function g0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function YI(e){e=Ns(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),s=(d,p=(d+n/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),g0({type:c,values:u})}function aE(e){e=Ns(e);let t=e.type==="hsl"||e.type==="hsla"?Ns(YI(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function eB(e,t){const n=aE(e),r=aE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ra(e,t){return e=Ns(e),t=sS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,g0(e)}function tl(e,t,n){try{return Ra(e,t)}catch{return e}}function y0(e,t){if(e=Ns(e),t=sS(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return g0(e)}function fn(e,t,n){try{return y0(e,t)}catch{return e}}function v0(e,t){if(e=Ns(e),t=sS(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return g0(e)}function pn(e,t,n){try{return v0(e,t)}catch{return e}}function tB(e,t=.15){return aE(e)>.5?y0(e,t):v0(e,t)}function dm(e,t,n){try{return tB(e,t)}catch{return e}}const QI=x.createContext(null);function lS(){return x.useContext(QI)}const nB=typeof Symbol=="function"&&Symbol.for,rB=nB?Symbol.for("mui.nested"):"__THEME_NESTED__";function aB(e,t){return typeof t=="function"?t(e):{...e,...t}}function oB(e){const{children:t,theme:n}=e,r=lS(),a=x.useMemo(()=>{const o=r===null?{...n}:aB(r,n);return o!=null&&(o[rB]=r!==null),o},[n,r]);return P.jsx(QI.Provider,{value:a,children:t})}const KI=x.createContext();function iB({value:e,...t}){return P.jsx(KI.Provider,{value:e??!0,...t})}const XI=()=>x.useContext(KI)??!1,ZI=x.createContext(void 0);function sB({value:e,children:t}){return P.jsx(ZI.Provider,{value:e,children:t})}function lB(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?qf(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?qf(a,r,t.components.mergeClassNameAndStyle):r}function cB({props:e,name:t}){const n=x.useContext(ZI);return lB({props:e,name:t,theme:{components:n}})}let ww=0;function uB(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(ww+=1,n(`mui-${ww}`))},[t]),r}const dB={...ug},kw=dB.useId;function b0(e){if(kw!==void 0){const t=kw();return e??t}return uB(e)}function fB(e){const t=rS(),n=b0()||"",{modularCssLayers:r}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?a="":typeof r=="string"?a=r.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,Il(()=>{const o=document.querySelector("head");if(!o)return;const s=o.firstChild;if(a){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=a,o.prepend(c)}else o.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[a,n]),a?P.jsx(aS,{styles:a}):null}const Dw={};function Rw(e,t,n,r=!1){return x.useMemo(()=>{const a=e&&t[e]||t;if(typeof n=="function"){const o=n(a),s=e?{...t,[e]:o}:o;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function JI(e){const{children:t,theme:n,themeId:r}=e,a=rS(Dw),o=lS()||Dw,s=Rw(r,a,n),c=Rw(r,o,n,!0),u=(r?s[r]:s).direction==="rtl",d=fB(s);return P.jsx(oB,{theme:c,children:P.jsx(_u.Provider,{value:s,children:P.jsx(iB,{value:u,children:P.jsxs(sB,{value:r?s[r].components:s.components,children:[d,t]})})})})}const Ow={theme:void 0};function e3(e){let t,n;return function(a){let o=t;return(o===void 0||a.theme!==n)&&(Ow.theme=a.theme,o=GI(e(Ow)),t=o,n=a.theme),o}}const cS="mode",uS="color-scheme",pB="data-color-scheme";function hB(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:a=cS,colorSchemeStorageKey:o=uS,attribute:s=pB,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let d="",p=s;if(s==="class"&&(p=".%s"),s==="data"&&(p="[data-%s]"),p.startsWith(".")){const y=p.substring(1);d+=`${c}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
|
|
78
|
+
${c}.classList.add('${y}'.replace('%s', colorScheme));`}const h=p.match(/\[([^[\]]+)\]/);if(h){const[y,g]=h[1].split("=");g||(d+=`${c}.removeAttribute('${y}'.replace('%s', light));
|
|
79
|
+
${c}.removeAttribute('${y}'.replace('%s', dark));`),d+=`
|
|
80
|
+
${c}.setAttribute('${y}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else d+=`${c}.setAttribute('${p}', colorScheme);`;return P.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
81
|
+
try {
|
|
82
|
+
let colorScheme = '';
|
|
83
|
+
const mode = localStorage.getItem('${a}') || '${t}';
|
|
84
|
+
const dark = localStorage.getItem('${o}-dark') || '${r}';
|
|
85
|
+
const light = localStorage.getItem('${o}-light') || '${n}';
|
|
86
|
+
if (mode === 'system') {
|
|
87
|
+
// handle system mode
|
|
88
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
89
|
+
if (mql.matches) {
|
|
90
|
+
colorScheme = dark
|
|
91
|
+
} else {
|
|
92
|
+
colorScheme = light
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (mode === 'light') {
|
|
96
|
+
colorScheme = light;
|
|
97
|
+
}
|
|
98
|
+
if (mode === 'dark') {
|
|
99
|
+
colorScheme = dark;
|
|
100
|
+
}
|
|
101
|
+
if (colorScheme) {
|
|
102
|
+
${d}
|
|
103
|
+
}
|
|
104
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function mB(){}const gB=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return mB;const r=a=>{const o=a.newValue;a.key===e&&n(o)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Hv(){}function Iw(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function t3(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function yB(e){return t3(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function vB(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:a=[],modeStorageKey:o=cS,colorSchemeStorageKey:s=uS,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=gB,noSsr:d=!1}=e,p=a.join(","),h=a.length>1,y=x.useMemo(()=>u?.({key:o,storageWindow:c}),[u,o,c]),g=x.useMemo(()=>u?.({key:`${s}-light`,storageWindow:c}),[u,s,c]),b=x.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:c}),[u,s,c]),[E,T]=x.useState(()=>{const q=y?.get(t)||t,z=g?.get(n)||n,$=b?.get(r)||r;return{mode:q,systemMode:Iw(q),lightColorScheme:z,darkColorScheme:$}}),[A,w]=x.useState(d||!h);x.useEffect(()=>{w(!0)},[]);const k=yB(E),O=x.useCallback(q=>{T(z=>{if(q===z.mode)return z;const $=q??t;return y?.set($),{...z,mode:$,systemMode:Iw($)}})},[y,t]),R=x.useCallback(q=>{q?typeof q=="string"?q&&!p.includes(q)?console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`):T(z=>{const $={...z};return t3(z,H=>{H==="light"&&(g?.set(q),$.lightColorScheme=q),H==="dark"&&(b?.set(q),$.darkColorScheme=q)}),$}):T(z=>{const $={...z},H=q.light===null?n:q.light,C=q.dark===null?r:q.dark;return H&&(p.includes(H)?($.lightColorScheme=H,g?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),C&&(p.includes(C)?($.darkColorScheme=C,b?.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),$}):T(z=>(g?.set(n),b?.set(r),{...z,lightColorScheme:n,darkColorScheme:r}))},[p,g,b,n,r]),D=x.useCallback(q=>{E.mode==="system"&&T(z=>{const $=q?.matches?"dark":"light";return z.systemMode===$?z:{...z,systemMode:$}})},[E.mode]),F=x.useRef(D);return F.current=D,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const q=(...$)=>F.current(...$),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(q),q(z),()=>{z.removeListener(q)}},[h]),x.useEffect(()=>{if(h){const q=y?.subscribe(H=>{(!H||["light","dark","system"].includes(H))&&O(H||t)})||Hv,z=g?.subscribe(H=>{(!H||p.match(H))&&R({light:H})})||Hv,$=b?.subscribe(H=>{(!H||p.match(H))&&R({dark:H})})||Hv;return()=>{q(),z(),$()}}},[R,O,p,t,c,h,y,g,b]),{...E,mode:A?E.mode:void 0,systemMode:A?E.systemMode:void 0,colorScheme:A?k:void 0,setMode:O,setColorScheme:R}}const bB="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function EB(e){const{themeId:t,theme:n={},modeStorageKey:r=cS,colorSchemeStorageKey:a=uS,disableTransitionOnChange:o=!1,defaultColorScheme:s,resolveTheme:c}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=x.createContext(void 0),p=()=>x.useContext(d)||u,h={},y={};function g(A){const{children:w,theme:k,modeStorageKey:O=r,colorSchemeStorageKey:R=a,disableTransitionOnChange:D=o,storageManager:F,storageWindow:q=typeof window>"u"?void 0:window,documentNode:z=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:H=!1,disableStyleSheetGeneration:C=!1,defaultMode:M="system",forceThemeRerender:B=!1,noSsr:W}=A,j=x.useRef(!1),Z=lS(),Q=x.useContext(d),ae=!!Q&&!H,I=x.useMemo(()=>k||(typeof n=="function"?n():n),[k]),ne=I[t],ee=ne||I,{colorSchemes:L=h,components:te=y,cssVarPrefix:be}=ee,de=Object.keys(L).filter(ce=>!!L[ce]).join(","),xe=x.useMemo(()=>de.split(","),[de]),ye=typeof s=="string"?s:s.light,Oe=typeof s=="string"?s:s.dark,Ue=L[ye]&&L[Oe]?M:L[ee.defaultColorScheme]?.palette?.mode||ee.palette?.mode,{mode:Ie,setMode:Ye,systemMode:Ve,lightColorScheme:De,darkColorScheme:Ot,colorScheme:Et,setColorScheme:je}=vB({supportedColorSchemes:xe,defaultLightColorScheme:ye,defaultDarkColorScheme:Oe,modeStorageKey:O,colorSchemeStorageKey:R,defaultMode:Ue,storageManager:F,storageWindow:q,noSsr:W});let St=Ie,it=Et;ae&&(St=Q.mode,it=Q.colorScheme);let Ze=it||ee.defaultColorScheme;ee.vars&&!B&&(Ze=ee.defaultColorScheme);const Ge=x.useMemo(()=>{const ce=ee.generateThemeVars?.()||ee.vars,me={...ee,components:te,colorSchemes:L,cssVarPrefix:be,vars:ce};if(typeof me.generateSpacing=="function"&&(me.spacing=me.generateSpacing()),Ze){const Be=L[Ze];Be&&typeof Be=="object"&&Object.keys(Be).forEach(qe=>{Be[qe]&&typeof Be[qe]=="object"?me[qe]={...me[qe],...Be[qe]}:me[qe]=Be[qe]})}return c?c(me):me},[ee,Ze,te,L,be]),Pe=ee.colorSchemeSelector;Il(()=>{if(it&&$&&Pe&&Pe!=="media"){const ce=Pe;let me=Pe;if(ce==="class"&&(me=".%s"),ce==="data"&&(me="[data-%s]"),ce?.startsWith("data-")&&!ce.includes("%s")&&(me=`[${ce}="%s"]`),me.startsWith("."))$.classList.remove(...xe.map(Be=>me.substring(1).replace("%s",Be))),$.classList.add(me.substring(1).replace("%s",it));else{const Be=me.replace("%s",it).match(/\[([^\]]+)\]/);if(Be){const[qe,Qe]=Be[1].split("=");Qe||xe.forEach(gt=>{$.removeAttribute(qe.replace(it,gt))}),$.setAttribute(qe,Qe?Qe.replace(/"|'/g,""):"")}else $.setAttribute(me,it)}}},[it,Pe,$,xe]),x.useEffect(()=>{let ce;if(D&&j.current&&z){const me=z.createElement("style");me.appendChild(z.createTextNode(bB)),z.head.appendChild(me),window.getComputedStyle(z.body),ce=setTimeout(()=>{z.head.removeChild(me)},1)}return()=>{clearTimeout(ce)}},[it,D,z]),x.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const It=x.useMemo(()=>({allColorSchemes:xe,colorScheme:it,darkColorScheme:Ot,lightColorScheme:De,mode:St,setColorScheme:je,setMode:Ye,systemMode:Ve}),[xe,it,Ot,De,St,je,Ye,Ve,Ge.colorSchemeSelector]);let kn=!0;(C||ee.cssVariables===!1||ae&&Z?.cssVarPrefix===be)&&(kn=!1);const bt=P.jsxs(x.Fragment,{children:[P.jsx(JI,{themeId:ne?t:void 0,theme:Ge,children:w}),kn&&P.jsx($I,{styles:Ge.generateStyleSheets?.()||[]})]});return ae?bt:P.jsx(d.Provider,{value:It,children:bt})}const b=typeof s=="string"?s:s.light,E=typeof s=="string"?s:s.dark;return{CssVarsProvider:g,useColorScheme:p,getInitColorSchemeScript:A=>hB({colorSchemeStorageKey:a,defaultLightColorScheme:b,defaultDarkColorScheme:E,modeStorageKey:r,...A})}}function n3(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const Nw=(e,t,n,r=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},TB=(e,t,n)=>{function r(a,o=[],s=[]){Object.entries(a).forEach(([c,u])=>{(!n||n&&!n([...o,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...o,c],Array.isArray(u)?[...s,c]:s):t([...o,c],u,s))})}r(e)},SB=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zv(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return TB(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=SB(c,u);Object.assign(a,{[p]:h}),Nw(o,c,`var(${p})`,d),Nw(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function _B(e,t={}){const{getSelector:n=A,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:o}=t,{colorSchemes:s={},components:c,defaultColorScheme:u="light",...d}=e,{vars:p,css:h,varsWithDefaults:y}=zv(d,t);let g=y;const b={},{[u]:E,...T}=s;if(Object.entries(T||{}).forEach(([O,R])=>{const{vars:D,css:F,varsWithDefaults:q}=zv(R,t);g=Wr(g,q),b[O]={css:F,vars:D}}),E){const{css:O,vars:R,varsWithDefaults:D}=zv(E,t);g=Wr(g,D),b[u]={css:O,vars:R}}function A(O,R){let D=a;if(a==="class"&&(D=".%s"),a==="data"&&(D="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(D=`[${a}="%s"]`),O){if(D==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${s[O]?.palette?.mode||O})`]:{":root":R}};if(D)return e.defaultColorScheme===O?`:root, ${D.replace("%s",String(O))}`:D.replace("%s",String(O))}return":root"}return{vars:g,generateThemeVars:()=>{let O={...p};return Object.entries(b).forEach(([,{vars:R}])=>{O=Wr(O,R)}),O},generateStyleSheets:()=>{const O=[],R=e.defaultColorScheme||"light";function D(z,$){Object.keys($).length&&O.push(typeof z=="string"?{[z]:{...$}}:z)}D(n(void 0,{...h}),h);const{[R]:F,...q}=b;if(F){const{css:z}=F,$=s[R]?.palette?.mode,H=!r&&$?{colorScheme:$,...z}:{...z};D(n(R,{...H}),H)}return Object.entries(q).forEach(([z,{css:$}])=>{const H=s[z]?.palette?.mode,C=!r&&H?{colorScheme:H,...$}:{...$};D(n(z,{...C}),C)}),o&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function CB(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Pa(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let s="",c=!0;for(let u=0;u<o.length;u+=1){const d=o[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[a]=s}return r}const AB=m0(),xB=Y9("div",{name:"MuiStack",slot:"Root"});function wB(e){return K9({props:e,name:"MuiStack",defaultTheme:AB})}function kB(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,a,o)=>(r.push(a),o<n.length-1&&r.push(x.cloneElement(t,{key:`separator-${o}`})),r),[])}const DB=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],RB=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...bo({theme:t},Uv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=c0(t),a=Object.keys(t.breakpoints.values).reduce((u,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(u[d]=!0),u),{}),o=Uv({values:e.direction,base:a}),s=Uv({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,d,p)=>{if(!o[u]){const y=d>0?o[p[d-1]]:"column";o[u]=y}}),n=Wr(n,bo({theme:t},s,(u,d)=>e.useFlexGap?{gap:Ol(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${DB(d?o[d]:e.direction)}`]:Ol(r,u)}}))}return n=qF(t.breakpoints,n),n};function dS(e={}){const{createStyledComponent:t=xB,useThemeProps:n=wB,componentName:r="MuiStack"}=e,a=()=>Pa({root:["root"]},u=>ha(r,u),{}),o=t(RB);return x.forwardRef(function(u,d){const p=n(u),h=oS(p),{component:y="div",direction:g="column",spacing:b=0,divider:E,children:T,className:A,useFlexGap:w=!1,...k}=h,O={direction:g,spacing:b,useFlexGap:w},R=a();return P.jsx(o,{as:y,ownerState:O,ref:d,className:An(R.root,A),...k,children:E?kB(T,E):T})})}const OB=dS();function r3(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hf.white,default:Hf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const a3=r3();function o3(){return{text:{primary:Hf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const oE=o3();function Lw(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=v0(e.main,a):t==="dark"&&(e.dark=y0(e.main,o)))}function Pw(e,t,n,r,a){const o=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function IB(e="light"){return e==="dark"?{main:Rc[200],light:Rc[50],dark:Rc[400]}:{main:Rc[700],light:Rc[400],dark:Rc[800]}}function NB(e="light"){return e==="dark"?{main:Dc[200],light:Dc[50],dark:Dc[400]}:{main:Dc[500],light:Dc[300],dark:Dc[700]}}function LB(e="light"){return e==="dark"?{main:kc[500],light:kc[300],dark:kc[700]}:{main:kc[700],light:kc[400],dark:kc[800]}}function PB(e="light"){return e==="dark"?{main:Oc[400],light:Oc[300],dark:Oc[700]}:{main:Oc[700],light:Oc[500],dark:Oc[900]}}function MB(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:Ic[800],light:Ic[500],dark:Ic[900]}}function $B(e="light"){return e==="dark"?{main:$d[400],light:$d[300],dark:$d[700]}:{main:"#ed6c02",light:$d[500],dark:$d[900]}}function FB(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function fS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...o}=e,s=e.primary||IB(t),c=e.secondary||NB(t),u=e.error||LB(t),d=e.info||PB(t),p=e.success||MB(t),h=e.warning||$B(t);function y(T){return a?FB(T):eB(T,oE.text.primary)>=n?oE.text.primary:a3.text.primary}const g=({color:T,name:A,mainShade:w=500,lightShade:k=300,darkShade:O=700})=>{if(T={...T},!T.main&&T[w]&&(T.main=T[w]),!T.hasOwnProperty("main"))throw new Error(Rl(11,A?` (${A})`:"",w));if(typeof T.main!="string")throw new Error(Rl(12,A?` (${A})`:"",JSON.stringify(T.main)));return a?(Pw(a,T,"light",k,r),Pw(a,T,"dark",O,r)):(Lw(T,"light",k,r),Lw(T,"dark",O,r)),T.contrastText||(T.contrastText=y(T.main)),T};let b;return t==="light"?b=r3():t==="dark"&&(b=o3()),Wr({common:{...Hf},mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:p,name:"success"}),grey:$8,contrastThreshold:n,getContrastText:y,augmentColor:g,tonalOffset:r,...b},o)}function BB(e){const t={};return Object.entries(e).forEach(r=>{const[a,o]=r;typeof o=="object"&&(t[a]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function UB(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function jB(e){return Math.round(e*1e5)/1e5}const Mw={textTransform:"uppercase"},$w='"Roboto", "Helvetica", "Arial", sans-serif';function i3(e,t){const{fontFamily:n=$w,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,y=r/14,g=p||(T=>`${T/u*y}rem`),b=(T,A,w,k,O)=>({fontFamily:n,fontWeight:T,fontSize:g(A),lineHeight:w,...n===$w?{letterSpacing:`${jB(k/A)}em`}:{},...O,...d}),E={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(o,48,1.167,0),h4:b(o,34,1.235,.25),h5:b(o,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(o,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(o,16,1.5,.15),body2:b(o,14,1.43,.15),button:b(s,14,1.75,.4,Mw),caption:b(o,12,1.66,.4),overline:b(o,12,2.66,1,Mw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wr({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:c,...E},h,{clone:!1})}const HB=.2,zB=.14,VB=.12;function Pn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${HB})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zB})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${VB})`].join(",")}const GB=["none",Pn(0,2,1,-1,0,1,1,0,0,1,3,0),Pn(0,3,1,-2,0,2,2,0,0,1,5,0),Pn(0,3,3,-2,0,3,4,0,0,1,8,0),Pn(0,2,4,-1,0,4,5,0,0,1,10,0),Pn(0,3,5,-1,0,5,8,0,0,1,14,0),Pn(0,3,5,-1,0,6,10,0,0,1,18,0),Pn(0,4,5,-2,0,7,10,1,0,2,16,1),Pn(0,5,5,-3,0,8,10,1,0,3,14,2),Pn(0,5,6,-3,0,9,12,1,0,3,16,2),Pn(0,6,6,-3,0,10,14,1,0,4,18,3),Pn(0,6,7,-4,0,11,15,1,0,4,20,3),Pn(0,7,8,-4,0,12,17,2,0,5,22,4),Pn(0,7,8,-4,0,13,19,2,0,5,24,4),Pn(0,7,9,-4,0,14,21,2,0,5,26,4),Pn(0,8,9,-5,0,15,22,2,0,6,28,5),Pn(0,8,10,-5,0,16,24,2,0,6,30,5),Pn(0,8,11,-5,0,17,26,2,0,6,32,5),Pn(0,9,11,-5,0,18,28,2,0,7,34,6),Pn(0,9,12,-6,0,19,29,2,0,7,36,6),Pn(0,10,13,-6,0,20,31,3,0,8,38,7),Pn(0,10,13,-6,0,21,33,3,0,8,40,7),Pn(0,10,14,-6,0,22,35,3,0,8,42,7),Pn(0,11,14,-7,0,23,36,3,0,9,44,8),Pn(0,11,15,-7,0,24,38,3,0,9,46,8)],qB={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},WB={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fw(e){return`${Math.round(e)}ms`}function YB(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function QB(e){const t={...qB,...e.easing},n={...WB,...e.duration};return{getAutoHeightDuration:YB,create:(a=["all"],o={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=o;return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof s=="string"?s:Fw(s)} ${c} ${typeof u=="string"?u:Fw(u)}`).join(",")},...e,easing:t,duration:n}}const KB={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function XB(e){return Go(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function s3(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[s,c]=a[o];!XB(c)||s.startsWith("unstable_")?delete r[s]:Go(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
105
|
+
|
|
106
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
107
|
+
|
|
108
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
109
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
110
|
+
|
|
111
|
+
export default theme;`}function Bw(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ZB=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function JB(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ra(t,ZB(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Bw(n)})`:v0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Bw(n)})`:y0(t,n)}})}function iE(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,colorSpace:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Rl(20));const h=fS({...o,colorSpace:d}),y=m0(e);let g=Wr(y,{mixins:UB(y.breakpoints,r),palette:h,shadows:GB.slice(),typography:i3(h,c),transitions:QB(s),zIndex:{...KB}});return g=Wr(g,p),g=t.reduce((b,E)=>Wr(b,E),g),g.unstable_sxConfig={...xp,...p?.unstable_sxConfig},g.unstable_sx=function(E){return Is({sx:E,theme:this})},g.toRuntimeSource=s3,JB(g),g}function sE(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const eU=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function l3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function c3(e){return e==="dark"?eU:[]}function tU(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...o}=e,s=fS({...t,colorSpace:a});return{palette:s,opacity:{...l3(s.mode),...n},overlays:r||c3(s.mode),...o}}function nU(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const rU=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],aU=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return rU(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function oU(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Se(e,t,n){!e[t]&&n&&(e[t]=n)}function uf(e){return typeof e!="string"||!e.startsWith("hsl")?e:YI(e)}function Si(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cf(uf(e[t])))}function iU(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const No=e=>{try{return e()}catch{}},sU=(e="mui")=>n3(e);function Vv(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!r){t[a]=tU({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:s,...c}=iE({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[a]={...n,palette:s,opacity:{...l3(o),...n?.opacity},overlays:n?.overlays||c3(o)},c}function lU(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:c=nU,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=sU(o),{[y]:b,light:E,dark:T,...A}=n,w={...A};let k=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(Rl(21,y));let O;s&&(O="oklch");const R=Vv(O,w,k,p,y);E&&!w.light&&Vv(O,w,E,void 0,"light"),T&&!w.dark&&Vv(O,w,T,void 0,"dark");let D={defaultColorScheme:y,...R,cssVarPrefix:o,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:w,font:{...BB(R.typography),...R.font},spacing:iU(p.spacing)};Object.keys(D.colorSchemes).forEach(H=>{const C=D.colorSchemes[H].palette,M=W=>{const j=W.split("-"),Z=j[1],Q=j[2];return g(W,C[Z][Q])};C.mode==="light"&&(Se(C.common,"background","#fff"),Se(C.common,"onBackground","#000")),C.mode==="dark"&&(Se(C.common,"background","#000"),Se(C.common,"onBackground","#fff"));function B(W,j,Z){if(O){let Q;return W===tl&&(Q=`transparent ${((1-Z)*100).toFixed(0)}%`),W===fn&&(Q=`#000 ${(Z*100).toFixed(0)}%`),W===pn&&(Q=`#fff ${(Z*100).toFixed(0)}%`),`color-mix(in ${O}, ${j}, ${Q})`}return W(j,Z)}if(oU(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Se(C.Alert,"errorColor",B(fn,C.error.light,.6)),Se(C.Alert,"infoColor",B(fn,C.info.light,.6)),Se(C.Alert,"successColor",B(fn,C.success.light,.6)),Se(C.Alert,"warningColor",B(fn,C.warning.light,.6)),Se(C.Alert,"errorFilledBg",M("palette-error-main")),Se(C.Alert,"infoFilledBg",M("palette-info-main")),Se(C.Alert,"successFilledBg",M("palette-success-main")),Se(C.Alert,"warningFilledBg",M("palette-warning-main")),Se(C.Alert,"errorFilledColor",No(()=>C.getContrastText(C.error.main))),Se(C.Alert,"infoFilledColor",No(()=>C.getContrastText(C.info.main))),Se(C.Alert,"successFilledColor",No(()=>C.getContrastText(C.success.main))),Se(C.Alert,"warningFilledColor",No(()=>C.getContrastText(C.warning.main))),Se(C.Alert,"errorStandardBg",B(pn,C.error.light,.9)),Se(C.Alert,"infoStandardBg",B(pn,C.info.light,.9)),Se(C.Alert,"successStandardBg",B(pn,C.success.light,.9)),Se(C.Alert,"warningStandardBg",B(pn,C.warning.light,.9)),Se(C.Alert,"errorIconColor",M("palette-error-main")),Se(C.Alert,"infoIconColor",M("palette-info-main")),Se(C.Alert,"successIconColor",M("palette-success-main")),Se(C.Alert,"warningIconColor",M("palette-warning-main")),Se(C.AppBar,"defaultBg",M("palette-grey-100")),Se(C.Avatar,"defaultBg",M("palette-grey-400")),Se(C.Button,"inheritContainedBg",M("palette-grey-300")),Se(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Se(C.Chip,"defaultBorder",M("palette-grey-400")),Se(C.Chip,"defaultAvatarColor",M("palette-grey-700")),Se(C.Chip,"defaultIconColor",M("palette-grey-700")),Se(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Se(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Se(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Se(C.LinearProgress,"primaryBg",B(pn,C.primary.main,.62)),Se(C.LinearProgress,"secondaryBg",B(pn,C.secondary.main,.62)),Se(C.LinearProgress,"errorBg",B(pn,C.error.main,.62)),Se(C.LinearProgress,"infoBg",B(pn,C.info.main,.62)),Se(C.LinearProgress,"successBg",B(pn,C.success.main,.62)),Se(C.LinearProgress,"warningBg",B(pn,C.warning.main,.62)),Se(C.Skeleton,"bg",O?B(tl,C.text.primary,.11):`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Se(C.Slider,"primaryTrack",B(pn,C.primary.main,.62)),Se(C.Slider,"secondaryTrack",B(pn,C.secondary.main,.62)),Se(C.Slider,"errorTrack",B(pn,C.error.main,.62)),Se(C.Slider,"infoTrack",B(pn,C.info.main,.62)),Se(C.Slider,"successTrack",B(pn,C.success.main,.62)),Se(C.Slider,"warningTrack",B(pn,C.warning.main,.62));const W=O?B(fn,C.background.default,.6825):dm(C.background.default,.8);Se(C.SnackbarContent,"bg",W),Se(C.SnackbarContent,"color",No(()=>O?oE.text.primary:C.getContrastText(W))),Se(C.SpeedDialAction,"fabHoverBg",dm(C.background.paper,.15)),Se(C.StepConnector,"border",M("palette-grey-400")),Se(C.StepContent,"border",M("palette-grey-400")),Se(C.Switch,"defaultColor",M("palette-common-white")),Se(C.Switch,"defaultDisabledColor",M("palette-grey-100")),Se(C.Switch,"primaryDisabledColor",B(pn,C.primary.main,.62)),Se(C.Switch,"secondaryDisabledColor",B(pn,C.secondary.main,.62)),Se(C.Switch,"errorDisabledColor",B(pn,C.error.main,.62)),Se(C.Switch,"infoDisabledColor",B(pn,C.info.main,.62)),Se(C.Switch,"successDisabledColor",B(pn,C.success.main,.62)),Se(C.Switch,"warningDisabledColor",B(pn,C.warning.main,.62)),Se(C.TableCell,"border",B(pn,B(tl,C.divider,1),.88)),Se(C.Tooltip,"bg",B(tl,C.grey[700],.92))}if(C.mode==="dark"){Se(C.Alert,"errorColor",B(pn,C.error.light,.6)),Se(C.Alert,"infoColor",B(pn,C.info.light,.6)),Se(C.Alert,"successColor",B(pn,C.success.light,.6)),Se(C.Alert,"warningColor",B(pn,C.warning.light,.6)),Se(C.Alert,"errorFilledBg",M("palette-error-dark")),Se(C.Alert,"infoFilledBg",M("palette-info-dark")),Se(C.Alert,"successFilledBg",M("palette-success-dark")),Se(C.Alert,"warningFilledBg",M("palette-warning-dark")),Se(C.Alert,"errorFilledColor",No(()=>C.getContrastText(C.error.dark))),Se(C.Alert,"infoFilledColor",No(()=>C.getContrastText(C.info.dark))),Se(C.Alert,"successFilledColor",No(()=>C.getContrastText(C.success.dark))),Se(C.Alert,"warningFilledColor",No(()=>C.getContrastText(C.warning.dark))),Se(C.Alert,"errorStandardBg",B(fn,C.error.light,.9)),Se(C.Alert,"infoStandardBg",B(fn,C.info.light,.9)),Se(C.Alert,"successStandardBg",B(fn,C.success.light,.9)),Se(C.Alert,"warningStandardBg",B(fn,C.warning.light,.9)),Se(C.Alert,"errorIconColor",M("palette-error-main")),Se(C.Alert,"infoIconColor",M("palette-info-main")),Se(C.Alert,"successIconColor",M("palette-success-main")),Se(C.Alert,"warningIconColor",M("palette-warning-main")),Se(C.AppBar,"defaultBg",M("palette-grey-900")),Se(C.AppBar,"darkBg",M("palette-background-paper")),Se(C.AppBar,"darkColor",M("palette-text-primary")),Se(C.Avatar,"defaultBg",M("palette-grey-600")),Se(C.Button,"inheritContainedBg",M("palette-grey-800")),Se(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),Se(C.Chip,"defaultBorder",M("palette-grey-700")),Se(C.Chip,"defaultAvatarColor",M("palette-grey-300")),Se(C.Chip,"defaultIconColor",M("palette-grey-300")),Se(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Se(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Se(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Se(C.LinearProgress,"primaryBg",B(fn,C.primary.main,.5)),Se(C.LinearProgress,"secondaryBg",B(fn,C.secondary.main,.5)),Se(C.LinearProgress,"errorBg",B(fn,C.error.main,.5)),Se(C.LinearProgress,"infoBg",B(fn,C.info.main,.5)),Se(C.LinearProgress,"successBg",B(fn,C.success.main,.5)),Se(C.LinearProgress,"warningBg",B(fn,C.warning.main,.5)),Se(C.Skeleton,"bg",O?B(tl,C.text.primary,.13):`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Se(C.Slider,"primaryTrack",B(fn,C.primary.main,.5)),Se(C.Slider,"secondaryTrack",B(fn,C.secondary.main,.5)),Se(C.Slider,"errorTrack",B(fn,C.error.main,.5)),Se(C.Slider,"infoTrack",B(fn,C.info.main,.5)),Se(C.Slider,"successTrack",B(fn,C.success.main,.5)),Se(C.Slider,"warningTrack",B(fn,C.warning.main,.5));const W=O?B(pn,C.background.default,.985):dm(C.background.default,.98);Se(C.SnackbarContent,"bg",W),Se(C.SnackbarContent,"color",No(()=>O?a3.text.primary:C.getContrastText(W))),Se(C.SpeedDialAction,"fabHoverBg",dm(C.background.paper,.15)),Se(C.StepConnector,"border",M("palette-grey-600")),Se(C.StepContent,"border",M("palette-grey-600")),Se(C.Switch,"defaultColor",M("palette-grey-300")),Se(C.Switch,"defaultDisabledColor",M("palette-grey-600")),Se(C.Switch,"primaryDisabledColor",B(fn,C.primary.main,.55)),Se(C.Switch,"secondaryDisabledColor",B(fn,C.secondary.main,.55)),Se(C.Switch,"errorDisabledColor",B(fn,C.error.main,.55)),Se(C.Switch,"infoDisabledColor",B(fn,C.info.main,.55)),Se(C.Switch,"successDisabledColor",B(fn,C.success.main,.55)),Se(C.Switch,"warningDisabledColor",B(fn,C.warning.main,.55)),Se(C.TableCell,"border",B(fn,B(tl,C.divider,1),.68)),Se(C.Tooltip,"bg",B(tl,C.grey[700],.92))}Si(C.background,"default"),Si(C.background,"paper"),Si(C.common,"background"),Si(C.common,"onBackground"),Si(C,"divider"),Object.keys(C).forEach(W=>{const j=C[W];W!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&Se(C[W],"mainChannel",cf(uf(j.main))),j.light&&Se(C[W],"lightChannel",cf(uf(j.light))),j.dark&&Se(C[W],"darkChannel",cf(uf(j.dark))),j.contrastText&&Se(C[W],"contrastTextChannel",cf(uf(j.contrastText))),W==="text"&&(Si(C[W],"primary"),Si(C[W],"secondary")),W==="action"&&(j.active&&Si(C[W],"active"),j.selected&&Si(C[W],"selected")))})}),D=t.reduce((H,C)=>Wr(H,C),D);const F={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:c,getSelector:aU(D),enableContrastVars:s},{vars:q,generateThemeVars:z,generateStyleSheets:$}=_B(D,F);return D.vars=q,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([H,C])=>{D[H]=C}),D.generateThemeVars=z,D.generateStyleSheets=$,D.generateSpacing=function(){return tS(p.spacing,c0(this))},D.getColorSchemeSelector=CB(u),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=c,D.unstable_sxConfig={...xp,...p?.unstable_sxConfig},D.unstable_sx=function(C){return Is({sx:C,theme:this})},D.toRuntimeSource=s3,D}function Uw(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fS({...n===!0?{}:n.palette,mode:t})})}function E0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,c=o||"light",u=a?.[c],d={...a,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return iE(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=iE({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},Uw(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Uw(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),lU({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const pS=E0();function hS(){const e=wp(pS);return e[Yo]||e}function cU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const u3=e=>cU(e)&&e!=="classes",kt=WI({themeId:Yo,defaultTheme:pS,rootShouldForwardProp:u3});function uU({theme:e,...t}){const n=Yo in e?e[Yo]:void 0;return P.jsx(JI,{...t,themeId:n?Yo:void 0,theme:n||e})}const fm={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:dU}=EB({themeId:Yo,theme:()=>E0({cssVariables:!0}),colorSchemeStorageKey:fm.colorSchemeStorageKey,modeStorageKey:fm.modeStorageKey,defaultColorScheme:{light:fm.defaultLightColorScheme,dark:fm.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:i3(e.palette,e.typography)};return t.unstable_sx=function(r){return Is({sx:r,theme:this})},t}}),fU=dU;function pU({theme:e,...t}){const n=x.useMemo(()=>{if(typeof e=="function")return e;const r=Yo in e?e[Yo]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?P.jsx(uU,{theme:n,...t}):P.jsx(fU,{theme:e,...t})}function hU(e){return P.jsx(aS,{...e,defaultTheme:pS,themeId:Yo})}function d3(e){return function(n){return P.jsx(hU,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function mU(){return oS}const Eo=e3;function Xr(e){return cB(e)}function gU(e){return ha("MuiSvgIcon",e)}Kr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yU=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${tn(t)}`,`fontSize${tn(n)}`]};return Pa(a,gU,r)},vU=kt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${tn(n.color)}`],t[`fontSize${tn(n.fontSize)}`]]}})(Eo(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),lE=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...g}=r,b=x.isValidElement(a)&&a.type==="svg",E={...r,color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:b},T={};p||(T.viewBox=y);const A=yU(E);return P.jsxs(vU,{as:c,className:An(A.root,o),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...T,...g,...b&&a.props,ownerState:E,children:[b?a.props.children:a,h?P.jsx("title",{children:h}):null]})});lE.muiName="SvgIcon";function f3(e,t){function n(r,a){return P.jsx(lE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=lE.muiName,x.memo(x.forwardRef(n))}function jw(e){return e&&e.ownerDocument||document}function Hw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bU(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:o}=x.useRef(t!==void 0),[s,c]=x.useState(n),u=o?t:s,d=x.useCallback(p=>{o||c(p)},[]);return[u,d]}function eu(e){const t=x.useRef(e);return Il(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ni(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function p3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cE(e,t){return cE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cE(e,t)}function h3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cE(e,t)}const zw={disabled:!1},vg=Tt.createContext(null);var EU=function(t){return t.scrollTop},df="unmounted",sl="exited",ll="entering",Gc="entered",uE="exiting",Fi=(function(e){h3(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=a,c=s&&!s.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?c?(u=sl,o.appearStatus=ll):u=Gc:r.unmountOnExit||r.mountOnEnter?u=df:u=sl,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===df?{status:sl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==ll&&s!==Gc&&(o=ll):(s===ll||s===Gc)&&(o=uE)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,o,s,c;return o=s=c=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,c=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:c}},n.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===ll){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this);s&&EU(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sl&&this.setState({status:df})},n.performEnter=function(a){var o=this,s=this.props.enter,c=this.context?this.context.isMounting:a,u=this.props.nodeRef?[c]:[Ts.findDOMNode(this),c],d=u[0],p=u[1],h=this.getTimeouts(),y=c?h.appear:h.enter;if(!a&&!s||zw.disabled){this.safeSetState({status:Gc},function(){o.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:ll},function(){o.props.onEntering(d,p),o.onTransitionEnd(y,function(){o.safeSetState({status:Gc},function(){o.props.onEntered(d,p)})})})},n.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:Ts.findDOMNode(this);if(!o||zw.disabled){this.safeSetState({status:sl},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:uE},function(){a.props.onExiting(c),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:sl},function(){a.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},n.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(c){s&&(s=!1,o.nextCallback=null,a(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this),c=a==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===df)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var c=p3(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(vg.Provider,{value:null},typeof s=="function"?s(a,c):Tt.cloneElement(Tt.Children.only(s),c))},t})(Tt.Component);Fi.contextType=vg;Fi.propTypes={};function Nc(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nc,onEntering:Nc,onEntered:Nc,onExit:Nc,onExiting:Nc,onExited:Nc};Fi.UNMOUNTED=df;Fi.EXITED=sl;Fi.ENTERING=ll;Fi.ENTERED=Gc;Fi.EXITING=uE;function TU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mS(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function SU(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<a.length;s++)c[a[s]]=n(a[s]);return c}function ml(e,t,n){return n[t]!=null?n[t]:e.props[t]}function _U(e,t){return mS(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ml(n,"appear",e),enter:ml(n,"enter",e),exit:ml(n,"exit",e)})})}function CU(e,t,n){var r=mS(e.children),a=SU(t,r);return Object.keys(a).forEach(function(o){var s=a[o];if(x.isValidElement(s)){var c=o in t,u=o in r,d=t[o],p=x.isValidElement(d)&&!d.props.in;u&&(!c||p)?a[o]=x.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ml(s,"exit",e),enter:ml(s,"enter",e)}):!u&&c&&!p?a[o]=x.cloneElement(s,{in:!1}):u&&c&&x.isValidElement(d)&&(a[o]=x.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:ml(s,"exit",e),enter:ml(s,"enter",e)}))}}),a}var AU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xU={component:"div",childFactory:function(t){return t}},gS=(function(e){h3(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=o.handleExited.bind(TU(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,o){var s=o.children,c=o.handleExited,u=o.firstRender;return{children:u?_U(a,c):CU(a,s,c),firstRender:!1}},n.handleExited=function(a,o){var s=mS(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(c){var u=hg({},c.children);return delete u[a.key],{children:u}}))},n.render=function(){var a=this.props,o=a.component,s=a.childFactory,c=p3(a,["component","childFactory"]),u=this.state.contextValue,d=AU(this.state.children).map(s);return delete c.appear,delete c.enter,delete c.exit,o===null?Tt.createElement(vg.Provider,{value:u},d):Tt.createElement(vg.Provider,{value:u},Tt.createElement(o,c,d))},t})(Tt.Component);gS.propTypes={};gS.defaultProps=xU;const Vw={};function m3(e,t){const n=x.useRef(Vw);return n.current===Vw&&(n.current=e(t)),n}const wU=[];function kU(e){x.useEffect(e,wU)}class T0{static create(){return new T0}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Yc(){const e=m3(T0.create).current;return kU(e.disposeEffect),e}const DU=e=>e.scrollTop;function Gw(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function RU(e){return ha("MuiPaper",e)}Kr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const OU=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Pa(o,RU,a)},IU=kt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Eo(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),NU=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiPaper"}),a=hS(),{className:o,component:s="div",elevation:c=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:s,elevation:c,square:u,variant:d},y=OU(h);return P.jsx(IU,{as:s,ownerState:h,className:An(y.root,o),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[c],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[c]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ra("#fff",sE(c))}, ${Ra("#fff",sE(c))})`}},...p.style}})});function LU(e){return typeof e=="string"}function g3(e,t,n){return e===void 0||LU(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function y3(e,t,n){return typeof e=="function"?e(t,n):e}function PU(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function qw(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const g=An(n?.className,o,a?.className,r?.className),b={...n?.style,...a?.style,...r?.style},E={...n,...a,...r};return g.length>0&&(E.className=g),Object.keys(b).length>0&&(E.style=b),{props:E,internalRef:void 0}}const s=PU({...a,...r}),c=qw(r),u=qw(a),d=t(s),p=An(d?.className,n?.className,o,a?.className,r?.className),h={...d?.style,...n?.style,...a?.style,...r?.style},y={...d,...n,...u,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function pm(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=o,g=p[e]||r,b=y3(h[e],a),{props:{component:E,...T},internalRef:A}=v3({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),w=Ni(A,b?.ref,t.ref),k=e==="root"?E||d:E,O=g3(g,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...T,...k&&!c&&{as:k},...k&&c&&{component:k},ref:w},a);return[g,O]}function bg(e){try{return e.matches(":focus-visible")}catch{}return!1}class Eg{static create(){return new Eg}static use(){const t=m3(Eg.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=$U(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function MU(){return Eg.use()}function $U(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function FU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=x.useState(!1),y=An(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},b=An(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),x.useEffect(()=>{if(!c&&u!=null){const E=setTimeout(u,d);return()=>{clearTimeout(E)}}},[u,c,d]),P.jsx("span",{className:y,style:g,children:P.jsx("span",{className:b})})}const Qa=Kr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dE=550,BU=80,UU=ei`
|
|
112
|
+
0% {
|
|
113
|
+
transform: scale(0);
|
|
114
|
+
opacity: 0.1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
100% {
|
|
118
|
+
transform: scale(1);
|
|
119
|
+
opacity: 0.3;
|
|
120
|
+
}
|
|
121
|
+
`,jU=ei`
|
|
122
|
+
0% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
`,HU=ei`
|
|
130
|
+
0% {
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
50% {
|
|
135
|
+
transform: scale(0.92);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
100% {
|
|
139
|
+
transform: scale(1);
|
|
140
|
+
}
|
|
141
|
+
`,zU=kt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),VU=kt(FU,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
+
opacity: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
|
|
145
|
+
&.${Qa.rippleVisible} {
|
|
146
|
+
opacity: 0.3;
|
|
147
|
+
transform: scale(1);
|
|
148
|
+
animation-name: ${UU};
|
|
149
|
+
animation-duration: ${dE}ms;
|
|
150
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.${Qa.ripplePulsate} {
|
|
154
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& .${Qa.child} {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
display: block;
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background-color: currentColor;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .${Qa.childLeaving} {
|
|
167
|
+
opacity: 0;
|
|
168
|
+
animation-name: ${jU};
|
|
169
|
+
animation-duration: ${dE}ms;
|
|
170
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
& .${Qa.childPulsate} {
|
|
174
|
+
position: absolute;
|
|
175
|
+
/* @noflip */
|
|
176
|
+
left: 0px;
|
|
177
|
+
top: 0;
|
|
178
|
+
animation-name: ${HU};
|
|
179
|
+
animation-duration: 2500ms;
|
|
180
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
181
|
+
animation-iteration-count: infinite;
|
|
182
|
+
animation-delay: 200ms;
|
|
183
|
+
}
|
|
184
|
+
`,GU=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s,...c}=r,[u,d]=x.useState([]),p=x.useRef(0),h=x.useRef(null);x.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const y=x.useRef(!1),g=Yc(),b=x.useRef(null),E=x.useRef(null),T=x.useCallback(O=>{const{pulsate:R,rippleX:D,rippleY:F,rippleSize:q,cb:z}=O;d($=>[...$,P.jsx(VU,{classes:{ripple:An(o.ripple,Qa.ripple),rippleVisible:An(o.rippleVisible,Qa.rippleVisible),ripplePulsate:An(o.ripplePulsate,Qa.ripplePulsate),child:An(o.child,Qa.child),childLeaving:An(o.childLeaving,Qa.childLeaving),childPulsate:An(o.childPulsate,Qa.childPulsate)},timeout:dE,pulsate:R,rippleX:D,rippleY:F,rippleSize:q},p.current)]),p.current+=1,h.current=z},[o]),A=x.useCallback((O={},R={},D=()=>{})=>{const{pulsate:F=!1,center:q=a||R.pulsate,fakeElement:z=!1}=R;if(O?.type==="mousedown"&&y.current){y.current=!1;return}O?.type==="touchstart"&&(y.current=!0);const $=z?null:E.current,H=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,M,B;if(q||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)C=Math.round(H.width/2),M=Math.round(H.height/2);else{const{clientX:W,clientY:j}=O.touches&&O.touches.length>0?O.touches[0]:O;C=Math.round(W-H.left),M=Math.round(j-H.top)}if(q)B=Math.sqrt((2*H.width**2+H.height**2)/3),B%2===0&&(B+=1);else{const W=Math.max(Math.abs(($?$.clientWidth:0)-C),C)*2+2,j=Math.max(Math.abs(($?$.clientHeight:0)-M),M)*2+2;B=Math.sqrt(W**2+j**2)}O?.touches?b.current===null&&(b.current=()=>{T({pulsate:F,rippleX:C,rippleY:M,rippleSize:B,cb:D})},g.start(BU,()=>{b.current&&(b.current(),b.current=null)})):T({pulsate:F,rippleX:C,rippleY:M,rippleSize:B,cb:D})},[a,T,g]),w=x.useCallback(()=>{A({},{pulsate:!0})},[A]),k=x.useCallback((O,R)=>{if(g.clear(),O?.type==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{k(O,R)});return}b.current=null,d(D=>D.length>0?D.slice(1):D),h.current=R},[g]);return x.useImperativeHandle(n,()=>({pulsate:w,start:A,stop:k}),[w,A,k]),P.jsx(zU,{className:An(Qa.root,o.root,s),ref:E,...c,children:P.jsx(gS,{component:null,exit:!0,children:u})})});function qU(e){return ha("MuiButtonBase",e)}const WU=Kr("MuiButtonBase",["root","disabled","focusVisible"]),YU=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=Pa({root:["root",t&&"disabled",n&&"focusVisible"]},qU,a);return n&&r&&(s.root+=` ${r}`),s},QU=kt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${WU.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),b3=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:E,onClick:T,onContextMenu:A,onDragLeave:w,onFocus:k,onFocusVisible:O,onKeyDown:R,onKeyUp:D,onMouseDown:F,onMouseLeave:q,onMouseUp:z,onTouchEnd:$,onTouchMove:H,onTouchStart:C,tabIndex:M=0,TouchRippleProps:B,touchRippleRef:W,type:j,...Z}=r,Q=x.useRef(null),ae=MU(),I=Ni(ae.ref,W),[ne,ee]=x.useState(!1);d&&ne&&ee(!1),x.useImperativeHandle(a,()=>({focusVisible:()=>{ee(!0),Q.current.focus()}}),[]);const L=ae.shouldMount&&!p&&!d;x.useEffect(()=>{ne&&y&&!p&&ae.pulsate()},[p,y,ne,ae]);const te=_i(ae,"start",F,h),be=_i(ae,"stop",A,h),de=_i(ae,"stop",w,h),xe=_i(ae,"stop",z,h),ye=_i(ae,"stop",Pe=>{ne&&Pe.preventDefault(),q&&q(Pe)},h),Oe=_i(ae,"start",C,h),Ue=_i(ae,"stop",$,h),Ie=_i(ae,"stop",H,h),Ye=_i(ae,"stop",Pe=>{bg(Pe.target)||ee(!1),E&&E(Pe)},!1),Ve=eu(Pe=>{Q.current||(Q.current=Pe.currentTarget),bg(Pe.target)&&(ee(!0),O&&O(Pe)),k&&k(Pe)}),De=()=>{const Pe=Q.current;return u&&u!=="button"&&!(Pe.tagName==="A"&&Pe.href)},Ot=eu(Pe=>{y&&!Pe.repeat&&ne&&Pe.key===" "&&ae.stop(Pe,()=>{ae.start(Pe)}),Pe.target===Pe.currentTarget&&De()&&Pe.key===" "&&Pe.preventDefault(),R&&R(Pe),Pe.target===Pe.currentTarget&&De()&&Pe.key==="Enter"&&!d&&(Pe.preventDefault(),T&&T(Pe))}),Et=eu(Pe=>{y&&Pe.key===" "&&ne&&!Pe.defaultPrevented&&ae.stop(Pe,()=>{ae.pulsate(Pe)}),D&&D(Pe),T&&Pe.target===Pe.currentTarget&&De()&&Pe.key===" "&&!Pe.defaultPrevented&&T(Pe)});let je=u;je==="button"&&(Z.href||Z.to)&&(je=b);const St={};je==="button"?(St.type=j===void 0?"button":j,St.disabled=d):(!Z.href&&!Z.to&&(St.role="button"),d&&(St["aria-disabled"]=d));const it=Ni(n,Q),Ze={...r,centerRipple:o,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:y,tabIndex:M,focusVisible:ne},Ge=YU(Ze);return P.jsxs(QU,{as:je,className:An(Ge.root,c),ownerState:Ze,onBlur:Ye,onClick:T,onContextMenu:be,onFocus:Ve,onKeyDown:Ot,onKeyUp:Et,onMouseDown:te,onMouseLeave:ye,onMouseUp:xe,onDragLeave:de,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:Oe,ref:it,tabIndex:d?-1:M,type:j,...St,...Z,children:[s,L?P.jsx(GU,{ref:I,center:o,...B}):null]})});function _i(e,t,n,r=!1){return eu(a=>(n&&n(a),r||e[t](a),!0))}function KU(e){return typeof e.main=="string"}function XU(e,t=[]){if(!KU(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wf(e=[]){return([,t])=>t&&XU(t,e)}function ZU(e){return ha("MuiCircularProgress",e)}Kr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fs=44,fE=ei`
|
|
185
|
+
0% {
|
|
186
|
+
transform: rotate(0deg);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
100% {
|
|
190
|
+
transform: rotate(360deg);
|
|
191
|
+
}
|
|
192
|
+
`,pE=ei`
|
|
193
|
+
0% {
|
|
194
|
+
stroke-dasharray: 1px, 200px;
|
|
195
|
+
stroke-dashoffset: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
50% {
|
|
199
|
+
stroke-dasharray: 100px, 200px;
|
|
200
|
+
stroke-dashoffset: -15px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
100% {
|
|
204
|
+
stroke-dasharray: 1px, 200px;
|
|
205
|
+
stroke-dashoffset: -126px;
|
|
206
|
+
}
|
|
207
|
+
`,JU=typeof fE!="string"?Cp`
|
|
208
|
+
animation: ${fE} 1.4s linear infinite;
|
|
209
|
+
`:null,ej=typeof pE!="string"?Cp`
|
|
210
|
+
animation: ${pE} 1.4s ease-in-out infinite;
|
|
211
|
+
`:null,tj=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,o={root:["root",n,`color${tn(r)}`],svg:["svg"],circle:["circle",`circle${tn(n)}`,a&&"circleDisableShrink"]};return Pa(o,ZU,t)},nj=kt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tn(n.color)}`]]}})(Eo(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:JU||{animation:`${fE} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rj=kt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),aj=kt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tn(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Eo(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ej||{animation:`${pE} 1.4s ease-in-out infinite`}}]}))),yS=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:s=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...y}=r,g={...r,color:o,disableShrink:s,size:c,thickness:d,value:p,variant:h},b=tj(g),E={},T={},A={};if(h==="determinate"){const w=2*Math.PI*((fs-d)/2);E.strokeDasharray=w.toFixed(3),A["aria-valuenow"]=Math.round(p),E.strokeDashoffset=`${((100-p)/100*w).toFixed(3)}px`,T.transform="rotate(-90deg)"}return P.jsx(nj,{className:An(b.root,a),style:{width:c,height:c,...T,...u},ownerState:g,ref:n,role:"progressbar",...A,...y,children:P.jsx(rj,{className:b.svg,ownerState:g,viewBox:`${fs/2} ${fs/2} ${fs} ${fs}`,children:P.jsx(aj,{className:b.circle,style:E,ownerState:g,cx:fs,cy:fs,r:(fs-d)/2,fill:"none",strokeWidth:d})})})});function oj(e){return ha("MuiIconButton",e)}const Ww=Kr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ij=e=>{const{classes:t,disabled:n,color:r,edge:a,size:o,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${tn(r)}`,a&&`edge${tn(a)}`,`size${tn(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Pa(c,oj,t)},sj=kt(b3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${tn(n.color)}`],n.edge&&t[`edge${tn(n.edge)}`],t[`size${tn(n.size)}`]]}})(Eo(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Eo(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wf()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Ww.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ww.loading}`]:{color:"transparent"}}))),lj=kt("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),cj=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:y=null,loadingIndicator:g,...b}=r,E=b0(h),T=g??P.jsx(yS,{"aria-labelledby":E,color:"inherit",size:16}),A={...r,edge:a,color:c,disabled:u,disableFocusRipple:d,loading:y,loadingIndicator:T,size:p},w=ij(A);return P.jsxs(sj,{id:y?E:h,className:An(w.root,s),centerRipple:!0,focusRipple:!d,disabled:u||y,ref:n,...b,ownerState:A,children:[typeof y=="boolean"&&P.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:P.jsx(lj,{className:w.loadingIndicator,ownerState:A,children:y&&T})}),o]})});function uj(e){return ha("MuiTypography",e)}const Yge=Kr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),dj={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},fj=mU(),pj=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=e,c={root:["root",o,e.align!=="inherit"&&`align${tn(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Pa(c,uj,s)},hj=kt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${tn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Eo(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Wf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${tn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Yw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vS=x.forwardRef(function(t,n){const{color:r,...a}=Xr({props:t,name:"MuiTypography"}),o=!dj[r],s=fj({...a,...o&&{color:r}}),{align:c="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:g="body1",variantMapping:b=Yw,...E}=s,T={...s,align:c,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:y,variant:g,variantMapping:b},A=d||(y?"p":b[g]||Yw[g])||"span",w=pj(T);return P.jsx(hj,{as:A,ref:n,className:An(w.root,u),...E,ownerState:T,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...E.style}})});var la="top",so="bottom",lo="right",ca="left",bS="auto",kp=[la,so,lo,ca],cu="start",Yf="end",mj="clippingParents",E3="viewport",Bd="popper",gj="reference",Qw=kp.reduce(function(e,t){return e.concat([t+"-"+cu,t+"-"+Yf])},[]),T3=[].concat(kp,[bS]).reduce(function(e,t){return e.concat([t,t+"-"+cu,t+"-"+Yf])},[]),yj="beforeRead",vj="read",bj="afterRead",Ej="beforeMain",Tj="main",Sj="afterMain",_j="beforeWrite",Cj="write",Aj="afterWrite",xj=[yj,vj,bj,Ej,Tj,Sj,_j,Cj,Aj];function Xo(e){return e?(e.nodeName||"").toLowerCase():null}function La(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nl(e){var t=La(e).Element;return e instanceof t||e instanceof Element}function ao(e){var t=La(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ES(e){if(typeof ShadowRoot>"u")return!1;var t=La(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!ao(o)||!Xo(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var c=a[s];c===!1?o.removeAttribute(s):o.setAttribute(s,c===!0?"":c)}))})}function kj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=s.reduce(function(u,d){return u[d]="",u},{});!ao(a)||!Xo(a)||(Object.assign(a.style,c),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const Dj={name:"applyStyles",enabled:!0,phase:"write",fn:wj,effect:kj,requires:["computeStyles"]};function Ko(e){return e.split("-")[0]}var _l=Math.max,Tg=Math.min,uu=Math.round;function hE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function S3(){return!/^((?!chrome|android).)*safari/i.test(hE())}function du(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&ao(e)&&(a=e.offsetWidth>0&&uu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uu(r.height)/e.offsetHeight||1);var s=Nl(e)?La(e):window,c=s.visualViewport,u=!S3()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/a,p=(r.top+(u&&c?c.offsetTop:0))/o,h=r.width/a,y=r.height/o;return{width:h,height:y,top:p,right:d+h,bottom:p+y,left:d,x:d,y:p}}function TS(e){var t=du(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ES(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Li(e){return La(e).getComputedStyle(e)}function Rj(e){return["table","td","th"].indexOf(Xo(e))>=0}function $s(e){return((Nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function S0(e){return Xo(e)==="html"?e:e.assignedSlot||e.parentNode||(ES(e)?e.host:null)||$s(e)}function Kw(e){return!ao(e)||Li(e).position==="fixed"?null:e.offsetParent}function Oj(e){var t=/firefox/i.test(hE()),n=/Trident/i.test(hE());if(n&&ao(e)){var r=Li(e);if(r.position==="fixed")return null}var a=S0(e);for(ES(a)&&(a=a.host);ao(a)&&["html","body"].indexOf(Xo(a))<0;){var o=Li(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Dp(e){for(var t=La(e),n=Kw(e);n&&Rj(n)&&Li(n).position==="static";)n=Kw(n);return n&&(Xo(n)==="html"||Xo(n)==="body"&&Li(n).position==="static")?t:n||Oj(e)||t}function SS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bf(e,t,n){return _l(e,Tg(t,n))}function Ij(e,t,n){var r=bf(e,t,n);return r>n?n:r}function C3(){return{top:0,right:0,bottom:0,left:0}}function A3(e){return Object.assign({},C3(),e)}function x3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Nj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,A3(typeof t!="number"?t:x3(t,kp))};function Lj(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Ko(n.placement),u=SS(c),d=[ca,lo].indexOf(c)>=0,p=d?"height":"width";if(!(!o||!s)){var h=Nj(a.padding,n),y=TS(o),g=u==="y"?la:ca,b=u==="y"?so:lo,E=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],T=s[u]-n.rects.reference[u],A=Dp(o),w=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,k=E/2-T/2,O=h[g],R=w-y[p]-h[b],D=w/2-y[p]/2+k,F=bf(O,D,R),q=u;n.modifiersData[r]=(t={},t[q]=F,t.centerOffset=F-D,t)}}function Pj(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||_3(t.elements.popper,a)&&(t.elements.arrow=a))}const Mj={name:"arrow",enabled:!0,phase:"main",fn:Lj,effect:Pj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fu(e){return e.split("-")[1]}var $j={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fj(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:uu(n*a)/a||0,y:uu(r*a)/a||0}}function Xw(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,y=s.x,g=y===void 0?0:y,b=s.y,E=b===void 0?0:b,T=typeof p=="function"?p({x:g,y:E}):{x:g,y:E};g=T.x,E=T.y;var A=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),k=ca,O=la,R=window;if(d){var D=Dp(n),F="clientHeight",q="clientWidth";if(D===La(n)&&(D=$s(n),Li(D).position!=="static"&&c==="absolute"&&(F="scrollHeight",q="scrollWidth")),D=D,a===la||(a===ca||a===lo)&&o===Yf){O=so;var z=h&&D===R&&R.visualViewport?R.visualViewport.height:D[F];E-=z-r.height,E*=u?1:-1}if(a===ca||(a===la||a===so)&&o===Yf){k=lo;var $=h&&D===R&&R.visualViewport?R.visualViewport.width:D[q];g-=$-r.width,g*=u?1:-1}}var H=Object.assign({position:c},d&&$j),C=p===!0?Fj({x:g,y:E},La(n)):{x:g,y:E};if(g=C.x,E=C.y,u){var M;return Object.assign({},H,(M={},M[O]=w?"0":"",M[k]=A?"0":"",M.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+E+"px)":"translate3d("+g+"px, "+E+"px, 0)",M))}return Object.assign({},H,(t={},t[O]=w?E+"px":"",t[k]=A?g+"px":"",t.transform="",t))}function Bj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Ko(t.placement),variation:fu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Xw(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xw(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Uj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bj,data:{}};var hm={passive:!0};function jj(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,c=s===void 0?!0:s,u=La(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",n.update,hm)}),c&&u.addEventListener("resize",n.update,hm),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",n.update,hm)}),c&&u.removeEventListener("resize",n.update,hm)}}const Hj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jj,data:{}};var zj={left:"right",right:"left",bottom:"top",top:"bottom"};function Gm(e){return e.replace(/left|right|bottom|top/g,function(t){return zj[t]})}var Vj={start:"end",end:"start"};function Zw(e){return e.replace(/start|end/g,function(t){return Vj[t]})}function _S(e){var t=La(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function CS(e){return du($s(e)).left+_S(e).scrollLeft}function Gj(e,t){var n=La(e),r=$s(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,c=0,u=0;if(a){o=a.width,s=a.height;var d=S3();(d||!d&&t==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:c+CS(e),y:u}}function qj(e){var t,n=$s(e),r=_S(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=_l(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=_l(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-r.scrollLeft+CS(e),u=-r.scrollTop;return Li(a||n).direction==="rtl"&&(c+=_l(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:c,y:u}}function AS(e){var t=Li(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function w3(e){return["html","body","#document"].indexOf(Xo(e))>=0?e.ownerDocument.body:ao(e)&&AS(e)?e:w3(S0(e))}function Ef(e,t){var n;t===void 0&&(t=[]);var r=w3(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=La(r),s=a?[o].concat(o.visualViewport||[],AS(r)?r:[]):r,c=t.concat(s);return a?c:c.concat(Ef(S0(s)))}function mE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wj(e,t){var n=du(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Jw(e,t,n){return t===E3?mE(Gj(e,n)):Nl(t)?Wj(t,n):mE(qj($s(e)))}function Yj(e){var t=Ef(S0(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0,r=n&&ao(e)?Dp(e):e;return Nl(r)?t.filter(function(a){return Nl(a)&&_3(a,r)&&Xo(a)!=="body"}):[]}function Qj(e,t,n,r){var a=t==="clippingParents"?Yj(e):[].concat(t),o=[].concat(a,[n]),s=o[0],c=o.reduce(function(u,d){var p=Jw(e,d,r);return u.top=_l(p.top,u.top),u.right=Tg(p.right,u.right),u.bottom=Tg(p.bottom,u.bottom),u.left=_l(p.left,u.left),u},Jw(e,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function k3(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ko(r):null,o=r?fu(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(a){case la:u={x:s,y:t.y-n.height};break;case so:u={x:s,y:t.y+t.height};break;case lo:u={x:t.x+t.width,y:c};break;case ca:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=a?SS(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case cu:u[d]=u[d]-(t[p]/2-n[p]/2);break;case Yf:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function Qf(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,c=n.boundary,u=c===void 0?mj:c,d=n.rootBoundary,p=d===void 0?E3:d,h=n.elementContext,y=h===void 0?Bd:h,g=n.altBoundary,b=g===void 0?!1:g,E=n.padding,T=E===void 0?0:E,A=A3(typeof T!="number"?T:x3(T,kp)),w=y===Bd?gj:Bd,k=e.rects.popper,O=e.elements[b?w:y],R=Qj(Nl(O)?O:O.contextElement||$s(e.elements.popper),u,p,s),D=du(e.elements.reference),F=k3({reference:D,element:k,placement:a}),q=mE(Object.assign({},k,F)),z=y===Bd?q:D,$={top:R.top-z.top+A.top,bottom:z.bottom-R.bottom+A.bottom,left:R.left-z.left+A.left,right:z.right-R.right+A.right},H=e.modifiersData.offset;if(y===Bd&&H){var C=H[a];Object.keys($).forEach(function(M){var B=[lo,so].indexOf(M)>=0?1:-1,W=[la,so].indexOf(M)>=0?"y":"x";$[M]+=C[W]*B})}return $}function Kj(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?T3:u,p=fu(r),h=p?c?Qw:Qw.filter(function(b){return fu(b)===p}):kp,y=h.filter(function(b){return d.indexOf(b)>=0});y.length===0&&(y=h);var g=y.reduce(function(b,E){return b[E]=Qf(e,{placement:E,boundary:a,rootBoundary:o,padding:s})[Ko(E)],b},{});return Object.keys(g).sort(function(b,E){return g[b]-g[E]})}function Xj(e){if(Ko(e)===bS)return[];var t=Gm(e);return[Zw(e),t,Zw(t)]}function Zj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,c=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,E=n.allowedAutoPlacements,T=t.options.placement,A=Ko(T),w=A===T,k=u||(w||!b?[Gm(T)]:Xj(T)),O=[T].concat(k).reduce(function(te,be){return te.concat(Ko(be)===bS?Kj(t,{placement:be,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:E}):be)},[]),R=t.rects.reference,D=t.rects.popper,F=new Map,q=!0,z=O[0],$=0;$<O.length;$++){var H=O[$],C=Ko(H),M=fu(H)===cu,B=[la,so].indexOf(C)>=0,W=B?"width":"height",j=Qf(t,{placement:H,boundary:p,rootBoundary:h,altBoundary:y,padding:d}),Z=B?M?lo:ca:M?so:la;R[W]>D[W]&&(Z=Gm(Z));var Q=Gm(Z),ae=[];if(o&&ae.push(j[C]<=0),c&&ae.push(j[Z]<=0,j[Q]<=0),ae.every(function(te){return te})){z=H,q=!1;break}F.set(H,ae)}if(q)for(var I=b?3:1,ne=function(be){var de=O.find(function(xe){var ye=F.get(xe);if(ye)return ye.slice(0,be).every(function(Oe){return Oe})});if(de)return z=de,"break"},ee=I;ee>0;ee--){var L=ne(ee);if(L==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Jj={name:"flip",enabled:!0,phase:"main",fn:Zj,requiresIfExists:["offset"],data:{_skip:!1}};function ek(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tk(e){return[la,lo,so,ca].some(function(t){return e[t]>=0})}function eH(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Qf(t,{elementContext:"reference"}),c=Qf(t,{altBoundary:!0}),u=ek(s,r),d=ek(c,a,o),p=tk(u),h=tk(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const tH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eH};function nH(e,t,n){var r=Ko(e),a=[ca,la].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],c=o[1];return s=s||0,c=(c||0)*a,[ca,lo].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function rH(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=T3.reduce(function(p,h){return p[h]=nH(h,t.rects,o),p},{}),c=s[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const aH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rH};function oH(e){var t=e.state,n=e.name;t.modifiersData[n]=k3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const iH={name:"popperOffsets",enabled:!0,phase:"read",fn:oH,data:{}};function sH(e){return e==="x"?"y":"x"}function lH(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,c=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,y=n.tether,g=y===void 0?!0:y,b=n.tetherOffset,E=b===void 0?0:b,T=Qf(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),A=Ko(t.placement),w=fu(t.placement),k=!w,O=SS(A),R=sH(O),D=t.modifiersData.popperOffsets,F=t.rects.reference,q=t.rects.popper,z=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,$=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(D){if(o){var M,B=O==="y"?la:ca,W=O==="y"?so:lo,j=O==="y"?"height":"width",Z=D[O],Q=Z+T[B],ae=Z-T[W],I=g?-q[j]/2:0,ne=w===cu?F[j]:q[j],ee=w===cu?-q[j]:-F[j],L=t.elements.arrow,te=g&&L?TS(L):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C3(),de=be[B],xe=be[W],ye=bf(0,F[j],te[j]),Oe=k?F[j]/2-I-ye-de-$.mainAxis:ne-ye-de-$.mainAxis,Ue=k?-F[j]/2+I+ye+xe+$.mainAxis:ee+ye+xe+$.mainAxis,Ie=t.elements.arrow&&Dp(t.elements.arrow),Ye=Ie?O==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,Ve=(M=H?.[O])!=null?M:0,De=Z+Oe-Ve-Ye,Ot=Z+Ue-Ve,Et=bf(g?Tg(Q,De):Q,Z,g?_l(ae,Ot):ae);D[O]=Et,C[O]=Et-Z}if(c){var je,St=O==="x"?la:ca,it=O==="x"?so:lo,Ze=D[R],Ge=R==="y"?"height":"width",Pe=Ze+T[St],It=Ze-T[it],kn=[la,ca].indexOf(A)!==-1,bt=(je=H?.[R])!=null?je:0,ce=kn?Pe:Ze-F[Ge]-q[Ge]-bt+$.altAxis,me=kn?Ze+F[Ge]+q[Ge]-bt-$.altAxis:It,Be=g&&kn?Ij(ce,Ze,me):bf(g?ce:Pe,Ze,g?me:It);D[R]=Be,C[R]=Be-Ze}t.modifiersData[r]=C}}const cH={name:"preventOverflow",enabled:!0,phase:"main",fn:lH,requiresIfExists:["offset"]};function uH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dH(e){return e===La(e)||!ao(e)?_S(e):uH(e)}function fH(e){var t=e.getBoundingClientRect(),n=uu(t.width)/e.offsetWidth||1,r=uu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pH(e,t,n){n===void 0&&(n=!1);var r=ao(t),a=ao(t)&&fH(t),o=$s(t),s=du(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Xo(t)!=="body"||AS(o))&&(c=dH(t)),ao(t)?(u=du(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=CS(o))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function hH(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&a(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function mH(e){var t=hH(e);return xj.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function gH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yH(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nk={placement:"bottom",modifiers:[],strategy:"absolute"};function rk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?nk:a;return function(c,u,d){d===void 0&&(d=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},nk,o),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],y=!1,g={state:p,setOptions:function(A){var w=typeof A=="function"?A(p.options):A;E(),p.options=Object.assign({},o,p.options,w),p.scrollParents={reference:Nl(c)?Ef(c):c.contextElement?Ef(c.contextElement):[],popper:Ef(u)};var k=mH(yH([].concat(r,p.options.modifiers)));return p.orderedModifiers=k.filter(function(O){return O.enabled}),b(),g.update()},forceUpdate:function(){if(!y){var A=p.elements,w=A.reference,k=A.popper;if(rk(w,k)){p.rects={reference:pH(w,Dp(k),p.options.strategy==="fixed"),popper:TS(k)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var R=p.orderedModifiers[O],D=R.fn,F=R.options,q=F===void 0?{}:F,z=R.name;typeof D=="function"&&(p=D({state:p,options:q,name:z,instance:g})||p)}}}},update:gH(function(){return new Promise(function(T){g.forceUpdate(),T(p)})}),destroy:function(){E(),y=!0}};if(!rk(c,u))return g;g.setOptions(d).then(function(T){!y&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var A=T.name,w=T.options,k=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var R=O({state:p,name:A,instance:g,options:k}),D=function(){};h.push(R||D)}})}function E(){h.forEach(function(T){return T()}),h=[]}return g}}var bH=[Hj,iH,Uj,Dj,aH,Jj,cH,Mj,tH],EH=vH({defaultModifiers:bH});function TH(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:y3(n,r),{props:c,internalRef:u}=v3({...o,externalSlotProps:s}),d=Ni(u,s?.ref,e.additionalProps?.ref);return g3(t,{...c,ref:d},r)}function xS(e){return parseInt(x.version,10)>=19?e?.props?.ref||null:e?.ref||null}function SH(e){return typeof e=="function"?e():e}const _H=x.forwardRef(function(t,n){const{children:r,container:a,disablePortal:o=!1}=t,[s,c]=x.useState(null),u=Ni(x.isValidElement(r)?xS(r):null,n);if(Il(()=>{o||c(SH(a)||document.body)},[a,o]),Il(()=>{if(s&&!o)return Hw(n,s),()=>{Hw(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const d={ref:u};return x.cloneElement(r,d)}return r}return s&&Tp.createPortal(r,s)});function CH(e){return ha("MuiPopper",e)}Kr("MuiPopper",["root"]);function AH(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function gE(e){return typeof e=="function"?e():e}function xH(e){return e.nodeType!==void 0}const wH=e=>{const{classes:t}=e;return Pa({root:["root"]},CH,t)},kH={},DH=x.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:o,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:y={},slots:g={},TransitionProps:b,ownerState:E,...T}=t,A=x.useRef(null),w=Ni(A,n),k=x.useRef(null),O=Ni(k,h),R=x.useRef(O);Il(()=>{R.current=O},[O]),x.useImperativeHandle(h,()=>k.current,[]);const D=AH(d,o),[F,q]=x.useState(D),[z,$]=x.useState(gE(r));x.useEffect(()=>{k.current&&k.current.forceUpdate()}),x.useEffect(()=>{r&&$(gE(r))},[r]),Il(()=>{if(!z||!u)return;const W=Q=>{q(Q.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{W(Q)}}];c!=null&&(j=j.concat(c)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const Z=EH(z,A.current,{placement:D,...p,modifiers:j});return R.current(Z),()=>{Z.destroy(),R.current(null)}},[z,s,c,u,p,D]);const H={placement:F};b!==null&&(H.TransitionProps=b);const C=wH(t),M=g.root??"div",B=TH({elementType:M,externalSlotProps:y.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:C.root});return P.jsx(M,{...B,children:typeof a=="function"?a(H):a})}),RH=x.forwardRef(function(t,n){const{anchorEl:r,children:a,container:o,direction:s="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:y=kH,popperRef:g,style:b,transition:E=!1,slotProps:T={},slots:A={},...w}=t,[k,O]=x.useState(!0),R=()=>{O(!1)},D=()=>{O(!0)};if(!u&&!p&&(!E||k))return null;let F;if(o)F=o;else if(r){const $=gE(r);F=$&&xH($)?jw($).body:jw(null).body}const q=!p&&u&&(!E||k)?"none":void 0,z=E?{in:p,onEnter:R,onExited:D}:void 0;return P.jsx(_H,{disablePortal:c,container:F,children:P.jsx(DH,{anchorEl:r,direction:s,disablePortal:c,modifiers:d,ref:n,open:E?!k:p,placement:h,popperOptions:y,popperRef:g,slotProps:T,slots:A,...w,style:{position:"fixed",top:0,left:0,display:q,...b},TransitionProps:z,children:a})})}),OH=kt(RH,{name:"MuiPopper",slot:"Root"})({}),D3=x.forwardRef(function(t,n){const r=XI(),a=Xr({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:y,open:g,placement:b,popperOptions:E,popperRef:T,transition:A,slots:w,slotProps:k,...O}=a,R=w?.root??c?.Root,D={anchorEl:o,container:d,disablePortal:p,keepMounted:h,modifiers:y,open:g,placement:b,popperOptions:E,popperRef:T,transition:A,...O};return P.jsx(OH,{as:s,direction:r?"rtl":"ltr",slots:{root:R},slotProps:k??u,...D,ref:n})}),IH=Kr("MuiBox",["root"]),NH=E0(),Cl=VI({themeId:Yo,defaultTheme:NH,defaultClassName:IH.root,generateClassName:iS.generate});function LH(e){return ha("MuiButton",e)}const nl=Kr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),PH=x.createContext({}),MH=x.createContext(void 0),$H=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:o,loading:s,loadingPosition:c,classes:u}=e,d={root:["root",s&&"loading",o,`${o}${tn(t)}`,`size${tn(a)}`,`${o}Size${tn(a)}`,`color${tn(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${tn(c)}`],startIcon:["icon","startIcon",`iconSize${tn(a)}`],endIcon:["icon","endIcon",`iconSize${tn(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=Pa(d,LH,u);return{...u,...p}},R3=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],FH=kt(b3,{shouldForwardProp:e=>u3(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tn(n.color)}`],t[`size${tn(n.size)}`],t[`${n.variant}Size${tn(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Eo(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${nl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Wf()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${nl.loading}`]:{color:"transparent"}}}]}})),BH=kt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${tn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...R3]})),UH=kt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${tn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...R3]})),jH=kt("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ak=kt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),HH=x.forwardRef(function(t,n){const r=x.useContext(PH),a=x.useContext(MH),o=qf(r,t),s=Xr({props:o,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:E,fullWidth:T=!1,id:A,loading:w=null,loadingIndicator:k,loadingPosition:O="center",size:R="medium",startIcon:D,type:F,variant:q="text",...z}=s,$=b0(A),H=k??P.jsx(yS,{"aria-labelledby":$,color:"inherit",size:16}),C={...s,color:u,component:d,disabled:h,disableElevation:y,disableFocusRipple:g,fullWidth:T,loading:w,loadingIndicator:H,loadingPosition:O,size:R,type:F,variant:q},M=$H(C),B=(D||w&&O==="start")&&P.jsx(BH,{className:M.startIcon,ownerState:C,children:D||P.jsx(ak,{className:M.loadingIconPlaceholder,ownerState:C})}),W=(b||w&&O==="end")&&P.jsx(UH,{className:M.endIcon,ownerState:C,children:b||P.jsx(ak,{className:M.loadingIconPlaceholder,ownerState:C})}),j=a||"",Z=typeof w=="boolean"?P.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:w&&P.jsx(jH,{className:M.loadingIndicator,ownerState:C,children:H})}):null;return P.jsxs(FH,{ownerState:C,className:An(r.className,M.root,p,j),component:d,disabled:h||w,focusRipple:!g,focusVisibleClassName:An(M.focusVisible,E),ref:n,type:F,id:w?$:A,...z,classes:M,children:[B,O!=="end"&&Z,c,O==="end"&&Z,W]})});function zH(e){return ha("MuiCard",e)}Kr("MuiCard",["root"]);const VH=e=>{const{classes:t}=e;return Pa({root:["root"]},zH,t)},GH=kt(NU,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),O3=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiCard"}),{className:a,raised:o=!1,...s}=r,c={...r,raised:o},u=VH(c);return P.jsx(GH,{className:An(u.root,a),elevation:o?8:void 0,ref:n,ownerState:c,...s})});function qH(e){return ha("MuiCardContent",e)}Kr("MuiCardContent",["root"]);const WH=e=>{const{classes:t}=e;return Pa({root:["root"]},qH,t)},YH=kt("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),I3=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiCardContent"}),{className:a,component:o="div",...s}=r,c={...r,component:o},u=WH(c);return P.jsx(YH,{as:o,className:An(u.root,a),ownerState:c,ref:n,...s})});function QH(e){return ha("MuiCardMedia",e)}Kr("MuiCardMedia",["root","media","img"]);const KH=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Pa({root:["root",n&&"media",r&&"img"]},QH,t)},XH=kt("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:a}=n;return[t.root,r&&t.media,a&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),ZH=["video","audio","picture","iframe","img"],JH=["picture","img"],ez=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiCardMedia"}),{children:a,className:o,component:s="div",image:c,src:u,style:d,...p}=r,h=ZH.includes(s),y=!h&&c?{backgroundImage:`url("${c}")`,...d}:d,g={...r,component:s,isMediaComponent:h,isImageComponent:JH.includes(s)},b=KH(g);return P.jsx(XH,{className:An(b.root,o),as:s,role:!h&&c?"img":void 0,ref:n,style:y,ownerState:g,src:h?c||u:void 0,...p,children:a})}),yE=typeof d3({})=="function",tz=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),nz=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),N3=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([o,s])=>{const c=e.getColorSchemeSelector(o);c.startsWith("@")?n[c]={":root":{colorScheme:s.palette?.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:tz(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...nz(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const a=e.components?.MuiCssBaseline?.styleOverrides;return a&&(r=[r,a]),r},qm="mui-ecs",rz=e=>{const t=N3(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${qm})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,a])=>{const o=e.getColorSchemeSelector(r);o.startsWith("@")?n[o]={[`:root:not(:has(.${qm}))`]:{colorScheme:a.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${qm}))`]:{colorScheme:a.palette?.mode}}}),t},az=d3(yE?({theme:e,enableColorScheme:t})=>N3(e,t):({theme:e})=>rz(e));function oz(e){const t=Xr({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(x.Fragment,{children:[yE&&P.jsx(az,{enableColorScheme:r}),!yE&&!r&&P.jsx("span",{className:qm,style:{display:"none"}}),n]})}function vE(e){return`scale(${e}, ${e**2})`}const iz={entering:{opacity:1,transform:vE(1)},entered:{opacity:1,transform:"none"}},Gv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bE=x.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:o,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:y,onExiting:g,style:b,timeout:E="auto",TransitionComponent:T=Fi,...A}=t,w=Yc(),k=x.useRef(),O=hS(),R=x.useRef(null),D=Ni(R,xS(o),n),F=W=>j=>{if(W){const Z=R.current;j===void 0?W(Z):W(Z,j)}},q=F(p),z=F((W,j)=>{DU(W);const{duration:Z,delay:Q,easing:ae}=Gw({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=O.transitions.getAutoHeightDuration(W.clientHeight),k.current=I):I=Z,W.style.transition=[O.transitions.create("opacity",{duration:I,delay:Q}),O.transitions.create("transform",{duration:Gv?I:I*.666,delay:Q,easing:ae})].join(","),u&&u(W,j)}),$=F(d),H=F(g),C=F(W=>{const{duration:j,delay:Z,easing:Q}=Gw({style:b,timeout:E,easing:s},{mode:"exit"});let ae;E==="auto"?(ae=O.transitions.getAutoHeightDuration(W.clientHeight),k.current=ae):ae=j,W.style.transition=[O.transitions.create("opacity",{duration:ae,delay:Z}),O.transitions.create("transform",{duration:Gv?ae:ae*.666,delay:Gv?Z:Z||ae*.333,easing:Q})].join(","),W.style.opacity=0,W.style.transform=vE(.75),h&&h(W)}),M=F(y),B=W=>{E==="auto"&&w.start(k.current||0,W),r&&r(R.current,W)};return P.jsx(T,{appear:a,in:c,nodeRef:R,onEnter:z,onEntered:$,onEntering:q,onExit:C,onExited:M,onExiting:H,addEndListener:B,timeout:E==="auto"?null:E,...A,children:(W,{ownerState:j,...Z})=>x.cloneElement(o,{style:{opacity:0,transform:vE(.75),visibility:W==="exited"&&!c?"hidden":void 0,...iz[W],...b,...o.props.style},ref:D,...Z})})});bE&&(bE.muiSupportAuto=!0);function sz(e){return ha("MuiTooltip",e)}const Qn=Kr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function lz(e){return Math.round(e*1e5)/1e5}const cz=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${tn(o.split("-")[0])}`],arrow:["arrow"]};return Pa(s,sz,t)},uz=kt(D3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Eo(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),dz=kt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${tn(n.placement.split("-")[0])}`]]}})(Eo(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Qn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${lz(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),fz=kt("span",{name:"MuiTooltip",slot:"Arrow"})(Eo(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mm=!1;const ok=new T0;let Ud={x:0,y:0};function gm(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const pz=x.forwardRef(function(t,n){const r=Xr({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:o,classes:s,components:c={},componentsProps:u={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:E=0,enterTouchDelay:T=700,followCursor:A=!1,id:w,leaveDelay:k=0,leaveTouchDelay:O=1500,onClose:R,onOpen:D,open:F,placement:q="bottom",PopperComponent:z,PopperProps:$={},slotProps:H={},slots:C={},title:M,TransitionComponent:B,TransitionProps:W,...j}=r,Z=x.isValidElement(o)?o:P.jsx("span",{children:o}),Q=hS(),ae=XI(),[I,ne]=x.useState(),[ee,L]=x.useState(null),te=x.useRef(!1),be=y||A,de=Yc(),xe=Yc(),ye=Yc(),Oe=Yc(),[Ue,Ie]=bU({controlled:F,default:!1,name:"Tooltip",state:"open"});let Ye=Ue;const Ve=b0(w),De=x.useRef(),Ot=eu(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),Oe.clear()});x.useEffect(()=>Ot,[Ot]);const Et=ft=>{ok.clear(),mm=!0,Ie(!0),D&&!Ye&&D(ft)},je=eu(ft=>{ok.start(800+k,()=>{mm=!1}),Ie(!1),R&&Ye&&R(ft),de.start(Q.transitions.duration.shortest,()=>{te.current=!1})}),St=ft=>{te.current&&ft.type!=="touchstart"||(I&&I.removeAttribute("title"),xe.clear(),ye.clear(),b||mm&&E?xe.start(mm?E:b,()=>{Et(ft)}):Et(ft))},it=ft=>{xe.clear(),ye.start(k,()=>{je(ft)})},[,Ze]=x.useState(!1),Ge=ft=>{bg(ft.target)||(Ze(!1),it(ft))},Pe=ft=>{I||ne(ft.currentTarget),bg(ft.target)&&(Ze(!0),St(ft))},It=ft=>{te.current=!0;const J=Z.props;J.onTouchStart&&J.onTouchStart(ft)},kn=ft=>{It(ft),ye.clear(),de.clear(),Ot(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(T,()=>{document.body.style.WebkitUserSelect=De.current,St(ft)})},bt=ft=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(ft),Ot(),ye.start(O,()=>{je(ft)})};x.useEffect(()=>{if(!Ye)return;function ft(J){J.key==="Escape"&&je(J)}return document.addEventListener("keydown",ft),()=>{document.removeEventListener("keydown",ft)}},[je,Ye]);const ce=Ni(xS(Z),ne,n);!M&&M!==0&&(Ye=!1);const me=x.useRef(),Be=ft=>{const J=Z.props;J.onMouseMove&&J.onMouseMove(ft),Ud={x:ft.clientX,y:ft.clientY},me.current&&me.current.update()},qe={},Qe=typeof M=="string";d?(qe.title=!Ye&&Qe&&!h?M:null,qe["aria-describedby"]=Ye?Ve:null):(qe["aria-label"]=Qe?M:null,qe["aria-labelledby"]=Ye&&!Qe?Ve:null);const gt={...qe,...j,...Z.props,className:An(j.className,Z.props.className),onTouchStart:It,ref:ce,...A?{onMouseMove:Be}:{}},cn={};g||(gt.onTouchStart=kn,gt.onTouchEnd=bt),h||(gt.onMouseOver=gm(St,gt.onMouseOver),gt.onMouseLeave=gm(it,gt.onMouseLeave),be||(cn.onMouseOver=St,cn.onMouseLeave=it)),p||(gt.onFocus=gm(Pe,gt.onFocus),gt.onBlur=gm(Ge,gt.onBlur),be||(cn.onFocus=Pe,cn.onBlur=Ge));const Qt={...r,isRtl:ae,arrow:a,disableInteractive:be,placement:q,PopperComponentProp:z,touch:te.current},We=typeof H.popper=="function"?H.popper(Qt):H.popper,Ee=x.useMemo(()=>{let ft=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return $.popperOptions?.modifiers&&(ft=ft.concat($.popperOptions.modifiers)),We?.popperOptions?.modifiers&&(ft=ft.concat(We.popperOptions.modifiers)),{...$.popperOptions,...We?.popperOptions,modifiers:ft}},[ee,$.popperOptions,We?.popperOptions]),Te=cz(Qt),ut=typeof H.transition=="function"?H.transition(Qt):H.transition,nt={slots:{popper:c.Popper,transition:c.Transition??B,tooltip:c.Tooltip,arrow:c.Arrow,...C},slotProps:{arrow:H.arrow??u.arrow,popper:{...$,...We??u.popper},tooltip:H.tooltip??u.tooltip,transition:{...W,...ut??u.transition}}},[Bn,Br]=pm("popper",{elementType:uz,externalForwardedProps:nt,ownerState:Qt,className:An(Te.popper,$?.className)}),[Sr,hr]=pm("transition",{elementType:bE,externalForwardedProps:nt,ownerState:Qt}),[mr,Ma]=pm("tooltip",{elementType:dz,className:Te.tooltip,externalForwardedProps:nt,ownerState:Qt}),[In,Ur]=pm("arrow",{elementType:fz,className:Te.arrow,externalForwardedProps:nt,ownerState:Qt,ref:L});return P.jsxs(x.Fragment,{children:[x.cloneElement(Z,gt),P.jsx(Bn,{as:z??D3,placement:q,anchorEl:A?{getBoundingClientRect:()=>({top:Ud.y,left:Ud.x,right:Ud.x,bottom:Ud.y,width:0,height:0})}:I,popperRef:me,open:I?Ye:!1,id:Ve,transition:!0,...cn,...Br,popperOptions:Ee,children:({TransitionProps:ft})=>P.jsx(Sr,{timeout:Q.transitions.duration.shorter,...ft,...hr,children:P.jsxs(mr,{...Ma,children:[M,a?P.jsx(In,{...Ur}):null]})})})]})}),ik=dS({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Xr({props:e,name:"MuiStack"})});function hz({error:e,context:t}){const n=e.data?.message||"Unknown Error";return P.jsxs(P.Fragment,{children:[t&&P.jsx(vS,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),P.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function L3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=L3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=L3(e))&&(r&&(r+=" "),r+=t);return r}const gn=e3,sk=e=>e,mz=()=>{let e=sk;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sk}}},gz=mz(),yz={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ht(e,t,n="Mui"){const r=yz[t];return r?`${n}-${r}`:`${gz.generate(e)}-${t}`}function Lt(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Ht(e,a,n)}),r}function vz(e){return Ht("MuiSvgIcon",e)}Lt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function Kf(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const o=a;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],c=t[o];if(!c)r[o]=s||{};else if(!s)r[o]=c;else{r[o]={...c};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[o][d]=Kf(s[d],c[d],n)}}}else o==="className"&&n&&t.className?r.className=mt(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}const bz=x.createContext(void 0);function Ez(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Kf(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?Kf(a,r,t.components.mergeClassNameAndStyle):r}function Tz({props:e,name:t}){const n=x.useContext(bz);return Ez({props:e,name:t,theme:{components:n}})}function Yt(e){return Tz(e)}const Xf={black:"#000",white:"#fff"},Sz={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Lc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Pc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},jd={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Mc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},$c={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Fc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var qv={exports:{}},Sn={};/**
|
|
212
|
+
* @license React
|
|
213
|
+
* react-is.production.js
|
|
214
|
+
*
|
|
215
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the MIT license found in the
|
|
218
|
+
* LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/var lk;function _z(){if(lk)return Sn;lk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case n:case a:case r:case u:case d:case y:return E;default:switch(E=E&&E.$$typeof,E){case s:case c:case h:case p:return E;case o:return E;default:return T}}case t:return T}}}return Sn.ContextConsumer=o,Sn.ContextProvider=s,Sn.Element=e,Sn.ForwardRef=c,Sn.Fragment=n,Sn.Lazy=h,Sn.Memo=p,Sn.Portal=t,Sn.Profiler=a,Sn.StrictMode=r,Sn.Suspense=u,Sn.SuspenseList=d,Sn.isContextConsumer=function(E){return b(E)===o},Sn.isContextProvider=function(E){return b(E)===s},Sn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Sn.isForwardRef=function(E){return b(E)===c},Sn.isFragment=function(E){return b(E)===n},Sn.isLazy=function(E){return b(E)===h},Sn.isMemo=function(E){return b(E)===p},Sn.isPortal=function(E){return b(E)===t},Sn.isProfiler=function(E){return b(E)===a},Sn.isStrictMode=function(E){return b(E)===r},Sn.isSuspense=function(E){return b(E)===u},Sn.isSuspenseList=function(E){return b(E)===d},Sn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===a||E===r||E===u||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===h||E.$$typeof===p||E.$$typeof===s||E.$$typeof===o||E.$$typeof===c||E.$$typeof===g||E.getModuleId!==void 0)},Sn.typeOf=b,Sn}var ck;function Cz(){return ck||(ck=1,qv.exports=_z()),qv.exports}var P3=Cz();function qo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function M3(e){if(x.isValidElement(e)||P3.isValidElementType(e)||!qo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=M3(e[n])}),t}function Pr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return qo(e)&&qo(t)&&Object.keys(t).forEach(a=>{x.isValidElement(t[a])||P3.isValidElementType(t[a])?r[a]=t[a]:qo(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&qo(e[a])?r[a]=Pr(e[a],t[a],n):n.clone?r[a]=qo(t[a])?M3(t[a]):t[a]:r[a]=t[a]}),r}function Pi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Az(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function wS(e,t=0,n=1){return Az(e,t,n)}function xz(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ls(e){if(e.type)return e;if(e.charAt(0)==="#")return Ls(xz(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Pi(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Pi(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const wz=e=>{const t=Ls(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ff=(e,t)=>{try{return wz(e)}catch{return e}};function _0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function $3(e){e=Ls(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),s=(d,p=(d+n/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),_0({type:c,values:u})}function EE(e){e=Ls(e);let t=e.type==="hsl"||e.type==="hsla"?Ls($3(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kz(e,t){const n=EE(e),r=EE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Sg(e,t){return e=Ls(e),t=wS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_0(e)}function rl(e,t,n){try{return Sg(e,t)}catch{return e}}function C0(e,t){if(e=Ls(e),t=wS(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _0(e)}function hn(e,t,n){try{return C0(e,t)}catch{return e}}function A0(e,t){if(e=Ls(e),t=wS(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _0(e)}function mn(e,t,n){try{return A0(e,t)}catch{return e}}function TE(e,t=.15){return EE(e)>.5?C0(e,t):A0(e,t)}function ym(e,t,n){try{return TE(e,t)}catch{return e}}function F3(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xf.white,default:Xf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const B3=F3();function U3(){return{text:{primary:Xf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const SE=U3();function uk(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=A0(e.main,a):t==="dark"&&(e.dark=C0(e.main,o)))}function dk(e,t,n,r,a){const o=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function Dz(e="light"){return e==="dark"?{main:Mc[200],light:Mc[50],dark:Mc[400]}:{main:Mc[700],light:Mc[400],dark:Mc[800]}}function Rz(e="light"){return e==="dark"?{main:Lc[200],light:Lc[50],dark:Lc[400]}:{main:Lc[500],light:Lc[300],dark:Lc[700]}}function Oz(e="light"){return e==="dark"?{main:Pc[500],light:Pc[300],dark:Pc[700]}:{main:Pc[700],light:Pc[400],dark:Pc[800]}}function Iz(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:$c[700],light:$c[500],dark:$c[900]}}function Nz(e="light"){return e==="dark"?{main:Fc[400],light:Fc[300],dark:Fc[700]}:{main:Fc[800],light:Fc[500],dark:Fc[900]}}function Lz(e="light"){return e==="dark"?{main:jd[400],light:jd[300],dark:jd[700]}:{main:"#ed6c02",light:jd[500],dark:jd[900]}}function Pz(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function kS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...o}=e,s=e.primary||Dz(t),c=e.secondary||Rz(t),u=e.error||Oz(t),d=e.info||Iz(t),p=e.success||Nz(t),h=e.warning||Lz(t);function y(E){return a?Pz(E):kz(E,SE.text.primary)>=n?SE.text.primary:B3.text.primary}const g=({color:E,name:T,mainShade:A=500,lightShade:w=300,darkShade:k=700})=>{if(E={...E},!E.main&&E[A]&&(E.main=E[A]),!E.hasOwnProperty("main"))throw new Error(Pi(11,T?` (${T})`:"",A));if(typeof E.main!="string")throw new Error(Pi(12,T?` (${T})`:"",JSON.stringify(E.main)));return a?(dk(a,E,"light",w,r),dk(a,E,"dark",k,r)):(uk(E,"light",w,r),uk(E,"dark",k,r)),E.contrastText||(E.contrastText=y(E.main)),E};let b;return t==="light"?b=F3():t==="dark"&&(b=U3()),Pr({common:{...Xf},mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:p,name:"success"}),grey:Sz,contrastThreshold:n,getContrastText:y,augmentColor:g,tonalOffset:r,...b},o)}function Mz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $z(e){return Math.round(e*1e5)/1e5}const fk={textTransform:"uppercase"},pk='"Roboto", "Helvetica", "Arial", sans-serif';function Fz(e,t){const{fontFamily:n=pk,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,y=r/14,g=p||(T=>`${T/u*y}rem`),b=(T,A,w,k,O)=>({fontFamily:n,fontWeight:T,fontSize:g(A),lineHeight:w,...n===pk?{letterSpacing:`${$z(k/A)}em`}:{},...O,...d}),E={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(o,48,1.167,0),h4:b(o,34,1.235,.25),h5:b(o,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(o,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(o,16,1.5,.15),body2:b(o,14,1.43,.15),button:b(s,14,1.75,.4,fk),caption:b(o,12,1.66,.4),overline:b(o,12,2.66,1,fk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:c,...E},h,{clone:!1})}function Mn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}const Bz=["none",Mn(0,2,1,-1,0,1,1,0,0,1,3,0),Mn(0,3,1,-2,0,2,2,0,0,1,5,0),Mn(0,3,3,-2,0,3,4,0,0,1,8,0),Mn(0,2,4,-1,0,4,5,0,0,1,10,0),Mn(0,3,5,-1,0,5,8,0,0,1,14,0),Mn(0,3,5,-1,0,6,10,0,0,1,18,0),Mn(0,4,5,-2,0,7,10,1,0,2,16,1),Mn(0,5,5,-3,0,8,10,1,0,3,14,2),Mn(0,5,6,-3,0,9,12,1,0,3,16,2),Mn(0,6,6,-3,0,10,14,1,0,4,18,3),Mn(0,6,7,-4,0,11,15,1,0,4,20,3),Mn(0,7,8,-4,0,12,17,2,0,5,22,4),Mn(0,7,8,-4,0,13,19,2,0,5,24,4),Mn(0,7,9,-4,0,14,21,2,0,5,26,4),Mn(0,8,9,-5,0,15,22,2,0,6,28,5),Mn(0,8,10,-5,0,16,24,2,0,6,30,5),Mn(0,8,11,-5,0,17,26,2,0,6,32,5),Mn(0,9,11,-5,0,18,28,2,0,7,34,6),Mn(0,9,12,-6,0,19,29,2,0,7,36,6),Mn(0,10,13,-6,0,20,31,3,0,8,38,7),Mn(0,10,13,-6,0,21,33,3,0,8,40,7),Mn(0,10,14,-6,0,22,35,3,0,8,42,7),Mn(0,11,14,-7,0,23,36,3,0,9,44,8),Mn(0,11,15,-7,0,24,38,3,0,9,46,8)],Uz={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},j3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hk(e){return`${Math.round(e)}ms`}function jz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hz(e){const t={...Uz,...e.easing},n={...j3,...e.duration};return{getAutoHeightDuration:jz,create:(r=["all"],a={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:c=0,...u}=a;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof o=="string"?o:hk(o)} ${s} ${typeof c=="string"?c:hk(c)}`).join(",")},...e,easing:t,duration:n}}const zz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vz(e){return qo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function H3(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[s,c]=a[o];!Vz(c)||s.startsWith("unstable_")?delete r[s]:qo(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
220
|
+
|
|
221
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
222
|
+
|
|
223
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
224
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
225
|
+
|
|
226
|
+
export default theme;`}const Gz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function qz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=Gz(t),s=Object.keys(o);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function p(y){return s.indexOf(y)+1<s.length?d(y,s[s.indexOf(y)+1]):c(y)}function h(y){const g=s.indexOf(y);return g===0?c(s[1]):g===s.length-1?u(s[g]):d(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:c,down:u,between:d,only:p,not:h,unit:n,...a}}const Wz={borderRadius:4};function mk(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function Yz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Qz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function Kz(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...c)=>t(e.breakpoints.up(...c),s),o.down=(...c)=>t(e.breakpoints.down(...c),s),o.between=(...c)=>t(e.breakpoints.between(...c),s),o.only=(...c)=>t(e.breakpoints.only(...c),s),o.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const x0={xs:0,sm:600,md:900,lg:1200,xl:1536},gk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${x0[e]}px)`},Xz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:x0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Mi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||gk;return t.reduce((o,s,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||gk;return Object.keys(t).reduce((o,s)=>{if(Yz(a.keys,s)){const c=Qz(r.containerQueries?r:Xz,s);c&&(o[c]=n(t[s],s))}else if(Object.keys(a.values||x0).includes(s)){const c=a.up(s);o[c]=n(t[s],s)}else{const c=s;o[c]=t[c]}return o},{})}return n(t)}function Zz(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function yk(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function at(e){if(typeof e!="string")throw new Error(Pi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function w0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function _g(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=w0(e,n)||r,t&&(a=t(a,r,e)),a}function tr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=w0(u,r)||{};return Mi(s,c,p=>{let h=_g(d,a,p);return p===h&&typeof p=="string"&&(h=_g(d,a,`${t}${p==="default"?"":at(p)}`,p)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function Tf(e,t){return t?Pr(e,t,{clone:!1}):e}function Jz(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const eV={m:"margin",p:"padding"},tV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nV=Jz(e=>{if(e.length>2)if(vk[e])e=vk[e];else return[e];const[t,n]=e.split(""),r=eV[t],a=tV[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),DS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],RS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...DS,...RS];function Rp(e,t,n,r){const a=w0(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),c=a[s];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function OS(e){return Rp(e,"spacing",8)}function Op(e,t){return typeof t=="string"||t==null?t:e(t)}function rV(e,t){return n=>e.reduce((r,a)=>(r[a]=Op(t,n),r),{})}function aV(e,t,n,r){if(!t.includes(n))return null;const a=nV(n),o=rV(a,r),s=e[n];return Mi(e,s,o)}function z3(e,t){const n=OS(e.theme);return Object.keys(e).map(r=>aV(e,t,r,n)).reduce(Tf,{})}function Wn(e){return z3(e,DS)}Wn.propTypes={};Wn.filterProps=DS;function Yn(e){return z3(e,RS)}Yn.propTypes={};Yn.filterProps=RS;function oV(e=8,t=OS({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function k0(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Tf(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Da(e){return e<=1&&e!==0?`${e*100}%`:e}const iV=tr({prop:"width",transform:Da}),IS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||x0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Da(n)}};return Mi(e,e.maxWidth,t)}return null};IS.filterProps=["maxWidth"];const sV=tr({prop:"minWidth",transform:Da}),lV=tr({prop:"height",transform:Da}),cV=tr({prop:"maxHeight",transform:Da}),uV=tr({prop:"minHeight",transform:Da});tr({prop:"size",cssProperty:"width",transform:Da});tr({prop:"size",cssProperty:"height",transform:Da});const dV=tr({prop:"boxSizing"});k0(iV,IS,sV,lV,cV,uV,dV);const D0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rp(e.theme,"spacing",8),n=r=>({gap:Op(t,r)});return Mi(e,e.gap,n)}return null};D0.propTypes={};D0.filterProps=["gap"];const R0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rp(e.theme,"spacing",8),n=r=>({columnGap:Op(t,r)});return Mi(e,e.columnGap,n)}return null};R0.propTypes={};R0.filterProps=["columnGap"];const O0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rp(e.theme,"spacing",8),n=r=>({rowGap:Op(t,r)});return Mi(e,e.rowGap,n)}return null};O0.propTypes={};O0.filterProps=["rowGap"];const fV=tr({prop:"gridColumn"}),pV=tr({prop:"gridRow"}),hV=tr({prop:"gridAutoFlow"}),mV=tr({prop:"gridAutoColumns"}),gV=tr({prop:"gridAutoRows"}),yV=tr({prop:"gridTemplateColumns"}),vV=tr({prop:"gridTemplateRows"}),bV=tr({prop:"gridTemplateAreas"}),EV=tr({prop:"gridArea"});k0(D0,R0,O0,fV,pV,hV,mV,gV,yV,vV,bV,EV);function tu(e,t){return t==="grey"?t:e}const TV=tr({prop:"color",themeKey:"palette",transform:tu}),SV=tr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tu}),_V=tr({prop:"backgroundColor",themeKey:"palette",transform:tu});k0(TV,SV,_V);function Ja(e){return typeof e!="number"?e:`${e}px solid`}function uo(e,t){return tr({prop:e,themeKey:"borders",transform:t})}const CV=uo("border",Ja),AV=uo("borderTop",Ja),xV=uo("borderRight",Ja),wV=uo("borderBottom",Ja),kV=uo("borderLeft",Ja),DV=uo("borderColor"),RV=uo("borderTopColor"),OV=uo("borderRightColor"),IV=uo("borderBottomColor"),NV=uo("borderLeftColor"),LV=uo("outline",Ja),PV=uo("outlineColor"),I0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Op(t,r)});return Mi(e,e.borderRadius,n)}return null};I0.propTypes={};I0.filterProps=["borderRadius"];k0(CV,AV,xV,wV,kV,DV,RV,OV,IV,NV,I0,LV,PV);const Ip={border:{themeKey:"borders",transform:Ja},borderTop:{themeKey:"borders",transform:Ja},borderRight:{themeKey:"borders",transform:Ja},borderBottom:{themeKey:"borders",transform:Ja},borderLeft:{themeKey:"borders",transform:Ja},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ja},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:I0},color:{themeKey:"palette",transform:tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tu},backgroundColor:{themeKey:"palette",transform:tu},p:{style:Yn},pt:{style:Yn},pr:{style:Yn},pb:{style:Yn},pl:{style:Yn},px:{style:Yn},py:{style:Yn},padding:{style:Yn},paddingTop:{style:Yn},paddingRight:{style:Yn},paddingBottom:{style:Yn},paddingLeft:{style:Yn},paddingX:{style:Yn},paddingY:{style:Yn},paddingInline:{style:Yn},paddingInlineStart:{style:Yn},paddingInlineEnd:{style:Yn},paddingBlock:{style:Yn},paddingBlockStart:{style:Yn},paddingBlockEnd:{style:Yn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:D0},rowGap:{style:O0},columnGap:{style:R0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Da},maxWidth:{style:IS},minWidth:{transform:Da},height:{transform:Da},maxHeight:{transform:Da},minHeight:{transform:Da},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function MV(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function $V(e,t){return typeof e=="function"?e(t):e}function FV(){function e(n,r,a,o){const s={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=w0(a,d)||{};return h?h(s):Mi(s,r,g=>{let b=_g(y,p,g);return g===b&&typeof g=="string"&&(b=_g(y,p,`${n}${g==="default"?"":at(g)}`,g)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const s=a.unstable_sxConfig??Ip;function c(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const p=Zz(a.breakpoints),h=Object.keys(p);let y=p;return Object.keys(d).forEach(g=>{const b=$V(d[g],a);if(b!=null)if(typeof b=="object")if(s[g])y=Tf(y,e(g,b,a,s));else{const E=Mi({theme:a},b,T=>({[g]:T}));MV(E,b)?y[g]=t({sx:b,theme:a,nested:!0}):y=Tf(y,E)}else y=Tf(y,e(g,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":mk(a,yk(h,y))}:mk(a,yk(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const pu=FV();pu.filterProps=["sx"];function BV(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function NS(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=qz(n),u=oV(a);let d=Pr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Wz,...o}},s);return d=Kz(d),d.applyStyles=BV,d=t.reduce((p,h)=>Pr(p,h),d),d.unstable_sxConfig={...Ip,...s?.unstable_sxConfig},d.unstable_sx=function(p){return pu({sx:p,theme:this})},d}function bk(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const UV=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function jV(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Sg(t,UV(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${bk(n)})`:A0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${bk(n)})`:C0(t,n)}})}function _E(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,colorSpace:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pi(20));const h=kS({...o,colorSpace:d}),y=NS(e);let g=Pr(y,{mixins:Mz(y.breakpoints,r),palette:h,shadows:Bz.slice(),typography:Fz(h,c),transitions:Hz(s),zIndex:{...zz}});return g=Pr(g,p),g=t.reduce((b,E)=>Pr(b,E),g),g.unstable_sxConfig={...Ip,...p?.unstable_sxConfig},g.unstable_sx=function(b){return pu({sx:b,theme:this})},g.toRuntimeSource=H3,jV(g),g}function CE(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const HV=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=CE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function V3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function G3(e){return e==="dark"?HV:[]}function zV(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...o}=e,s=kS({...t,colorSpace:a});return{palette:s,opacity:{...V3(s.mode),...n},overlays:r||G3(s.mode),...o}}function VV(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const GV=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],qV=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return GV(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function WV(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const Ek=(e,t,n,r=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},YV=(e,t,n)=>{function r(a,o=[],s=[]){Object.entries(a).forEach(([c,u])=>{(!n||n&&!n([...o,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...o,c],Array.isArray(u)?[...s,c]:s):t([...o,c],u,s))})}r(e)},QV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Wv(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return YV(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=QV(c,u);Object.assign(a,{[p]:h}),Ek(o,c,`var(${p})`,d),Ek(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function KV(e,t={}){const{getSelector:n=A,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:o}=t,{colorSchemes:s={},components:c,defaultColorScheme:u="light",...d}=e,{vars:p,css:h,varsWithDefaults:y}=Wv(d,t);let g=y;const b={},{[u]:E,...T}=s;if(Object.entries(T||{}).forEach(([w,k])=>{const{vars:O,css:R,varsWithDefaults:D}=Wv(k,t);g=Pr(g,D),b[w]={css:R,vars:O}}),E){const{css:w,vars:k,varsWithDefaults:O}=Wv(E,t);g=Pr(g,O),b[u]={css:w,vars:k}}function A(w,k){let O=a;if(a==="class"&&(O=".%s"),a==="data"&&(O="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(O=`[${a}="%s"]`),w){if(O==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${s[w]?.palette?.mode||w})`]:{":root":k}};if(O)return e.defaultColorScheme===w?`:root, ${O.replace("%s",String(w))}`:O.replace("%s",String(w))}return":root"}return{vars:g,generateThemeVars:()=>{let w={...p};return Object.entries(b).forEach(([,{vars:k}])=>{w=Pr(w,k)}),w},generateStyleSheets:()=>{const w=[],k=e.defaultColorScheme||"light";function O(F,q){Object.keys(q).length&&w.push(typeof F=="string"?{[F]:{...q}}:F)}O(n(void 0,{...h}),h);const{[k]:R,...D}=b;if(R){const{css:F}=R,q=s[k]?.palette?.mode,z=!r&&q?{colorScheme:q,...F}:{...F};O(n(k,{...z}),z)}return Object.entries(D).forEach(([F,{css:q}])=>{const z=s[F]?.palette?.mode,$=!r&&z?{colorScheme:z,...q}:{...q};O(n(F,{...$}),$)}),o&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function XV(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function ZV(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function pf(e){return typeof e!="string"||!e.startsWith("hsl")?e:$3(e)}function Ci(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ff(pf(e[t])))}function JV(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Lo=e=>{try{return e()}catch{}},eG=(e="mui")=>n3(e);function Yv(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!r){t[a]=zV({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:s,...c}=_E({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[a]={...n,palette:s,opacity:{...V3(o),...n?.opacity},overlays:n?.overlays||G3(o)},c}function tG(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:c=VV,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=eG(o),{[y]:b,light:E,dark:T,...A}=n,w={...A};let k=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(Pi(21,y));let O;s&&(O="oklch");const R=Yv(O,w,k,p,y);E&&!w.light&&Yv(O,w,E,void 0,"light"),T&&!w.dark&&Yv(O,w,T,void 0,"dark");let D={defaultColorScheme:y,...R,cssVarPrefix:o,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:w,font:{...WV(R.typography),...R.font},spacing:JV(p.spacing)};Object.keys(D.colorSchemes).forEach(H=>{const C=D.colorSchemes[H].palette,M=W=>{const j=W.split("-"),Z=j[1],Q=j[2];return g(W,C[Z][Q])};C.mode==="light"&&(_e(C.common,"background","#fff"),_e(C.common,"onBackground","#000")),C.mode==="dark"&&(_e(C.common,"background","#000"),_e(C.common,"onBackground","#fff"));function B(W,j,Z){if(O){let Q;return W===rl&&(Q=`transparent ${((1-Z)*100).toFixed(0)}%`),W===hn&&(Q=`#000 ${(Z*100).toFixed(0)}%`),W===mn&&(Q=`#fff ${(Z*100).toFixed(0)}%`),`color-mix(in ${O}, ${j}, ${Q})`}return W(j,Z)}if(ZV(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){_e(C.Alert,"errorColor",B(hn,C.error.light,.6)),_e(C.Alert,"infoColor",B(hn,C.info.light,.6)),_e(C.Alert,"successColor",B(hn,C.success.light,.6)),_e(C.Alert,"warningColor",B(hn,C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-main")),_e(C.Alert,"infoFilledBg",M("palette-info-main")),_e(C.Alert,"successFilledBg",M("palette-success-main")),_e(C.Alert,"warningFilledBg",M("palette-warning-main")),_e(C.Alert,"errorFilledColor",Lo(()=>C.getContrastText(C.error.main))),_e(C.Alert,"infoFilledColor",Lo(()=>C.getContrastText(C.info.main))),_e(C.Alert,"successFilledColor",Lo(()=>C.getContrastText(C.success.main))),_e(C.Alert,"warningFilledColor",Lo(()=>C.getContrastText(C.warning.main))),_e(C.Alert,"errorStandardBg",B(mn,C.error.light,.9)),_e(C.Alert,"infoStandardBg",B(mn,C.info.light,.9)),_e(C.Alert,"successStandardBg",B(mn,C.success.light,.9)),_e(C.Alert,"warningStandardBg",B(mn,C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-100")),_e(C.Avatar,"defaultBg",M("palette-grey-400")),_e(C.Button,"inheritContainedBg",M("palette-grey-300")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(C.Chip,"defaultBorder",M("palette-grey-400")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(C.Chip,"defaultIconColor",M("palette-grey-700")),_e(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(C.LinearProgress,"primaryBg",B(mn,C.primary.main,.62)),_e(C.LinearProgress,"secondaryBg",B(mn,C.secondary.main,.62)),_e(C.LinearProgress,"errorBg",B(mn,C.error.main,.62)),_e(C.LinearProgress,"infoBg",B(mn,C.info.main,.62)),_e(C.LinearProgress,"successBg",B(mn,C.success.main,.62)),_e(C.LinearProgress,"warningBg",B(mn,C.warning.main,.62)),_e(C.Skeleton,"bg",O?B(rl,C.text.primary,.11):`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(C.Slider,"primaryTrack",B(mn,C.primary.main,.62)),_e(C.Slider,"secondaryTrack",B(mn,C.secondary.main,.62)),_e(C.Slider,"errorTrack",B(mn,C.error.main,.62)),_e(C.Slider,"infoTrack",B(mn,C.info.main,.62)),_e(C.Slider,"successTrack",B(mn,C.success.main,.62)),_e(C.Slider,"warningTrack",B(mn,C.warning.main,.62));const W=O?B(hn,C.background.default,.6825):ym(C.background.default,.8);_e(C.SnackbarContent,"bg",W),_e(C.SnackbarContent,"color",Lo(()=>O?SE.text.primary:C.getContrastText(W))),_e(C.SpeedDialAction,"fabHoverBg",ym(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-400")),_e(C.StepContent,"border",M("palette-grey-400")),_e(C.Switch,"defaultColor",M("palette-common-white")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(C.Switch,"primaryDisabledColor",B(mn,C.primary.main,.62)),_e(C.Switch,"secondaryDisabledColor",B(mn,C.secondary.main,.62)),_e(C.Switch,"errorDisabledColor",B(mn,C.error.main,.62)),_e(C.Switch,"infoDisabledColor",B(mn,C.info.main,.62)),_e(C.Switch,"successDisabledColor",B(mn,C.success.main,.62)),_e(C.Switch,"warningDisabledColor",B(mn,C.warning.main,.62)),_e(C.TableCell,"border",B(mn,B(rl,C.divider,1),.88)),_e(C.Tooltip,"bg",B(rl,C.grey[700],.92))}if(C.mode==="dark"){_e(C.Alert,"errorColor",B(mn,C.error.light,.6)),_e(C.Alert,"infoColor",B(mn,C.info.light,.6)),_e(C.Alert,"successColor",B(mn,C.success.light,.6)),_e(C.Alert,"warningColor",B(mn,C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-dark")),_e(C.Alert,"infoFilledBg",M("palette-info-dark")),_e(C.Alert,"successFilledBg",M("palette-success-dark")),_e(C.Alert,"warningFilledBg",M("palette-warning-dark")),_e(C.Alert,"errorFilledColor",Lo(()=>C.getContrastText(C.error.dark))),_e(C.Alert,"infoFilledColor",Lo(()=>C.getContrastText(C.info.dark))),_e(C.Alert,"successFilledColor",Lo(()=>C.getContrastText(C.success.dark))),_e(C.Alert,"warningFilledColor",Lo(()=>C.getContrastText(C.warning.dark))),_e(C.Alert,"errorStandardBg",B(hn,C.error.light,.9)),_e(C.Alert,"infoStandardBg",B(hn,C.info.light,.9)),_e(C.Alert,"successStandardBg",B(hn,C.success.light,.9)),_e(C.Alert,"warningStandardBg",B(hn,C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-900")),_e(C.AppBar,"darkBg",M("palette-background-paper")),_e(C.AppBar,"darkColor",M("palette-text-primary")),_e(C.Avatar,"defaultBg",M("palette-grey-600")),_e(C.Button,"inheritContainedBg",M("palette-grey-800")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(C.Chip,"defaultBorder",M("palette-grey-700")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(C.Chip,"defaultIconColor",M("palette-grey-300")),_e(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(C.LinearProgress,"primaryBg",B(hn,C.primary.main,.5)),_e(C.LinearProgress,"secondaryBg",B(hn,C.secondary.main,.5)),_e(C.LinearProgress,"errorBg",B(hn,C.error.main,.5)),_e(C.LinearProgress,"infoBg",B(hn,C.info.main,.5)),_e(C.LinearProgress,"successBg",B(hn,C.success.main,.5)),_e(C.LinearProgress,"warningBg",B(hn,C.warning.main,.5)),_e(C.Skeleton,"bg",O?B(rl,C.text.primary,.13):`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(C.Slider,"primaryTrack",B(hn,C.primary.main,.5)),_e(C.Slider,"secondaryTrack",B(hn,C.secondary.main,.5)),_e(C.Slider,"errorTrack",B(hn,C.error.main,.5)),_e(C.Slider,"infoTrack",B(hn,C.info.main,.5)),_e(C.Slider,"successTrack",B(hn,C.success.main,.5)),_e(C.Slider,"warningTrack",B(hn,C.warning.main,.5));const W=O?B(mn,C.background.default,.985):ym(C.background.default,.98);_e(C.SnackbarContent,"bg",W),_e(C.SnackbarContent,"color",Lo(()=>O?B3.text.primary:C.getContrastText(W))),_e(C.SpeedDialAction,"fabHoverBg",ym(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-600")),_e(C.StepContent,"border",M("palette-grey-600")),_e(C.Switch,"defaultColor",M("palette-grey-300")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(C.Switch,"primaryDisabledColor",B(hn,C.primary.main,.55)),_e(C.Switch,"secondaryDisabledColor",B(hn,C.secondary.main,.55)),_e(C.Switch,"errorDisabledColor",B(hn,C.error.main,.55)),_e(C.Switch,"infoDisabledColor",B(hn,C.info.main,.55)),_e(C.Switch,"successDisabledColor",B(hn,C.success.main,.55)),_e(C.Switch,"warningDisabledColor",B(hn,C.warning.main,.55)),_e(C.TableCell,"border",B(hn,B(rl,C.divider,1),.68)),_e(C.Tooltip,"bg",B(rl,C.grey[700],.92))}Ci(C.background,"default"),Ci(C.background,"paper"),Ci(C.common,"background"),Ci(C.common,"onBackground"),Ci(C,"divider"),Object.keys(C).forEach(W=>{const j=C[W];W!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&_e(C[W],"mainChannel",ff(pf(j.main))),j.light&&_e(C[W],"lightChannel",ff(pf(j.light))),j.dark&&_e(C[W],"darkChannel",ff(pf(j.dark))),j.contrastText&&_e(C[W],"contrastTextChannel",ff(pf(j.contrastText))),W==="text"&&(Ci(C[W],"primary"),Ci(C[W],"secondary")),W==="action"&&(j.active&&Ci(C[W],"active"),j.selected&&Ci(C[W],"selected")))})}),D=t.reduce((H,C)=>Pr(H,C),D);const F={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:c,getSelector:qV(D),enableContrastVars:s},{vars:q,generateThemeVars:z,generateStyleSheets:$}=KV(D,F);return D.vars=q,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([H,C])=>{D[H]=C}),D.generateThemeVars=z,D.generateStyleSheets=$,D.generateSpacing=function(){return tS(p.spacing,OS(this))},D.getColorSchemeSelector=XV(u),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=c,D.unstable_sxConfig={...Ip,...p?.unstable_sxConfig},D.unstable_sx=function(H){return pu({sx:H,theme:this})},D.toRuntimeSource=H3,D}function Tk(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:kS({...n===!0?{}:n.palette,mode:t})})}function nG(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,c=o||"light",u=a?.[c],d={...a,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return _E(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=_E({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},Tk(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Tk(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),tG({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const N0=nG(),L0="$$material";function q3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zr=e=>q3(e)&&e!=="classes";function rG(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function oG(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iG=/[A-Z]|^ms/g,sG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W3=function(e){return e.charCodeAt(1)===45},Sk=function(e){return e!=null&&typeof e!="boolean"},Qv=oG(function(e){return W3(e)?e:e.replace(iG,"-$&").toLowerCase()}),_k=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(sG,function(n,r,a){return Ss={name:r,styles:a,next:Ss},r})}return aG[e]!==1&&!W3(e)&&typeof t=="number"&&t!==0?t+"px":t};function Cg(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Ss={name:a.name,styles:a.styles,next:Ss},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ss={name:s.name,styles:s.styles,next:Ss},s=s.next;var c=o.styles+";";return c}return lG(e,t,n)}}var u=n;return u}function lG(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Cg(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var c=s;Sk(c)&&(r+=Qv(o)+":"+_k(o,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)Sk(s[u])&&(r+=Qv(o)+":"+_k(o,s[u])+";");else{var d=Cg(e,t,s);switch(o){case"animation":case"animationName":{r+=Qv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var Ck=/label:\s*([^\s;{]+)\s*(;|$)/g,Ss;function cG(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Ss=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Cg(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Cg(n,t,e[c]),r){var u=o;a+=u[c]}Ck.lastIndex=0;for(var d="",p;(p=Ck.exec(a))!==null;)d+="-"+p[1];var h=rG(a)+d;return{name:h,styles:a,next:Ss}}function uG(e,t){return gg(e,t)}function dG(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ak=[];function Al(e){return Ak[0]=e,cG(Ak)}function fG(e){const{variants:t,...n}=e,r={variants:t,style:Al(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Al(a.style))}),r}const pG=NS();function ks(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function gl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function hG(e){return e?(t,n)=>n[e]:null}function mG(e,t,n){e.theme=yG(e.theme)?n:e.theme[t]||e.theme}function Wm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Wm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?gl(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?gl(Al(s),n):s}return Y3(e,r.variants,[a],n)}return r?.isProcessed?n?gl(Al(r.style),n):r.style:n?gl(Al(r),n):r}function Y3(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&e.ownerState?.[c]!==s.props[c])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?gl(Al(s.style(a)),r):s.style(a))):n.push(r?gl(Al(s.style),r):s.style)}return n}function gG(e={}){const{themeId:t,defaultTheme:n=pG,rootShouldForwardProp:r=ks,slotShouldForwardProp:a=ks}=e;function o(s){mG(s,t,n)}return(s,c={})=>{dG(s,R=>R.filter(D=>D!==pu));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:y=hG(bG(d)),...g}=c,b=u&&u.startsWith("Mui")||d?"components":"custom",E=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=h||!1;let A=ks;d==="Root"||d==="root"?A=r:d?A=a:vG(s)&&(A=void 0);const w=uG(s,{shouldForwardProp:A,label:void 0,...g}),k=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(D){return Wm(D,R,D.theme.modularCssLayers?b:void 0)};if(qo(R)){const D=fG(R);return function(F){return D.variants?Wm(F,D,F.theme.modularCssLayers?b:void 0):F.theme.modularCssLayers?gl(D.style,b):D.style}}return R},O=(...R)=>{const D=[],F=R.map(k),q=[];if(D.push(o),u&&y&&q.push(function(H){const C=H.theme.components?.[u]?.styleOverrides;if(!C)return null;const M={};for(const B in C)M[B]=Wm(H,C[B],H.theme.modularCssLayers?"theme":void 0);return y(H,M)}),u&&!E&&q.push(function(H){const C=H.theme?.components?.[u]?.variants;return C?Y3(H,C,[],H.theme.modularCssLayers?"theme":void 0):null}),T||q.push(pu),Array.isArray(F[0])){const H=F.shift(),C=new Array(D.length).fill(""),M=new Array(q.length).fill("");let B;B=[...C,...H,...M],B.raw=[...C,...H.raw,...M],D.unshift(B)}const z=[...D,...F,...q],$=w(...z);return s.muiName&&($.muiName=s.muiName),$};return w.withConfig&&(O.withConfig=w.withConfig),O}}function yG(e){for(const t in e)return!1;return!0}function vG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bG(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ze=gG({themeId:L0,defaultTheme:N0,rootShouldForwardProp:Zr});function zt(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let s="",c=!0;for(let u=0;u<o.length;u+=1){const d=o[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[a]=s}return r}const EG=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${at(t)}`,`fontSize${at(n)}`]};return zt(a,vz,r)},TG=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${at(n.color)}`],t[`fontSize${at(n.fontSize)}`]]}})(gn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),AE=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...y}=n,g=x.isValidElement(r)&&r.type==="svg",b={...n,color:o,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},E={};d||(E.viewBox=h);const T=EG(b);return P.jsxs(TG,{as:s,className:mt(T.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...E,...y,...g&&r.props,ownerState:b,children:[g?r.props.children:r,p?P.jsx("title",{children:p}):null]})});AE.muiName="SvgIcon";function wn(e,t){function n(r,a){return P.jsx(AE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=AE.muiName,x.memo(x.forwardRef(n))}const Qge=wn(P.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function xE({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:s="body2"}){const c=P.jsxs(Cl,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[P.jsx(yS,{size:t,color:n,thickness:r}),e&&P.jsx(vS,{variant:s,color:"text.secondary",children:e})]});return a?P.jsx(Cl,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const P0=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let a=0;a<r.length;a+=2){const o=r[a];o==="projects"?n.projectName=decodeURI(r[a+1])||void 0:o==="packages"?n.packageName=decodeURI(r[a+1])||void 0:o==="connections"?n.connectionName=decodeURI(r[a+1])||void 0:o==="models"&&(n.modelPath=decodeURI(r[a+1])||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.projectName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Kge=e=>{if(!e.projectName)throw new Error(`Failed to encode resource URI, missing project name: ${e}`);let t=`publisher://projects/${e.projectName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t},SG=kt(O3)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),_G=kt(I3)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),Q3=kt(ez)({padding:"0"}),Xge=kt("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});kt("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const Zge=kt("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Jge=kt("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),e0e=kt("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});kt("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});kt("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const CG=kt("div")({height:"100%"});kt("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const K3=kt("div")({height:"75vh",width:"100%",overflowY:"auto"});kt("div")({position:"relative",height:"100%",flex:"0 0 auto"});const t0e=kt(O3)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),n0e=kt(I3)({padding:"0","&:last-child":{paddingBottom:"0"}}),r0e=kt("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),a0e=kt("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},AG={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xG=class{#e=AG;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},yl=new xG;function wG(e){setTimeout(e,0)}var Ll=typeof window>"u"||"Deno"in globalThis;function Vr(){}function kG(e,t){return typeof e=="function"?e(t):e}function wE(e){return typeof e=="number"&&e>=0&&e!==1/0}function X3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ds(e,t){return typeof e=="function"?e(t):e}function Ka(e,t){return typeof e=="function"?e(t):e}function xk(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==LS(s,t.options))return!1}else if(!Zf(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function wk(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pl(t.options.mutationKey)!==Pl(o))return!1}else if(!Zf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function LS(e,t){return(t?.queryKeyHashFn||Pl)(e)}function Pl(e){return JSON.stringify(e,(t,n)=>kE(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Zf(e[n],t[n])):!1}var DG=Object.prototype.hasOwnProperty;function Z3(e,t){if(e===t)return e;const n=kk(e)&&kk(t);if(!n&&!(kE(e)&&kE(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,c=n?new Array(s):{};let u=0;for(let d=0;d<s;d++){const p=n?d:o[d],h=e[p],y=t[p];if(h===y){c[p]=h,(n?d<a:DG.call(e,p))&&u++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){c[p]=y;continue}const g=Z3(h,y);c[p]=g,g===h&&u++}return a===s&&u===a?e:c}function Ag(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function kk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kE(e){if(!Dk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Dk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Dk(e){return Object.prototype.toString.call(e)==="[object Object]"}function RG(e){return new Promise(t=>{yl.setTimeout(t,e)})}function DE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Z3(e,t):t}function OG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function IG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var PS=Symbol();function J3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===PS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eN(e,t){return typeof e=="function"?e(...t):!!e}var NG=class extends Cu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ll&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},MS=new NG;function RE(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var LG=wG;function PG(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=LG;const o=c=>{t?e.push(c):a(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{o(()=>{c(...u)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var fr=PG(),MG=class extends Cu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ll&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},xg=new MG;function $G(e){return Math.min(1e3*2**e,3e4)}function tN(e){return(e??"online")==="online"?xg.isOnline():!0}var OE=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function nN(e){let t=!1,n=0,r;const a=RE(),o=()=>a.status!=="pending",s=E=>{if(!o()){const T=new OE(E);y(T),e.onCancel?.(T)}},c=()=>{t=!0},u=()=>{t=!1},d=()=>MS.isFocused()&&(e.networkMode==="always"||xg.isOnline())&&e.canRun(),p=()=>tN(e.networkMode)&&e.canRun(),h=E=>{o()||(r?.(),a.resolve(E))},y=E=>{o()||(r?.(),a.reject(E))},g=()=>new Promise(E=>{r=T=>{(o()||d())&&E(T)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),b=()=>{if(o())return;let E;const T=n===0?e.initialPromise:void 0;try{E=T??e.fn()}catch(A){E=Promise.reject(A)}Promise.resolve(E).then(h).catch(A=>{if(o())return;const w=e.retry??(Ll?0:3),k=e.retryDelay??$G,O=typeof k=="function"?k(n,A):k,R=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,A);if(t||!R){y(A);return}n++,e.onFail?.(n,A),RG(O).then(()=>d()?void 0:g()).then(()=>{t?y(A):b()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():g().then(b),a)}}var rN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wE(this.gcTime)&&(this.#e=yl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ll?1/0:300*1e3))}clearGcTimeout(){this.#e&&(yl.clearTimeout(this.#e),this.#e=void 0)}},FG=class extends rN{#e;#t;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Rk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Rk(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=DE(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Vr).catch(Vr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ka(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===PS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ds(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!X3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const c=J3(this.options,t),d=(()=>{const p={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(p),p})();return this.#s=!1,this.options.persister?this.options.persister(c,d,this):c(d)},s=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=nN({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:c=>{c instanceof OE&&c.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(c,u)=>{this.#o({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof OE){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aN(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),fr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function aN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var BG=class extends Cu{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#s=RE(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ok(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return IE(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return IE(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#T(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ka(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Ag(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Ik(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Ka(this.options.enabled,this.#t)!==Ka(t.enabled,this.#t)||Ds(this.options.staleTime,this.#t)!==Ds(t.staleTime,this.#t))&&this.#g();const a=this.#y();r&&(this.#t!==n||Ka(this.options.enabled,this.#t)!==Ka(t.enabled,this.#t)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return jG(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Vr)),t}#g(){this.#E();const e=Ds(this.options.staleTime,this.#t);if(Ll||this.#a.isStale||!wE(e))return;const n=X3(this.#a.dataUpdatedAt,e)+1;this.#c=yl.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#T(),this.#l=e,!(Ll||Ka(this.options.enabled,this.#t)===!1||!wE(this.#l)||this.#l===0)&&(this.#u=yl.setInterval(()=>{(this.options.refetchIntervalInBackground||MS.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#E(){this.#c&&(yl.clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(yl.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#a,o=this.#r,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,y;if(t._optimisticResults){const q=this.hasListeners(),z=!q&&Ok(e,t),$=q&&Ik(e,n,t,r);(z||$)&&(p={...p,...aN(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:E}=p;y=p.data;let T=!1;if(t.placeholderData!==void 0&&y===void 0&&E==="pending"){let q;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(q=a.data,T=!0):q=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,q!==void 0&&(E="success",y=DE(a?.data,q,t),h=!0)}if(t.select&&y!==void 0&&!T)if(a&&y===o?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=DE(a?.data,y,t),this.#f=y,this.#o=null}catch(q){this.#o=q}this.#o&&(g=this.#o,y=this.#f,b=Date.now(),E="error");const A=p.fetchStatus==="fetching",w=E==="pending",k=E==="error",O=w&&A,R=y!==void 0,F={status:E,fetchStatus:p.fetchStatus,isPending:w,isSuccess:E==="success",isError:k,isInitialLoading:O,isLoading:O,data:y,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:A,isRefetching:A&&!w,isLoadingError:k&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:k&&R,isStale:$S(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ka(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const q=H=>{F.status==="error"?H.reject(F.error):F.data!==void 0&&H.resolve(F.data)},z=()=>{const H=this.#s=F.promise=RE();q(H)},$=this.#s;switch($.status){case"pending":e.queryHash===n.queryHash&&q($);break;case"fulfilled":(F.status==="error"||F.data!==$.value)&&z();break;case"rejected":(F.status!=="error"||F.error!==$.reason)&&z();break}}return F}updateResult(){const e=this.#a,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Ag(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#h.size)return!0;const o=new Set(a??this.#h);return this.options.throwOnError&&o.add("error"),Object.keys(this.#a).some(s=>{const c=s;return this.#a[c]!==e[c]&&o.has(c)})};this.#_({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){fr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function UG(e,t){return Ka(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ok(e,t){return UG(e,t)||e.state.data!==void 0&&IE(e,t,t.refetchOnMount)}function IE(e,t,n){if(Ka(t.enabled,e)!==!1&&Ds(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$S(e,t)}return!1}function Ik(e,t,n,r){return(e!==t||Ka(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$S(e,n)}function $S(e,t){return Ka(t.enabled,e)!==!1&&e.isStaleByTime(Ds(t.staleTime,e))}function jG(e,t){return!Ag(e.getCurrentResult(),t)}function Nk(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=J3(t.options,t.fetchOptions),g=async(b,E,T)=>{if(p)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const w=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return h(D),D})(),k=await y(w),{maxPages:O}=t.options,R=T?IG:OG;return{pages:R(b.pages,k,O),pageParams:R(b.pageParams,E,O)}};if(a&&o.length){const b=a==="backward",E=b?HG:Lk,T={pages:o,pageParams:s},A=E(r,T);c=await g(T,A,b)}else{const b=e??o.length;do{const E=u===0?s[0]??r.initialPageParam:Lk(r,c);if(u>0&&E==null)break;c=await g(c,E),u++}while(u<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function Lk(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function HG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var zG=class extends rN{#e;#t;#n;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||oN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=nN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#r({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:a})}const o=await this.#a.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),fr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function oN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var VG=class extends Cu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new zG({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=vm(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=vm(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=vm(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=vm(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){fr.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>wk(t,n))}findAll(e={}){return this.getAll().filter(t=>wk(e,t))}notify(e){fr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return fr.batch(()=>Promise.all(e.map(t=>t.continue().catch(Vr))))}};function vm(e){return e.options.scope?.id}var GG=class extends Cu{#e;#t=void 0;#n;#a;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Ag(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Pl(n.mutationKey)!==Pl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??oN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){fr.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,a),this.#a.onSettled?.(t.data,null,n,r,a)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,a),this.#a.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#t)})})}},qG=class extends Cu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??LS(r,t);let o=this.get(a);return o||(o=new FG({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){fr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>xk(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>xk(e,n)):t}notify(e){fr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},WG=class{#e;#t;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#e=e.queryCache||new qG,this.#t=e.mutationCache||new VG,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=MS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=xg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ds(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(r.queryHash)?.state.data,s=kG(t,o);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return fr.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;fr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return fr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fr.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Vr).catch(Vr)}invalidateQueries(e,t={}){return fr.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=fr.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Vr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Vr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ds(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vr).catch(Vr)}fetchInfiniteQuery(e){return e.behavior=Nk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vr).catch(Vr)}ensureInfiniteQueryData(e){return e.behavior=Nk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Pl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Zf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Pl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Zf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=LS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===PS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},iN=x.createContext(void 0),sN=e=>{const t=x.useContext(iN);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},YG=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(iN.Provider,{value:e,children:t})),lN=x.createContext(!1),QG=()=>x.useContext(lN);lN.Provider;function KG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XG=x.createContext(KG()),ZG=()=>x.useContext(XG),JG=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},eq=e=>{x.useEffect(()=>{e.clearReset()},[e])},tq=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||eN(n,[e.error,r])),nq=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rq=(e,t)=>e.isLoading&&e.isFetching&&!t,aq=(e,t)=>e?.suspense&&t.isPending,Pk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function oq(e,t,n){const r=QG(),a=ZG(),o=sN(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",nq(s),JG(s,a),eq(a);const c=!o.getQueryCache().get(s.queryHash),[u]=x.useState(()=>new t(o,s)),d=u.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(h=>{const y=p?u.subscribe(fr.batchCalls(h)):Vr;return u.updateResult(),y},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),x.useEffect(()=>{u.setOptions(s)},[s,u]),aq(s,d))throw Pk(s,u,a);if(tq({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Ll&&rq(d,r)&&(c?Pk(s,u,a):o.getQueryCache().get(s.queryHash)?.promise)?.catch(Vr).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function iq(e,t){return oq(e,BG,t)}function sq(e,t){const n=sN(t),[r]=x.useState(()=>new GG(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const a=x.useSyncExternalStore(x.useCallback(s=>r.subscribe(fr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=x.useCallback((s,c)=>{r.mutate(s,c).catch(Vr)},[r]);if(a.error&&eN(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const cN=[{id:"abap",name:"ABAP",import:()=>G(()=>import("./index.es307-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>G(()=>import("./index.es308-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>G(()=>import("./index.es309-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>G(()=>import("./index.es310-AKXDC8rl.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>G(()=>import("./index.es311-CE0-K0fx.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>G(()=>import("./index.es312-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>G(()=>import("./index.es313-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>G(()=>import("./index.es314-CsD4AFJi.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>G(()=>import("./index.es315-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>G(()=>import("./index.es316-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>G(()=>import("./index.es317-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>G(()=>import("./index.es318-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>G(()=>import("./index.es319-BAaFF8nF.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>G(()=>import("./index.es320-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>G(()=>import("./index.es321-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>G(()=>import("./index.es322-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>G(()=>import("./index.es323-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>G(()=>import("./index.es324-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>G(()=>import("./index.es325-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>G(()=>import("./index.es326-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>G(()=>import("./index.es327-CLjg00CO.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>G(()=>import("./index.es328-Dk49f56D.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>G(()=>import("./index.es329-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>G(()=>import("./index.es330-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>G(()=>import("./index.es331-CNjOIk10.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>G(()=>import("./index.es332-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>G(()=>import("./index.es333-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>G(()=>import("./index.es334-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>G(()=>import("./index.es335-BeNrivcI.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>G(()=>import("./index.es336-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>G(()=>import("./index.es337-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>G(()=>import("./index.es338-BhR7SkS5.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>G(()=>import("./index.es339-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>G(()=>import("./index.es340-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>G(()=>import("./index.es341-C_6PzCoq.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>G(()=>import("./index.es342-D1uAr8c1.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>G(()=>import("./index.es343-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>G(()=>import("./index.es344-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>G(()=>import("./index.es345-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>G(()=>import("./index.es346-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>G(()=>import("./index.es347-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>G(()=>import("./index.es348-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>G(()=>import("./index.es349-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>G(()=>import("./index.es350-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>G(()=>import("./index.es351-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>G(()=>import("./index.es352-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>G(()=>import("./index.es353-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>G(()=>import("./index.es354-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>G(()=>import("./index.es355-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>G(()=>import("./index.es356-7PPXN4m3.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>G(()=>import("./index.es357-CJh2QG0N.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>G(()=>import("./index.es358-C_zZutkw.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>G(()=>import("./index.es359-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>G(()=>import("./index.es360-DeQ44nE8.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>G(()=>import("./index.es361-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>G(()=>import("./index.es362-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>G(()=>import("./index.es363-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>G(()=>import("./index.es364-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>G(()=>import("./index.es365-oFKdnBEe.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>G(()=>import("./index.es366-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>G(()=>import("./index.es367-BUiiHWL7.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>G(()=>import("./index.es368-Bb8Mmpp1.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>G(()=>import("./index.es369-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>G(()=>import("./index.es370-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>G(()=>import("./index.es371-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>G(()=>import("./index.es372--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>G(()=>import("./index.es373-C5Q5iXfG.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>G(()=>import("./index.es374-s3ewK3v_.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>G(()=>import("./index.es375-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>G(()=>import("./index.es376-Dot0I9EF.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>G(()=>import("./index.es377-B6TLwhtH.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>G(()=>import("./index.es378-mEifvHi6.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>G(()=>import("./index.es379-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>G(()=>import("./index.es380-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>G(()=>import("./index.es381-DdV8KTBv.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>G(()=>import("./index.es382-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>G(()=>import("./index.es383-B762Qvzb.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>G(()=>import("./index.es384-DBjLFE2E.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>G(()=>import("./index.es385-DkDs29_v.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>G(()=>import("./index.es386-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>G(()=>import("./index.es387-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>G(()=>import("./index.es388-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>G(()=>import("./index.es389-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>G(()=>import("./index.es390-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>G(()=>import("./index.es391-BOBiTPht.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>G(()=>import("./index.es392-BGdYwXRd.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>G(()=>import("./index.es393-BnuSumNM.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>G(()=>import("./index.es394-DMJpONen.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>G(()=>import("./index.es395-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>G(()=>import("./index.es396-Dexy1Fdn.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>G(()=>import("./index.es397-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>G(()=>import("./index.es398-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>G(()=>import("./index.es399-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>G(()=>import("./index.es400-V_MXD6ds.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>G(()=>import("./index.es401-CAcCA7it.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>G(()=>import("./index.es402-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>G(()=>import("./index.es403-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>G(()=>import("./index.es404-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>G(()=>import("./index.es405-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>G(()=>import("./index.es406-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>G(()=>import("./index.es407-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>G(()=>import("./index.es408-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>G(()=>import("./index.es409-DgSxLsfq.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>G(()=>import("./index.es410-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>G(()=>import("./index.es411-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>G(()=>import("./index.es412-wcTkTrNP.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>G(()=>import("./index.es413-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>G(()=>import("./index.es414-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>G(()=>import("./index.es415-hnSTt9Hn.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>G(()=>import("./index.es416-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>G(()=>import("./index.es417-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>G(()=>import("./index.es418-DwuHSZfi.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>G(()=>import("./index.es419-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>G(()=>import("./index.es420-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>G(()=>import("./index.es421-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>G(()=>import("./index.es422-DWsCMo9a.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>G(()=>import("./index.es423-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>G(()=>import("./index.es424-CX2jVTDC.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>G(()=>import("./index.es425-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>G(()=>import("./index.es426-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>G(()=>import("./index.es427-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>G(()=>import("./index.es428-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>G(()=>import("./index.es429-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>G(()=>import("./index.es430-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>G(()=>import("./index.es431-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>G(()=>import("./index.es432-DpOOpPot.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>G(()=>import("./index.es433--E-hGrgp.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>G(()=>import("./index.es434-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>G(()=>import("./index.es435-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>G(()=>import("./index.es436-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>G(()=>import("./index.es437-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>G(()=>import("./index.es438-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>G(()=>import("./index.es439-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>G(()=>import("./index.es440-NJaU5ncf.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>G(()=>import("./index.es441-CR0Ohpvp.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>G(()=>import("./index.es442-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>G(()=>import("./index.es443-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>G(()=>import("./index.es444-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>G(()=>import("./index.es445-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>G(()=>import("./index.es446-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>G(()=>import("./index.es447-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>G(()=>import("./index.es448-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>G(()=>import("./index.es449-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>G(()=>import("./index.es450-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>G(()=>import("./index.es451-sHTEx-Dl.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>G(()=>import("./index.es452-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>G(()=>import("./index.es453-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>G(()=>import("./index.es454-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>G(()=>import("./index.es455-9ZC7rz1G.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>G(()=>import("./index.es456-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>G(()=>import("./index.es457-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>G(()=>import("./index.es458-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>G(()=>import("./index.es459-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>G(()=>import("./index.es460-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>G(()=>import("./index.es461-DAQjszqb.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>G(()=>import("./index.es462-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>G(()=>import("./index.es463-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>G(()=>import("./index.es464-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>G(()=>import("./index.es465-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>G(()=>import("./index.es466-sT_GOjPl.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>G(()=>import("./index.es467-D1qnNYJr.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>G(()=>import("./index.es468-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>G(()=>import("./index.es469-DW1np4pg.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>G(()=>import("./index.es470-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>G(()=>import("./index.es471-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>G(()=>import("./index.es472-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>G(()=>import("./index.es473-wVAdvQ6_.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>G(()=>import("./index.es474-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>G(()=>import("./index.es475-CZM7KBU8.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>G(()=>import("./index.es476-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>G(()=>import("./index.es477-OAyIdwW_.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>G(()=>import("./index.es478-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>G(()=>import("./index.es479-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>G(()=>import("./index.es480-DSR8isSz.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>G(()=>import("./index.es481-CBydsWwB.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>G(()=>import("./index.es482-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>G(()=>import("./index.es483-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>G(()=>import("./index.es484-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>G(()=>import("./index.es485-CJc4fpNV.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>G(()=>import("./index.es486-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>G(()=>import("./index.es487-C1wULFp4.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>G(()=>import("./index.es488-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>G(()=>import("./index.es489-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>G(()=>import("./index.es490-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>G(()=>import("./index.es491-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>G(()=>import("./index.es492-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>G(()=>import("./index.es493-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>G(()=>import("./index.es494-BLp6ucpV.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>G(()=>import("./index.es495-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>G(()=>import("./index.es496-Tis1R15L.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>G(()=>import("./index.es497-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>G(()=>import("./index.es498-DnIxUf2o.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>G(()=>import("./index.es499-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>G(()=>import("./index.es500-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>G(()=>import("./index.es501-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>G(()=>import("./index.es502-DhEHE70J.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>G(()=>import("./index.es503-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>G(()=>import("./index.es504-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>G(()=>import("./index.es505-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>G(()=>import("./index.es506-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>G(()=>import("./index.es507-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>G(()=>import("./index.es508-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>G(()=>import("./index.es509-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>G(()=>import("./index.es510-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>G(()=>import("./index.es511-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>G(()=>import("./index.es512-B---8rhN.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>G(()=>import("./index.es513-BU_koFtA.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>G(()=>import("./index.es514-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>G(()=>import("./index.es515-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>G(()=>import("./index.es516-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>G(()=>import("./index.es517-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>G(()=>import("./index.es518-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>G(()=>import("./index.es519-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>G(()=>import("./index.es520-ZlB1VPRK.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>G(()=>import("./index.es521-VBglaSPm.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>G(()=>import("./index.es522-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>G(()=>import("./index.es523-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>G(()=>import("./index.es524-BVz_zdnA.js"),[])}],lq=Object.fromEntries(cN.map(e=>[e.id,e.import])),cq=Object.fromEntries(cN.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),uq={...lq,...cq},dq=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>G(()=>import("./index.es525-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>G(()=>import("./index.es526-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>G(()=>import("./index.es527-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>G(()=>import("./index.es528-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>G(()=>import("./index.es529-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>G(()=>import("./index.es530-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>G(()=>import("./index.es531-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>G(()=>import("./index.es532-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>G(()=>import("./index.es533-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>G(()=>import("./index.es534-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>G(()=>import("./index.es535-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>G(()=>import("./index.es536-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>G(()=>import("./index.es537-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>G(()=>import("./index.es538-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>G(()=>import("./index.es539-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>G(()=>import("./index.es540-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>G(()=>import("./index.es541-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>G(()=>import("./index.es542-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>G(()=>import("./index.es543-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>G(()=>import("./index.es544-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>G(()=>import("./index.es545-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>G(()=>import("./index.es546-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>G(()=>import("./index.es547-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>G(()=>import("./index.es548-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>G(()=>import("./index.es549-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>G(()=>import("./index.es550-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>G(()=>import("./index.es551-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>G(()=>import("./index.es552-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>G(()=>import("./index.es553-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>G(()=>import("./index.es554-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>G(()=>import("./index.es555-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>G(()=>import("./index.es556-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>G(()=>import("./index.es557-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>G(()=>import("./index.es558-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>G(()=>import("./index.es559-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>G(()=>import("./index.es560-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>G(()=>import("./index.es561-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>G(()=>import("./index.es562-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>G(()=>import("./index.es563-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>G(()=>import("./index.es564-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>G(()=>import("./index.es565-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>G(()=>import("./index.es566-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>G(()=>import("./index.es567-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>G(()=>import("./index.es568-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>G(()=>import("./index.es569-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>G(()=>import("./index.es570-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>G(()=>import("./index.es571-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>G(()=>import("./index.es572-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>G(()=>import("./index.es573-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>G(()=>import("./index.es574-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>G(()=>import("./index.es575-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>G(()=>import("./index.es576-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>G(()=>import("./index.es577-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>G(()=>import("./index.es578-CVO1_9PV.js"),[])}],fq=Object.fromEntries(dq.map(e=>[e.id,e.import]));let Ii=class extends Error{constructor(t){super(t),this.name="ShikiError"}},FS=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function pq(){return 2147483648}function hq(){return typeof performance<"u"?performance.now():Date.now()}const mq=(e,t)=>e+(t-e%t)%t;async function gq(e){let t,n;const r={};function a(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}function o(g,b,E){r.HEAPU8.copyWithin(g,b,b+E)}function s(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(g){const b=r.HEAPU8.length;g=g>>>0;const E=pq();if(g>E)return!1;for(let T=1;T<=4;T*=2){let A=b*(1+.2/T);A=Math.min(A,g+100663296);const w=Math.min(E,mq(Math.max(g,A),65536));if(s(w))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(g,b,E=1024){const T=b+E;let A=b;for(;g[A]&&!(A>=T);)++A;if(A-b>16&&g.buffer&&u)return u.decode(g.subarray(b,A));let w="";for(;b<A;){let k=g[b++];if(!(k&128)){w+=String.fromCharCode(k);continue}const O=g[b++]&63;if((k&224)===192){w+=String.fromCharCode((k&31)<<6|O);continue}const R=g[b++]&63;if((k&240)===224?k=(k&15)<<12|O<<6|R:k=(k&7)<<18|O<<12|R<<6|g[b++]&63,k<65536)w+=String.fromCharCode(k);else{const D=k-65536;w+=String.fromCharCode(55296|D>>10,56320|D&1023)}}return w}function p(g,b){return g?d(r.HEAPU8,g,b):""}const h={emscripten_get_now:hq,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const g=await e({env:h,wasi_snapshot_preview1:h});t=g.memory,a(t.buffer),Object.assign(r,g),r.UTF8ToString=p}return await y(),r}var yq=Object.defineProperty,vq=(e,t,n)=>t in e?yq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dr=(e,t,n)=>(vq(e,typeof t!="symbol"?t+"":t,n),n);let Er=null;function bq(e){throw new FS(e.UTF8ToString(e.getLastOnigError()))}let uN=class dN{constructor(t){dr(this,"utf16Length"),dr(this,"utf8Length"),dr(this,"utf16Value"),dr(this,"utf8Value"),dr(this,"utf16OffsetToUtf8"),dr(this,"utf8OffsetToUtf16");const n=t.length,r=dN._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const s=a?new Uint32Array(r+1):null;a&&(s[r]=n);const c=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,y=!1;if(p>=55296&&p<=56319&&d+1<n){const g=t.charCodeAt(d+1);g>=56320&&g<=57343&&(h=(p-55296<<10)+65536|g-56320,y=!0)}a&&(o[d]=u,y&&(o[d+1]=u),h<=127?s[u+0]=d:h<=2047?(s[u+0]=d,s[u+1]=d):h<=65535?(s[u+0]=d,s[u+1]=d,s[u+2]=d):(s[u+0]=d,s[u+1]=d,s[u+2]=d,s[u+3]=d)),h<=127?c[u++]=h:h<=2047?(c[u++]=192|(h&1984)>>>6,c[u++]=128|(h&63)>>>0):h<=65535?(c[u++]=224|(h&61440)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0):(c[u++]=240|(h&1835008)>>>18,c[u++]=128|(h&258048)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0),y&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let s=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(s=(o-55296<<10)+65536|u-56320,c=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const $o=class{constructor(t){if(dr(this,"id",++$o.LAST_ID),dr(this,"_onigBinding"),dr(this,"content"),dr(this,"utf16Length"),dr(this,"utf8Length"),dr(this,"utf16OffsetToUtf8"),dr(this,"utf8OffsetToUtf16"),dr(this,"ptr"),!Er)throw new FS("Must invoke loadWasm first.");this._onigBinding=Er,this.content=t;const n=new uN(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!$o._sharedPtrInUse?($o._sharedPtr||($o._sharedPtr=Er.omalloc(1e4)),$o._sharedPtrInUse=!0,Er.HEAPU8.set(n.utf8Value,$o._sharedPtr),this.ptr=$o._sharedPtr):this.ptr=n.createString(Er)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===$o._sharedPtr?$o._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Np=$o;dr(Np,"LAST_ID",0);dr(Np,"_sharedPtr",0);dr(Np,"_sharedPtrInUse",!1);let Eq=class{constructor(t){if(dr(this,"_onigBinding"),dr(this,"_ptr"),!Er)throw new FS("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new uN(t[c]);n[c]=d.createString(Er),r[c]=d.utf8Length}const a=Er.omalloc(4*t.length);Er.HEAPU32.set(n,a/4);const o=Er.omalloc(4*t.length);Er.HEAPU32.set(r,o/4);const s=Er.createOnigScanner(a,o,t.length);for(let c=0,u=t.length;c<u;c++)Er.ofree(n[c]);Er.ofree(o),Er.ofree(a),s===0&&bq(Er),this._onigBinding=Er,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Np(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(s===0)return null;const c=o.HEAPU32;let u=s/4;const d=c[u++],p=c[u++],h=[];for(let y=0;y<p;y++){const g=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[y]={start:g,end:b,length:b-g}}return{index:d,captureIndices:h}}};function Tq(e){return typeof e.instantiator=="function"}function Sq(e){return typeof e.default=="function"}function _q(e){return typeof e.data<"u"}function Cq(e){return typeof Response<"u"&&e instanceof Response}function Aq(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let bm;function xq(e){if(bm)return bm;async function t(){Er=await gq(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Tq(r)?r=await r.instantiator(n):Sq(r)?r=await r.default(n):(_q(r)&&(r=r.data),Cq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await wq(r)(n):r=await kq(r)(n):Aq(r)?r=await Kv(r)(n):r instanceof WebAssembly.Module?r=await Kv(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Kv(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return bm=t(),bm}function Kv(e){return t=>WebAssembly.instantiate(e,t)}function wq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function kq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Dq;function Rq(){return Dq}async function fN(e){return e&&await xq(e),{createScanner(t){return new Eq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Np(t)}}}function Oq(e){return BS(e)}function BS(e){return Array.isArray(e)?Iq(e):e instanceof RegExp?e:typeof e=="object"?Nq(e):e}function Iq(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=BS(e[n]);return t}function Nq(e){let t={};for(let n in e)t[n]=BS(e[n]);return t}function pN(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function hN(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?hN(e.substring(0,e.length-1)):e.substr(~t+1)}var Xv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Em=class{static hasCaptures(t){return t===null?!1:(Xv.lastIndex=0,Xv.test(t))}static replaceCaptures(t,n,r){return t.replace(Xv,(a,o,s,c)=>{let u=r[parseInt(o||s,10)];if(u){let d=n.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(c){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return a})}};function mN(e,t){return e<t?-1:e>t?1:0}function gN(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=mN(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function Mk(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function yN(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var vN=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},wg=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(Mq(t),n)}static createFromParsedTheme(t,n){return Fq(t,n)}_cachedMatchRoot=new vN(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>Lq(t.parent,a.parentScopes));return r?new bN(r.fontStyle,r.foreground,r.background):null}},Zv=class Ym{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ym(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ym(n,t[r]);return n}push(t){return new Ym(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function Lq(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!Pq(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Pq(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var bN=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function Mq(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let s=t[a];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let y=0,g=h.length;y<g;y++)switch(h[y]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let d=null;typeof s.settings.foreground=="string"&&Mk(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&Mk(s.settings.background)&&(p=s.settings.background);for(let h=0,y=c.length;h<y;h++){let g=c[h].trim().split(" "),b=g[g.length-1],E=null;g.length>1&&(E=g.slice(0,g.length-1),E.reverse()),n[r++]=new $q(b,E,a,u,d,p)}}return n}var $q=class{constructor(t,n,r,a,o,s){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=s}},Ri=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ri||{});function Fq(e,t){e.sort((u,d)=>{let p=mN(u.scope,d.scope);return p!==0||(p=gN(u.parentScopes,d.parentScopes),p!==0)?p:u.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(a=u.background)}let o=new Bq(t),s=new bN(n,o.getId(r),o.getId(a)),c=new jq(new NE(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new wg(o,s,c)}var Bq=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},Uq=Object.freeze([]),NE=class EN{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||Uq,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new EN(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},jq=class LE{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(LE._cmpBySpecificity),n}insert(t,n,r,a,o,s){if(n===""){this._doInsertHere(t,r,a,o,s);return}let c=n.indexOf("."),u,d;c===-1?(u=n,d=""):(u=n.substring(0,c),d=n.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new LE(this._mainRule.clone(),NE.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,a,o,s)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(gN(u.parentScopes,n)===0){u.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new NE(t,n,r,a,o))}},hu=class Wa{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Wa.getLanguageId(t),r=Wa.getTokenType(t),a=Wa.getFontStyle(t),o=Wa.getForeground(t),s=Wa.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,s,c){let u=Wa.getLanguageId(t),d=Wa.getTokenType(t),p=Wa.containsBalancedBrackets(t)?1:0,h=Wa.getFontStyle(t),y=Wa.getForeground(t),g=Wa.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),s!==0&&(y=s),c!==0&&(g=c),(u<<0|d<<8|p<<10|h<<11|y<<15|g<<24)>>>0}};function kg(e,t){const n=[],r=Hq(e);let a=r.next();for(;a!==null;){let u=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=s();if(n.push({matcher:d,priority:u}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const u=o();return d=>!!u&&!u(d)}if(a==="("){a=r.next();const u=c();return a===")"&&(a=r.next()),u}if($k(a)){const u=[];do u.push(a),a=r.next();while($k(a));return d=>t(u,d)}return null}function s(){const u=[];let d=o();for(;d;)u.push(d),d=o();return p=>u.every(h=>h(p))}function c(){const u=[];let d=s();for(;d&&(u.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=s()}return p=>u.some(h=>h(p))}}function $k(e){return!!e&&!!e.match(/[\w\.:]+/)}function Hq(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function TN(e){typeof e.dispose=="function"&&e.dispose()}var Jf=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},zq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vq=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},Gq=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Jf(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new Vq;for(const r of t)qq(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Jf){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function qq(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Jf?Qm({baseGrammar:o,selfGrammar:a},r):PE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const s=n.injections(e.scopeName);if(s)for(const c of s)r.add(new Jf(c))}function PE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Dg([r],t,n)}}function Qm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Dg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Dg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Dg(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?pN({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Dg(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const s=SN(o);switch(s.kind){case 0:Qm({...t,selfGrammar:t.baseGrammar},n);break;case 1:Qm(t,n);break;case 2:PE(s.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const u={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};s.kind===4?PE(s.ruleName,u,n):Qm(u,n)}else s.kind===4?n.add(new zq(s.scopeName,s.ruleName)):n.add(new Jf(s.scopeName));break}}}var Wq=class{kind=0},Yq=class{kind=1},Qq=class{constructor(t){this.ruleName=t}kind=2},Kq=class{constructor(t){this.scopeName=t}kind=3},Xq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function SN(e){if(e==="$base")return new Wq;if(e==="$self")return new Yq;const t=e.indexOf("#");if(t===-1)return new Kq(e);if(t===0)return new Qq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Xq(n,r)}}var Zq=/\\(\d+)/,Fk=/\\(\d+)/g,Jq=-1,_N=-2,Lp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=Em.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Em.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${hN(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:Em.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Em.replaceCaptures(this._contentName,t,n)}},eW=class extends Lp{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},tW=class extends Lp{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new ep(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tp,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bk=class extends Lp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tp,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ME=class extends Lp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,s,c,u,d,p){super(t,n,r,a),this._begin=new ep(o,this.id),this.beginCaptures=s,this._end=new ep(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=d||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tp;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Rg=class extends Lp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,s,c,u,d){super(t,n,r,a),this._begin=new ep(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new ep(c,_N),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tp;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tp,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},CN=class Or{static createCaptureRule(t,n,r,a,o){return t.registerRule(s=>new eW(n,s,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new tW(t.$vscodeTextmateLocation,t.id,t.name,t.match,Or._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=pN({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Bk(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Or._compilePatterns(o,n,r))}return t.while?new Rg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Or._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Or._compileCaptures(t.whileCaptures||t.captures,n,r),Or._compilePatterns(t.patterns,n,r)):new ME(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Or._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Or._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Or._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)a[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;t[s].patterns&&(u=Or.getCompiledRuleId(t[s],n,r)),a[c]=Or.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,s=t.length;o<s;o++){const c=t[o];let u=-1;if(c.include){const d=SN(c.include);switch(d.kind){case 0:case 1:u=Or.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Or.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,y=d.kind===4?d.ruleName:null,g=n.getExternalGrammar(h,r);if(g)if(y){let b=g.repository[y];b&&(u=Or.getCompiledRuleId(b,n,g.repository))}else u=Or.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else u=Or.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof Bk||d instanceof ME||d instanceof Rg)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(u)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},ep=class AN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],s=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const u=t.charAt(c+1);u==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Zq.test(this.source):this.hasBackReferences=!1}clone(){return new AN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return Fk.lastIndex=0,this.source.replace(Fk,(a,o)=>yN(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,s,c,u;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<s&&(u=this.source.charAt(o+1),u==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):u==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=u,n[o+1]=u,r[o+1]=u,a[o+1]=u),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},tp=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Uk(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new Uk(t,a,this._items.map(o=>o.ruleId))}},Uk=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
227
|
+
`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},Jv=class{constructor(t,n){this.languageId=t,this.tokenType=n}},nW=class $E{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Jv(t,8),this._embeddedLanguagesMatcher=new rW(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?$E._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Jv(0,0);_getBasicScopeAttributes=new vN(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Jv(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match($E.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},rW=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>yN(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},jk=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function xN(e,t,n,r,a,o,s,c){const u=t.content.length;let d=!1,p=-1;if(s){const g=aW(e,t,n,r,a,o);a=g.stack,r=g.linePos,n=g.isFirstLine,p=g.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new jk(a,!0);y()}return new jk(a,!1);function y(){const g=oW(e,t,n,r,a,p);if(!g){o.produce(a,u),d=!0;return}const b=g.captureIndices,E=g.matchedRuleId,T=b&&b.length>0?b[0].end>r:!1;if(E===Jq){const A=a.getRule(e);o.produce(a,b[0].start),a=a.withContentNameScopesList(a.nameScopesList),hf(e,t,n,a,o,A.endCaptures,b),o.produce(a,b[0].end);const w=a;if(a=a.parent,p=w.getAnchorPos(),!T&&w.getEnterPos()===r){a=w,o.produce(a,u),d=!0;return}}else{const A=e.getRule(E);o.produce(a,b[0].start);const w=a,k=A.getName(t.content,b),O=a.contentNameScopesList.pushAttributed(k,e);if(a=a.push(E,r,p,b[0].end===u,null,O,O),A instanceof ME){const R=A;hf(e,t,n,a,o,R.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const D=R.getContentName(t.content,b),F=O.pushAttributed(D,e);if(a=a.withContentNameScopesList(F),R.endHasBackReferences&&(a=a.withEndRule(R.getEndWithResolvedBackReferences(t.content,b))),!T&&w.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(A instanceof Rg){const R=A;hf(e,t,n,a,o,R.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const D=R.getContentName(t.content,b),F=O.pushAttributed(D,e);if(a=a.withContentNameScopesList(F),R.whileHasBackReferences&&(a=a.withEndRule(R.getWhileWithResolvedBackReferences(t.content,b))),!T&&w.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(hf(e,t,n,a,o,A.captures,b),o.produce(a,b[0].end),a=a.pop(),!T){a=a.safePop(),o.produce(a,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function aW(e,t,n,r,a,o){let s=a.beginRuleCapturedEOL?0:-1;const c=[];for(let u=a;u;u=u.pop()){const d=u.getRule(e);d instanceof Rg&&c.push({rule:d,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:d,findOptions:p}=lW(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==_N){a=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(u.stack,h.captureIndices[0].start),hf(e,t,n,u.stack,o,u.rule.whileCaptures,h.captureIndices),o.produce(u.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=u.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:s,isFirstLine:n}}function oW(e,t,n,r,a,o){const s=iW(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return s;const u=sW(c,e,t,n,r,a,o);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,p=u.captureIndices[0].start;return p<d||u.priorityMatch&&p===d?u:s}function iW(e,t,n,r,a,o){const s=a.getRule(e),{ruleScanner:c,findOptions:u}=wN(s,e,a.endRule,n,r===o),d=c.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function sW(e,t,n,r,a,o,s){let c=Number.MAX_VALUE,u=null,d,p=0;const h=o.contentNameScopesList.getScopeNames();for(let y=0,g=e.length;y<g;y++){const b=e[y];if(!b.matcher(h))continue;const E=t.getRule(b.ruleId),{ruleScanner:T,findOptions:A}=wN(E,t,null,r,a===s),w=T.findNextMatchSync(n,a,A);if(!w)continue;const k=w.captureIndices[0].start;if(!(k>=c)&&(c=k,u=w.captureIndices,d=w.ruleId,p=b.priority,c===a))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function wN(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function lW(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function hf(e,t,n,r,a,o,s){if(o.length===0)return;const c=t.content,u=Math.min(o.length,s.length),d=[],p=s[0].end;for(let h=0;h<u;h++){const y=o[h];if(y===null)continue;const g=s[h];if(g.length===0)continue;if(g.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,g.start):a.produce(r,g.start),y.retokenizeCapturedWithRuleId){const E=y.getName(c,s),T=r.contentNameScopesList.pushAttributed(E,e),A=y.getContentName(c,s),w=T.pushAttributed(A,e),k=r.push(y.retokenizeCapturedWithRuleId,g.start,-1,!1,null,T,w),O=e.createOnigString(c.substring(0,g.end));xN(e,O,n&&g.start===0,g.start,k,a,!1,0),TN(O);continue}const b=y.getName(c,s);if(b!==null){const E=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new cW(E,g.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var cW=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function uW(e,t,n,r,a,o,s,c){return new fW(e,t,n,r,a,o,s,c)}function Hk(e,t,n,r,a){const o=kg(t,Og),s=CN.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:s,grammar:a,priority:c.priority})}function Og(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(dW(t[a],r))return n=a+1,!0;return!1})}function dW(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var fW=class{constructor(t,n,r,a,o,s,c,u){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new nW(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=zk(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const p=kg(d,Og);for(const h of p)this._tokenTypeMatchers.push({matcher:h.matcher,type:o[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)Hk(n,c,o[c],this,a);const s=this._grammarRepository.injections(r);s&&s.forEach(c=>{const u=this.getExternalGrammar(c);if(u){const d=u.injectionSelector;d&&Hk(n,d,u,this,u)}})}return n.sort((o,s)=>o.priority-s.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=zk(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=CN.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===FE.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),y=hu.set(0,p.languageId,p.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),g=this.getRule(this._rootId).getName(null,null);let b;g?b=Sf.createRootAndLookUpScopeName(g,y,this):b=Sf.createRoot("unknown",y),n=new FE(null,this._rootId,-1,-1,!1,null,b,b)}else o=!1,n.reset();t=t+`
|
|
228
|
+
`;const s=this.createOnigString(t),c=s.content.length,u=new hW(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),d=xN(this,s,o,0,n,u,!0,a);return TN(s),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function zk(e,t){return e=Oq(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Sf=class Fo{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=Zv.push(a,o.scopeNames),r=new Fo(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Fo(null,new Zv(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Zv(null,t),s=r.themeProvider.themeMatch(o),c=Fo.mergeAttributes(n,a,s);return new Fo(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Fo.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,s=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,s=r.backgroundId),hu.set(t,n.languageId,n.tokenType,null,a,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Fo._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Fo._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),c=Fo.mergeAttributes(t.tokenAttributes,a,s);return new Fo(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},FE=class cl{constructor(t,n,r,a,o,s,c,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new cl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:cl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Sf.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){cl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,s,c){return new cl(this,t,n,r,a,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new cl(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Sf.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new cl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Sf.fromExtension(r,n.contentNameScopesList))}},pW=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):kg(r,Og).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>kg(r,Og).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},hW=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(a=hu.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=hu.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},mW=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,uW(t,s,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},gW=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new mW(wg.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(wg.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new pW(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const s=new Gq(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},BE=FE.NULL;const kN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Pp=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Pp.prototype.normal={};Pp.prototype.property={};Pp.prototype.space=void 0;function DN(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Pp(n,r,t)}function np(e){return e.toLowerCase()}let ma=class{constructor(t,n){this.attribute=n,this.property=t}};ma.prototype.attribute="";ma.prototype.booleanish=!1;ma.prototype.boolean=!1;ma.prototype.commaOrSpaceSeparated=!1;ma.prototype.commaSeparated=!1;ma.prototype.defined=!1;ma.prototype.mustUseProperty=!1;ma.prototype.number=!1;ma.prototype.overloadedBoolean=!1;ma.prototype.property="";ma.prototype.spaceSeparated=!1;ma.prototype.space=void 0;let yW=0;const Rt=zl(),or=zl(),UE=zl(),$e=zl(),Rn=zl(),nu=zl(),Aa=zl();function zl(){return 2**++yW}const jE=Object.freeze(Object.defineProperty({__proto__:null,boolean:Rt,booleanish:or,commaOrSpaceSeparated:Aa,commaSeparated:nu,number:$e,overloadedBoolean:UE,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),eb=Object.keys(jE);let US=class extends ma{constructor(t,n,r,a){let o=-1;if(super(t,n),Vk(this,"space",a),typeof r=="number")for(;++o<eb.length;){const s=eb[o];Vk(this,eb[o],(r&jE[s])===jE[s])}}};US.prototype.defined=!0;function Vk(e,t,n){n&&(e[t]=n)}function Au(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new US(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[np(r)]=r,n[np(o.attribute)]=r}return new Pp(t,n,e.space)}const RN=Au({properties:{ariaActiveDescendant:null,ariaAtomic:or,ariaAutoComplete:null,ariaBusy:or,ariaChecked:or,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:or,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:or,ariaFlowTo:Rn,ariaGrabbed:or,ariaHasPopup:null,ariaHidden:or,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:$e,ariaLive:null,ariaModal:or,ariaMultiLine:or,ariaMultiSelectable:or,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:or,ariaReadOnly:or,ariaRelevant:null,ariaRequired:or,ariaRoleDescription:Rn,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:or,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ON(e,t){return t in e?e[t]:t}function IN(e,t){return ON(e,t.toLowerCase())}const vW=Au({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nu,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:Rt,allowPaymentRequest:Rt,allowUserMedia:Rt,alt:null,as:null,async:Rt,autoCapitalize:null,autoComplete:Rn,autoFocus:Rt,autoPlay:Rt,blocking:Rn,capture:null,charSet:null,checked:Rt,cite:null,className:Rn,cols:$e,colSpan:null,content:null,contentEditable:or,controls:Rt,controlsList:Rn,coords:$e|nu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Rt,defer:Rt,dir:null,dirName:null,disabled:Rt,download:UE,draggable:or,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Rt,formTarget:null,headers:Rn,height:$e,hidden:UE,high:$e,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:Rt,inputMode:null,integrity:null,is:null,isMap:Rt,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:Rt,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Rt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:Rt,muted:Rt,name:null,nonce:null,noModule:Rt,noValidate:Rt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Rt,optimum:$e,pattern:null,ping:Rn,placeholder:null,playsInline:Rt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Rt,referrerPolicy:null,rel:Rn,required:Rt,reversed:Rt,rows:$e,rowSpan:$e,sandbox:Rn,scope:null,scoped:Rt,seamless:Rt,selected:Rt,shadowRootClonable:Rt,shadowRootDelegatesFocus:Rt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:or,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:Rt,useMap:null,value:or,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Rt,declare:Rt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:Rt,noHref:Rt,noShade:Rt,noWrap:Rt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:or,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Rt,disableRemotePlayback:Rt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:IN}),bW=Au({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Aa,accentHeight:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,className:Rn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:Rt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nu,g2:nu,glyphName:nu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:Aa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Aa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Aa,rev:Aa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Aa,requiredFeatures:Aa,requiredFonts:Aa,requiredFormats:Aa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:Aa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Aa,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Aa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ON}),NN=Au({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),LN=Au({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:IN}),PN=Au({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xu=DN([RN,vW,NN,LN,PN],"html"),Bi=DN([RN,bW,NN,LN,PN],"svg"),Gk={}.hasOwnProperty;function M0(e,t){const n=t||{};function r(a,...o){let s=r.invalid;const c=r.handlers;if(a&&Gk.call(a,e)){const u=String(a[e]);s=Gk.call(c,u)?c[u]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const EW=/["&'<>`]/g,TW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,_W=/[|\\{}()[\]^$+*?.]/g,qk=new WeakMap;function CW(e,t){if(e=e.replace(t.subset?AW(t.subset):EW,r),t.subset||t.escapeOnly)return e;return e.replace(TW,n).replace(SW,r);function n(a,o,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(a,o,s){return t.format(a.charCodeAt(0),s.charCodeAt(o+1),t)}}function AW(e){let t=qk.get(e);return t||(t=xW(e),qk.set(e,t)),t}function xW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(_W,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const wW=/[\dA-Fa-f]/;function kW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!wW.test(String.fromCharCode(t))?r:r+";"}const DW=/\d/;function RW(e,t,n){const r="&#"+String(e);return n&&t&&!DW.test(String.fromCharCode(t))?r:r+";"}const OW=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tb={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},IW=["cent","copy","divide","gt","lt","not","para","times"],MN={}.hasOwnProperty,HE={};let Tm;for(Tm in tb)MN.call(tb,Tm)&&(HE[tb[Tm]]=Tm);const NW=/[^\dA-Za-z]/;function LW(e,t,n,r){const a=String.fromCharCode(e);if(MN.call(HE,a)){const o=HE[a],s="&"+o;return n&&OW.includes(o)&&!IW.includes(o)&&(!r||t&&t!==61&&NW.test(String.fromCharCode(t)))?s:s+";"}return""}function PW(e,t,n){let r=kW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=LW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=RW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function ru(e,t){return CW(e,Object.assign({format:PW},t))}const MW=/^>|^->|<!--|-->|--!>|<!-$/g,$W=[">"],FW=["<",">"];function BW(e,t,n,r){return r.settings.bogusComments?"<?"+ru(e.value,Object.assign({},r.settings.characterReferences,{subset:$W}))+">":"<!--"+e.value.replace(MW,a)+"-->";function a(o){return ru(o,Object.assign({},r.settings.characterReferences,{subset:FW}))}}function UW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ig(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function zE(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(a,r).trim();(s||!o)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function $0(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function VE(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function F0(e){return e.join(" ").trim()}const jW=/[ \t\n\f\r]/g;function Mp(e){return typeof e=="object"?e.type==="text"?Wk(e.value):!1:Wk(e)}function Wk(e){return e.replace(jW,"")===""}const pr=FN(1),$N=FN(-1),HW=[];function FN(e){return t;function t(n,r,a){const o=n?n.children:HW;let s=(r||0)+e,c=o[s];if(!a)for(;c&&Mp(c);)s+=e,c=o[s];return c}}const zW={}.hasOwnProperty;function BN(e){return t;function t(n,r,a){return zW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const jS=BN({body:GW,caption:nb,colgroup:nb,dd:QW,dt:YW,head:nb,html:VW,li:WW,optgroup:KW,option:XW,p:qW,rp:Yk,rt:Yk,tbody:JW,td:Qk,tfoot:eY,th:Qk,thead:ZW,tr:tY});function nb(e,t,n){const r=pr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Mp(r.value.charAt(0)))}function VW(e,t,n){const r=pr(n,t);return!r||r.type!=="comment"}function GW(e,t,n){const r=pr(n,t);return!r||r.type!=="comment"}function qW(e,t,n){const r=pr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function WW(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function YW(e,t,n){const r=pr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function QW(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Yk(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function KW(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function XW(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function ZW(e,t,n){const r=pr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function JW(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function eY(e,t,n){return!pr(n,t)}function tY(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Qk(e,t,n){const r=pr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const nY=BN({body:oY,colgroup:iY,head:aY,html:rY,tbody:sY});function rY(e){const t=pr(e,-1);return!t||t.type!=="comment"}function aY(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function oY(e){const t=pr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Mp(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function iY(e,t,n){const r=$N(n,t),a=pr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&jS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function sY(e,t,n){const r=$N(n,t),a=pr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&jS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const lY=/[A-Z]/g,Kk=/-[a-z]/g,cY=/^data[-\w.:]+$/i;function $p(e,t){const n=np(t);let r=t,a=ma;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&cY.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Kk,dY);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Kk.test(o)){let s=o.replace(lY,uY);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=US}return new a(r,t)}function uY(e){return"-"+e.toLowerCase()}function dY(e){return e.charAt(1).toUpperCase()}const Sm={name:[[`
|
|
229
|
+
\f\r &/=>`.split(""),`
|
|
230
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
231
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
232
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
233
|
+
\f\r &>`.split(""),`\0
|
|
234
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
235
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
236
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function fY(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let u;a.space==="html"&&e.tagName==="svg"&&(r.schema=Bi);const d=pY(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(s=!1),(d||!o||!nY(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!o||!jS(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function pY(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=hY(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function hY(e,t,n){const r=$p(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=ru(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Sm.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?$0:F0)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=ru(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Sm.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&Ig(n,s)>Ig(n,e.alternative)&&(s=e.alternative),c=s+ru(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Sm.single:Sm.double)[a][o],attribute:!0}))+s),u+(c&&"="+c))}const mY=["<","&"];function UN(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ru(e.value,Object.assign({},r.settings.characterReferences,{subset:mY}))}function gY(e,t,n,r){return r.settings.allowDangerousHtml?e.value:UN(e,t,n,r)}function yY(e,t,n,r){return r.all(e)}const vY=M0("type",{invalid:bY,unknown:EY,handlers:{comment:BW,doctype:UW,element:fY,raw:gY,root:yY,text:UN}});function bY(e){throw new Error("Expected node, not `"+e+"`")}function EY(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const TY={},SY={},_Y=[];function CY(e,t){const n=TY,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:AY,all:xY,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||kN,characterReferences:n.characterReferences||SY,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Bi:xu,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function AY(e,t,n){return vY(e,t,n,this)}function xY(e){const t=[],n=e&&e.children||_Y;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function wY(e){return Array.isArray(e)?e:[e]}function B0(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];a.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function HS(e){return!e||["plaintext","txt","text","plain"].includes(e)}function jN(e){return e==="ansi"||HS(e)}function zS(e){return e==="none"}function HN(e){return zS(e)}function zN(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function kY(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function DY(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,c)=>s-c);return o.length?kY(a,o):a})):e}async function VN(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ng(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function vl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function GN(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ri.Italic&&(t["font-style"]="italic"),e.fontStyle&Ri.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ri.Underline&&(t["text-decoration"]="underline")),t}function RY(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function OY(e){const t=B0(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,s=0;for(const c of t){if(o<c.length)break;o-=c.length,s++}return{line:s,character:o}}function r(a,o){let s=0;for(let c=0;c<a;c++)s+=t[c].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}let Gr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const qN=new WeakMap;function U0(e,t){qN.set(e,t)}function rp(e){return qN.get(e)}let j0=class WN{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new WN(Object.fromEntries(wY(n).map(r=>[r,BE])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Xk(this._stacks[this.theme])}getScopes(t=this.theme){return Xk(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function Xk(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function IY(e,t){if(!(e instanceof j0))throw new Gr("Invalid grammar state");return e.getInternalStack(t)}function NY(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new Gr(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...a.indexToPos(s),offset:s}}else{const c=a.lines[s.line];if(c===void 0)throw new Gr(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>c.length)throw new Gr(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=OY(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));LY(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return DY(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Gr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,h,y,g){const b=a[p];let E="",T=-1,A=-1;if(h===0&&(T=0),y===0&&(A=0),y===Number.POSITIVE_INFINITY&&(A=b.children.length),T===-1||A===-1)for(let k=0;k<b.children.length;k++)E+=YN(b.children[k]),T===-1&&E.length===h&&(T=k+1),A===-1&&E.length===y&&(A=k+1);if(T===-1)throw new Gr(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(A===-1)throw new Gr(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const w=b.children.slice(T,A);if(!g.alwaysWrap&&w.length===b.children.length)c(b,g,"line");else if(!g.alwaysWrap&&w.length===1&&w[0].type==="element")c(w[0],g,"token");else{const k={type:"element",tagName:"span",properties:{},children:w};c(k,g,"wrapper"),b.children.splice(T,w.length,k)}}function s(p,h){a[p]=c(a[p],h,"line")}function c(p,h,y){const g=h.properties||{},b=h.transform||(E=>E);return p.tagName=h.tagName||"span",p.properties={...p.properties,...g,class:p.properties.class},h.properties?.class&&zN(p,h.properties.class),p=b(p,y)||p,p}const u=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset);for(const p of d){const{start:h,end:y}=p;if(h.line===y.line)o(h.line,h.character,y.character,p);else if(h.line<y.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let g=h.line+1;g<y.line;g++)u.unshift(()=>s(g,p));o(y.line,0,y.character,p)}}u.forEach(p=>p())}}}function LY(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Gr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,s=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,u=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||s||c||u){if(s&&s||c&&u)continue;throw new Gr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function YN(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(YN).join(""):""}const PY=[NY()];function Lg(e){return[...e.transformers||[],...PY]}var bl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],rb={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function MY(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Zk(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function $Y(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)rb[a]&&t.push({type:"setDecoration",value:rb[a]});else if(a<=29){const o=rb[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:bl[a-30]}});else if(a===38){const[o,s]=Zk(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:bl[a-40]}});else if(a===48){const[o,s]=Zk(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:bl[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:bl[a-100+8]}})}return t}function FY(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=MY(r,o),c=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=$Y(s.sequence);for(const d of u)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of u)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<r.length);return a}}}var BY={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function UY(e=BY){function t(c){return e[c]}function n(c){return`#${c.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<bl.length;d++)r.push(t(bl[d]));let c=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([c[d],c[p],c[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function o(c){return a()[c]}function s(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:s}}function jY(e,t,n){const r=Ng(e,n),a=B0(t),o=UY(Object.fromEntries(bl.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=FY();return a.map(c=>s.parse(c[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?o.value(u.background):e.bg,p=u.foreground?o.value(u.foreground):e.fg):(d=u.foreground?o.value(u.foreground):e.fg,p=u.background?o.value(u.background):void 0),d=vl(d,r),p=vl(p,r),u.decorations.has("dim")&&(d=HY(d));let h=Ri.None;return u.decorations.has("bold")&&(h|=Ri.Bold),u.decorations.has("italic")&&(h|=Ri.Italic),u.decorations.has("underline")&&(h|=Ri.Underline),{content:u.value,offset:c[1],color:d,bgColor:p,fontStyle:h}}))}function HY(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function VS(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(HS(r)||zS(a))return B0(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:o,colorMap:s}=e.setTheme(a);if(r==="ansi")return jY(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Ii(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ii(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return VY(t,c,o,s,n)}function zY(...e){if(e.length===2)return rp(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(HS(a)||zS(o))throw new Ii("Plain language does not have grammar state");if(a==="ansi")throw new Ii("ANSI language does not have grammar state");const{theme:s,colorMap:c}=t.setTheme(o),u=t.getLanguage(a);return new j0(Pg(n,u,s,c,r).stateStack,u.name,s.name)}function VY(e,t,n,r,a){const o=Pg(e,t,n,r,a),s=new j0(Pg(e,t,n,r,a).stateStack,t.name,n.name);return U0(o.tokens,s),o.tokens}function Pg(e,t,n,r,a){const o=Ng(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=a,u=B0(e);let d=a.grammarState?IY(a.grammarState,n.name)??BE:a.grammarContextCode!=null?Pg(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:BE,p=[];const h=[];for(let y=0,g=u.length;y<g;y++){const[b,E]=u[y];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let T,A,w;a.includeExplanation&&(T=t.tokenizeLine(b,d),A=T.tokens,w=0);const k=t.tokenizeLine2(b,d,c),O=k.tokens.length/2;for(let R=0;R<O;R++){const D=k.tokens[2*R],F=R+1<O?k.tokens[2*R+2]:b.length;if(D===F)continue;const q=k.tokens[2*R+1],z=vl(r[hu.getForeground(q)],o),$=hu.getFontStyle(q),H={content:b.substring(D,F),offset:E+D,color:z,fontStyle:$};if(a.includeExplanation){const C=[];if(a.includeExplanation!=="scopeName")for(const B of n.settings){let W;switch(typeof B.scope){case"string":W=B.scope.split(/,/).map(j=>j.trim());break;case"object":W=B.scope;break;default:continue}C.push({settings:B,selectors:W.map(j=>j.split(/ /))})}H.explanation=[];let M=0;for(;D+M<F;){const B=A[w],W=b.substring(B.startIndex,B.endIndex);M+=W.length,H.explanation.push({content:W,scopes:a.includeExplanation==="scopeName"?GY(B.scopes):qY(C,B.scopes)}),w+=1}}p.push(H)}h.push(p),p=[],d=k.ruleStack}return{tokens:h,stateStack:d}}function GY(e){return e.map(t=>({scopeName:t}))}function qY(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:YY(e,o,t.slice(0,r))}}return n}function Jk(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function WY(e,t,n){if(!Jk(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Jk(e[r],n[a])&&(r-=1),a-=1;return r===-1}function YY(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const s of a)if(WY(s,t,n)){r.push(o);break}return r}function QN(e,t,n){const r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),a=r.map(u=>{const d=VS(e,t,{...n,theme:u.theme}),p=rp(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),o=QY(...a.map(u=>u.tokens)),s=o[0].map((u,d)=>u.map((p,h)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),o.forEach((g,b)=>{const{content:E,explanation:T,offset:A,...w}=g[d][h];y.variants[r[b].color]=w}),y})),c=a[0].state?new j0(Object.fromEntries(a.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),a[0].state.lang):void 0;return c&&U0(s,c),s}function QY(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(u=>u[r]),o=t.map(()=>[]);t.forEach((u,d)=>u.push(o[d]));const s=a.map(()=>0),c=a.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const p=c[d];p.content.length===u?(o[d].push(p),s[d]+=1,c[d]=a[d][s[d]]):(o[d].push({...p,content:p.content.slice(0,u)}),c[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Mg(e,t,n){let r,a,o,s,c,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,A)=>T.color===d?-1:A.color===d?1:0);if(h.length===0)throw new Ii("`themes` option must not be empty");const y=QN(e,t,n);if(u=rp(y),d&&!h.find(T=>T.color===d))throw new Ii(`\`themes\` option must contain the defaultColor key \`${d}\``);const g=h.map(T=>e.getTheme(T.theme)),b=h.map(T=>T.color);o=y.map(T=>T.map(A=>KY(A,b,p,d))),u&&U0(o,u);const E=h.map(T=>Ng(T.theme,n));a=h.map((T,A)=>(A===0&&d?"":`${p+T.color}:`)+(vl(g[A].fg,E[A])||"inherit")).join(";"),r=h.map((T,A)=>(A===0&&d?"":`${p+T.color}-bg:`)+(vl(g[A].bg,E[A])||"inherit")).join(";"),s=`shiki-themes ${g.map(T=>T.name).join(" ")}`,c=d?void 0:[a,r].join(";")}else if("theme"in n){const d=Ng(n.theme,n);o=VS(e,t,n);const p=e.getTheme(n.theme);r=vl(p.bg,d),a=vl(p.fg,d),s=p.name,u=rp(o)}else throw new Ii("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:s,rootStyle:c,grammarState:u}}function KY(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(u=>GN(e.variants[u])),s=new Set(o.flatMap(u=>Object.keys(u))),c={};return o.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)c[p]=h;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,g=n+t[d]+(p==="color"?"":y);c[g]=h}}}),a.htmlStyle=c,a}function $g(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>$g(e,a,o),codeToTokens:(a,o)=>Mg(e,a,o)}){let a=t;for(const g of Lg(n))a=g.preprocess?.call(r,a,n)||a;let{tokens:o,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Mg(e,a,n);const{mergeWhitespaces:h=!0}=n;h===!0?o=ZY(o):h==="never"&&(o=JY(o));const y={...r,get source(){return a}};for(const g of Lg(n))o=g.tokens?.call(y,o)||o;return XY(o,{...n,fg:s,bg:c,themeName:u,rootStyle:d},y,p)}function XY(e,t,n,r=rp(e)){const a=Lg(t),o=[],s={type:"root",children:[]},{structure:c="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const h=[],y={...n,structure:c,addClassToHast:zN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,E)=>{E&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
237
|
+
`}));let T={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const w of b){let k={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};w.htmlStyle;const O=RY(w.htmlStyle||GN(w));O&&(k.properties.style=O);for(const R of a)k=R?.span?.call(y,k,E+1,A,T,w)||k;c==="inline"?s.children.push(k):c==="classic"&&T.children.push(k),A+=w.content.length}if(c==="classic"){for(const w of a)T=w?.line?.call(y,T,E+1)||T;h.push(T),o.push(T)}}),c==="classic"){for(const b of a)p=b?.code?.call(y,p)||p;d.children.push(p);for(const b of a)d=b?.pre?.call(y,d)||d;s.children.push(d)}let g=s;for(const b of a)g=b?.root?.call(y,g)||g;return r&&U0(g,r),g}function ZY(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,s)=>{const c=!(o.fontStyle&&o.fontStyle&Ri.Underline);c&&o.content.match(/^\s+$/)&&t[s+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function JY(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,s]=r;if(!a&&!s)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),s&&c.push({content:s,offset:n.offset+a.length+o.length}),c}))}function eQ(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>$g(e,o,s),codeToTokens:(o,s)=>Mg(e,o,s)};let a=CY($g(e,t,n,r));for(const o of Lg(n))a=o.postprocess?.call(r,a,n)||a;return a}const eD={light:"#333333",dark:"#bbbbbb"},tD={light:"#fffffe",dark:"#1e1e1e"},nD="__shiki_resolved";function GS(e){if(e?.[nD])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?eD.light:eD.dark),n||(n=t.type==="light"?tD.light:tD.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function s(c){if(o.has(c))return o.get(c);a+=1;const u=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(c):(o.set(c,u),u)}t.settings=t.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!d)return c;const p={...c,settings:{...c.settings}};if(u){const h=s(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,p.settings.foreground=h}if(d){const h=s(c.settings.background);t.colorReplacements[h]=c.settings.background,p.settings.background=h}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const u=s(t.colors[c]);t.colorReplacements[u]=t.colors[c],t.colors[c]=u}return Object.defineProperty(t,nD,{enumerable:!1,writable:!1,value:!0}),t}async function KN(e){return Array.from(new Set((await Promise.all(e.filter(t=>!jN(t)).map(async t=>await VN(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function XN(e){return(await Promise.all(e.map(async t=>HN(t)?null:GS(await VN(t))))).filter(t=>!!t)}let tQ=class extends gW{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=GS(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=wg.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Gr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,s])=>s&&s.embeddedLangs?.some(c=>r.map(([u])=>u).includes(c))).filter(o=>!r.includes(o));throw new Gr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},nQ=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},Hd=0;function rQ(e){Hd+=1,e.warnings!==!1&&Hd>=10&&Hd%10===0&&console.warn(`[Shiki] ${Hd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Gr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(GS),a=new nQ(e.engine,n),o=new tQ(a,r,n,e.langAlias);let s;function c(w){T();const k=o.getGrammar(typeof w=="string"?w:w.name);if(!k)throw new Gr(`Language \`${w}\` not found, you may need to load it first`);return k}function u(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const k=o.getTheme(w);if(!k)throw new Gr(`Theme \`${w}\` not found, you may need to load it first`);return k}function d(w){T();const k=u(w);s!==w&&(o.setTheme(k),s=w);const O=o.getColorMap();return{theme:k,colorMap:O}}function p(){return T(),o.getLoadedThemes()}function h(){return T(),o.getLoadedLanguages()}function y(...w){T(),o.loadLanguages(w.flat(1))}async function g(...w){return y(await KN(w))}function b(...w){T();for(const k of w.flat(1))o.loadTheme(k)}async function E(...w){return T(),b(await XN(w))}function T(){if(t)throw new Gr("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Hd-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:g,loadLanguageSync:y,loadTheme:E,loadThemeSync:b,dispose:A,[Symbol.dispose]:A}}async function aQ(e={}){e.loadWasm;const[t,n,r]=await Promise.all([XN(e.themes||[]),KN(e.langs||[]),e.engine||fN(e.loadWasm||Rq())]);return rQ({...e,themes:t,langs:n,engine:r})}async function oQ(e={}){const t=await aQ(e);return{getLastGrammarState:(...n)=>zY(t,...n),codeToTokensBase:(n,r)=>VS(t,n,r),codeToTokensWithThemes:(n,r)=>QN(t,n,r),codeToTokens:(n,r)=>Mg(t,n,r),codeToHast:(n,r)=>$g(t,n,r),codeToHtml:(n,r)=>eQ(t,n,r),...t,getInternalContext:()=>t}}function iQ(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function s(c){function u(g){if(typeof g=="string"){if(jN(g))return[];const b=r[g];if(!b)throw new Ii(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}function d(g){if(HN(g))return"none";if(typeof g=="string"){const b=a[g];if(!b)throw new Ii(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}const p=(c.themes??[]).map(g=>d(g)),h=(c.langs??[]).map(g=>u(g)),y=await oQ({engine:c.engine??o(),...c,themes:p,langs:h});return{...y,loadLanguage(...g){return y.loadLanguage(...g.map(u))},loadTheme(...g){return y.loadTheme(...g.map(d))}}}return s}const sQ=iQ({langs:uq,themes:fq,engine:()=>fN(G(()=>import("./index.es299-CG6Dc4jp.js"),[]))}),ab={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},lQ={...ab,patterns:[...ab.patterns,{include:"#docvar"}],repository:{...ab.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},cQ={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},ZN="github-light",uQ=sQ({themes:[ZN],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...lQ},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...cQ}]});async function Y0e(e,t){return(await uQ).codeToHtml(e,{lang:t,theme:ZN})}const dQ=f3(P.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),fQ=f3(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),pQ=x.lazy(()=>G(()=>import("./index.es23-DEF5rVoS.js"),[]));function Q0e({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=x.useState(!1),[s,c]=x.useState(0),[u,d]=x.useState(!1),p=x.useRef(null),h=x.useRef(null),[y,g]=x.useState(void 0),[b,E]=x.useState(!1),T=x.useCallback(()=>{const R=a;o(!a),R&&h.current&&setTimeout(()=>{h.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),A=x.useCallback(R=>{c(R)},[]);if(x.useEffect(()=>{if(r){d(!1);return}if(b){d(!0);return}if(s===0){d(!1);return}const R=t-20,D=s>R;s<R&&g(s+20),d(D)},[s,b,t,r]),!e)return null;const w=P.jsx(xE,{text:"Loading...",centered:!0,size:32}),k=b?a?n-40:t-40:void 0,O=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return P.jsx(P.Fragment,{children:P.jsxs(Cl,{ref:h,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...O},children:[P.jsx(Cl,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:u?"40px":1},children:e&&P.jsx(x.Suspense,{fallback:w,children:P.jsx(pQ,{result:e,height:k,isFillElement:R=>{E(R)},onSizeChange:A})})||w}),u&&P.jsx(Cl,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:P.jsx(cj,{size:"small",onClick:T,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?P.jsx(dQ,{sx:{fontSize:30}}):P.jsx(fQ,{sx:{fontSize:30}})})})]})})}function JN(e,t){return function(){return e.apply(t,arguments)}}const{toString:hQ}=Object.prototype,{getPrototypeOf:qS}=Object,{iterator:H0,toStringTag:e5}=Symbol,z0=(e=>t=>{const n=hQ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Co=e=>(e=e.toLowerCase(),t=>z0(t)===e),V0=e=>t=>typeof t===e,{isArray:wu}=Array,mu=V0("undefined");function Fp(e){return e!==null&&!mu(e)&&e.constructor!==null&&!mu(e.constructor)&&ua(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const t5=Co("ArrayBuffer");function mQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&t5(e.buffer),t}const gQ=V0("string"),ua=V0("function"),n5=V0("number"),Bp=e=>e!==null&&typeof e=="object",yQ=e=>e===!0||e===!1,Km=e=>{if(z0(e)!=="object")return!1;const t=qS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(e5 in e)&&!(H0 in e)},vQ=e=>{if(!Bp(e)||Fp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},bQ=Co("Date"),EQ=Co("File"),TQ=Co("Blob"),SQ=Co("FileList"),_Q=e=>Bp(e)&&ua(e.pipe),CQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ua(e.append)&&((t=z0(e))==="formdata"||t==="object"&&ua(e.toString)&&e.toString()==="[object FormData]"))},AQ=Co("URLSearchParams"),[xQ,wQ,kQ,DQ]=["ReadableStream","Request","Response","Headers"].map(Co),RQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Up(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),wu(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Fp(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let c;for(r=0;r<s;r++)c=o[r],t.call(null,e[c],c,e)}}function r5(e,t){if(Fp(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const El=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,a5=e=>!mu(e)&&e!==El;function GE(){const{caseless:e,skipUndefined:t}=a5(this)&&this||{},n={},r=(a,o)=>{const s=e&&r5(n,o)||o;Km(n[s])&&Km(a)?n[s]=GE(n[s],a):Km(a)?n[s]=GE({},a):wu(a)?n[s]=a.slice():(!t||!mu(a))&&(n[s]=a)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&Up(arguments[a],r);return n}const OQ=(e,t,n,{allOwnKeys:r}={})=>(Up(t,(a,o)=>{n&&ua(a)?e[o]=JN(a,n):e[o]=a},{allOwnKeys:r}),e),IQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NQ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},LQ=(e,t,n,r)=>{let a,o,s;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&qS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},PQ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},MQ=e=>{if(!e)return null;if(wu(e))return e;let t=e.length;if(!n5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$Q=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qS(Uint8Array)),FQ=(e,t)=>{const r=(e&&e[H0]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},BQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},UQ=Co("HTMLFormElement"),jQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),rD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),HQ=Co("RegExp"),o5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Up(n,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(r[o]=s||a)}),Object.defineProperties(e,r)},zQ=e=>{o5(e,(t,n)=>{if(ua(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ua(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VQ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return wu(e)?r(e):r(String(e).split(t)),n},GQ=()=>{},qQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function WQ(e){return!!(e&&ua(e.append)&&e[e5]==="FormData"&&e[H0])}const YQ=e=>{const t=new Array(10),n=(r,a)=>{if(Bp(r)){if(t.indexOf(r)>=0)return;if(Fp(r))return r;if(!("toJSON"in r)){t[a]=r;const o=wu(r)?[]:{};return Up(r,(s,c)=>{const u=n(s,a+1);!mu(u)&&(o[c]=u)}),t[a]=void 0,o}}return r};return n(e,0)},QQ=Co("AsyncFunction"),KQ=e=>e&&(Bp(e)||ua(e))&&ua(e.then)&&ua(e.catch),i5=((e,t)=>e?setImmediate:t?((n,r)=>(El.addEventListener("message",({source:a,data:o})=>{a===El&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),El.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ua(El.postMessage)),XQ=typeof queueMicrotask<"u"?queueMicrotask.bind(El):typeof process<"u"&&process.nextTick||i5,ZQ=e=>e!=null&&ua(e[H0]),ge={isArray:wu,isArrayBuffer:t5,isBuffer:Fp,isFormData:CQ,isArrayBufferView:mQ,isString:gQ,isNumber:n5,isBoolean:yQ,isObject:Bp,isPlainObject:Km,isEmptyObject:vQ,isReadableStream:xQ,isRequest:wQ,isResponse:kQ,isHeaders:DQ,isUndefined:mu,isDate:bQ,isFile:EQ,isBlob:TQ,isRegExp:HQ,isFunction:ua,isStream:_Q,isURLSearchParams:AQ,isTypedArray:$Q,isFileList:SQ,forEach:Up,merge:GE,extend:OQ,trim:RQ,stripBOM:IQ,inherits:NQ,toFlatObject:LQ,kindOf:z0,kindOfTest:Co,endsWith:PQ,toArray:MQ,forEachEntry:FQ,matchAll:BQ,isHTMLForm:UQ,hasOwnProperty:rD,hasOwnProp:rD,reduceDescriptors:o5,freezeMethods:zQ,toObjectSet:VQ,toCamelCase:jQ,noop:GQ,toFiniteNumber:qQ,findKey:r5,global:El,isContextDefined:a5,isSpecCompliantForm:WQ,toJSONObject:YQ,isAsyncFn:QQ,isThenable:KQ,setImmediate:i5,asap:XQ,isIterable:ZQ};function wt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ge.inherits(wt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ge.toJSONObject(this.config),code:this.code,status:this.status}}});const s5=wt.prototype,l5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{l5[e]={value:e}});Object.defineProperties(wt,l5);Object.defineProperty(s5,"isAxiosError",{value:!0});wt.from=(e,t,n,r,a,o)=>{const s=Object.create(s5);ge.toFlatObject(e,s,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return wt.call(s,c,u,n,r,a),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const JQ=null;function qE(e){return ge.isPlainObject(e)||ge.isArray(e)}function c5(e){return ge.endsWith(e,"[]")?e.slice(0,-2):e}function aD(e,t,n){return e?e.concat(t).map(function(a,o){return a=c5(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function eK(e){return ge.isArray(e)&&!e.some(qE)}const tK=ge.toFlatObject(ge,{},null,function(t){return/^is[A-Z]/.test(t)});function G0(e,t,n){if(!ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ge.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,T){return!ge.isUndefined(T[E])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ge.isSpecCompliantForm(t);if(!ge.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ge.isDate(b))return b.toISOString();if(ge.isBoolean(b))return b.toString();if(!u&&ge.isBlob(b))throw new wt("Blob is not supported. Use a Buffer instead.");return ge.isArrayBuffer(b)||ge.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,E,T){let A=b;if(b&&!T&&typeof b=="object"){if(ge.endsWith(E,"{}"))E=r?E:E.slice(0,-2),b=JSON.stringify(b);else if(ge.isArray(b)&&eK(b)||(ge.isFileList(b)||ge.endsWith(E,"[]"))&&(A=ge.toArray(b)))return E=c5(E),A.forEach(function(k,O){!(ge.isUndefined(k)||k===null)&&t.append(s===!0?aD([E],O,o):s===null?E:E+"[]",d(k))}),!1}return qE(b)?!0:(t.append(aD(T,E,o),d(b)),!1)}const h=[],y=Object.assign(tK,{defaultVisitor:p,convertValue:d,isVisitable:qE});function g(b,E){if(!ge.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(b),ge.forEach(b,function(A,w){(!(ge.isUndefined(A)||A===null)&&a.call(t,A,ge.isString(w)?w.trim():w,E,y))===!0&&g(A,E?E.concat(w):[w])}),h.pop()}}if(!ge.isObject(e))throw new TypeError("data must be an object");return g(e),t}function oD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function WS(e,t){this._pairs=[],e&&G0(e,this,t)}const u5=WS.prototype;u5.append=function(t,n){this._pairs.push([t,n])};u5.toString=function(t){const n=t?function(r){return t.call(this,r,oD)}:oD;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nK(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function d5(e,t,n){if(!t)return e;const r=n&&n.encode||nK;ge.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=ge.isURLSearchParams(t)?t.toString():new WS(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class iD{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ge.forEach(this.handlers,function(r){r!==null&&t(r)})}}const f5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rK=typeof URLSearchParams<"u"?URLSearchParams:WS,aK=typeof FormData<"u"?FormData:null,oK=typeof Blob<"u"?Blob:null,iK={isBrowser:!0,classes:{URLSearchParams:rK,FormData:aK,Blob:oK},protocols:["http","https","file","blob","url","data"]},YS=typeof window<"u"&&typeof document<"u",WE=typeof navigator=="object"&&navigator||void 0,sK=YS&&(!WE||["ReactNative","NativeScript","NS"].indexOf(WE.product)<0),lK=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cK=YS&&window.location.href||"http://localhost",uK=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:YS,hasStandardBrowserEnv:sK,hasStandardBrowserWebWorkerEnv:lK,navigator:WE,origin:cK},Symbol.toStringTag,{value:"Module"})),Ir={...uK,...iK};function dK(e,t){return G0(e,new Ir.classes.URLSearchParams,{visitor:function(n,r,a,o){return Ir.isNode&&ge.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function fK(e){return ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pK(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function p5(e){function t(n,r,a,o){let s=n[o++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),u=o>=n.length;return s=!s&&ge.isArray(a)?a.length:s,u?(ge.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!c):((!a[s]||!ge.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],o)&&ge.isArray(a[s])&&(a[s]=pK(a[s])),!c)}if(ge.isFormData(e)&&ge.isFunction(e.entries)){const n={};return ge.forEachEntry(e,(r,a)=>{t(fK(r),a,n,0)}),n}return null}function hK(e,t,n){if(ge.isString(e))try{return(t||JSON.parse)(e),ge.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jp={transitional:f5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ge.isObject(t);if(o&&ge.isHTMLForm(t)&&(t=new FormData(t)),ge.isFormData(t))return a?JSON.stringify(p5(t)):t;if(ge.isArrayBuffer(t)||ge.isBuffer(t)||ge.isStream(t)||ge.isFile(t)||ge.isBlob(t)||ge.isReadableStream(t))return t;if(ge.isArrayBufferView(t))return t.buffer;if(ge.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dK(t,this.formSerializer).toString();if((c=ge.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return G0(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),hK(t)):t}],transformResponse:[function(t){const n=this.transitional||jp.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ge.isResponse(t)||ge.isReadableStream(t))return t;if(t&&ge.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(c){if(s)throw c.name==="SyntaxError"?wt.from(c,wt.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ir.classes.FormData,Blob:Ir.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ge.forEach(["delete","get","head","post","put","patch"],e=>{jp.headers[e]={}});const mK=ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gK=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
238
|
+
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&mK[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},sD=Symbol("internals");function zd(e){return e&&String(e).trim().toLowerCase()}function Xm(e){return e===!1||e==null?e:ge.isArray(e)?e.map(Xm):String(e)}function yK(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ob(e,t,n,r,a){if(ge.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ge.isString(t)){if(ge.isString(r))return t.indexOf(r)!==-1;if(ge.isRegExp(r))return r.test(t)}}function bK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function EK(e,t){const n=ge.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,s){return this[r].call(this,t,a,o,s)},configurable:!0})})}let da=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,u,d){const p=zd(u);if(!p)throw new Error("header name must be a non-empty string");const h=ge.findKey(a,p);(!h||a[h]===void 0||d===!0||d===void 0&&a[h]!==!1)&&(a[h||u]=Xm(c))}const s=(c,u)=>ge.forEach(c,(d,p)=>o(d,p,u));if(ge.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ge.isString(t)&&(t=t.trim())&&!vK(t))s(gK(t),n);else if(ge.isObject(t)&&ge.isIterable(t)){let c={},u,d;for(const p of t){if(!ge.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(u=c[d])?ge.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=zd(t),t){const r=ge.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return yK(a);if(ge.isFunction(n))return n.call(this,a,r);if(ge.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zd(t),t){const r=ge.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ob(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(s){if(s=zd(s),s){const c=ge.findKey(r,s);c&&(!n||ob(r,r[c],c,n))&&(delete r[c],a=!0)}}return ge.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||ob(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return ge.forEach(this,(a,o)=>{const s=ge.findKey(r,o);if(s){n[s]=Xm(a),delete n[o];return}const c=t?bK(o):String(o).trim();c!==o&&delete n[o],n[c]=Xm(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ge.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ge.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
239
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[sD]=this[sD]={accessors:{}}).accessors,a=this.prototype;function o(s){const c=zd(s);r[c]||(EK(a,s),r[c]=!0)}return ge.isArray(t)?t.forEach(o):o(t),this}};da.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ge.reduceDescriptors(da.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ge.freezeMethods(da);function ib(e,t){const n=this||jp,r=t||n,a=da.from(r.headers);let o=r.data;return ge.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function h5(e){return!!(e&&e.__CANCEL__)}function ku(e,t,n){wt.call(this,e??"canceled",wt.ERR_CANCELED,t,n),this.name="CanceledError"}ge.inherits(ku,wt,{__CANCEL__:!0});function m5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function TK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function SK(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[o];s||(s=d),n[a]=u,r[a]=d;let h=o,y=0;for(;h!==a;)y+=n[h++],h=h%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-s<t)return;const g=p&&d-p;return g?Math.round(y*1e3/g):void 0}}function _K(e,t){let n=0,r=1e3/t,a,o;const s=(d,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?s(d,p):(a=d,o||(o=setTimeout(()=>{o=null,s(a)},r-h)))},()=>a&&s(a)]}const Fg=(e,t,n=3)=>{let r=0;const a=SK(50,250);return _K(o=>{const s=o.loaded,c=o.lengthComputable?o.total:void 0,u=s-r,d=a(u),p=s<=c;r=s;const h={loaded:s,total:c,progress:c?s/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-s)/d:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},lD=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},cD=e=>(...t)=>ge.asap(()=>e(...t)),CK=Ir.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ir.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ir.origin),Ir.navigator&&/(msie|trident)/i.test(Ir.navigator.userAgent)):()=>!0,AK=Ir.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const s=[e+"="+encodeURIComponent(t)];ge.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ge.isString(r)&&s.push("path="+r),ge.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function xK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function g5(e,t,n){let r=!xK(t);return e&&(r||n==!1)?wK(e,t):t}const uD=e=>e instanceof da?{...e}:e;function Ml(e,t){t=t||{};const n={};function r(d,p,h,y){return ge.isPlainObject(d)&&ge.isPlainObject(p)?ge.merge.call({caseless:y},d,p):ge.isPlainObject(p)?ge.merge({},p):ge.isArray(p)?p.slice():p}function a(d,p,h,y){if(ge.isUndefined(p)){if(!ge.isUndefined(d))return r(void 0,d,h,y)}else return r(d,p,h,y)}function o(d,p){if(!ge.isUndefined(p))return r(void 0,p)}function s(d,p){if(ge.isUndefined(p)){if(!ge.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p,h)=>a(uD(d),uD(p),h,!0)};return ge.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||a,y=h(e[p],t[p],p);ge.isUndefined(y)&&h!==c||(n[p]=y)}),n}const y5=e=>{const t=Ml({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;if(t.headers=s=da.from(s),t.url=d5(g5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ge.isFormData(n)){if(Ir.hasStandardBrowserEnv||Ir.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ge.isFunction(n.getHeaders)){const u=n.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([p,h])=>{d.includes(p.toLowerCase())&&s.set(p,h)})}}if(Ir.hasStandardBrowserEnv&&(r&&ge.isFunction(r)&&(r=r(t)),r||r!==!1&&CK(t.url))){const u=a&&o&&AK.read(o);u&&s.set(a,u)}return t},kK=typeof XMLHttpRequest<"u",DK=kK&&function(e){return new Promise(function(n,r){const a=y5(e);let o=a.data;const s=da.from(a.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=a,p,h,y,g,b;function E(){g&&g(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(a.method.toUpperCase(),a.url,!0),T.timeout=a.timeout;function A(){if(!T)return;const k=da.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:k,config:e,request:T};m5(function(F){n(F),E()},function(F){r(F),E()},R),T=null}"onloadend"in T?T.onloadend=A:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(A)},T.onabort=function(){T&&(r(new wt("Request aborted",wt.ECONNABORTED,e,T)),T=null)},T.onerror=function(O){const R=O&&O.message?O.message:"Network Error",D=new wt(R,wt.ERR_NETWORK,e,T);D.event=O||null,r(D),T=null},T.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const R=a.transitional||f5;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),r(new wt(O,R.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,e,T)),T=null},o===void 0&&s.setContentType(null),"setRequestHeader"in T&&ge.forEach(s.toJSON(),function(O,R){T.setRequestHeader(R,O)}),ge.isUndefined(a.withCredentials)||(T.withCredentials=!!a.withCredentials),c&&c!=="json"&&(T.responseType=a.responseType),d&&([y,b]=Fg(d,!0),T.addEventListener("progress",y)),u&&T.upload&&([h,g]=Fg(u),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(p=k=>{T&&(r(!k||k.type?new ku(null,e,T):k),T.abort(),T=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const w=TK(a.url);if(w&&Ir.protocols.indexOf(w)===-1){r(new wt("Unsupported protocol "+w+":",wt.ERR_BAD_REQUEST,e));return}T.send(o||null)})},RK=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(d){if(!a){a=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof wt?p:new ku(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,o(new wt(`timeout ${t} of ms exceeded`,wt.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>ge.asap(c),u}},OK=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},IK=async function*(e,t){for await(const n of NK(e))yield*OK(n,t)},NK=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},dD=(e,t,n,r)=>{const a=IK(e,t);let o=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await a.next();if(d){c(),u.close();return}let h=p.byteLength;if(n){let y=o+=h;n(y)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},fD=64*1024,{isFunction:_m}=ge,LK=(({Request:e,Response:t})=>({Request:e,Response:t}))(ge.global),{ReadableStream:pD,TextEncoder:hD}=ge.global,mD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},PK=e=>{e=ge.merge.call({skipUndefined:!0},LK,e);const{fetch:t,Request:n,Response:r}=e,a=t?_m(t):typeof fetch=="function",o=_m(n),s=_m(r);if(!a)return!1;const c=a&&_m(pD),u=a&&(typeof hD=="function"?(b=>E=>b.encode(E))(new hD):async b=>new Uint8Array(await new n(b).arrayBuffer())),d=o&&c&&mD(()=>{let b=!1;const E=new n(Ir.origin,{body:new pD,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!E}),p=s&&c&&mD(()=>ge.isReadableStream(new r("").body)),h={stream:p&&(b=>b.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(E,T)=>{let A=E&&E[b];if(A)return A.call(E);throw new wt(`Response type '${b}' is not supported`,wt.ERR_NOT_SUPPORT,T)})});const y=async b=>{if(b==null)return 0;if(ge.isBlob(b))return b.size;if(ge.isSpecCompliantForm(b))return(await new n(Ir.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ge.isArrayBufferView(b)||ge.isArrayBuffer(b))return b.byteLength;if(ge.isURLSearchParams(b)&&(b=b+""),ge.isString(b))return(await u(b)).byteLength},g=async(b,E)=>{const T=ge.toFiniteNumber(b.getContentLength());return T??y(E)};return async b=>{let{url:E,method:T,data:A,signal:w,cancelToken:k,timeout:O,onDownloadProgress:R,onUploadProgress:D,responseType:F,headers:q,withCredentials:z="same-origin",fetchOptions:$}=y5(b),H=t||fetch;F=F?(F+"").toLowerCase():"text";let C=RK([w,k&&k.toAbortSignal()],O),M=null;const B=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let W;try{if(D&&d&&T!=="get"&&T!=="head"&&(W=await g(q,A))!==0){let ne=new n(E,{method:"POST",body:A,duplex:"half"}),ee;if(ge.isFormData(A)&&(ee=ne.headers.get("content-type"))&&q.setContentType(ee),ne.body){const[L,te]=lD(W,Fg(cD(D)));A=dD(ne.body,fD,L,te)}}ge.isString(z)||(z=z?"include":"omit");const j=o&&"credentials"in n.prototype,Z={...$,signal:C,method:T.toUpperCase(),headers:q.normalize().toJSON(),body:A,duplex:"half",credentials:j?z:void 0};M=o&&new n(E,Z);let Q=await(o?H(M,$):H(E,Z));const ae=p&&(F==="stream"||F==="response");if(p&&(R||ae&&B)){const ne={};["status","statusText","headers"].forEach(be=>{ne[be]=Q[be]});const ee=ge.toFiniteNumber(Q.headers.get("content-length")),[L,te]=R&&lD(ee,Fg(cD(R),!0))||[];Q=new r(dD(Q.body,fD,L,()=>{te&&te(),B&&B()}),ne)}F=F||"text";let I=await h[ge.findKey(h,F)||"text"](Q,b);return!ae&&B&&B(),await new Promise((ne,ee)=>{m5(ne,ee,{data:I,headers:da.from(Q.headers),status:Q.status,statusText:Q.statusText,config:b,request:M})})}catch(j){throw B&&B(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new wt("Network Error",wt.ERR_NETWORK,b,M),{cause:j.cause||j}):wt.from(j,j&&j.code,b,M)}}},MK=new Map,v5=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let s=o.length,c=s,u,d,p=MK;for(;c--;)u=o[c],d=p.get(u),d===void 0&&p.set(u,d=c?new Map:PK(t)),p=d;return d};v5();const YE={http:JQ,xhr:DK,fetch:{get:v5}};ge.forEach(YE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gD=e=>`- ${e}`,$K=e=>ge.isFunction(e)||e===null||e===!1,b5={getAdapter:(e,t)=>{e=ge.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let s=0;s<n;s++){r=e[s];let c;if(a=r,!$K(r)&&(a=YE[(c=String(r)).toLowerCase()],a===void 0))throw new wt(`Unknown adapter '${c}'`);if(a&&(ge.isFunction(a)||(a=a.get(t))))break;o[c||"#"+s]=a}if(!a){const s=Object.entries(o).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
|
|
240
|
+
`+s.map(gD).join(`
|
|
241
|
+
`):" "+gD(s[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return a},adapters:YE};function sb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ku(null,e)}function yD(e){return sb(e),e.headers=da.from(e.headers),e.data=ib.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),b5.getAdapter(e.adapter||jp.adapter,e)(e).then(function(r){return sb(e),r.data=ib.call(e,e.transformResponse,r),r.headers=da.from(r.headers),r},function(r){return h5(r)||(sb(e),r&&r.response&&(r.response.data=ib.call(e,e.transformResponse,r.response),r.response.headers=da.from(r.response.headers))),Promise.reject(r)})}const E5="1.12.2",q0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{q0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vD={};q0.transitional=function(t,n,r){function a(o,s){return"[Axios v"+E5+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,c)=>{if(t===!1)throw new wt(a(s," has been removed"+(n?" in "+n:"")),wt.ERR_DEPRECATED);return n&&!vD[s]&&(vD[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,c):!0}};q0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function FK(e,t,n){if(typeof e!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],s=t[o];if(s){const c=e[o],u=c===void 0||s(c,o,e);if(u!==!0)throw new wt("option "+o+" must be "+u,wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wt("Unknown option "+o,wt.ERR_BAD_OPTION)}}const Zm={assertOptions:FK,validators:q0},Po=Zm.validators;let xl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new iD,response:new iD}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
242
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ml(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Zm.assertOptions(r,{silentJSONParsing:Po.transitional(Po.boolean),forcedJSONParsing:Po.transitional(Po.boolean),clarifyTimeoutError:Po.transitional(Po.boolean)},!1),a!=null&&(ge.isFunction(a)?n.paramsSerializer={serialize:a}:Zm.assertOptions(a,{encode:Po.function,serialize:Po.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zm.assertOptions(n,{baseUrl:Po.spelling("baseURL"),withXsrfToken:Po.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&ge.merge(o.common,o[n.method]);o&&ge.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=da.concat(s,o);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let p,h=0,y;if(!u){const b=[yD.bind(this),void 0];for(b.unshift(...c),b.push(...d),y=b.length,p=Promise.resolve(n);h<y;)p=p.then(b[h++],b[h++]);return p}y=c.length;let g=n;for(;h<y;){const b=c[h++],E=c[h++];try{g=b(g)}catch(T){E.call(this,T);break}}try{p=yD.call(this,g)}catch(b){return Promise.reject(b)}for(h=0,y=d.length;h<y;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Ml(this.defaults,t);const n=g5(t.baseURL,t.url,t.allowAbsoluteUrls);return d5(n,t.params,t.paramsSerializer)}};ge.forEach(["delete","get","head","options"],function(t){xl.prototype[t]=function(n,r){return this.request(Ml(r||{},{method:t,url:n,data:(r||{}).data}))}});ge.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,c){return this.request(Ml(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}xl.prototype[t]=n(),xl.prototype[t+"Form"]=n(!0)});let BK=class T5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(c=>{r.subscribe(c),o=c}).then(a);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,c){r.reason||(r.reason=new ku(o,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new T5(function(a){t=a}),cancel:t}}};function UK(e){return function(n){return e.apply(null,n)}}function jK(e){return ge.isObject(e)&&e.isAxiosError===!0}const QE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(QE).forEach(([e,t])=>{QE[t]=e});function S5(e){const t=new xl(e),n=JN(xl.prototype.request,t);return ge.extend(n,xl.prototype,t,{allOwnKeys:!0}),ge.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return S5(Ml(e,a))},n}const ct=S5(jp);ct.Axios=xl;ct.CanceledError=ku;ct.CancelToken=BK;ct.isCancel=h5;ct.VERSION=E5;ct.toFormData=G0;ct.AxiosError=wt;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=UK;ct.isAxiosError=jK;ct.mergeConfig=Ml;ct.AxiosHeaders=da;ct.formToJSON=e=>p5(ge.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=b5.getAdapter;ct.HttpStatusCode=QE;ct.default=ct;const{Axios:Z0e,AxiosError:J0e,CanceledError:eye,isCancel:tye,CancelToken:nye,VERSION:rye,all:aye,Cancel:oye,isAxiosError:iye,spread:sye,toFormData:lye,AxiosHeaders:cye,HttpStatusCode:uye,formToJSON:dye,getAdapter:fye,mergeConfig:pye}=ct,qt="http://localhost/api/v0".replace(/\/+$/,"");let Ui=class{constructor(t,n=qt,r=ct){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},HK=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Kt={},Xt="https://example.com",tt=function(e,t,n){if(n==null)throw new HK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function KE(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>KE(e,r,n)):Object.keys(t).forEach(r=>KE(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Zt=function(e,...t){const n=new URLSearchParams(e.search);KE(n,t),e.search=n.toString()},Oi=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Jt=function(e){return e.pathname+e.search+e.hash},en=function(e,t,n,r){return(a=t,o=n)=>{const s={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(s)}},gye={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql"},zK=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.sqlStatement=r),a!==void 0&&(h.options=a),Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},{url:Jt(c),options:d}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.tableKey=r),a!==void 0&&(h.tablePath=a),Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},{url:Jt(c),options:d}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={};Zt(s,{});let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...a.headers},{url:Jt(s),options:u}},postQuerydata:async(t,n,r,a,o={})=>{tt("postQuerydata","projectName",t),tt("postQuerydata","connectionName",n),tt("postQuerydata","postSqlsourceRequest",r);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"POST",...u,...o},p={},h={};a!==void 0&&(h.options=a),p["Content-Type"]="application/json",Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},d.data=Oi(r,d,e),{url:Jt(c),options:d}},postSqlsource:async(t,n,r,a={})=>{tt("postSqlsource","projectName",t),tt("postSqlsource","connectionName",n),tt("postSqlsource","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},postTemporarytable:async(t,n,r,a={})=>{tt("postTemporarytable","projectName",t),tt("postTemporarytable","connectionName",n),tt("postTemporarytable","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}}}},Ca=function(e){const t=zK(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getQuerydata(n,r,a,o,s){const c=await t.getQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getSqlsource(n,r,a,o){const s=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async getTablesource(n,r,a,o,s){const c=await t.getTablesource(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getTemporarytable(n,r,a,o){const s=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listTables(n,r,a,o){const s=await t.listTables(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postQuerydata(n,r,a,o,s){const c=await t.postQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.postQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async postSqlsource(n,r,a,o){const s=await t.postSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postTemporarytable(n,r,a,o){const s=await t.postTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.testConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)}}};let VK=class extends Ui{getConnection(t,n,r){return Ca(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ca(this.configuration).getQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ca(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ca(this.configuration).getTablesource(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ca(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Ca(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ca(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ca(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}postQuerydata(t,n,r,a,o){return Ca(this.configuration).postQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,a){return Ca(this.configuration).postSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}postTemporarytable(t,n,r,a){return Ca(this.configuration).postTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Ca(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Ca(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const GK=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},qK=function(e){const t=GK(e);return{async listDatabases(n,r,a,o){const s=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,u=Kt["DatabasesApi.listDatabases"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let WK=class extends Ui{listDatabases(t,n,r,a){return qK(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const YK=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},{url:Jt(c),options:d}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},bD=function(e){const t=YK(e);return{async getModel(n,r,a,o,s){const c=await t.getModel(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listModels(n,r,a,o){const s=await t.listModels(n,r,a,o),c=e?.serverIndex??0,u=Kt["ModelsApi.listModels"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let QK=class extends Ui{getModel(t,n,r,a,o){return bD(this.configuration).getModel(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,a){return bD(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const KK=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},{url:Jt(c),options:d}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},ED=function(e){const t=KK(e);return{async getNotebook(n,r,a,o,s){const c=await t.getNotebook(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listNotebooks(n,r,a,o){const s=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,u=Kt["NotebooksApi.listNotebooks"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let XK=class extends Ui{getNotebook(t,n,r,a,o){return ED(this.configuration).getNotebook(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,a){return ED(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const ZK=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"POST",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"DELETE",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.versionId=r),a!==void 0&&(h.reload=a),Zt(c,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...o.headers},{url:Jt(c),options:d}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"PATCH",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}}}},Vd=function(e){const t=ZK(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.createPackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.deletePackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getPackage(n,r,a,o,s){const c=await t.getPackage(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,s=Kt["PackagesApi.listPackages"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async updatePackage(n,r,a,o){const s=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,u=Kt["PackagesApi.updatePackage"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let JK=class extends Ui{createPackage(t,n,r){return Vd(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return Vd(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return Vd(this.configuration).getPackage(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return Vd(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return Vd(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const eX=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},{url:Jt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"PATCH",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}}}},Gd=function(e){const t=eX(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.createProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async getProject(n,r,a){const o=await t.getProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=Kt["ProjectsApi.listProjects"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.updateProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)}}};let tX=class extends Ui{createProject(t,n){return Gd(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Gd(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Gd(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Gd(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Gd(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const nX=function(e){return{executeQuery:async(t,n,r,a,o,s,c,u={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,Xt);let h;e&&(h=e.baseOptions);const y={method:"GET",...h,...u},g={},b={};a!==void 0&&(b.query=a),o!==void 0&&(b.sourceName=o),s!==void 0&&(b.queryName=s),c!==void 0&&(b.versionId=c),Zt(p,b);let E=h&&h.headers?h.headers:{};return y.headers={...g,...E,...u.headers},{url:Jt(p),options:y}}}},rX=function(e){const t=nX(e);return{async executeQuery(n,r,a,o,s,c,u,d){const p=await t.executeQuery(n,r,a,o,s,c,u,d),h=e?.serverIndex??0,y=Kt["QueryresultsApi.executeQuery"]?.[h]?.url;return(g,b)=>en(p,ct,qt,e)(g,y||b)}}};let aX=class extends Ui{executeQuery(t,n,r,a,o,s,c,u){return rX(this.configuration).executeQuery(t,n,r,a,o,s,c,u).then(d=>d(this.axios,this.basePath))}};const oX=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},iX=function(e){const t=oX(e);return{async listSchedules(n,r,a,o){const s=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,u=Kt["SchedulesApi.listSchedules"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let sX=class extends Ui{listSchedules(t,n,r,a){return iX(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const lX=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},startWatching:async(t,n={})=>{tt("startWatching","startWatchRequest",t);const r="/watch-mode/start",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}}}},lb=function(e){const t=lX(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.getWatchStatus"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async startWatching(n,r){const a=await t.startWatching(n,r),o=e?.serverIndex??0,s=Kt["WatchModeApi.startWatching"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async stopWatching(n){const r=await t.stopWatching(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.stopWatching"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)}}};class cX extends Ui{getWatchStatus(t){return lb(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return lb(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return lb(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}}let uX=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const _5=x.createContext(void 0),dX=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=ct.create({baseURL:e||n,withCredentials:!0});r.interceptors.request.use(async o=>{const s=await t?.();return o.headers.Authorization=s?`Bearer ${s}`:"",o});const a=new uX({basePath:n});return{queryResults:new aX(a,n,r),models:new QK(a,n,r),projects:new tX(a,n,r),packages:new JK(a,n,r),notebooks:new XK(a,n,r),connections:new VK(a,n,r),databases:new WK(a,n,r),schedules:new sX(a,n,r),watchMode:new cX(a,n,r)}},fX=({children:e,getAccessToken:t,baseURL:n,mutable:r=!0})=>{const a=x.useMemo(()=>dX(n,t),[n,t]),o={server:n||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,apiClients:a,mutable:r};return P.jsx(YG,{client:G_,children:P.jsx(_5.Provider,{value:o,children:e})})},QS=()=>{const e=x.useContext(_5);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};x.lazy(()=>G(()=>import("./index.es23-DEF5rVoS.js"),[]));function xye(e){const{projectName:t,packageName:n}=P0(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}function Nr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const W0=(function(e){if(e==null)return gX;if(typeof e=="function")return Y0(e);if(typeof e=="object")return Array.isArray(e)?pX(e):hX(e);if(typeof e=="string")return mX(e);throw new Error("Expected function, string, or object as test")});function pX(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=W0(e[n]);return Y0(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function hX(e){const t=e;return Y0(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function mX(e){return Y0(t);function t(n){return n&&n.type===e}}function Y0(e){return t;function t(n,r,a){return!!(yX(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function gX(){return!0}function yX(e){return e!==null&&typeof e=="object"&&"type"in e}const C5=[],vX=!0,Bg=!1,_f="skip";function A5(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=W0(a),s=r?-1:1;c(e,void 0,[])();function c(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const g=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return y;function y(){let g=C5,b,E,T;if((!t||o(u,d,p[p.length-1]||void 0))&&(g=bX(n(u,p)),g[0]===Bg))return g;if("children"in u&&u.children){const A=u;if(A.children&&g[0]!==_f)for(E=(r?A.children.length:-1)+s,T=p.concat(A);E>-1&&E<A.children.length;){const w=A.children[E];if(b=c(w,E,T)(),b[0]===Bg)return b;E=typeof b[1]=="number"?b[1]:E+s}}return g}}}function bX(e){return Array.isArray(e)?e:typeof e=="number"?[vX,e]:e==null?C5:[e]}function pa(e,t,n,r){let a,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,a=n):(o=t,s=n,a=r),A5(e,o,c,a);function c(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const EX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,TX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,SX=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{pa(n,"blockquote",(r,a,o)=>{let s="",c="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],y=h.type==="text"?h.value:"",g=e?TX:EX,b=y.match(g);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),y.includes(`
|
|
243
|
+
`)&&(p.children[0]={type:"text",value:y.replace(g,"").replace(/^\n+/,"")}),!y.includes(`
|
|
244
|
+
`))){const E=[];p.children.forEach((T,A)=>{A!=0&&(A==1&&T.type==="break"||E.push(T))}),p.children=[...E]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[_X(s),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function _X(e){let t=CX[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const CX={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function AX(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function x5(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?x5(t.parentElement):null}function xX(e){var t=n=>{var r=x5(n.target);r&&(r.classList.add("active"),AX(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};x.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}function Na(e,t,n,r){const a=e.length;let o=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function eo(e,t){return e.length>0?(Na(e,e.length,0,t),e):t}const TD={}.hasOwnProperty;function w5(e){const t={};let n=-1;for(;++n<e.length;)wX(t,e[n]);return t}function wX(e,t){let n;for(n in t){const r=(TD.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){TD.call(r,o)||(r[o]=[]);const s=a[o];kX(r[o],Array.isArray(s)?s:s?[s]:[])}}}function kX(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Na(e,0,0,r)}const qr=Fs(/[A-Za-z]/),Lr=Fs(/[\dA-Za-z]/),DX=Fs(/[#-'*+\--9=?A-Z^-~]/);function Ug(e){return e!==null&&(e<32||e===127)}const XE=Fs(/\d/),RX=Fs(/[\dA-Fa-f]/),OX=Fs(/[!-/:-@[-`{-~]/);function dt(e){return e!==null&&e<-2}function xn(e){return e!==null&&(e<0||e===32)}function jt(e){return e===-2||e===-1||e===32}const Q0=Fs(/\p{P}|\p{S}/u),$l=Fs(/\s/);function Fs(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const IX={tokenize:FX,partial:!0},k5={tokenize:BX,partial:!0},D5={tokenize:UX,partial:!0},R5={tokenize:jX,partial:!0},NX={tokenize:HX,partial:!0},O5={name:"wwwAutolink",tokenize:MX,previous:N5},I5={name:"protocolAutolink",tokenize:$X,previous:L5},ji={name:"emailAutolink",tokenize:PX,previous:P5},ti={};function LX(){return{text:ti}}let al=48;for(;al<123;)ti[al]=ji,al++,al===58?al=65:al===91&&(al=97);ti[43]=ji;ti[45]=ji;ti[46]=ji;ti[95]=ji;ti[72]=[ji,I5];ti[104]=[ji,I5];ti[87]=[ji,O5];ti[119]=[ji,O5];function PX(e,t,n){const r=this;let a,o;return s;function s(h){return!ZE(h)||!P5.call(r,r.previous)||KS(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return ZE(h)?(e.consume(h),c):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(NX,p,d)(h):h===45||h===95||Lr(h)?(o=!0,e.consume(h),u):p(h)}function d(h){return e.consume(h),a=!0,u}function p(h){return o&&a&&qr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function MX(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!N5.call(r,r.previous)||KS(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(IX,e.attempt(k5,e.attempt(D5,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function $X(e,t,n){const r=this;let a="",o=!1;return s;function s(h){return(h===72||h===104)&&L5.call(r,r.previous)&&!KS(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(qr(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const y=a.toLowerCase();if(y==="http"||y==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),o?d:(o=!0,u)):n(h)}function d(h){return h===null||Ug(h)||xn(h)||$l(h)||Q0(h)?n(h):e.attempt(k5,e.attempt(D5,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function FX(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function BX(e,t,n){let r,a,o;return s;function s(d){return d===46||d===95?e.check(R5,u,c)(d):d===null||xn(d)||$l(d)||d!==45&&Q0(d)?u(d):(o=!0,e.consume(d),s)}function c(d){return d===95?r=!0:(a=r,r=void 0),e.consume(d),s}function u(d){return a||r||!o?n(d):t(d)}}function UX(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(R5,t,o)(s):s===null||xn(s)||$l(s)?t(s):(e.consume(s),a)}function o(s){return s===41&&r++,e.consume(s),a}}function jX(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||xn(c)||$l(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||xn(c)||$l(c)?t(c):r(c)}function o(c){return qr(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),r):qr(c)?(e.consume(c),s):n(c)}}function HX(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return Lr(o)?n(o):t(o)}}function N5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xn(e)}function L5(e){return!qr(e)}function P5(e){return!(e===47||ZE(e))}function ZE(e){return e===43||e===45||e===46||e===95||Lr(e)}function KS(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Wt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(u){return jt(u)?(e.enter(n),c(u)):t(u)}function c(u){return jt(u)&&o++<a?(e.consume(u),c):(e.exit(n),t(u))}}function vo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hp={partial:!0,tokenize:zX};function zX(e,t,n){return r;function r(o){return jt(o)?Wt(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||dt(o)?t(o):n(o)}}const VX={tokenize:ZX,partial:!0};function GX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:QX,continuation:{tokenize:KX},exit:XX}},text:{91:{name:"gfmFootnoteCall",tokenize:YX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qX,resolveTo:WX}}}}function qX(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const u=r.events[a][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return c;function c(u){if(!s||!s._balanced)return n(u);const d=vo(r.sliceSerialize({start:s.end,end:r.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function WX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function YX(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return c;function c(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(o>999||h===93&&!s||h===null||h===91||xn(h))return n(h);if(h===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return a.includes(vo(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return xn(h)||(s=!0),o++,e.consume(h),h===92?p:d}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function QX(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,c;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(s>999||b===93&&!c||b===null||b===91||xn(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=vo(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return xn(b)||(c=!0),s++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,p):p(b)}function y(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(o)||a.push(o),Wt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function KX(e,t,n){return e.check(Hp,t,e.attempt(VX,t,n))}function XX(e){e.exit("gfmFootnoteDefinition")}function ZX(e,t,n){const r=this;return Wt(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function gu(e){if(e===null||xn(e)||$l(e))return 1;if(Q0(e))return 2}function K0(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function JX(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},h=[["enter",d,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",p,s]],y=s.parser.constructs.insideSpan.null;y&&Na(h,h.length,0,K0(y,o.slice(u+1,c),s)),Na(h,h.length,0,[["exit",p,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",d,s]]),Na(o,u-1,c-u+3,h),c=u+h.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,s,c){const u=this.previous,d=this.events;let p=0;return h;function h(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(g):(o.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const b=gu(u);if(g===126)return p>1?c(g):(o.consume(g),p++,y);if(p<2&&!t)return c(g);const E=o.exit("strikethroughSequenceTemporary"),T=gu(g);return E._open=!T||T===2&&!!b,E._close=!b||b===2&&!!T,s(g)}}}let eZ=class{constructor(){this.map=[]}add(t,n,r){tZ(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}};function tZ(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function nZ(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function rZ(){return{flow:{null:{name:"table",tokenize:aZ,resolveAll:oZ}}}}function aZ(e,t,n){const r=this;let a=0,o=0,s;return c;function c($){let H=r.events.length-1;for(;H>-1;){const B=r.events[H][1].type;if(B==="lineEnding"||B==="linePrefix")H--;else break}const C=H>-1?r.events[H][1].type:null,M=C==="tableHead"||C==="tableRow"?D:u;return M===D&&r.parser.lazy[r.now().line]?n($):M($)}function u($){return e.enter("tableHead"),e.enter("tableRow"),d($)}function d($){return $===124||(s=!0,o+=1),p($)}function p($){return $===null?n($):dt($)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),g):n($):jt($)?Wt(e,p,"whitespace")($):(o+=1,s&&(s=!1,a+=1),$===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h($)))}function h($){return $===null||$===124||xn($)?(e.exit("data"),p($)):(e.consume($),$===92?y:h)}function y($){return $===92||$===124?(e.consume($),h):h($)}function g($){return r.interrupt=!1,r.parser.lazy[r.now().line]?n($):(e.enter("tableDelimiterRow"),s=!1,jt($)?Wt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):b($))}function b($){return $===45||$===58?T($):$===124?(s=!0,e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),E):R($)}function E($){return jt($)?Wt(e,T,"whitespace")($):T($)}function T($){return $===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),A):$===45?(o+=1,A($)):$===null||dt($)?O($):R($)}function A($){return $===45?(e.enter("tableDelimiterFiller"),w($)):R($)}function w($){return $===45?(e.consume($),w):$===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k($))}function k($){return jt($)?Wt(e,O,"whitespace")($):O($)}function O($){return $===124?b($):$===null||dt($)?!s||a!==o?R($):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t($)):R($)}function R($){return n($)}function D($){return e.enter("tableRow"),F($)}function F($){return $===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),F):$===null||dt($)?(e.exit("tableRow"),t($)):jt($)?Wt(e,F,"whitespace")($):(e.enter("data"),q($))}function q($){return $===null||$===124||xn($)?(e.exit("data"),F($)):(e.consume($),$===92?z:q)}function z($){return $===92||$===124?(e.consume($),q):q($)}}function oZ(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],s=[0,0,0,0],c=!1,u=0,d,p,h;const y=new eZ;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(SD(y,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(n,0,[["enter",p,t]])),a=b.type==="tableDelimiterRow"?2:p?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Cm(y,t,o,a,void 0,h),o=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Cm(y,t,o,a,void 0,h)),o=s,s=[o[1],n,0,0])):b.type==="tableHead"?(c=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,o[1]!==0?(s[0]=s[1],h=Cm(y,t,o,a,n,h)):s[1]!==0&&(h=Cm(y,t,s,a,n,h)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&SD(y,t,u,d,p),y.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=nZ(t.events,n))}return e}function Cm(e,t,n,r,a,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},qc(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=qc(t.events,n[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=qc(t.events,n[2]),p=qc(t.events,n[3]),h={type:c,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const y=t.events[n[2]],g=t.events[n[3]];if(y[1].end=Object.assign({},g[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(o.end=Object.assign({},qc(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function SD(e,t,n,r,a){const o=[],s=qc(t.events,n);a&&(a.end=Object.assign({},s),o.push(["exit",a,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function qc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const iZ={name:"tasklistCheck",tokenize:lZ};function sZ(){return{text:{91:iZ}}}function lZ(e,t,n){const r=this;return a;function a(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return xn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return dt(u)?t(u):jt(u)?e.check({tokenize:cZ},t,n)(u):n(u)}}function cZ(e,t,n){return Wt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function uZ(e){return w5([LX(),GX(),JX(e),rZ(),sZ()])}function dZ(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fZ(e,t,n){const r=W0((n||{}).ignore||[]),a=pZ(t);let o=-1;for(;++o<a.length;)A5(e,"text",s);function s(u,d){let p=-1,h;for(;++p<d.length;){const y=d[p],g=h?h.children:void 0;if(r(y,g?g.indexOf(y):void 0,h))return;h=y}if(h)return c(u,d)}function c(u,d){const p=d[d.length-1],h=a[o][0],y=a[o][1];let g=0;const b=p.children.indexOf(u);let E=!1,T=[];h.lastIndex=0;let A=h.exec(u.value);for(;A;){const w=A.index,k={index:A.index,input:A.input,stack:[...d,u]};let O=y(...A,k);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?h.lastIndex=w+1:(g!==w&&T.push({type:"text",value:u.value.slice(g,w)}),Array.isArray(O)?T.push(...O):O&&T.push(O),g=w+A[0].length,E=!0),!h.global)break;A=h.exec(u.value)}return E?(g<u.value.length&&T.push({type:"text",value:u.value.slice(g)}),p.children.splice(b,1,...T)):T=[u],b+T.length}}function pZ(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([hZ(a[0]),mZ(a[1])])}return t}function hZ(e){return typeof e=="string"?new RegExp(dZ(e),"g"):e}function mZ(e){return typeof e=="function"?e:function(){return e}}const cb="phrasing",ub=["autolink","link","image","label"];function gZ(){return{transforms:[_Z],enter:{literalAutolink:vZ,literalAutolinkEmail:db,literalAutolinkHttp:db,literalAutolinkWww:db},exit:{literalAutolink:SZ,literalAutolinkEmail:TZ,literalAutolinkHttp:bZ,literalAutolinkWww:EZ}}}function yZ(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:cb,notInConstruct:ub},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:cb,notInConstruct:ub},{character:":",before:"[ps]",after:"\\/",inConstruct:cb,notInConstruct:ub}]}}function vZ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function db(e){this.config.enter.autolinkProtocol.call(this,e)}function bZ(e){this.config.exit.autolinkProtocol.call(this,e)}function EZ(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function TZ(e){this.config.exit.autolinkEmail.call(this,e)}function SZ(e){this.exit(e)}function _Z(e){fZ(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,CZ],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,AZ]],{ignore:["link","linkReference"]})}function CZ(e,t,n,r,a){let o="";if(!M5(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!xZ(n)))return!1;const s=wZ(n+r);if(!s[0])return!1;const c={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function AZ(e,t,n,r){return!M5(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function xZ(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function wZ(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Ig(e,"(");let o=Ig(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function M5(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||$l(n)||Q0(n))&&(!t||n!==47)}$5.peek=MZ;function kZ(){this.buffer()}function DZ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function RZ(){this.buffer()}function OZ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function IZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function NZ(e){this.exit(e)}function LZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function PZ(e){this.exit(e)}function MZ(){return"["}function $5(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const s=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),s(),o+=a.move("]"),o}function $Z(){return{enter:{gfmFootnoteCallString:kZ,gfmFootnoteCall:DZ,gfmFootnoteDefinitionLabelString:RZ,gfmFootnoteDefinition:OZ},exit:{gfmFootnoteCallString:IZ,gfmFootnoteCall:NZ,gfmFootnoteDefinitionLabelString:LZ,gfmFootnoteDefinition:PZ}}}function FZ(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:$5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,s){const c=o.createTracker(s);let u=c.move("[^");const d=o.enter("footnoteDefinition"),p=o.enter("label");return u+=c.move(o.safe(o.associationId(r),{before:u,after:"]"})),p(),u+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),u+=c.move((t?`
|
|
245
|
+
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?F5:BZ))),d(),u}}function BZ(e,t,n){return t===0?e:F5(e,t,n)}function F5(e,t,n){return(n?"":" ")+e}const UZ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];B5.peek=GZ;function jZ(){return{canContainEols:["delete"],enter:{strikethrough:zZ},exit:{strikethrough:VZ}}}function HZ(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UZ}],handlers:{delete:B5}}}function zZ(e){this.enter({type:"delete",children:[]},e)}function VZ(e){this.exit(e)}function B5(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),o(),s}function GZ(){return"~"}function qZ(e){return e.length}function WZ(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||qZ,o=[],s=[],c=[],u=[];let d=0,p=-1;for(;++p<e.length;){const E=[],T=[];let A=-1;for(e[p].length>d&&(d=e[p].length);++A<e[p].length;){const w=YZ(e[p][A]);if(n.alignDelimiters!==!1){const k=a(w);T[A]=k,(u[A]===void 0||k>u[A])&&(u[A]=k)}E.push(w)}s[p]=E,c[p]=T}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)o[h]=_D(r[h]);else{const E=_D(r);for(;++h<d;)o[h]=E}h=-1;const y=[],g=[];for(;++h<d;){const E=o[h];let T="",A="";E===99?(T=":",A=":"):E===108?T=":":E===114&&(A=":");let w=n.alignDelimiters===!1?1:Math.max(1,u[h]-T.length-A.length);const k=T+"-".repeat(w)+A;n.alignDelimiters!==!1&&(w=T.length+w+A.length,w>u[h]&&(u[h]=w),g[h]=w),y[h]=k}s.splice(1,0,y),c.splice(1,0,g),p=-1;const b=[];for(;++p<s.length;){const E=s[p],T=c[p];h=-1;const A=[];for(;++h<d;){const w=E[h]||"";let k="",O="";if(n.alignDelimiters!==!1){const R=u[h]-(T[h]||0),D=o[h];D===114?k=" ".repeat(R):D===99?R%2?(k=" ".repeat(R/2+.5),O=" ".repeat(R/2-.5)):(k=" ".repeat(R/2),O=k):O=" ".repeat(R)}n.delimiterStart!==!1&&!h&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||h)&&A.push(" "),n.alignDelimiters!==!1&&A.push(k),A.push(w),n.alignDelimiters!==!1&&A.push(O),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&A.push("|")}b.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return b.join(`
|
|
246
|
+
`)}function YZ(e){return e==null?"":String(e)}function _D(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function QZ(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),KZ);return a(),s}function KZ(e,t,n){return">"+(n?"":" ")+e}function XZ(e,t){return CD(e,t.inConstruct,!0)&&!CD(e,t.notInConstruct,!1)}function CD(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function AD(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
247
|
+
`&&XZ(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
248
|
+
`}function ZZ(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>s&&(s=o):o=1,a=r+t.length,r=n.indexOf(t,a);return s}function JZ(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eJ(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tJ(e,t,n,r){const a=eJ(n),o=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(JZ(e,n)){const h=n.enter("codeIndented"),y=n.indentLines(o,nJ);return h(),y}const c=n.createTracker(r),u=a.repeat(Math.max(ZZ(o,a)+1,3)),d=n.enter("codeFenced");let p=c.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
249
|
+
`,encode:["`"],...c.current()})),h()}return p+=c.move(`
|
|
250
|
+
`),o&&(p+=c.move(o+`
|
|
251
|
+
`)),p+=c.move(u),d(),p}function nJ(e,t,n){return(n?"":" ")+e}function XS(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rJ(e,t,n,r){const a=XS(n),o=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("[");return d+=u.move(n.safe(n.associationId(e),{before:d,after:"]",...u.current()})),d+=u.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
252
|
+
`,...u.current()}))),c(),e.title&&(c=n.enter(`title${o}`),d+=u.move(" "+a),d+=u.move(n.safe(e.title,{before:d,after:a,...u.current()})),d+=u.move(a),c()),s(),d}function aJ(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ap(e){return"&#x"+e.toString(16).toUpperCase()+";"}function jg(e,t,n){const r=gu(e),a=gu(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}U5.peek=oJ;function U5(e,t,n,r){const a=aJ(n),o=n.enter("emphasis"),s=n.createTracker(r),c=s.move(a);let u=s.move(n.containerPhrasing(e,{after:a,before:c,...s.current()}));const d=u.charCodeAt(0),p=jg(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(u=ap(d)+u.slice(1));const h=u.charCodeAt(u.length-1),y=jg(r.after.charCodeAt(0),h,a);y.inside&&(u=u.slice(0,-1)+ap(h));const g=s.move(a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+u+g}function oJ(e,t,n){return n.options.emphasis||"*"}const iJ={};function ZS(e,t){const n=iJ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return j5(e,r,a)}function j5(e,t,n){if(sJ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return xD(e.children,t,n)}return Array.isArray(e)?xD(e,t,n):""}function xD(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=j5(e[a],t,n);return r.join("")}function sJ(e){return!!(e&&typeof e=="object")}function lJ(e,t){let n=!1;return pa(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Bg}),!!((!e.depth||e.depth<3)&&ZS(e)&&(t.options.setext||n))}function cJ(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(lJ(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),y=n.containerPhrasing(e,{...o.current(),before:`
|
|
253
|
+
`,after:`
|
|
254
|
+
`});return h(),p(),y+`
|
|
255
|
+
`+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
256
|
+
`))+1))}const s="#".repeat(a),c=n.enter("headingAtx"),u=n.enter("phrasing");o.move(s+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
257
|
+
`,...o.current()});return/^[\t ]/.test(d)&&(d=ap(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),c(),d}H5.peek=uJ;function H5(e){return e.value||""}function uJ(){return"<"}z5.peek=dJ;function z5(e,t,n,r){const a=XS(n),o=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("![");return d+=u.move(n.safe(e.alt,{before:d,after:"]",...u.current()})),d+=u.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=n.enter(`title${o}`),d+=u.move(" "+a),d+=u.move(n.safe(e.title,{before:d,after:a,...u.current()})),d+=u.move(a),c()),d+=u.move(")"),s(),d}function dJ(){return"!"}V5.peek=fJ;function V5(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("![");const d=n.safe(e.alt,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,o(),a==="full"||!d||d!==h?u+=c.move(h+"]"):a==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function fJ(){return"!"}G5.peek=pJ;function G5(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],c=n.compilePattern(s);let u;if(s.atBreak)for(;u=c.exec(r);){let d=u.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(u.index+1)}}return a+r+a}function pJ(){return"`"}function q5(e,t){const n=ZS(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}W5.peek=hJ;function W5(e,t,n,r){const a=XS(n),o=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let c,u;if(q5(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),c(),n.stack=p,h}c=n.enter("link"),u=n.enter("label");let d=s.move("[");return d+=s.move(n.containerPhrasing(e,{before:d,after:"](",...s.current()})),d+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=s.move("<"),d+=s.move(n.safe(e.url,{before:d,after:">",...s.current()})),d+=s.move(">")):(u=n.enter("destinationRaw"),d+=s.move(n.safe(e.url,{before:d,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${o}`),d+=s.move(" "+a),d+=s.move(n.safe(e.title,{before:d,after:a,...s.current()})),d+=s.move(a),u()),d+=s.move(")"),c(),d}function hJ(e,t,n){return q5(e,n)?"<":"["}Y5.peek=mJ;function Y5(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,o(),a==="full"||!d||d!==h?u+=c.move(h+"]"):a==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function mJ(){return"["}function JS(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gJ(e){const t=JS(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yJ(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Q5(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function vJ(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?yJ(n):JS(n);const c=e.ordered?s==="."?")":".":gJ(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Q5(n)===s&&p){let h=-1;for(;++h<e.children.length;){const y=e.children[h];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=c),n.bulletCurrent=s;const d=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,a(),d}function bJ(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function EJ(e,t,n,r){const a=bJ(n);let o=n.bulletCurrent||JS(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(s-o.length)),c.shift(s);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),p);return u(),d;function p(h,y,g){return y?(g?"":" ".repeat(s))+h:(g?o:o+" ".repeat(s-o.length))+h}}function TJ(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),a(),s}const SJ=W0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _J(e,t,n,r){return(e.children.some(function(a){return SJ(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function CJ(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}K5.peek=AJ;function K5(e,t,n,r){const a=CJ(n),o=n.enter("strong"),s=n.createTracker(r),c=s.move(a+a);let u=s.move(n.containerPhrasing(e,{after:a,before:c,...s.current()}));const d=u.charCodeAt(0),p=jg(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(u=ap(d)+u.slice(1));const h=u.charCodeAt(u.length-1),y=jg(r.after.charCodeAt(0),h,a);y.inside&&(u=u.slice(0,-1)+ap(h));const g=s.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+u+g}function AJ(e,t,n){return n.options.strong||"*"}function xJ(e,t,n,r){return n.safe(e.value,r)}function wJ(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function kJ(e,t,n){const r=(Q5(n)+(n.options.ruleSpaces?" ":"")).repeat(wJ(n));return n.options.ruleSpaces?r.slice(0,-1):r}const X5={blockquote:QZ,break:AD,code:tJ,definition:rJ,emphasis:U5,hardBreak:AD,heading:cJ,html:H5,image:z5,imageReference:V5,inlineCode:G5,link:W5,linkReference:Y5,list:vJ,listItem:EJ,paragraph:TJ,root:_J,strong:K5,text:xJ,thematicBreak:kJ};function DJ(){return{enter:{table:RJ,tableData:wD,tableHeader:wD,tableRow:IJ},exit:{codeText:NJ,table:OJ,tableData:fb,tableHeader:fb,tableRow:fb}}}function RJ(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function OJ(e){this.exit(e),this.data.inTable=void 0}function IJ(e){this.enter({type:"tableRow",children:[]},e)}function fb(e){this.exit(e)}function wD(e){this.enter({type:"tableCell",children:[]},e)}function NJ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,LJ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function LJ(e,t){return t==="|"?t:e}function PJ(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
258
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:s,tableCell:u,tableRow:c}};function s(g,b,E,T){return d(p(g,E,T),g.align)}function c(g,b,E,T){const A=h(g,E,T),w=d([A]);return w.slice(0,w.indexOf(`
|
|
259
|
+
`))}function u(g,b,E,T){const A=E.enter("tableCell"),w=E.enter("phrasing"),k=E.containerPhrasing(g,{...T,before:o,after:o});return w(),A(),k}function d(g,b){return WZ(g,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function p(g,b,E){const T=g.children;let A=-1;const w=[],k=b.enter("table");for(;++A<T.length;)w[A]=h(T[A],b,E);return k(),w}function h(g,b,E){const T=g.children;let A=-1;const w=[],k=b.enter("tableRow");for(;++A<T.length;)w[A]=u(T[A],g,b,E);return k(),w}function y(g,b,E){let T=X5.inlineCode(g,b,E);return E.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function MJ(){return{exit:{taskListCheckValueChecked:kD,taskListCheckValueUnchecked:kD,paragraph:FJ}}}function $J(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:BJ}}}function kD(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function FJ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,s;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){s=c;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function BJ(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(s);let u=X5.listItem(e,t,n,{...r,...c.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+s}}function UJ(){return[gZ(),$Z(),jZ(),DJ(),MJ()]}function jJ(e){return{extensions:[yZ(),FZ(e),HZ(),PJ(e),$J()]}}const HJ={};function zJ(e){const t=this,n=e||HJ,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(uZ(n)),o.push(UJ()),s.push(jJ(n))}function DD(e){if(e)throw e}function X0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pb,RD;function VJ(){if(RD)return pb;RD=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},c=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return pb=function u(){var d,p,h,y,g,b,E=arguments[0],T=1,A=arguments.length,w=!1;for(typeof E=="boolean"&&(w=E,E=arguments[1]||{},T=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});T<A;++T)if(d=arguments[T],d!=null)for(p in d)h=c(E,p),y=c(d,p),E!==y&&(w&&y&&(o(y)||(g=a(y)))?(g?(g=!1,b=h&&a(h)?h:[]):b=h&&o(h)?h:{},s(E,{name:p,newValue:u(w,b,y)})):typeof y<"u"&&s(E,{name:p,newValue:y}));return E},pb}var GJ=VJ();const hb=X0(GJ);function JE(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const qJ=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r});function WJ(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);c(null,...a);function c(u,...d){const p=e[++o];let h=-1;if(u){s(u);return}for(;++h<a.length;)(d[h]===null||d[h]===void 0)&&(d[h]=a[h]);a=d,p?YJ(p,c)(...d):s(null,...d)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function YJ(e,t){let n;return r;function r(...s){const c=e.length>s.length;let u;c&&s.push(a);try{u=e.apply(this,s)}catch(d){const p=d;if(c&&n)throw p;return a(p)}c||(u&&u.then&&typeof u.then=="function"?u.then(o,a):u instanceof Error?a(u):o(u))}function a(s,...c){n||(n=!0,t(s,...c))}function o(s){a(null,s)}}const Bo={basename:QJ,dirname:KJ,extname:XJ,join:ZJ,sep:"/"};function QJ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zp(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else s<0&&(o=!0,s=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function KJ(e){if(zp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function XJ(e){zp(e);let t=e.length,n=-1,r=0,a=-1,o=0,s;for(;t--;){const c=e.codePointAt(t);if(c===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function ZJ(...e){let t=-1,n;for(;++t<e.length;)zp(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":JJ(n)}function JJ(e){zp(e);const t=e.codePointAt(0)===47;let n=eee(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eee(e,t){let n="",r=0,a=-1,o=0,s=-1,c,u;for(;++s<=e.length;){if(s<e.length)c=e.codePointAt(s);else{if(c===47)break;c=47}if(c===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=s,o=0;continue}}else if(n.length>0){n="",r=0,a=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,o=0}else c===46&&o>-1?o++:o=-1}return n}function zp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tee={cwd:nee};function nee(){return"/"}function eT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ree(e){if(typeof e=="string")e=new URL(e);else if(!eT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return aee(e)}function aee(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}function Cf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OD(e.position):"start"in e||"end"in e?OD(e):"line"in e||"column"in e?tT(e):""}function tT(e){return ID(e&&e.line)+":"+ID(e&&e.column)}function OD(e){return tT(e&&e.start)+"-"+tT(e&&e.end)}function ID(e){return e&&typeof e=="number"?e:1}let $r=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(s=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Cf(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};$r.prototype.file="";$r.prototype.name="";$r.prototype.reason="";$r.prototype.message="";$r.prototype.stack="";$r.prototype.column=void 0;$r.prototype.line=void 0;$r.prototype.ancestors=void 0;$r.prototype.cause=void 0;$r.prototype.fatal=void 0;$r.prototype.place=void 0;$r.prototype.ruleId=void 0;$r.prototype.source=void 0;const mb=["history","path","basename","stem","extname","dirname"];let Z5=class{constructor(t){let n;t?eT(t)?n={path:t}:typeof t=="string"||oee(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tee.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<mb.length;){const o=mb[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)mb.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Bo.basename(this.path):void 0}set basename(t){yb(t,"basename"),gb(t,"basename"),this.path=Bo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Bo.dirname(this.path):void 0}set dirname(t){ND(this.basename,"dirname"),this.path=Bo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Bo.extname(this.path):void 0}set extname(t){if(gb(t,"extname"),ND(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Bo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){eT(t)&&(t=ree(t)),yb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Bo.basename(this.path,this.extname):void 0}set stem(t){yb(t,"stem"),gb(t,"stem"),this.path=Bo.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new $r(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function gb(e,t){if(e&&e.includes(Bo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Bo.sep+"`")}function yb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ND(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function oee(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iee={}.hasOwnProperty;let see=class J5 extends qJ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=WJ()}copy(){const t=new J5;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(hb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Eb("data",this.frozen),this.namespace[t]=n,this):iee.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Eb("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Am(t),r=this.parser||this.Parser;return vb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),vb("process",this.parser||this.Parser),bb("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,s){const c=Am(t),u=r.parse(c);r.run(u,c,function(p,h,y){if(p||!h||!y)return d(p);const g=h,b=r.stringify(g,y);uee(b)?y.value=b:y.result=b,d(p,y)});function d(p,h){p||!h?s(p):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),vb("processSync",this.parser||this.Parser),bb("processSync",this.compiler||this.Compiler),this.process(t,a),PD("processSync","process",n),r;function a(o,s){n=!0,DD(o),r=s}}run(t,n,r){LD(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,c){const u=Am(n);a.run(t,u,d);function d(p,h,y){const g=h||t;p?c(p):s?s(g):r(void 0,g,y)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),PD("runSync","run",r),a;function o(s,c){DD(s),a=c,r=!0}}stringify(t,n){this.freeze();const r=Am(n),a=this.compiler||this.Compiler;return bb("stringify",a),LD(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Eb("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")u(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...h]=d;u(p,h)}else s(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function s(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(d.plugins),d.settings&&(a.settings=hb(!0,a.settings,d.settings))}function c(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const h=d[p];o(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function u(d,p){let h=-1,y=-1;for(;++h<r.length;)if(r[h][0]===d){y=h;break}if(y===-1)r.push([d,...p]);else if(p.length>0){let[g,...b]=p;const E=r[y][1];JE(E)&&JE(g)&&(g=hb(!0,E,g)),r[y]=[d,g,...b]}}}};const lee=new see().freeze();function vb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Eb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function LD(e){if(!JE(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function PD(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Am(e){return cee(e)?e:new Z5(e)}function cee(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uee(e){return typeof e=="string"||dee(e)}function dee(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function e4(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const MD=document.createElement("i");function e_(e){const t="&"+e+";";MD.innerHTML=t;const n=MD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const fee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pee(e){return e.replace(fee,hee)}function hee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return e4(n.slice(a?2:1),a?16:10)}return e_(n)||e}let mee=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&qd(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),qd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),qd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);qd(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);qd(this.left,n.reverse())}}};function qd(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function t4(e){const t={};let n=-1,r,a,o,s,c,u,d;const p=new mee(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gee(p,n)),n=t[n],d=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(s=p.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},c=p.slice(a,n),c.unshift(r),p.splice(a,n-a+1,c))}}return Na(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function gee(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,u=[],d={};let p,h,y=-1,g=n,b=0,E=0;const T=[E];for(;g;){for(;e.get(++a)[1]!==g;);o.push(a),g._tokenizer||(p=r.sliceStream(g),g.next||p.push(null),h&&s.defineSkip(g.start),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(E=y+1,T.push(E),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(s.events=[],g?(g._tokenizer=void 0,g.previous=void 0):T.pop(),y=T.length;y--;){const A=c.slice(T[y],T[y+1]),w=o.pop();u.push([w,w+A.length-1]),e.splice(w,2,A)}for(u.reverse(),y=-1;++y<u.length;)d[b+u[y][0]]=b+u[y][1],b+=u[y][1]-u[y][0]-1;return d}function yee(e){for(;!t4(e););return e}const vee={tokenize:bee};function bee(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Wt(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(c)}function s(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return dt(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),s)}}const Eee={tokenize:Tee},$D={tokenize:See};function Tee(e){const t=this,n=[];let r=0,a,o,s;return c;function c(k){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,u,d)(k)}return d(k)}function u(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&w();const O=t.events.length;let R=O,D;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){D=t.events[R][1].end;break}A(r);let F=O;for(;F<t.events.length;)t.events[F][1].end={...D},F++;return Na(t.events,R+1,0,t.events.slice(O)),t.events.length=F,d(k)}return c(k)}function d(k){if(r===n.length){if(!a)return y(k);if(a.currentConstruct&&a.currentConstruct.concrete)return b(k);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check($D,p,h)(k)}function p(k){return a&&w(),A(r),y(k)}function h(k){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(k)}function y(k){return t.containerState={},e.attempt($D,g,b)(k)}function g(k){return r++,n.push([t.currentConstruct,t.containerState]),y(k)}function b(k){if(k===null){a&&w(),A(0),e.consume(k);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),E(k)}function E(k){if(k===null){T(e.exit("chunkFlow"),!0),A(0),e.consume(k);return}return dt(k)?(e.consume(k),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(k),E)}function T(k,O){const R=t.sliceStream(k);if(O&&R.push(null),k.previous=o,o&&(o.next=k),o=k,a.defineSkip(k.start),a.write(R),t.parser.lazy[k.start.line]){let D=a.events.length;for(;D--;)if(a.events[D][1].start.offset<s&&(!a.events[D][1].end||a.events[D][1].end.offset>s))return;const F=t.events.length;let q=F,z,$;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(z){$=t.events[q][1].end;break}z=!0}for(A(r),D=F;D<t.events.length;)t.events[D][1].end={...$},D++;Na(t.events,q+1,0,t.events.slice(F)),t.events.length=D}}function A(k){let O=n.length;for(;O-- >k;){const R=n[O];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function w(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function See(e,t,n){return Wt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const _ee={resolve:Aee,tokenize:xee},Cee={partial:!0,tokenize:wee};function Aee(e){return t4(e),e}function xee(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):dt(c)?e.check(Cee,s,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function s(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function wee(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Wt(e,o,"linePrefix")}function o(s){if(s===null||dt(s))return n(s);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}const kee={tokenize:Dee};function Dee(e){const t=this,n=e.attempt(Hp,r,e.attempt(this.parser.constructs.flowInitial,a,Wt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_ee,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ree={resolveAll:r4()},Oee=n4("string"),Iee=n4("text");function n4(e){return{resolveAll:r4(e==="text"?Nee:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,s,c);return s;function s(p){return d(p)?o(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return d(p)?(n.exit("data"),o(p)):(n.consume(p),u)}function d(p){if(p===null)return!0;const h=a[p];let y=-1;if(h)for(;++y<h.length;){const g=h[y];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function r4(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function Nee(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,s=-1,c=0,u;for(;o--;){const d=a[o];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(d===-2)u=!0,c++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const a4={continuation:{tokenize:Pee},exit:Mee,name:"blockQuote",tokenize:Lee};function Lee(e,t,n){const r=this;return a;function a(s){if(s===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return jt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Pee(e,t,n){const r=this;return a;function a(s){return jt(s)?Wt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(a4,t,n)(s)}}function Mee(e){e.exit("blockQuote")}const Jm={name:"thematicBreak",tokenize:$ee};function $ee(e,t,n){let r=0,a;return o;function o(d){return e.enter("thematicBreak"),s(d)}function s(d){return a=d,c(d)}function c(d){return d===a?(e.enter("thematicBreakSequence"),u(d)):r>=3&&(d===null||dt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function u(d){return d===a?(e.consume(d),r++,u):(e.exit("thematicBreakSequence"),jt(d)?Wt(e,c,"whitespace")(d):c(d))}}const oa={continuation:{tokenize:jee},exit:zee,name:"list",tokenize:Uee},Fee={partial:!0,tokenize:Vee},Bee={partial:!0,tokenize:Hee};function Uee(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return c;function c(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:XE(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Jm,n,d)(g):d(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return XE(g)&&++s<10?(e.consume(g),u):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Hp,r.interrupt?n:p,e.attempt(Fee,y,h))}function p(g){return r.containerState.initialBlankLine=!0,o++,y(g)}function h(g){return jt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),y):n(g)}function y(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function jee(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Hp,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Wt(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!jt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bee,t,s)(c))}function s(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Wt(e,e.attempt(oa,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Hee(e,t,n){const r=this;return Wt(e,a,"listItemIndent",r.containerState.size+1);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function zee(e){e.exit(this.containerState.type)}function Vee(e,t,n){const r=this;return Wt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const s=r.events[r.events.length-1];return!jt(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}function o4(e,t,n,r,a,o,s,c,u){const d=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(A){return A===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(A),e.exit(o),y):A===null||A===32||A===41||Ug(A)?n(A):(e.enter(r),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),E(A))}function y(A){return A===62?(e.enter(o),e.consume(A),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===62?(e.exit("chunkString"),e.exit(c),y(A)):A===null||A===60||dt(A)?n(A):(e.consume(A),A===92?b:g)}function b(A){return A===60||A===62||A===92?(e.consume(A),g):g(A)}function E(A){return!p&&(A===null||A===41||xn(A))?(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(r),t(A)):p<d&&A===40?(e.consume(A),p++,E):A===41?(e.consume(A),p--,E):A===null||A===32||A===40||Ug(A)?n(A):(e.consume(A),A===92?T:E)}function T(A){return A===40||A===41||A===92?(e.consume(A),E):E(A)}}function i4(e,t,n,r,a,o){const s=this;let c=0,u;return d;function d(g){return e.enter(r),e.enter(a),e.consume(g),e.exit(a),e.enter(o),p}function p(g){return c>999||g===null||g===91||g===93&&!u||g===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(o),e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):dt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||dt(g)||c++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!jt(g)),g===92?y:h)}function y(g){return g===91||g===92||g===93?(e.consume(g),c++,h):h(g)}}function s4(e,t,n,r,a,o){let s;return c;function c(y){return y===34||y===39||y===40?(e.enter(r),e.enter(a),e.consume(y),e.exit(a),s=y===40?41:y,u):n(y)}function u(y){return y===s?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):(e.enter(o),d(y))}function d(y){return y===s?(e.exit(o),u(s)):y===null?n(y):dt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Wt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===s||y===null||dt(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?h:p)}function h(y){return y===s||y===92?(e.consume(y),p):p(y)}}function Af(e,t){let n;return r;function r(a){return dt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):jt(a)?Wt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Gee={name:"definition",tokenize:Wee},qee={partial:!0,tokenize:Yee};function Wee(e,t,n){const r=this;let a;return o;function o(g){return e.enter("definition"),s(g)}function s(g){return i4.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return a=vo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return xn(g)?Af(e,d)(g):d(g)}function d(g){return o4(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(qee,h,h)(g)}function h(g){return jt(g)?Wt(e,y,"whitespace")(g):y(g)}function y(g){return g===null||dt(g)?(e.exit("definition"),r.parser.defined.push(a),t(g)):n(g)}}function Yee(e,t,n){return r;function r(c){return xn(c)?Af(e,a)(c):n(c)}function a(c){return s4(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return jt(c)?Wt(e,s,"whitespace")(c):s(c)}function s(c){return c===null||dt(c)?t(c):n(c)}}const Tb={name:"codeIndented",tokenize:Kee},Qee={partial:!0,tokenize:Xee};function Kee(e,t,n){const r=this;return a;function a(d){return e.enter("codeIndented"),Wt(e,o,"linePrefix",5)(d)}function o(d){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(d):n(d)}function s(d){return d===null?u(d):dt(d)?e.attempt(Qee,s,u)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||dt(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),c)}function u(d){return e.exit("codeIndented"),t(d)}}function Xee(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):dt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Wt(e,o,"linePrefix",5)(s)}function o(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):dt(s)?a(s):n(s)}}const FD={partial:!0,tokenize:Jee},BD={concrete:!0,name:"codeFenced",tokenize:Zee};function Zee(e,t,n){const r=this,a={partial:!0,tokenize:R};let o=0,s=0,c;return u;function u(D){return d(D)}function d(D){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,c=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(D)}function p(D){return D===c?(s++,e.consume(D),p):s<3?n(D):(e.exit("codeFencedFenceSequence"),jt(D)?Wt(e,h,"whitespace")(D):h(D))}function h(D){return D===null||dt(D)?(e.exit("codeFencedFence"),r.interrupt?t(D):e.check(FD,E,O)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(D))}function y(D){return D===null||dt(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(D)):jt(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Wt(e,g,"whitespace")(D)):D===96&&D===c?n(D):(e.consume(D),y)}function g(D){return D===null||dt(D)?h(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(D))}function b(D){return D===null||dt(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(D)):D===96&&D===c?n(D):(e.consume(D),b)}function E(D){return e.attempt(a,O,T)(D)}function T(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),A}function A(D){return o>0&&jt(D)?Wt(e,w,"linePrefix",o+1)(D):w(D)}function w(D){return D===null||dt(D)?e.check(FD,E,O)(D):(e.enter("codeFlowValue"),k(D))}function k(D){return D===null||dt(D)?(e.exit("codeFlowValue"),w(D)):(e.consume(D),k)}function O(D){return e.exit("codeFenced"),t(D)}function R(D,F,q){let z=0;return $;function $(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),H}function H(W){return D.enter("codeFencedFence"),jt(W)?Wt(D,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):C(W)}function C(W){return W===c?(D.enter("codeFencedFenceSequence"),M(W)):q(W)}function M(W){return W===c?(z++,D.consume(W),M):z>=s?(D.exit("codeFencedFenceSequence"),jt(W)?Wt(D,B,"whitespace")(W):B(W)):q(W)}function B(W){return W===null||dt(W)?(D.exit("codeFencedFence"),F(W)):q(W)}}}function Jee(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const UD={name:"setextUnderline",resolveTo:ete,tokenize:tte};function ete(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function tte(e,t,n){const r=this;let a;return o;function o(d){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=d,s(d)):n(d)}function s(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===a?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),jt(d)?Wt(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||dt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const nte=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jD=["pre","script","style","textarea"],rte={concrete:!0,name:"htmlFlow",resolveTo:ite,tokenize:ste},ate={partial:!0,tokenize:cte},ote={partial:!0,tokenize:lte};function ite(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ste(e,t,n){const r=this;let a,o,s,c,u;return d;function d(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),h}function h(L){return L===33?(e.consume(L),y):L===47?(e.consume(L),o=!0,E):L===63?(e.consume(L),a=3,r.interrupt?t:I):qr(L)?(e.consume(L),s=String.fromCharCode(L),T):n(L)}function y(L){return L===45?(e.consume(L),a=2,g):L===91?(e.consume(L),a=5,c=0,b):qr(L)?(e.consume(L),a=4,r.interrupt?t:I):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:I):n(L)}function b(L){const te="CDATA[";return L===te.charCodeAt(c++)?(e.consume(L),c===te.length?r.interrupt?t:C:b):n(L)}function E(L){return qr(L)?(e.consume(L),s=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||xn(L)){const te=L===47,be=s.toLowerCase();return!te&&!o&&jD.includes(be)?(a=1,r.interrupt?t(L):C(L)):nte.includes(s.toLowerCase())?(a=6,te?(e.consume(L),A):r.interrupt?t(L):C(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?w(L):k(L))}return L===45||Lr(L)?(e.consume(L),s+=String.fromCharCode(L),T):n(L)}function A(L){return L===62?(e.consume(L),r.interrupt?t:C):n(L)}function w(L){return jt(L)?(e.consume(L),w):$(L)}function k(L){return L===47?(e.consume(L),$):L===58||L===95||qr(L)?(e.consume(L),O):jt(L)?(e.consume(L),k):$(L)}function O(L){return L===45||L===46||L===58||L===95||Lr(L)?(e.consume(L),O):R(L)}function R(L){return L===61?(e.consume(L),D):jt(L)?(e.consume(L),R):k(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,F):jt(L)?(e.consume(L),D):q(L)}function F(L){return L===u?(e.consume(L),u=null,z):L===null||dt(L)?n(L):(e.consume(L),F)}function q(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||xn(L)?R(L):(e.consume(L),q)}function z(L){return L===47||L===62||jt(L)?k(L):n(L)}function $(L){return L===62?(e.consume(L),H):n(L)}function H(L){return L===null||dt(L)?C(L):jt(L)?(e.consume(L),H):n(L)}function C(L){return L===45&&a===2?(e.consume(L),j):L===60&&a===1?(e.consume(L),Z):L===62&&a===4?(e.consume(L),ne):L===63&&a===3?(e.consume(L),I):L===93&&a===5?(e.consume(L),ae):dt(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(ate,ee,M)(L)):L===null||dt(L)?(e.exit("htmlFlowData"),M(L)):(e.consume(L),C)}function M(L){return e.check(ote,B,ee)(L)}function B(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),W}function W(L){return L===null||dt(L)?M(L):(e.enter("htmlFlowData"),C(L))}function j(L){return L===45?(e.consume(L),I):C(L)}function Z(L){return L===47?(e.consume(L),s="",Q):C(L)}function Q(L){if(L===62){const te=s.toLowerCase();return jD.includes(te)?(e.consume(L),ne):C(L)}return qr(L)&&s.length<8?(e.consume(L),s+=String.fromCharCode(L),Q):C(L)}function ae(L){return L===93?(e.consume(L),I):C(L)}function I(L){return L===62?(e.consume(L),ne):L===45&&a===2?(e.consume(L),I):C(L)}function ne(L){return L===null||dt(L)?(e.exit("htmlFlowData"),ee(L)):(e.consume(L),ne)}function ee(L){return e.exit("htmlFlow"),t(L)}}function lte(e,t,n){const r=this;return a;function a(s){return dt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function cte(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Hp,t,n)}}const ute={name:"headingAtx",resolve:dte,tokenize:fte};function dte(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Na(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function fte(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&r++<6?(e.consume(p),s):p===null||xn(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||dt(p)?(e.exit("atxHeading"),t(p)):jt(p)?Wt(e,c,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),c(p))}function d(p){return p===null||p===35||xn(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),d)}}const l4={name:"characterEscape",tokenize:pte};function pte(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return OX(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const c4={name:"characterReference",tokenize:hte};function hte(e,t,n){const r=this;let a=0,o,s;return c;function c(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,s=Lr,p(h))}function d(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=RX,p):(e.enter("characterReferenceValue"),o=7,s=XE,p(h))}function p(h){if(h===59&&a){const y=e.exit("characterReferenceValue");return s===Lr&&!e_(r.sliceSerialize(y))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&a++<o?(e.consume(h),p):n(h)}}const mte={name:"codeText",previous:yte,resolve:gte,tokenize:vte};function gte(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function yte(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vte(e,t,n){let r=0,a,o;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),c(h)}function c(h){return h===96?(e.consume(h),r++,c):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(o=e.enter("codeTextSequence"),a=0,p(h)):dt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),d(h))}function d(h){return h===null||h===32||h===96||dt(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),d)}function p(h){return h===96?(e.consume(h),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",d(h))}}const nT={name:"attention",resolveAll:bte,tokenize:Ete};function bte(e,t){let n=-1,r,a,o,s,c,u,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},y={...e[n][1].start};HD(h,-u),HD(y,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...c.end}},e[r][1].end={...s.start},e[n][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=eo(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=eo(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",o,t]]),d=eo(d,K0(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=eo(d,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=eo(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Na(e,r-1,n-r+3,d),n=r+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ete(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=gu(r);let o;return s;function s(u){return o=u,e.enter("attentionSequence"),c(u)}function c(u){if(u===o)return e.consume(u),c;const d=e.exit("attentionSequence"),p=gu(u),h=!p||p===2&&a||n.includes(u),y=!a||a===2&&p||n.includes(r);return d._open=!!(o===42?h:h&&(a||!y)),d._close=!!(o===42?y:y&&(p||!h)),t(u)}}function HD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const t_={name:"labelEnd",resolveAll:Cte,resolveTo:Ate,tokenize:xte},Tte={tokenize:wte},Ste={tokenize:kte},_te={tokenize:Dte};function Cte(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Na(e,0,e.length,n),e}function Ate(e,t){let n=e.length,r=0,a,o,s,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return c=[["enter",u,t],["enter",d,t]],c=eo(c,e.slice(o+1,o+r+3)),c=eo(c,[["enter",p,t]]),c=eo(c,K0(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),c=eo(c,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),c=eo(c,e.slice(s+1)),c=eo(c,[["exit",u,t]]),Na(e,o,e.length,c),e}function xte(e,t,n){const r=this;let a=r.events.length,o,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(y){return o?o._inactive?h(y):(s=r.parser.defined.includes(vo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),u):n(y)}function u(y){return y===40?e.attempt(Tte,p,s?p:h)(y):y===91?e.attempt(Ste,p,s?d:h)(y):s?p(y):h(y)}function d(y){return e.attempt(_te,p,h)(y)}function p(y){return t(y)}function h(y){return o._balanced=!0,n(y)}}function wte(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return xn(h)?Af(e,o)(h):o(h)}function o(h){return h===41?p(h):o4(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return xn(h)?Af(e,u)(h):p(h)}function c(h){return n(h)}function u(h){return h===34||h===39||h===40?s4(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return xn(h)?Af(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function kte(e,t,n){const r=this;return a;function a(c){return i4.call(r,e,o,s,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(vo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function s(c){return n(c)}}function Dte(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Rte={name:"hardBreakEscape",tokenize:Ote};function Ote(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return dt(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ite={name:"labelStartLink",resolveAll:t_.resolveAll,tokenize:Nte};function Nte(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Lte={name:"autolink",tokenize:Pte};function Pte(e,t,n){let r=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return qr(g)?(e.consume(g),s):g===64?n(g):d(g)}function s(g){return g===43||g===45||g===46||Lr(g)?(r=1,c(g)):d(g)}function c(g){return g===58?(e.consume(g),r=0,u):(g===43||g===45||g===46||Lr(g))&&r++<32?(e.consume(g),c):(r=0,d(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Ug(g)?n(g):(e.consume(g),u)}function d(g){return g===64?(e.consume(g),p):DX(g)?(e.consume(g),d):n(g)}function p(g){return Lr(g)?h(g):n(g)}function h(g){return g===46?(e.consume(g),r=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):y(g)}function y(g){if((g===45||Lr(g))&&r++<63){const b=g===45?y:h;return e.consume(g),b}return n(g)}}const Mte={name:"htmlText",tokenize:$te};function $te(e,t,n){const r=this;let a,o,s;return c;function c(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),d):I===47?(e.consume(I),R):I===63?(e.consume(I),k):qr(I)?(e.consume(I),q):n(I)}function d(I){return I===45?(e.consume(I),p):I===91?(e.consume(I),o=0,b):qr(I)?(e.consume(I),w):n(I)}function p(I){return I===45?(e.consume(I),g):n(I)}function h(I){return I===null?n(I):I===45?(e.consume(I),y):dt(I)?(s=h,Z(I)):(e.consume(I),h)}function y(I){return I===45?(e.consume(I),g):h(I)}function g(I){return I===62?j(I):I===45?y(I):h(I)}function b(I){const ne="CDATA[";return I===ne.charCodeAt(o++)?(e.consume(I),o===ne.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),T):dt(I)?(s=E,Z(I)):(e.consume(I),E)}function T(I){return I===93?(e.consume(I),A):E(I)}function A(I){return I===62?j(I):I===93?(e.consume(I),A):E(I)}function w(I){return I===null||I===62?j(I):dt(I)?(s=w,Z(I)):(e.consume(I),w)}function k(I){return I===null?n(I):I===63?(e.consume(I),O):dt(I)?(s=k,Z(I)):(e.consume(I),k)}function O(I){return I===62?j(I):k(I)}function R(I){return qr(I)?(e.consume(I),D):n(I)}function D(I){return I===45||Lr(I)?(e.consume(I),D):F(I)}function F(I){return dt(I)?(s=F,Z(I)):jt(I)?(e.consume(I),F):j(I)}function q(I){return I===45||Lr(I)?(e.consume(I),q):I===47||I===62||xn(I)?z(I):n(I)}function z(I){return I===47?(e.consume(I),j):I===58||I===95||qr(I)?(e.consume(I),$):dt(I)?(s=z,Z(I)):jt(I)?(e.consume(I),z):j(I)}function $(I){return I===45||I===46||I===58||I===95||Lr(I)?(e.consume(I),$):H(I)}function H(I){return I===61?(e.consume(I),C):dt(I)?(s=H,Z(I)):jt(I)?(e.consume(I),H):z(I)}function C(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),a=I,M):dt(I)?(s=C,Z(I)):jt(I)?(e.consume(I),C):(e.consume(I),B)}function M(I){return I===a?(e.consume(I),a=void 0,W):I===null?n(I):dt(I)?(s=M,Z(I)):(e.consume(I),M)}function B(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||xn(I)?z(I):(e.consume(I),B)}function W(I){return I===47||I===62||xn(I)?z(I):n(I)}function j(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function Z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Q}function Q(I){return jt(I)?Wt(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):ae(I)}function ae(I){return e.enter("htmlTextData"),s(I)}}const Fte={name:"labelStartImage",resolveAll:t_.resolveAll,tokenize:Bte};function Bte(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),s):n(c)}function s(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const Sb={name:"lineEnding",tokenize:Ute};function Ute(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Wt(e,t,"linePrefix")}}const jte={42:oa,43:oa,45:oa,48:oa,49:oa,50:oa,51:oa,52:oa,53:oa,54:oa,55:oa,56:oa,57:oa,62:a4},Hte={91:Gee},zte={[-2]:Tb,[-1]:Tb,32:Tb},Vte={35:ute,42:Jm,45:[UD,Jm],60:rte,61:UD,95:Jm,96:BD,126:BD},Gte={38:c4,92:l4},qte={[-5]:Sb,[-4]:Sb,[-3]:Sb,33:Fte,38:c4,42:nT,60:[Lte,Mte],91:Ite,92:[Rte,l4],93:t_,95:nT,96:mte},Wte={null:[nT,Ree]},Yte={null:[42,95]},Qte={null:[]},Kte=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Yte,contentInitial:Hte,disable:Qte,document:jte,flow:Vte,flowInitial:zte,insideSpan:Wte,string:Gte,text:qte},Symbol.toStringTag,{value:"Module"}));function Xte(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let s=[],c=[];const u={attempt:F(R),check:F(D),consume:w,enter:k,exit:O,interrupt:F(D,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:y,sliceStream:g,write:h};let p=t.tokenize.call(d,u);return t.resolveAll&&o.push(t),d;function h(H){return s=eo(s,H),T(),s[s.length-1]!==null?[]:(q(t,0),d.events=K0(o,d.events,d),d.events)}function y(H,C){return Jte(g(H),C)}function g(H){return Zte(s,H)}function b(){const{_bufferIndex:H,_index:C,line:M,column:B,offset:W}=r;return{_bufferIndex:H,_index:C,line:M,column:B,offset:W}}function E(H){a[H.line]=H.column,$()}function T(){let H;for(;r._index<s.length;){const C=s[r._index];if(typeof C=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<C.length;)A(C.charCodeAt(r._bufferIndex));else A(C)}}function A(H){p=p(H)}function w(H){dt(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,$()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=H}function k(H,C){const M=C||{};return M.type=H,M.start=b(),d.events.push(["enter",M,d]),c.push(M),M}function O(H){const C=c.pop();return C.end=b(),d.events.push(["exit",C,d]),C}function R(H,C){q(H,C.from)}function D(H,C){C.restore()}function F(H,C){return M;function M(B,W,j){let Z,Q,ae,I;return Array.isArray(B)?ee(B):"tokenize"in B?ee([B]):ne(B);function ne(de){return xe;function xe(ye){const Oe=ye!==null&&de[ye],Ue=ye!==null&&de.null,Ie=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return ee(Ie)(ye)}}function ee(de){return Z=de,Q=0,de.length===0?j:L(de[Q])}function L(de){return xe;function xe(ye){return I=z(),ae=de,de.partial||(d.currentConstruct=de),de.name&&d.parser.constructs.disable.null.includes(de.name)?be():de.tokenize.call(C?Object.assign(Object.create(d),C):d,u,te,be)(ye)}}function te(de){return H(ae,I),W}function be(de){return I.restore(),++Q<Z.length?L(Z[Q]):j}}}function q(H,C){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&Na(d.events,C,d.events.length-C,H.resolve(d.events.slice(C),d)),H.resolveTo&&(d.events=H.resolveTo(d.events,d))}function z(){const H=b(),C=d.previous,M=d.currentConstruct,B=d.events.length,W=Array.from(c);return{from:B,restore:j};function j(){r=H,d.previous=C,d.currentConstruct=M,d.events.length=B,c=W,$()}}function $(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Zte(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,o)];else{if(s=e.slice(n,a),r>-1){const c=s[0];typeof c=="string"?s[0]=c.slice(r):s.shift()}o>0&&s.push(e[a].slice(0,o))}return s}function Jte(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
260
|
+
`;break}case-3:{s=`\r
|
|
261
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(o)}a=o===-2,r.push(s)}return r.join("")}function ene(e){const t={constructs:w5([Kte,...(e||{}).extensions||[]]),content:n(vee),defined:[],document:n(Eee),flow:n(kee),lazy:{},string:n(Oee),text:n(Iee)};return t;function n(r){return a;function a(o){return Xte(t,r,o)}}}const zD=/[\0\t\n\r]/g;function tne(){let e=1,t="",n=!0,r;return a;function a(o,s,c){const u=[];let d,p,h,y,g;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(zD.lastIndex=h,d=zD.exec(o),y=d&&d.index!==void 0?d.index:o.length,g=o.charCodeAt(y),!d){t=o.slice(h);break}if(g===10&&h===y&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<y&&(u.push(o.slice(h,y)),e+=y-h),g){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=y+1}return c&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const u4={}.hasOwnProperty;function nne(e,t,n){return typeof t!="string"&&(n=t,t=void 0),rne(n)(yee(ene(n).document().write(tne()(e,t,!0))))}function rne(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(it),autolinkProtocol:z,autolinkEmail:z,atxHeading:o(Ot),blockQuote:o(Ue),characterEscape:z,characterReference:z,codeFenced:o(Ie),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ie,s),codeText:o(Ye,s),codeTextData:z,data:z,codeFlowValue:z,definition:o(Ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(De),hardBreakEscape:o(Et),hardBreakTrailing:o(Et),htmlFlow:o(je,s),htmlFlowData:z,htmlText:o(je,s),htmlTextData:z,image:o(St),label:s,link:o(it),listItem:o(Ge),listItemValue:y,listOrdered:o(Ze,h),listUnordered:o(Ze),paragraph:o(Pe),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Ot),strong:o(It),thematicBreak:o(bt)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:Oe,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:de,characterReference:xe,codeFenced:u(T),codeFencedFence:E,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:$,codeIndented:u(A),codeText:u(W),codeTextData:$,data:$,definition:u(),definitionDestinationString:O,definitionLabelString:w,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(C),hardBreakTrailing:u(C),htmlFlow:u(M),htmlFlowData:$,htmlText:u(B),htmlTextData:$,image:u(Z),label:ae,labelText:Q,lineEnding:H,link:u(j),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:te,resourceDestinationString:I,resourceTitleString:ne,resource:ee,setextHeading:u(q),setextHeadingLineSequence:F,setextHeadingText:D,strong:u(),thematicBreak:u()}};d4(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ce){let me={type:"root",children:[]};const Be={stack:[me],tokenStack:[],config:t,enter:c,exit:d,buffer:s,resume:p,data:n},qe=[];let Qe=-1;for(;++Qe<ce.length;)if(ce[Qe][1].type==="listOrdered"||ce[Qe][1].type==="listUnordered")if(ce[Qe][0]==="enter")qe.push(Qe);else{const gt=qe.pop();Qe=a(ce,gt,Qe)}for(Qe=-1;++Qe<ce.length;){const gt=t[ce[Qe][0]];u4.call(gt,ce[Qe][1].type)&>[ce[Qe][1].type].call(Object.assign({sliceSerialize:ce[Qe][2].sliceSerialize},Be),ce[Qe][1])}if(Be.tokenStack.length>0){const gt=Be.tokenStack[Be.tokenStack.length-1];(gt[1]||VD).call(Be,void 0,gt[0])}for(me.position={start:ps(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:ps(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe<t.transforms.length;)me=t.transforms[Qe](me)||me;return me}function a(ce,me,Be){let qe=me-1,Qe=-1,gt=!1,cn,Qt,We,Ee;for(;++qe<=Be;){const Te=ce[qe];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Qe++:Qe--,Ee=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(cn&&!Ee&&!Qe&&!We&&(We=qe),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!Qe&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Qe===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(cn){let ut=qe;for(Qt=void 0;ut--;){const nt=ce[ut];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;Qt&&(ce[Qt][1].type="lineEndingBlank",gt=!0),nt[1].type="lineEnding",Qt=ut}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}We&&(!Qt||We<Qt)&&(cn._spread=!0),cn.end=Object.assign({},Qt?ce[Qt][1].start:Te[1].end),ce.splice(Qt||qe,0,["exit",cn,Te[2]]),qe++,Be++}if(Te[1].type==="listItemPrefix"){const ut={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};cn=ut,ce.splice(qe,0,["enter",ut,Te[2]]),qe++,Be++,We=void 0,Ee=!0}}}return ce[me][1]._spread=gt,Be}function o(ce,me){return Be;function Be(qe){c.call(this,ce(qe),qe),me&&me.call(this,qe)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(ce,me,Be){this.stack[this.stack.length-1].children.push(ce),this.stack.push(ce),this.tokenStack.push([me,Be||void 0]),ce.position={start:ps(me.start),end:void 0}}function u(ce){return me;function me(Be){ce&&ce.call(this,Be),d.call(this,Be)}}function d(ce,me){const Be=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==ce.type&&(me?me.call(this,ce,qe[0]):(qe[1]||VD).call(this,ce,qe[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Cf({start:ce.start,end:ce.end})+"): it’s not open");Be.position.end=ps(ce.end)}function p(){return ZS(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function y(ce){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ce),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.lang=ce}function b(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.meta=ce}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce.replace(/(\r?\n|\r)$/g,"")}function w(ce){const me=this.resume(),Be=this.stack[this.stack.length-1];Be.label=me,Be.identifier=vo(this.sliceSerialize(ce)).toLowerCase()}function k(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.title=ce}function O(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.url=ce}function R(ce){const me=this.stack[this.stack.length-1];if(!me.depth){const Be=this.sliceSerialize(ce).length;me.depth=Be}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function F(ce){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ce).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function z(ce){const me=this.stack[this.stack.length-1].children;let Be=me[me.length-1];(!Be||Be.type!=="text")&&(Be=kn(),Be.position={start:ps(ce.start),end:void 0},me.push(Be)),this.stack.push(Be)}function $(ce){const me=this.stack.pop();me.value+=this.sliceSerialize(ce),me.position.end=ps(ce.end)}function H(ce){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=me.children[me.children.length-1];Be.position.end=ps(ce.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(z.call(this,ce),$.call(this,ce))}function C(){this.data.atHardBreak=!0}function M(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}function B(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}function W(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}function j(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=me,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function Z(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=me,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function Q(ce){const me=this.sliceSerialize(ce),Be=this.stack[this.stack.length-2];Be.label=pee(me),Be.identifier=vo(me).toLowerCase()}function ae(){const ce=this.stack[this.stack.length-1],me=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const qe=ce.children;Be.children=qe}else Be.alt=me}function I(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.url=ce}function ne(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.title=ce}function ee(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function te(ce){const me=this.resume(),Be=this.stack[this.stack.length-1];Be.label=me,Be.identifier=vo(this.sliceSerialize(ce)).toLowerCase(),this.data.referenceType="full"}function be(ce){this.data.characterReferenceType=ce.type}function de(ce){const me=this.sliceSerialize(ce),Be=this.data.characterReferenceType;let qe;Be?(qe=e4(me,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=e_(me);const Qe=this.stack[this.stack.length-1];Qe.value+=qe}function xe(ce){const me=this.stack.pop();me.position.end=ps(ce.end)}function ye(ce){$.call(this,ce);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ce)}function Oe(ce){$.call(this,ce);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ce)}function Ue(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function Ye(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function De(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function Et(){return{type:"break"}}function je(){return{type:"html",value:""}}function St(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function Ze(ce){return{type:"list",ordered:ce.type==="listOrdered",start:null,spread:ce._spread,children:[]}}function Ge(ce){return{type:"listItem",spread:ce._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function It(){return{type:"strong",children:[]}}function kn(){return{type:"text",value:""}}function bt(){return{type:"thematicBreak"}}}function ps(e){return{line:e.line,column:e.column,offset:e.offset}}function d4(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?d4(e,r):ane(e,r)}}function ane(e,t){let n;for(n in t)if(u4.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function VD(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cf({start:t.start,end:t.end})+") is still open")}function one(e){const t=this;t.parser=n;function n(r){return nne(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const f4=-1,Z0=0,xf=1,Hg=2,n_=3,r_=4,a_=5,o_=6,p4=7,h4=8,GD=typeof self=="object"?self:globalThis,ine=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,s]=t[a];switch(o){case Z0:case f4:return n(s,a);case xf:{const c=n([],a);for(const u of s)c.push(r(u));return c}case Hg:{const c=n({},a);for(const[u,d]of s)c[r(u)]=r(d);return c}case n_:return n(new Date(s),a);case r_:{const{source:c,flags:u}=s;return n(new RegExp(c,u),a)}case a_:{const c=n(new Map,a);for(const[u,d]of s)c.set(r(u),r(d));return c}case o_:{const c=n(new Set,a);for(const u of s)c.add(r(u));return c}case p4:{const{name:c,message:u}=s;return n(new GD[c](u),a)}case h4:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:c}=new Uint8Array(s);return n(new DataView(c),s)}}return n(new GD[o](s),a)};return r},qD=e=>ine(new Map,e)(0),Bc="",{toString:sne}={},{keys:lne}=Object,Wd=e=>{const t=typeof e;if(t!=="object"||!e)return[Z0,t];const n=sne.call(e).slice(8,-1);switch(n){case"Array":return[xf,Bc];case"Object":return[Hg,Bc];case"Date":return[n_,Bc];case"RegExp":return[r_,Bc];case"Map":return[a_,Bc];case"Set":return[o_,Bc];case"DataView":return[xf,n]}return n.includes("Array")?[xf,n]:n.includes("Error")?[p4,n]:[Hg,n]},xm=([e,t])=>e===Z0&&(t==="function"||t==="symbol"),cne=(e,t,n,r)=>{const a=(s,c)=>{const u=r.push(s)-1;return n.set(c,u),u},o=s=>{if(n.has(s))return n.get(s);let[c,u]=Wd(s);switch(c){case Z0:{let p=s;switch(u){case"bigint":c=h4,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return a([f4],s)}return a([c,p],s)}case xf:{if(u){let y=s;return u==="DataView"?y=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(y=new Uint8Array(s)),a([u,[...y]],s)}const p=[],h=a([c,p],s);for(const y of s)p.push(o(y));return h}case Hg:{if(u)switch(u){case"BigInt":return a([u,s.toString()],s);case"Boolean":case"Number":case"String":return a([u,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const p=[],h=a([c,p],s);for(const y of lne(s))(e||!xm(Wd(s[y])))&&p.push([o(y),o(s[y])]);return h}case n_:return a([c,s.toISOString()],s);case r_:{const{source:p,flags:h}=s;return a([c,{source:p,flags:h}],s)}case a_:{const p=[],h=a([c,p],s);for(const[y,g]of s)(e||!(xm(Wd(y))||xm(Wd(g))))&&p.push([o(y),o(g)]);return h}case o_:{const p=[],h=a([c,p],s);for(const y of s)(e||!xm(Wd(y)))&&p.push(o(y));return h}}const{message:d}=s;return a([c,{name:u,message:d}],s)};return o},WD=(e,{json:t,lossy:n}={})=>{const r=[];return cne(!(t||n),!!t,new Map,r)(e),r},Fl=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?qD(WD(e,t)):structuredClone(e)):(e,t)=>qD(WD(e,t));function Du(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Lr(e.charCodeAt(n+1))&&Lr(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(s=String.fromCharCode(o,c),a=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function une(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function dne(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fne(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||une,r=e.options.footnoteBackLabel||dne,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let u=-1;for(;++u<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[u]);if(!d)continue;const p=e.all(d),h=String(d.identifier).toUpperCase(),y=Du(h.toLowerCase());let g=0;const b=[],E=e.footnoteCounts.get(h);for(;E!==void 0&&++g<=E;){b.length>0&&b.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,g);typeof w=="string"&&(w={type:"text",value:w}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,g),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const T=p[p.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const w=T.children[T.children.length-1];w&&w.type==="text"?w.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...b)}else p.push(...b);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(d,A),c.push(A)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Fl(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
262
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
263
|
+
`}]}}function pne(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function hne(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
264
|
+
`}]}function mne(e,t){const n=t.value?t.value+`
|
|
265
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function gne(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yne(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vne(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Du(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,c+=1,e.footnoteCounts.set(r,c);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function bne(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ene(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function m4(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function Tne(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return m4(e,t);const a={src:Du(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function Sne(e,t){const n={src:Du(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function _ne(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Cne(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return m4(e,t);const a={href:Du(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ane(e,t){const n={href:Du(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xne(e,t,n){const r=e.all(t),a=n?wne(n):g4(t),o={},s=[];if(typeof t.checked=="boolean"){const p=r[0];let h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(a||c!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
|
|
266
|
+
`}),p.type==="element"&&p.tagName==="p"&&!a?s.push(...p.children):s.push(p)}const u=r[r.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
267
|
+
`});const d={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,d),e.applyData(t,d)}function wne(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=g4(n[r])}return t}function g4(e){return e.spread??e.children.length>1}function kne(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Dne(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rne(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function One(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const J0=y4("end"),ni=y4("start");function y4(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ine(e){const t=ni(e),n=J0(e);if(t&&n)return{start:t,end:n}}function Nne(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=ni(t.children[1]),u=J0(t.children[t.children.length-1]);c&&u&&(s.position={start:c,end:u}),a.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function Lne(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const p=t.children[c],h={},y=o?o[c]:void 0;y&&(h.align=y);let g={type:"element",tagName:a,properties:h,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(p,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function Pne(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mne(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(YD(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(YD(t.slice(a),a>0,!1)),o.join("")}function YD(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===9||o===32;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function $ne(e,t){const n={type:"text",value:Mne(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Fne(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Bne={blockquote:pne,break:hne,code:mne,delete:gne,emphasis:yne,footnoteReference:vne,heading:bne,html:Ene,imageReference:Tne,image:Sne,inlineCode:_ne,linkReference:Cne,link:Ane,listItem:xne,list:kne,paragraph:Dne,root:Rne,strong:One,table:Nne,tableCell:Pne,tableRow:Lne,text:$ne,thematicBreak:Fne,toml:wm,yaml:wm,definition:wm,footnoteDefinition:wm};function wm(){}const rT={}.hasOwnProperty,Une={};function jne(e,t){const n=t||Une,r=new Map,a=new Map,o=new Map,s={...Bne,...n.handlers},c={all:d,applyData:zne,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:s,one:u,options:n,patch:Hne,wrap:Gne};return pa(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:a,y=String(p.identifier).toUpperCase();h.has(y)||h.set(y,p)}}),c;function u(p,h){const y=p.type,g=c.handlers[y];if(rT.call(c.handlers,y)&&g)return g(c,p,h);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in p){const{children:b,...E}=p,T=Fl(E);return T.children=c.all(p),T}return Fl(p)}return(c.options.unknownHandler||Vne)(c,p,h)}function d(p){const h=[];if("children"in p){const y=p.children;let g=-1;for(;++g<y.length;){const b=c.one(y[g],p);if(b){if(g&&y[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=QD(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=QD(E.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function Hne(e,t){e.position&&(t.position=Ine(e))}function zne(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Fl(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Vne(e,t){const n=t.data||{},r="value"in t&&!(rT.call(n,"hProperties")||rT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gne(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
268
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
269
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
270
|
+
`}),n}function QD(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function KD(e,t){const n=jne(e,t),r=n.one(e,void 0),a=fne(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
|
|
271
|
+
`},a),o}function qne(e,t){return e&&"run"in e?async function(n,r){const a=KD(n,{file:r,...t});await e.run(a,r)}:function(n,r){return KD(n,{file:r,...e||t})}}var Uc={},_b,XD;function Wne(){if(XD)return _b;XD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
|
|
272
|
+
`,d="/",p="*",h="",y="comment",g="declaration";_b=function(E,T){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];T=T||{};var A=1,w=1;function k(M){var B=M.match(t);B&&(A+=B.length);var W=M.lastIndexOf(u);w=~W?M.length-W:w+M.length}function O(){var M={line:A,column:w};return function(B){return B.position=new R(M),q(),B}}function R(M){this.start=M,this.end={line:A,column:w},this.source=T.source}R.prototype.content=E;function D(M){var B=new Error(T.source+":"+A+":"+w+": "+M);if(B.reason=M,B.filename=T.source,B.line=A,B.column=w,B.source=E,!T.silent)throw B}function F(M){var B=M.exec(E);if(B){var W=B[0];return k(W),E=E.slice(W.length),B}}function q(){F(n)}function z(M){var B;for(M=M||[];B=$();)B!==!1&&M.push(B);return M}function $(){var M=O();if(!(d!=E.charAt(0)||p!=E.charAt(1))){for(var B=2;h!=E.charAt(B)&&(p!=E.charAt(B)||d!=E.charAt(B+1));)++B;if(B+=2,h===E.charAt(B-1))return D("End of comment missing");var W=E.slice(2,B-2);return w+=2,k(W),E=E.slice(B),w+=2,M({type:y,comment:W})}}function H(){var M=O(),B=F(r);if(B){if($(),!F(a))return D("property missing ':'");var W=F(o),j=M({type:g,property:b(B[0].replace(e,h)),value:W?b(W[0].replace(e,h)):h});return F(s),j}}function C(){var M=[];z(M);for(var B;B=H();)B!==!1&&(M.push(B),z(M));return M}return q(),C()};function b(E){return E?E.replace(c,h):h}return _b}var ZD;function Yne(){if(ZD)return Uc;ZD=1;var e=Uc&&Uc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.default=n;var t=e(Wne());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var s=(0,t.default)(r),c=typeof a=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;c?a(d,p,u):p&&(o=o||{},o[d]=p)}}),o}return Uc}var Yd={},JD;function Qne(){if(JD)return Yd;JD=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},s=function(d,p){return p.toUpperCase()},c=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),o(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(a,c):d=d.replace(r,c),d.replace(t,s))};return Yd.camelCase=u,Yd}var Qd,eR;function Kne(){if(eR)return Qd;eR=1;var e=Qd&&Qd.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Yne()),n=Qne();function r(a,o){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(c,u){c&&u&&(s[(0,n.camelCase)(c,o)]=u)}),s}return r.default=r,Qd=r,Qd}var Xne=Kne();const Zne=X0(Xne),Jne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ere=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tre={};function tR(e,t){return(tre.jsx?ere:Jne).test(e)}const nre={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},i_={}.hasOwnProperty,rre=new Map,are=/[A-Z]/g,ore=new Set(["table","tbody","thead","tfoot","tr"]),ire=new Set(["td","th"]),v4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sre(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=mre(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=hre(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bi:xu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=b4(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function b4(e,t,n){if(t.type==="element")return lre(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cre(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return dre(e,t,n);if(t.type==="mdxjsEsm")return ure(e,t);if(t.type==="root")return fre(e,t,n);if(t.type==="text")return pre(e,t)}function lre(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=T4(e,t.tagName,!1),s=gre(e,t);let c=l_(e,t);return ore.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Mp(u):!0})),E4(e,s,o,t),s_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function cre(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}op(e,t.position)}function ure(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);op(e,t.position)}function dre(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:T4(e,t.name,!0),s=yre(e,t),c=l_(e,t);return E4(e,s,o,t),s_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function fre(e,t,n){const r={};return s_(r,l_(e,t)),e.create(t,e.Fragment,r,n)}function pre(e,t){return t.value}function E4(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function s_(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function hre(e,t,n){return r;function r(a,o,s,c){const u=Array.isArray(s.children)?n:t;return c?u(o,s,c):u(o,s)}}function mre(e,t){return n;function n(r,a,o,s){const c=Array.isArray(o.children),u=ni(r);return t(a,o,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function gre(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&i_.call(t.properties,a)){const o=vre(e,a,t.properties[a]);if(o){const[s,c]=o;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&ire.has(t.tagName)?r=c:n[s]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yre(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else op(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else op(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function l_(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:rre;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const d=a.get(u)||0;s=u+"-"+d,a.set(u,d+1)}}const c=b4(e,o,s);c!==void 0&&n.push(c)}return n}function vre(e,t,n){const r=$p(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$0(n):F0(n)),r.property==="style"){let a=typeof n=="object"?n:bre(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Ere(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?nre[r.property]||r.property:r.attribute,n]}}function bre(e,t){try{return Zne(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new $r("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=v4+"#cannot-parse-style-attribute",a}}function T4(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,s;for(;++o<a.length;){const c=tR(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=s}else r=tR(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return i_.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);op(e)}function op(e,t){const n=new $r("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=v4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ere(e){const t={};let n;for(n in e)i_.call(e,n)&&(t[Tre(n)]=e[n]);return t}function Tre(e){let t=e.replace(are,Sre);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Sre(e){return"-"+e.toLowerCase()}const Cb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_re="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",nR=[],rR={allowDangerousHtml:!0},Cre=/^(https?|ircs?|mailto|xmpp)$/i,Are=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xre(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,s=e.disallowedElements,c=e.rehypePlugins||nR,u=e.remarkPlugins||nR,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rR}:rR,p=e.skipHtml,h=e.unwrapDisallowed,y=e.urlTransform||wre,g=lee().use(one).use(u).use(qne,d).use(c),b=new Z5;typeof r=="string"&&(b.value=r);for(const w of Are)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+_re+w.id,void 0);const E=g.parse(b);let T=g.runSync(E,b);return a&&(T={type:"element",tagName:"div",properties:{className:a},children:T.type==="root"?T.children:[T]}),pa(T,A),sre(T,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function A(w,k,O){if(w.type==="raw"&&O&&typeof k=="number")return p?O.children.splice(k,1):O.children[k]={type:"text",value:w.value},k;if(w.type==="element"){let R;for(R in Cb)if(Object.hasOwn(Cb,R)&&Object.hasOwn(w.properties,R)){const D=w.properties[R],F=Cb[R];(F===null||F.includes(w.tagName))&&(w.properties[R]=y(String(D||""),R,w))}}if(w.type==="element"){let R=t?!t.includes(w.tagName):s?s.includes(w.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(w,k,O)),R&&O&&typeof k=="number")return h&&w.children?O.children.splice(k,1,...w.children):O.children.splice(k,1),k}}}function wre(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Cre.test(e.slice(0,t))?e:""}const kre=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fn="�";var V;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(V||(V={}));const aa={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function S4(e){return e>=55296&&e<=57343}function Dre(e){return e>=56320&&e<=57343}function Rre(e,t){return(e-55296)*1024+9216+t}function _4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function C4(e){return e>=64976&&e<=65007||kre.has(e)}var ve;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ve||(ve={}));const Ore=65536;let Ire=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ore,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,s=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Dre(n))return this.pos++,this._addGap(),Rre(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,V.EOF;return this._err(ve.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,V.EOF;const r=this.html.charCodeAt(n);return r===V.CARRIAGE_RETURN?V.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,V.EOF;let t=this.html.charCodeAt(this.pos);return t===V.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,V.LINE_FEED):t===V.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,S4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===V.LINE_FEED||t===V.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){_4(t)?this._err(ve.controlCharacterInInputStream):C4(t)&&this._err(ve.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var $t;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})($t||($t={}));function A4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Nre=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Lre(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Nre.get(e))!==null&&t!==void 0?t:e}var Tr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Tr||(Tr={}));const Pre=32;var _s;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_s||(_s={}));function aT(e){return e>=Tr.ZERO&&e<=Tr.NINE}function Mre(e){return e>=Tr.UPPER_A&&e<=Tr.UPPER_F||e>=Tr.LOWER_A&&e<=Tr.LOWER_F}function $re(e){return e>=Tr.UPPER_A&&e<=Tr.UPPER_Z||e>=Tr.LOWER_A&&e<=Tr.LOWER_Z||aT(e)}function Fre(e){return e===Tr.EQUALS||$re(e)}var br;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(br||(br={}));var Di;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Di||(Di={}));let Bre=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=br.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Di.Strict}startEntity(t){this.decodeMode=t,this.state=br.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case br.EntityStart:return t.charCodeAt(n)===Tr.NUM?(this.state=br.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=br.NamedEntity,this.stateNamedEntity(t,n));case br.NumericStart:return this.stateNumericStart(t,n);case br.NumericDecimal:return this.stateNumericDecimal(t,n);case br.NumericHex:return this.stateNumericHex(t,n);case br.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Pre)===Tr.LOWER_X?(this.state=br.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=br.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(aT(a)||Mre(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(aT(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Tr.SEMI)this.consumed+=1;else if(this.decodeMode===Di.Strict)return 0;return this.emitCodePoint(Lre(this.result),this.consumed),this.errors&&(t!==Tr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&_s.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Ure(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===Di.Attribute&&(o===0||Fre(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&_s.VALUE_LENGTH)>>14,o!==0){if(s===Tr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Di.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&_s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~_s.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case br.NamedEntity:return this.result!==0&&(this.decodeMode!==Di.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case br.NumericDecimal:return this.emitNumericEntity(0,2);case br.NumericHex:return this.emitNumericEntity(0,3);case br.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case br.EntityStart:return 0}}};function Ure(e,t,n,r){const a=(t&_s.BRANCH_LENGTH)>>7,o=t&_s.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const u=r-o;return u<0||u>=a?-1:e[n+u]-1}let s=n,c=s+a-1;for(;s<=c;){const u=s+c>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)c=u-1;else return e[u+a]}return-1}var Re;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Re||(Re={}));var wl;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(wl||(wl={}));var to;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(to||(to={}));var le;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(le||(le={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const jre=new Map([[le.A,_.A],[le.ADDRESS,_.ADDRESS],[le.ANNOTATION_XML,_.ANNOTATION_XML],[le.APPLET,_.APPLET],[le.AREA,_.AREA],[le.ARTICLE,_.ARTICLE],[le.ASIDE,_.ASIDE],[le.B,_.B],[le.BASE,_.BASE],[le.BASEFONT,_.BASEFONT],[le.BGSOUND,_.BGSOUND],[le.BIG,_.BIG],[le.BLOCKQUOTE,_.BLOCKQUOTE],[le.BODY,_.BODY],[le.BR,_.BR],[le.BUTTON,_.BUTTON],[le.CAPTION,_.CAPTION],[le.CENTER,_.CENTER],[le.CODE,_.CODE],[le.COL,_.COL],[le.COLGROUP,_.COLGROUP],[le.DD,_.DD],[le.DESC,_.DESC],[le.DETAILS,_.DETAILS],[le.DIALOG,_.DIALOG],[le.DIR,_.DIR],[le.DIV,_.DIV],[le.DL,_.DL],[le.DT,_.DT],[le.EM,_.EM],[le.EMBED,_.EMBED],[le.FIELDSET,_.FIELDSET],[le.FIGCAPTION,_.FIGCAPTION],[le.FIGURE,_.FIGURE],[le.FONT,_.FONT],[le.FOOTER,_.FOOTER],[le.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[le.FORM,_.FORM],[le.FRAME,_.FRAME],[le.FRAMESET,_.FRAMESET],[le.H1,_.H1],[le.H2,_.H2],[le.H3,_.H3],[le.H4,_.H4],[le.H5,_.H5],[le.H6,_.H6],[le.HEAD,_.HEAD],[le.HEADER,_.HEADER],[le.HGROUP,_.HGROUP],[le.HR,_.HR],[le.HTML,_.HTML],[le.I,_.I],[le.IMG,_.IMG],[le.IMAGE,_.IMAGE],[le.INPUT,_.INPUT],[le.IFRAME,_.IFRAME],[le.KEYGEN,_.KEYGEN],[le.LABEL,_.LABEL],[le.LI,_.LI],[le.LINK,_.LINK],[le.LISTING,_.LISTING],[le.MAIN,_.MAIN],[le.MALIGNMARK,_.MALIGNMARK],[le.MARQUEE,_.MARQUEE],[le.MATH,_.MATH],[le.MENU,_.MENU],[le.META,_.META],[le.MGLYPH,_.MGLYPH],[le.MI,_.MI],[le.MO,_.MO],[le.MN,_.MN],[le.MS,_.MS],[le.MTEXT,_.MTEXT],[le.NAV,_.NAV],[le.NOBR,_.NOBR],[le.NOFRAMES,_.NOFRAMES],[le.NOEMBED,_.NOEMBED],[le.NOSCRIPT,_.NOSCRIPT],[le.OBJECT,_.OBJECT],[le.OL,_.OL],[le.OPTGROUP,_.OPTGROUP],[le.OPTION,_.OPTION],[le.P,_.P],[le.PARAM,_.PARAM],[le.PLAINTEXT,_.PLAINTEXT],[le.PRE,_.PRE],[le.RB,_.RB],[le.RP,_.RP],[le.RT,_.RT],[le.RTC,_.RTC],[le.RUBY,_.RUBY],[le.S,_.S],[le.SCRIPT,_.SCRIPT],[le.SEARCH,_.SEARCH],[le.SECTION,_.SECTION],[le.SELECT,_.SELECT],[le.SOURCE,_.SOURCE],[le.SMALL,_.SMALL],[le.SPAN,_.SPAN],[le.STRIKE,_.STRIKE],[le.STRONG,_.STRONG],[le.STYLE,_.STYLE],[le.SUB,_.SUB],[le.SUMMARY,_.SUMMARY],[le.SUP,_.SUP],[le.TABLE,_.TABLE],[le.TBODY,_.TBODY],[le.TEMPLATE,_.TEMPLATE],[le.TEXTAREA,_.TEXTAREA],[le.TFOOT,_.TFOOT],[le.TD,_.TD],[le.TH,_.TH],[le.THEAD,_.THEAD],[le.TITLE,_.TITLE],[le.TR,_.TR],[le.TRACK,_.TRACK],[le.TT,_.TT],[le.U,_.U],[le.UL,_.UL],[le.SVG,_.SVG],[le.VAR,_.VAR],[le.WBR,_.WBR],[le.XMP,_.XMP]]);function Ru(e){var t;return(t=jre.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Le=_,Hre={[Re.HTML]:new Set([Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP]),[Re.MATHML]:new Set([Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML]),[Re.SVG]:new Set([Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC]),[Re.XLINK]:new Set,[Re.XML]:new Set,[Re.XMLNS]:new Set},oT=new Set([Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6]);le.STYLE,le.SCRIPT,le.XMP,le.IFRAME,le.NOEMBED,le.NOFRAMES,le.PLAINTEXT;const zre=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var Y;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Y||(Y={}));const Jn={DATA:Y.DATA,RCDATA:Y.RCDATA,RAWTEXT:Y.RAWTEXT,SCRIPT_DATA:Y.SCRIPT_DATA,PLAINTEXT:Y.PLAINTEXT,CDATA_SECTION:Y.CDATA_SECTION};function Vre(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function mf(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Gre(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function ys(e){return Gre(e)||mf(e)}function aR(e){return ys(e)||Vre(e)}function km(e){return e+32}function x4(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function oR(e){return x4(e)||e===V.SOLIDUS||e===V.GREATER_THAN_SIGN}function qre(e){return e===V.NULL?ve.nullCharacterReference:e>1114111?ve.characterReferenceOutsideUnicodeRange:S4(e)?ve.surrogateCharacterReference:C4(e)?ve.noncharacterCharacterReference:_4(e)||e===V.CARRIAGE_RETURN?ve.controlCharacterReference:null}let Wre=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Y.DATA,this.returnState=Y.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ire(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Bre(zre,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ve.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ve.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=qre(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:$t.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$t.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$t.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(A4(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ve.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ru(t.tagName),t.type===$t.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ve.endTagWithAttributes),t.selfClosing&&this._err(ve.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case $t.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $t.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $t.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:$t.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=x4(t)?$t.WHITESPACE_CHARACTER:t===V.NULL?$t.NULL_CHARACTER:$t.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($t.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=Y.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Di.Attribute:Di.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Y.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Y.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Y.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case Y.DATA:{this._stateData(t);break}case Y.RCDATA:{this._stateRcdata(t);break}case Y.RAWTEXT:{this._stateRawtext(t);break}case Y.SCRIPT_DATA:{this._stateScriptData(t);break}case Y.PLAINTEXT:{this._statePlaintext(t);break}case Y.TAG_OPEN:{this._stateTagOpen(t);break}case Y.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case Y.TAG_NAME:{this._stateTagName(t);break}case Y.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case Y.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case Y.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case Y.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case Y.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case Y.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case Y.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case Y.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case Y.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case Y.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case Y.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case Y.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case Y.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case Y.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case Y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case Y.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case Y.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case Y.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case Y.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case Y.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case Y.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case Y.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case Y.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case Y.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case Y.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case Y.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case Y.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case Y.BOGUS_COMMENT:{this._stateBogusComment(t);break}case Y.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case Y.COMMENT_START:{this._stateCommentStart(t);break}case Y.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case Y.COMMENT:{this._stateComment(t);break}case Y.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case Y.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case Y.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case Y.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case Y.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case Y.COMMENT_END:{this._stateCommentEnd(t);break}case Y.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case Y.DOCTYPE:{this._stateDoctype(t);break}case Y.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case Y.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case Y.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case Y.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case Y.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case Y.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case Y.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case Y.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case Y.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case Y.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case Y.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case Y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case Y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case Y.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case Y.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case Y.CDATA_SECTION:{this._stateCdataSection(t);break}case Y.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case Y.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case Y.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Y.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=Y.TAG_OPEN;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitCodePoint(t);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case V.AMPERSAND:{this._startCharacterReference();break}case V.LESS_THAN_SIGN:{this.state=Y.RCDATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case V.LESS_THAN_SIGN:{this.state=Y.RAWTEXT_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ys(t))this._createStartTagToken(),this.state=Y.TAG_NAME,this._stateTagName(t);else switch(t){case V.EXCLAMATION_MARK:{this.state=Y.MARKUP_DECLARATION_OPEN;break}case V.SOLIDUS:{this.state=Y.END_TAG_OPEN;break}case V.QUESTION_MARK:{this._err(ve.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Y.BOGUS_COMMENT,this._stateBogusComment(t);break}case V.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Y.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ys(t))this._createEndTagToken(),this.state=Y.TAG_NAME,this._stateTagName(t);else switch(t){case V.GREATER_THAN_SIGN:{this._err(ve.missingEndTagName),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Y.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this.state=Y.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.tagName+=Fn;break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(mf(t)?km(t):t)}}_stateRcdataLessThanSign(t){t===V.SOLIDUS?this.state=Y.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Y.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ys(t)?(this.state=Y.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Y.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Y.BEFORE_ATTRIBUTE_NAME,!1;case V.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Y.SELF_CLOSING_START_TAG,!1;case V.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Y.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Y.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===V.SOLIDUS?this.state=Y.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Y.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ys(t)?(this.state=Y.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Y.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Y.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case V.SOLIDUS:{this.state=Y.SCRIPT_DATA_END_TAG_OPEN;break}case V.EXCLAMATION_MARK:{this.state=Y.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Y.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ys(t)?(this.state=Y.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Y.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Y.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===V.HYPHEN_MINUS?(this.state=Y.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Y.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===V.HYPHEN_MINUS?(this.state=Y.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Y.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=Y.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=Y.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.state=Y.SCRIPT_DATA_ESCAPED,this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Y.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.GREATER_THAN_SIGN:{this.state=Y.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.state=Y.SCRIPT_DATA_ESCAPED,this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Y.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===V.SOLIDUS?this.state=Y.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ys(t)?(this._emitChars("<"),this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Y.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ys(t)?(this.state=Y.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Y.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Y.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(aa.SCRIPT,!1)&&oR(this.preprocessor.peek(aa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<aa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Y.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.GREATER_THAN_SIGN:{this.state=Y.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fn);break}case V.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===V.SOLIDUS?(this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(aa.SCRIPT,!1)&&oR(this.preprocessor.peek(aa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<aa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Y.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Y.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this.state=Y.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._err(ve.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Y.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Y.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this._leaveAttrName(),this.state=Y.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._leaveAttrName(),this.state=Y.BEFORE_ATTRIBUTE_VALUE;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:{this._err(ve.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.name+=Fn;break}default:this.currentAttr.name+=String.fromCodePoint(mf(t)?km(t):t)}}_stateAfterAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:{this.state=Y.SELF_CLOSING_START_TAG;break}case V.EQUALS_SIGN:{this.state=Y.BEFORE_ATTRIBUTE_VALUE;break}case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Y.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{this.state=Y.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this.state=Y.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingAttributeValue),this.state=Y.DATA,this.emitCurrentTagToken();break}default:this.state=Y.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case V.QUOTATION_MARK:{this.state=Y.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case V.APOSTROPHE:{this.state=Y.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=Y.BEFORE_ATTRIBUTE_NAME;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Y.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:case V.EQUALS_SIGN:case V.GRAVE_ACCENT:{this._err(ve.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=Y.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this._leaveAttrValue(),this.state=Y.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Y.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBetweenAttributes),this.state=Y.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case V.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=Y.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.unexpectedSolidusInTag),this.state=Y.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentComment(n);break}case V.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=Fn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(aa.DASH_DASH,!0)?(this._createCommentToken(aa.DASH_DASH.length+1),this.state=Y.COMMENT_START):this._consumeSequenceIfMatch(aa.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(aa.DOCTYPE.length+1),this.state=Y.DOCTYPE):this._consumeSequenceIfMatch(aa.CDATA_START,!0)?this.inForeignNode?this.state=Y.CDATA_SECTION:(this._err(ve.cdataInHtmlContent),this._createCommentToken(aa.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Y.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ve.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Y.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case V.HYPHEN_MINUS:{this.state=Y.COMMENT_START_DASH;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=Y.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=Y.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=Y.COMMENT_END;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=Y.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Y.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=Y.COMMENT_END_DASH;break}case V.LESS_THAN_SIGN:{n.data+="<",this.state=Y.COMMENT_LESS_THAN_SIGN;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=Fn;break}case V.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case V.EXCLAMATION_MARK:{n.data+="!",this.state=Y.COMMENT_LESS_THAN_SIGN_BANG;break}case V.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=Y.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===V.HYPHEN_MINUS?this.state=Y.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Y.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===V.HYPHEN_MINUS?this.state=Y.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Y.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(ve.nestedComment),this.state=Y.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=Y.COMMENT_END;break}case V.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Y.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentComment(n);break}case V.EXCLAMATION_MARK:{this.state=Y.COMMENT_END_BANG;break}case V.HYPHEN_MINUS:{n.data+="-";break}case V.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=Y.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{n.data+="--!",this.state=Y.COMMENT_END_DASH;break}case V.GREATER_THAN_SIGN:{this._err(ve.incorrectlyClosedComment),this.state=Y.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=Y.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.BEFORE_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=Y.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case V.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBeforeDoctypeName),this.state=Y.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(mf(t))this._createDoctypeToken(String.fromCharCode(km(t))),this.state=Y.DOCTYPE_NAME;else switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.NULL:{this._err(ve.unexpectedNullCharacter),this._createDoctypeToken(Fn),this.state=Y.DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Y.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.AFTER_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.name+=Fn;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(mf(t)?km(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(aa.PUBLIC,!1)?this.state=Y.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(aa.SYSTEM,!1)?this.state=Y.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ve.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Y.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Y.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.publicId="",this.state=Y.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.publicId="",this.state=Y.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=Y.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=Fn;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case V.APOSTROPHE:{this.state=Y.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=Fn;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case V.GREATER_THAN_SIGN:{this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.QUOTATION_MARK:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.QUOTATION_MARK:{n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=Y.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=Y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=Y.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=Fn;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case V.APOSTROPHE:{this.state=Y.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=Fn;break}case V.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Y.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Y.DATA;break}case V.NULL:{this._err(ve.unexpectedNullCharacter);break}case V.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case V.RIGHT_SQUARE_BRACKET:{this.state=Y.CDATA_SECTION_BRACKET;break}case V.EOF:{this._err(ve.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===V.RIGHT_SQUARE_BRACKET?this.state=Y.CDATA_SECTION_END:(this._emitChars("]"),this.state=Y.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case V.GREATER_THAN_SIGN:{this.state=Y.DATA;break}case V.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Y.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(V.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&aR(this.preprocessor.peek(1))?Y.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){aR(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===V.SEMICOLON&&this._err(ve.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const w4=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),iR=new Set([...w4,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),zg=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),Yre=new Set([...zg,_.OL,_.UL]),Qre=new Set([...zg,_.BUTTON]),sR=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),lR=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),Kre=new Set([_.TR,_.TEMPLATE,_.HTML]),Xre=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),Zre=new Set([_.TABLE,_.TEMPLATE,_.HTML]),Jre=new Set([_.TD,_.TH]);let eae=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Re.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Re.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(oT,Re.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jre,Re.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Zre,Re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Xre,Re.HTML)}clearBackToTableRowContext(){this.clearBackTo(Kre,Re.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Re.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Re.SVG:{if(lR.has(a))return!1;break}case Re.MATHML:{if(sR.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,zg)}hasInListItemScope(t){return this.hasInDynamicScope(t,Yre)}hasInButtonScope(t){return this.hasInDynamicScope(t,Qre)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Re.HTML:{if(oT.has(n))return!0;if(zg.has(n))return!1;break}case Re.SVG:{if(lR.has(n))return!1;break}case Re.MATHML:{if(sR.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Re.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&w4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&iR.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&iR.has(this.currentTagId);)this.pop()}};var zo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zo||(zo={}));const cR={type:zo.Marker};let tae=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const u=this.entries[c];if(u.type===zo.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===o&&this.treeAdapter.getNamespaceURI(d)===s){const p=this.treeAdapter.getAttrList(d);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(s=>[s.name,s.value]));let o=0;for(let s=0;s<r.length;s++){const c=r[s];c.attrs.every(u=>a.get(u.name)===u.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(cR)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:zo.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:zo.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(cR);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===zo.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===zo.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===zo.Element&&n.element===t)}};const vs={createDocument(){return{nodeName:"#document",mode:to.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};vs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(vs.isTextNode(n)){n.value+=t;return}}vs.appendChild(e,vs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&vs.isTextNode(r)?r.value+=t:vs.insertBefore(e,vs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},k4="html",nae="about:legacy-compat",rae="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",D4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aae=[...D4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oae=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),R4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],iae=[...R4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function uR(e,t){return t.some(n=>e.startsWith(n))}function sae(e){return e.name===k4&&e.publicId===null&&(e.systemId===null||e.systemId===nae)}function lae(e){if(e.name!==k4)return to.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===rae)return to.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),oae.has(n))return to.QUIRKS;let r=t===null?aae:D4;if(uR(n,r))return to.QUIRKS;if(r=t===null?R4:iae,uR(n,r))return to.LIMITED_QUIRKS}return to.NO_QUIRKS}const dR={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},cae="definitionurl",uae="definitionURL",dae=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),fae=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Re.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Re.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Re.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Re.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Re.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Re.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Re.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Re.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Re.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Re.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Re.XMLNS}]]),pae=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),hae=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function mae(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:n})=>n===wl.COLOR||n===wl.SIZE||n===wl.FACE)||hae.has(t)}function O4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===cae){e.attrs[t].name=uae;break}}function I4(e){for(let t=0;t<e.attrs.length;t++){const n=dae.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function c_(e){for(let t=0;t<e.attrs.length;t++){const n=fae.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function gae(e){const t=pae.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ru(e.tagName))}function yae(e,t){return t===Re.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function vae(e,t,n){if(t===Re.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===wl.ENCODING){const a=n[r].value.toLowerCase();return a===dR.TEXT_HTML||a===dR.APPLICATION_XML}}return t===Re.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function bae(e,t,n,r){return(!r||r===Re.HTML)&&vae(e,t,n)||(!r||r===Re.MATHML)&&yae(e,t)}const Eae="hidden",Tae=8,Sae=3;var K;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(K||(K={}));const _ae={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},N4=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),fR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vs,onParseError:null};class pR{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=K.INITIAL,this.originalInsertionMode=K.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...fR,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Wre(this.options,this),this.activeFormattingElements=new tae(this.treeAdapter),this.fragmentContextID=r?Ru(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new eae(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...fR,...n};t??(t=r.treeAdapter.createElement(le.TEMPLATE,Re.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Re.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===_.TEMPLATE&&o.tmplInsertionModeStack.unshift(K.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:_ae,s={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Re.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=K.TEXT}switchToPlaintextParsing(){this.insertionMode=K.TEXT,this.originalInsertionMode=K.IN_BODY,this.tokenizer.state=Jn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===le.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Re.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=Jn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=Jn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=Jn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=Jn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Re.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Re.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(le.HTML,Re.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,s=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===$t.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===le.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Re.HTML)}_processToken(t){switch(t.type){case $t.CHARACTER:{this.onCharacter(t);break}case $t.NULL_CHARACTER:{this.onNullCharacter(t);break}case $t.COMMENT:{this.onComment(t);break}case $t.DOCTYPE:{this.onDoctype(t);break}case $t.START_TAG:{this._processStartTag(t);break}case $t.END_TAG:{this.onEndTag(t);break}case $t.EOF:{this.onEof(t);break}case $t.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return bae(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===zo.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=K.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=K.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=K.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=K.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=K.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=K.IN_TABLE;return}case _.BODY:{this.insertionMode=K.IN_BODY;return}case _.FRAMESET:{this.insertionMode=K.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?K.AFTER_HEAD:K.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=K.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=K.IN_HEAD;return}break}}this.insertionMode=K.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=K.IN_SELECT_IN_TABLE;return}}this.insertionMode=K.IN_SELECT}_isElementCausesFosterParenting(t){return N4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Re.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Hre[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Joe(this,t);return}switch(this.insertionMode){case K.INITIAL:{Kd(this,t);break}case K.BEFORE_HTML:{wf(this,t);break}case K.BEFORE_HEAD:{kf(this,t);break}case K.IN_HEAD:{Df(this,t);break}case K.IN_HEAD_NO_SCRIPT:{Rf(this,t);break}case K.AFTER_HEAD:{Of(this,t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:{P4(this,t);break}case K.TEXT:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{Ab(this,t);break}case K.IN_TABLE_TEXT:{j4(this,t);break}case K.IN_COLUMN_GROUP:{Vg(this,t);break}case K.AFTER_BODY:{Gg(this,t);break}case K.AFTER_AFTER_BODY:{eg(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zoe(this,t);return}switch(this.insertionMode){case K.INITIAL:{Kd(this,t);break}case K.BEFORE_HTML:{wf(this,t);break}case K.BEFORE_HEAD:{kf(this,t);break}case K.IN_HEAD:{Df(this,t);break}case K.IN_HEAD_NO_SCRIPT:{Rf(this,t);break}case K.AFTER_HEAD:{Of(this,t);break}case K.TEXT:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{Ab(this,t);break}case K.IN_COLUMN_GROUP:{Vg(this,t);break}case K.AFTER_BODY:{Gg(this,t);break}case K.AFTER_AFTER_BODY:{eg(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){iT(this,t);return}switch(this.insertionMode){case K.INITIAL:case K.BEFORE_HTML:case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_TEMPLATE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{iT(this,t);break}case K.IN_TABLE_TEXT:{Xd(this,t);break}case K.AFTER_BODY:{Rae(this,t);break}case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{Oae(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case K.INITIAL:{Iae(this,t);break}case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:{this._err(t,ve.misplacedDoctype);break}case K.IN_TABLE_TEXT:{Xd(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ve.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?eie(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{Kd(this,t);break}case K.BEFORE_HTML:{Nae(this,t);break}case K.BEFORE_HEAD:{Pae(this,t);break}case K.IN_HEAD:{Ao(this,t);break}case K.IN_HEAD_NO_SCRIPT:{Fae(this,t);break}case K.AFTER_HEAD:{Uae(this,t);break}case K.IN_BODY:{Fr(this,t);break}case K.IN_TABLE:{yu(this,t);break}case K.IN_TABLE_TEXT:{Xd(this,t);break}case K.IN_CAPTION:{Moe(this,t);break}case K.IN_COLUMN_GROUP:{f_(this,t);break}case K.IN_TABLE_BODY:{ny(this,t);break}case K.IN_ROW:{ry(this,t);break}case K.IN_CELL:{Boe(this,t);break}case K.IN_SELECT:{V4(this,t);break}case K.IN_SELECT_IN_TABLE:{joe(this,t);break}case K.IN_TEMPLATE:{zoe(this,t);break}case K.AFTER_BODY:{Goe(this,t);break}case K.IN_FRAMESET:{qoe(this,t);break}case K.AFTER_FRAMESET:{Yoe(this,t);break}case K.AFTER_AFTER_BODY:{Koe(this,t);break}case K.AFTER_AFTER_FRAMESET:{Xoe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?tie(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{Kd(this,t);break}case K.BEFORE_HTML:{Lae(this,t);break}case K.BEFORE_HEAD:{Mae(this,t);break}case K.IN_HEAD:{$ae(this,t);break}case K.IN_HEAD_NO_SCRIPT:{Bae(this,t);break}case K.AFTER_HEAD:{jae(this,t);break}case K.IN_BODY:{ty(this,t);break}case K.TEXT:{xoe(this,t);break}case K.IN_TABLE:{ip(this,t);break}case K.IN_TABLE_TEXT:{Xd(this,t);break}case K.IN_CAPTION:{$oe(this,t);break}case K.IN_COLUMN_GROUP:{Foe(this,t);break}case K.IN_TABLE_BODY:{sT(this,t);break}case K.IN_ROW:{z4(this,t);break}case K.IN_CELL:{Uoe(this,t);break}case K.IN_SELECT:{G4(this,t);break}case K.IN_SELECT_IN_TABLE:{Hoe(this,t);break}case K.IN_TEMPLATE:{Voe(this,t);break}case K.AFTER_BODY:{W4(this,t);break}case K.IN_FRAMESET:{Woe(this,t);break}case K.AFTER_FRAMESET:{Qoe(this,t);break}case K.AFTER_AFTER_BODY:{eg(this,t);break}}}onEof(t){switch(this.insertionMode){case K.INITIAL:{Kd(this,t);break}case K.BEFORE_HTML:{wf(this,t);break}case K.BEFORE_HEAD:{kf(this,t);break}case K.IN_HEAD:{Df(this,t);break}case K.IN_HEAD_NO_SCRIPT:{Rf(this,t);break}case K.AFTER_HEAD:{Of(this,t);break}case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{B4(this,t);break}case K.TEXT:{woe(this,t);break}case K.IN_TABLE_TEXT:{Xd(this,t);break}case K.IN_TEMPLATE:{q4(this,t);break}case K.AFTER_BODY:case K.IN_FRAMESET:case K.AFTER_FRAMESET:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{d_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===V.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.TEXT:case K.IN_COLUMN_GROUP:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{this._insertCharacters(t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:case K.AFTER_BODY:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{L4(this,t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{Ab(this,t);break}case K.IN_TABLE_TEXT:{U4(this,t);break}}}}function Cae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):F4(e,t),n}function Aae(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function xae(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,s=a;s!==n;o++,s=a){a=e.openElements.getCommonAncestor(s);const c=e.activeFormattingElements.getElementEntry(s),u=c&&o>=Sae;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=wae(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function wae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kae(e,t,n){const r=e.treeAdapter.getTagName(t),a=Ru(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&o===Re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Dae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function u_(e,t){for(let n=0;n<Tae;n++){const r=Cae(e,t);if(!r)break;const a=Aae(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=xae(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&kae(e,s,o),Dae(e,a,r)}}function iT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Rae(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Oae(e,t){e._appendCommentNode(t,e.document)}function d_(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function Iae(e,t){e._setDocumentType(t);const n=t.forceQuirks?to.QUIRKS:lae(t);sae(t)||e._err(t,ve.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=K.BEFORE_HTML}function Kd(e,t){e._err(t,ve.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,to.QUIRKS),e.insertionMode=K.BEFORE_HTML,e._processToken(t)}function Nae(e,t){t.tagID===_.HTML?(e._insertElement(t,Re.HTML),e.insertionMode=K.BEFORE_HEAD):wf(e,t)}function Lae(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&wf(e,t)}function wf(e,t){e._insertFakeRootElement(),e.insertionMode=K.BEFORE_HEAD,e._processToken(t)}function Pae(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.HEAD:{e._insertElement(t,Re.HTML),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD;break}default:kf(e,t)}}function Mae(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?kf(e,t):e._err(t,ve.endTagWithoutMatchingOpenElement)}function kf(e,t){e._insertFakeElement(le.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD,e._processToken(t)}function Ao(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,Jn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Jn.RAWTEXT):(e._insertElement(t,Re.HTML),e.insertionMode=K.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,Jn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,Jn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=K.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(K.IN_TEMPLATE);break}case _.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:Df(e,t)}}function $ae(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=K.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{Df(e,t);break}case _.TEMPLATE:{Vl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Vl(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,ve.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ve.endTagWithoutMatchingOpenElement)}function Df(e,t){e.openElements.pop(),e.insertionMode=K.AFTER_HEAD,e._processToken(t)}function Fae(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Ao(e,t);break}case _.NOSCRIPT:{e._err(t,ve.nestedNoscriptInHead);break}default:Rf(e,t)}}function Bae(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=K.IN_HEAD;break}case _.BR:{Rf(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Rf(e,t){const n=t.type===$t.EOF?ve.openElementsLeftAfterEof:ve.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=K.IN_HEAD,e._processToken(t)}function Uae(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.BODY:{e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=K.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,Re.HTML),e.insertionMode=K.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,ve.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Ao(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:Of(e,t)}}function jae(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{Of(e,t);break}case _.TEMPLATE:{Vl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Of(e,t){e._insertFakeElement(le.BODY,_.BODY),e.insertionMode=K.IN_BODY,ey(e,t)}function ey(e,t){switch(t.type){case $t.CHARACTER:{P4(e,t);break}case $t.WHITESPACE_CHARACTER:{L4(e,t);break}case $t.COMMENT:{iT(e,t);break}case $t.START_TAG:{Fr(e,t);break}case $t.END_TAG:{ty(e,t);break}case $t.EOF:{B4(e,t);break}}}function L4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function P4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Hae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function zae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_FRAMESET)}function Gae(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function qae(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&oT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Re.HTML)}function Wae(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Yae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML),n||(e.formElement=e.openElements.current))}function Qae(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Kae(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.tokenizer.state=Jn.PLAINTEXT}function Xae(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1}function Zae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(le.A);n&&(u_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Jae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eoe(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(u_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function toe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function noe(e,t){e.treeAdapter.getDocumentMode(e.document)!==to.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=K.IN_TABLE}function M4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $4(e){const t=A4(e,wl.TYPE);return t!=null&&t.toLowerCase()===Eae}function roe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),$4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function aoe(e,t){e._appendElement(t,Re.HTML),t.ackSelfClosing=!0}function ooe(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ioe(e,t){t.tagName=le.IMG,t.tagID=_.IMG,M4(e,t)}function soe(e,t){e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=K.TEXT}function loe(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jn.RAWTEXT)}function coe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jn.RAWTEXT)}function hR(e,t){e._switchToTextParsing(t,Jn.RAWTEXT)}function uoe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===K.IN_TABLE||e.insertionMode===K.IN_CAPTION||e.insertionMode===K.IN_TABLE_BODY||e.insertionMode===K.IN_ROW||e.insertionMode===K.IN_CELL?K.IN_SELECT_IN_TABLE:K.IN_SELECT}function doe(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function foe(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Re.HTML)}function poe(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,Re.HTML)}function hoe(e,t){e._reconstructActiveFormattingElements(),O4(t),c_(t),t.selfClosing?e._appendElement(t,Re.MATHML):e._insertElement(t,Re.MATHML),t.ackSelfClosing=!0}function moe(e,t){e._reconstructActiveFormattingElements(),I4(t),c_(t),t.selfClosing?e._appendElement(t,Re.SVG):e._insertElement(t,Re.SVG),t.ackSelfClosing=!0}function mR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Fr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{Jae(e,t);break}case _.A:{Zae(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{qae(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{Gae(e,t);break}case _.LI:case _.DD:case _.DT:{Qae(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{M4(e,t);break}case _.HR:{ooe(e,t);break}case _.RB:case _.RTC:{foe(e,t);break}case _.RT:case _.RP:{poe(e,t);break}case _.PRE:case _.LISTING:{Wae(e,t);break}case _.XMP:{loe(e,t);break}case _.SVG:{moe(e,t);break}case _.HTML:{Hae(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Ao(e,t);break}case _.BODY:{zae(e,t);break}case _.FORM:{Yae(e,t);break}case _.NOBR:{eoe(e,t);break}case _.MATH:{hoe(e,t);break}case _.TABLE:{noe(e,t);break}case _.INPUT:{roe(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{aoe(e,t);break}case _.IMAGE:{ioe(e,t);break}case _.BUTTON:{Xae(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{toe(e,t);break}case _.IFRAME:{coe(e,t);break}case _.SELECT:{uoe(e,t);break}case _.OPTION:case _.OPTGROUP:{doe(e,t);break}case _.NOEMBED:case _.NOFRAMES:{hR(e,t);break}case _.FRAMESET:{Vae(e,t);break}case _.TEXTAREA:{soe(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?hR(e,t):mR(e,t);break}case _.PLAINTEXT:{Kae(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:mR(e,t)}}function goe(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=K.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function yoe(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=K.AFTER_BODY,W4(e,t))}function voe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function boe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function Eoe(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(le.P,_.P),e._closePElement()}function Toe(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function Soe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function _oe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Coe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Aoe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(le.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function F4(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,s))break}}function ty(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{u_(e,t);break}case _.P:{Eoe(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{voe(e,t);break}case _.LI:{Toe(e);break}case _.DD:case _.DT:{Soe(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{_oe(e);break}case _.BR:{Aoe(e);break}case _.BODY:{goe(e,t);break}case _.HTML:{yoe(e,t);break}case _.FORM:{boe(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{Coe(e,t);break}case _.TEMPLATE:{Vl(e,t);break}default:F4(e,t)}}function B4(e,t){e.tmplInsertionModeStack.length>0?q4(e,t):d_(e,t)}function xoe(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function woe(e,t){e._err(t,ve.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ab(e,t){if(e.openElements.currentTagId!==void 0&&N4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=K.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{j4(e,t);break}case $t.WHITESPACE_CHARACTER:{U4(e,t);break}}else Vp(e,t)}function koe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_CAPTION}function Doe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_COLUMN_GROUP}function Roe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.COLGROUP,_.COLGROUP),e.insertionMode=K.IN_COLUMN_GROUP,f_(e,t)}function Ooe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_TABLE_BODY}function Ioe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.TBODY,_.TBODY),e.insertionMode=K.IN_TABLE_BODY,ny(e,t)}function Noe(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Loe(e,t){$4(t)?e._appendElement(t,Re.HTML):Vp(e,t),t.ackSelfClosing=!0}function Poe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function yu(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{Ioe(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Ao(e,t);break}case _.COL:{Roe(e,t);break}case _.FORM:{Poe(e,t);break}case _.TABLE:{Noe(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{Ooe(e,t);break}case _.INPUT:{Loe(e,t);break}case _.CAPTION:{koe(e,t);break}case _.COLGROUP:{Doe(e,t);break}default:Vp(e,t)}}function ip(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{Vl(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Vp(e,t)}}function Vp(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ey(e,t),e.fosterParentingEnabled=n}function U4(e,t){e.pendingCharacterTokens.push(t)}function j4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Vp(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const H4=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function Moe(e,t){const n=t.tagID;H4.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,yu(e,t)):Fr(e,t)}function $oe(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,n===_.TABLE&&ip(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:ty(e,t)}}function f_(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.COL:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Ao(e,t);break}default:Vg(e,t)}}function Foe(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case _.TEMPLATE:{Vl(e,t);break}case _.COL:break;default:Vg(e,t)}}function Vg(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE,e._processToken(t))}function ny(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(le.TR,_.TR),e.insertionMode=K.IN_ROW,ry(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,yu(e,t));break}default:yu(e,t)}}function sT(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,ip(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:ip(e,t)}}function ry(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Re.HTML),e.insertionMode=K.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,ny(e,t));break}default:yu(e,t)}}function z4(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,sT(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,sT(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:ip(e,t)}}function Boe(e,t){const n=t.tagID;H4.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),ry(e,t)):Fr(e,t)}function Uoe(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),z4(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:ty(e,t)}}function V4(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Ao(e,t);break}}}function G4(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{Vl(e,t);break}}}function joe(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):V4(e,t)}function Hoe(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):G4(e,t)}function zoe(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Ao(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=K.IN_TABLE,e.insertionMode=K.IN_TABLE,yu(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=K.IN_COLUMN_GROUP,e.insertionMode=K.IN_COLUMN_GROUP,f_(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=K.IN_TABLE_BODY,e.insertionMode=K.IN_TABLE_BODY,ny(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=K.IN_ROW,e.insertionMode=K.IN_ROW,ry(e,t);break}default:e.tmplInsertionModeStack[0]=K.IN_BODY,e.insertionMode=K.IN_BODY,Fr(e,t)}}function Voe(e,t){t.tagID===_.TEMPLATE&&Vl(e,t)}function q4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):d_(e,t)}function Goe(e,t){t.tagID===_.HTML?Fr(e,t):Gg(e,t)}function W4(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=K.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Gg(e,t)}function Gg(e,t){e.insertionMode=K.IN_BODY,ey(e,t)}function qoe(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.FRAMESET:{e._insertElement(t,Re.HTML);break}case _.FRAME:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Ao(e,t);break}}}function Woe(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=K.AFTER_FRAMESET))}function Yoe(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.NOFRAMES:{Ao(e,t);break}}}function Qoe(e,t){t.tagID===_.HTML&&(e.insertionMode=K.AFTER_AFTER_FRAMESET)}function Koe(e,t){t.tagID===_.HTML?Fr(e,t):eg(e,t)}function eg(e,t){e.insertionMode=K.IN_BODY,ey(e,t)}function Xoe(e,t){switch(t.tagID){case _.HTML:{Fr(e,t);break}case _.NOFRAMES:{Ao(e,t);break}}}function Zoe(e,t){t.chars=Fn,e._insertCharacters(t)}function Joe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Y4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Re.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function eie(e,t){if(mae(t))Y4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Re.MATHML?O4(t):r===Re.SVG&&(gae(t),I4(t)),c_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function tie(e,t){if(t.tagID===_.P||t.tagID===_.BR){Y4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Re.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}le.AREA,le.BASE,le.BASEFONT,le.BGSOUND,le.BR,le.COL,le.EMBED,le.FRAME,le.HR,le.IMG,le.INPUT,le.KEYGEN,le.LINK,le.META,le.PARAM,le.SOURCE,le.TRACK,le.WBR;const Tl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},gR=/[#.]/g;function nie(e,t){const n=e||"",r={};let a=0,o,s;for(;a<n.length;){gR.lastIndex=a;const c=gR.exec(n),u=n.slice(a,c?c.index:n.length);u&&(o?o==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),c&&(o=c[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function Q4(e,t,n){const r=n?iie(n):void 0;function a(o,s,...c){let u;if(o==null){u={type:"root",children:[]};const d=s;c.unshift(d)}else{u=nie(o,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,rie(s))c.unshift(s);else for(const[h,y]of Object.entries(s))aie(e,u.properties,h,y)}for(const d of c)lT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function rie(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const s of o)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function aie(e,t,n,r){const a=$p(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=VE(r):a.commaSeparated?o=zE(r):a.commaOrSpaceSeparated?o=VE(zE(r).join(" ")):o=yR(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?oie(r):String(r);if(Array.isArray(o)){const s=[];for(const c of o)s.push(yR(a,a.property,c));o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function lT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)lT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?lT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yR(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||np(n)===np(t)))return!0}return n}function oie(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function iie(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const sie=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],lie=Q4(xu,"div"),cie=Q4(Bi,"g",sie);function uie(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let s=0;for(;;){let c=n[s];if(c===void 0){const u=vR(t,n[s-1]);c=u===-1?t.length+1:u+1,n[s]=c}if(c>o)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o};s++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],u=vR(t,c),d=u===-1?t.length+1:u+1;if(c===d)break;n.push(d)}const s=(o.line>1?n[o.line-2]:0)+o.column-1;if(s<n[o.line-1])return s}}}function vR(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
273
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const K4={}.hasOwnProperty,die=Object.prototype;function fie(e,t){const n=t||{};return p_({file:n.file||void 0,location:!1,schema:n.space==="svg"?Bi:xu,verbose:n.verbose||!1},e)}function p_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tg(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:X4(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),s=uie(o),c=s.toPoint(0),u=s.toPoint(o.length);n.position={start:c,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tg(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tg(e,r,n),n}default:return n=pie(e,t),n}}function X4(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=p_(e,t[n]);r.push(a)}return r}function pie(e,t){const n=e.schema;e.schema=t.namespaceURI===Tl.svg?Bi:xu;let r=-1;const a={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;K4.call(die,c)||(a[c]=s.value)}const o=(e.schema.space==="svg"?cie:lie)(t.tagName,a,X4(e,t.childNodes));if(tg(e,t,o),o.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&Qc(c.startTag),d=c&&c.endTag&&Qc(c.endTag),p=p_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),o.content=p}return e.schema=n,o}function tg(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=hie(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function hie(e,t,n){const r=Qc(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)K4.call(n.attrs,s)&&(o[$p(e.schema,s).property]=Qc(n.attrs[s]));n.startTag;const c=Qc(n.startTag),u=n.endTag?Qc(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=o,t.data={position:d}}}return r}function Qc(e){const t=bR({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=bR({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function bR(e){return e.line&&e.column?e:void 0}let Gp=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Gp.prototype.property={};Gp.prototype.normal={};Gp.prototype.space=null;function Z4(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Gp(n,r,t)}function cT(e){return e.toLowerCase()}let fo=class{constructor(t,n){this.property=t,this.attribute=n}};fo.prototype.space=null;fo.prototype.boolean=!1;fo.prototype.booleanish=!1;fo.prototype.overloadedBoolean=!1;fo.prototype.number=!1;fo.prototype.commaSeparated=!1;fo.prototype.spaceSeparated=!1;fo.prototype.commaOrSpaceSeparated=!1;fo.prototype.mustUseProperty=!1;fo.prototype.defined=!1;let mie=0;const xt=Gl(),ir=Gl(),J4=Gl(),Fe=Gl(),On=Gl(),au=Gl(),xa=Gl();function Gl(){return 2**++mie}const uT=Object.freeze(Object.defineProperty({__proto__:null,boolean:xt,booleanish:ir,commaOrSpaceSeparated:xa,commaSeparated:au,number:Fe,overloadedBoolean:J4,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),xb=Object.keys(uT);let h_=class extends fo{constructor(t,n,r,a){let o=-1;if(super(t,n),ER(this,"space",a),typeof r=="number")for(;++o<xb.length;){const s=xb[o];ER(this,xb[o],(r&uT[s])===uT[s])}}};h_.prototype.defined=!0;function ER(e,t,n){n&&(e[t]=n)}const gie={}.hasOwnProperty;function Ou(e){const t={},n={};let r;for(r in e.properties)if(gie.call(e.properties,r)){const a=e.properties[r],o=new h_(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[cT(r)]=r,n[cT(o.attribute)]=r}return new Gp(t,n,e.space)}const eL=Ou({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tL=Ou({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nL(e,t){return t in e?e[t]:t}function rL(e,t){return nL(e,t.toLowerCase())}const aL=Ou({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rL,properties:{xmlns:null,xmlnsXLink:null}}),oL=Ou({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ir,ariaAutoComplete:null,ariaBusy:ir,ariaChecked:ir,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:ir,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:ir,ariaFlowTo:On,ariaGrabbed:ir,ariaHasPopup:null,ariaHidden:ir,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:Fe,ariaLive:null,ariaModal:ir,ariaMultiLine:ir,ariaMultiSelectable:ir,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:ir,ariaReadOnly:ir,ariaRelevant:null,ariaRequired:ir,ariaRoleDescription:On,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:ir,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),yie=Ou({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rL,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:au,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:xt,allowPaymentRequest:xt,allowUserMedia:xt,alt:null,as:null,async:xt,autoCapitalize:null,autoComplete:On,autoFocus:xt,autoPlay:xt,blocking:On,capture:null,charSet:null,checked:xt,cite:null,className:On,cols:Fe,colSpan:null,content:null,contentEditable:ir,controls:xt,controlsList:On,coords:Fe|au,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xt,defer:xt,dir:null,dirName:null,disabled:xt,download:J4,draggable:ir,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xt,formTarget:null,headers:On,height:Fe,hidden:xt,high:Fe,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:xt,inputMode:null,integrity:null,is:null,isMap:xt,itemId:null,itemProp:On,itemRef:On,itemScope:xt,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xt,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:xt,muted:xt,name:null,nonce:null,noModule:xt,noValidate:xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xt,optimum:Fe,pattern:null,ping:On,placeholder:null,playsInline:xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xt,referrerPolicy:null,rel:On,required:xt,reversed:xt,rows:Fe,rowSpan:Fe,sandbox:On,scope:null,scoped:xt,seamless:xt,selected:xt,shadowRootClonable:xt,shadowRootDelegatesFocus:xt,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:ir,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:xt,useMap:null,value:ir,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xt,declare:xt,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:xt,noHref:xt,noShade:xt,noWrap:xt,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:ir,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xt,disableRemotePlayback:xt,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),vie=Ou({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:nL,properties:{about:xa,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:On,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:au,g2:au,glyphName:au,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:xa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xa,rev:xa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xa,requiredFeatures:xa,requiredFonts:xa,requiredFormats:xa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:xa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xa,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),bie=Z4([tL,eL,aL,oL,yie],"html"),iL=Z4([tL,eL,aL,oL,vie],"svg"),Eie=/^data[-\w.:]+$/i,TR=/-[a-z]/g,Tie=/[A-Z]/g;function Sie(e,t){const n=cT(t);let r=t,a=fo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Eie.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(TR,Cie);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!TR.test(o)){let s=o.replace(Tie,_ie);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=h_}return new a(r,t)}function _ie(e){return"-"+e.toLowerCase()}function Cie(e){return e.charAt(1).toUpperCase()}const Aie={},xie={}.hasOwnProperty,sL=M0("type",{handlers:{root:kie,element:Nie,text:Oie,comment:Iie,doctype:Rie}});function wie(e,t){const n=(t||Aie).space;return sL(e,n==="svg"?iL:bie)}function kie(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=m_(e.children,n,t),Iu(e,n),n}function Die(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=m_(e.children,n,t),Iu(e,n),n}function Rie(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Iu(e,t),t}function Oie(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Iu(e,t),t}function Iie(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Iu(e,t),t}function Nie(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=iL);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&xie.call(e.properties,o)){const u=Lie(r,o,e.properties[o]);u&&a.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Tl[s],childNodes:[],parentNode:null};return c.childNodes=m_(e.children,c,r),Iu(e,c),e.tagName==="template"&&e.content&&(c.content=Die(e.content,r)),c}function Lie(e,t,n){const r=Sie(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?$0(n):F0(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=Tl[r.space]}return a}function m_(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=sL(e[r],n);o.parentNode=t,a.push(o)}return a}function Iu(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Pie=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Mie=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),SR={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function lL(e,t){const n=qie(e),r=M0("type",{handlers:{root:$ie,element:Fie,text:Bie,comment:uL,doctype:Uie,raw:Hie},unknown:zie}),a={parser:n?new pR(SR):pR.getFragmentParser(void 0,SR),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),Nu(a,ni());const o=n?a.parser.document:a.parser.getFragment(),s=fie(o,{file:a.options.file});return a.stitches&&pa(s,"comment",function(c,u,d){const p=c;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function cL(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $ie(e,t){cL(e.children,t)}function Fie(e,t){Vie(e,t),cL(e.children,t),Gie(e,t)}function Bie(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:qp(e)};Nu(t,ni(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Uie(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:qp(e)};Nu(t,ni(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jie(e,t){t.stitches=!0;const n=Wie(e);if("children"in e&&"children"in n){const r=lL({type:"root",children:e.children},t.options);n.children=r.children}uL({type:"comment",value:{stitch:n}},t)}function uL(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:qp(e)};Nu(t,ni(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Hie(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,dL(t,ni(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Pie,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function zie(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))jie(n,t);else{let r="";throw Mie.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Nu(e,t){dL(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Jn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function dL(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Vie(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Jn.PLAINTEXT)return;Nu(t,ni(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Tl.html;a===Tl.html&&n==="svg"&&(a=Tl.svg);const o=wie({...e,children:[]},{space:a===Tl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:Ru(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:qp(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Gie(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&kN.includes(n)||t.parser.tokenizer.state===Jn.PLAINTEXT)return;Nu(t,J0(e));const r={type:$t.END_TAG,tagName:n,tagID:Ru(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:qp(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Jn.RCDATA||t.parser.tokenizer.state===Jn.RAWTEXT||t.parser.tokenizer.state===Jn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Jn.DATA)}function qie(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function qp(e){const t=ni(e)||{line:void 0,column:void 0,offset:void 0},n=J0(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Wie(e){return"children"in e?Fl({...e,children:[]}):Fl(e)}function Yie(e){return function(t,n){return lL(t,{...e,file:n})}}var Qie=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Kie=e=>e;const Xie=Tt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:s=!1,skipHtml:c=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:y={},urlTransform:g}=e,b=Nr(e,Qie),E=Tt.useRef(null);x.useImperativeHandle(t,()=>Ne({},e,{mdp:E}),[E,e]);var T=(n||"")+" "+(r||"");xX(E);var A=[...b.rehypePlugins||[]],w={allowElement:(R,D,F)=>b.allowElement?b.allowElement(R,D,F):/^[A-Za-z0-9]+$/.test(R.tagName)};c||A.push(Yie);var k=[SX,...b.remarkPlugins||[],zJ],O=Ne({},y,h);return P.jsx("div",Ne({ref:E,onScroll:u,onMouseOver:d},O,{className:T,style:o,children:P.jsx(xre,Ne({},w,b,{skipHtml:!c,urlTransform:g||Kie,rehypePlugins:p?p("rehype",A):A,remarkPlugins:p?p("remark",k):k,children:a||""}))}))});var ng={},dT={};function Zie(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),s=n[o]||(n[o]={chars:{}});a&&(s.self=e),n=s.chars}}function _R(e){if(e.length===0)return ng;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];Zie(a,t)}return t}function Jie(e){if(e.length===0)return dT;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Dm={},CR={type:"String",optional:!0};function ese(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function tse(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];(t[u]||(t[u]=[])).push(a)}}return t}function AR(e){for(var t=tse(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],s=t[o];s&&(n[o]=ese(s))}return n}var vu=function(){return vu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},vu.apply(this,arguments)},nse={},fT={wildcard:!0};function rse(e){return e?typeof e=="boolean"?fT:e:nse}function ase(e,t){return function(n,r){return t(e(n),e(r))}}function ose(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function xR(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function jc(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=vu({},t),a=0,o=Object.entries(n);a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(c!=="latest"){var d=e[c];r[c]=d(t[c],u)}}return r}}function Ai(e,t){return t!==void 0?t:e}function Rm(e,t){return t?e?e.concat(t):t:e}function wR(e,t){if(!t)return e;if(!e)return t;for(var n=vu({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],s=o[0],c=o[1];if(!c){delete n[s];continue}var u=e[s];if(!u){n[s]=c;continue}n[s]=u.concat(c)}return n}var kl=ose(jc({baseSyntax:Ai,modules:Rm,tag:xR(fT,jc({wildcard:Ai})),ids:Ai,classNames:Ai,namespace:xR(fT,jc({wildcard:Ai})),combinators:Rm,attributes:jc({operators:Rm,caseSensitivityModifiers:Rm,unknownCaseSensitivityModifiers:Ai}),pseudoClasses:jc({unknown:Ai,definitions:wR}),pseudoElements:jc({unknown:Ai,notation:Ai,definitions:ase(function(e){return Array.isArray(e)?{NoArgument:e}:e},wR)})})),fL={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},pL=kl(fL,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),pT=kl(pL,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),hL=kl(pT,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),qg={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},mL=vu(vu({},hL),{modules:Object.entries(qg).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),ise=kl(mL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),hT={css1:fL,css2:pL,css3:pT,"selectors-3":pT,"selectors-4":hL,latest:mL,progressive:ise};function sse(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=hT[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var s=o.pseudoClasses.definitions;if(s)for(var c=0,u=Object.entries(s);c<u.length;c++)for(var d=u[c],p=d[1],h=0,y=p;h<y.length;h++){var g=y[h];e.pseudoClasses[g]||(e.pseudoClasses[g]=[]),e.pseudoClasses[g].includes(a)||e.pseudoClasses[g].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var s=o.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,E=s;b<E.length;b++){var T=E[b];e.pseudoElements[T]||(e.pseudoElements[T]=[]),e.pseudoElements[T].includes(a)||e.pseudoElements[T].push(a)}else for(var A=0,w=Object.values(s);A<w.length;A++)for(var p=w[A],k=0,O=p;k<O.length;k++){var R=O[k];e.pseudoElements[R]||(e.pseudoElements[R]=[]),e.pseudoElements[R].includes(a)||e.pseudoElements[R].push(a)}}}for(var D=0,F=Object.entries(qg);D<F.length;D++){var q=F[D],z=q[0],$=q[1];if($.pseudoClasses&&typeof $.pseudoClasses=="object"){var s=$.pseudoClasses.definitions;if(s)for(var H=0,C=Object.values(s);H<C.length;H++)for(var p=C[H],M=0,B=p;M<B.length;M++){var W=B[M];e.pseudoClasses[W]||(e.pseudoClasses[W]=[]),e.pseudoClasses[W].includes(z)||e.pseudoClasses[W].push(z)}}if($.pseudoElements&&typeof $.pseudoElements=="object"){var s=$.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var j=0,Z=s;j<Z.length;j++){var Q=Z[j];e.pseudoElements[Q]||(e.pseudoElements[Q]=[]),e.pseudoElements[Q].includes(z)||e.pseudoElements[Q].push(z)}else for(var ae=0,I=Object.values(s);ae<I.length;ae++)for(var p=I[ae],ne=0,ee=p;ne<ee.length;ne++){var L=ee[ne];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(z)||e.pseudoElements[L].push(z)}}}return e}var kR=sse();function Zd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function DR(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Jd(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var lse={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},cse={'"':!0,"'":!0},wb={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},use=6,kb="css-selector-parser parse error: ";function dse(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,s=e.modules,c=typeof n=="object"?n:hT[n];if(c.baseSyntax&&(c=kl(hT[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var u=0,d=c.modules;u<d.length;u++){var p=d[u],h=qg[p];h&&(c=kl(h,c))}if(s&&s.length>0)for(var y=0,g=s;y<g.length;y++){var b=g[y],h=qg[b];h&&(c=kl(h,c))}var E=c.tag?[!0,!!rse(c.tag).wildcard]:[!1,!1],T=E[0],A=E[1],w=!!c.ids,k=!!c.classNames,O=!!c.namespace,R=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(O&&!T)throw new Error("".concat(kb,"Namespaces cannot be enabled while tags are disabled."));var D=!!r,F=c.combinators?_R(c.combinators):ng,q=c.attributes?[!0,c.attributes.operators?_R(c.attributes.operators):ng,c.attributes.caseSensitivityModifiers?Jie(c.attributes.caseSensitivityModifiers):dT,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,ng,dT,!1],z=q[0],$=q[1],H=q[2],C=q[3],M=C||Object.keys(H).length>0,B=c.pseudoClasses?[!0,c.pseudoClasses.definitions?AR(c.pseudoClasses.definitions):Dm,c.pseudoClasses.unknown==="accept"]:[!1,Dm,!1],W=B[0],j=B[1],Z=B[2],Q=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?AR(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Dm,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Dm,!1],ae=Q[0],I=Q[1],ne=Q[2],ee=Q[3],L=Q[4],te="",be=te.length,de=0,xe="",ye=function(Ee){return xe===Ee},Oe=function(){return ye("*")||Zd(xe)},Ue=function(Ee){de=Ee,xe=te.charAt(de)},Ie=function(){de++,xe=te.charAt(de)},Ye=function(){var Ee=xe;return de++,xe=te.charAt(de),Ee};function Ve(Ee){var Te=Math.min(be-1,de),ut=new Error("".concat(kb).concat(Ee," Pos: ").concat(Te,"."));throw ut.position=Te,ut.name="ParserError",ut}function De(Ee,Te){if(!Ee)return Ve(Te)}var Ot=function(){De(de<be,"Unexpected end of input.")},Et=function(){return de>=be},je=function(Ee){De(de<be,'Expected "'.concat(Ee,'" but end of input reached.')),De(xe===Ee,'Expected "'.concat(Ee,'" but "').concat(xe,'" found.')),de++,xe=te.charAt(de)};function St(Ee){var Te=it(Ee,de);if(Te)return de+=Te.length,xe=te.charAt(de),Te}function it(Ee,Te){var ut=te.charAt(Te),nt=Ee[ut];if(nt){var Bn=it(nt.chars,Te+1);if(Bn)return Bn;if(nt.self)return nt.self}}function Ze(){for(var Ee=Ye(),Te=1;Jd(xe)&&Te<use;)Ee+=Ye(),Te++;return kn(),String.fromCharCode(parseInt(Ee,16))}function Ge(Ee){var Te="";for(je(Ee);de<be;){if(ye(Ee))return Ie(),Te;ye("\\")?(Ie(),ye(Ee)?(Te+=Ee,Ie()):xe===`
|
|
274
|
+
`||xe==="\f"?Ie():xe==="\r"?(Ie(),ye(`
|
|
275
|
+
`)&&Ie()):Jd(xe)?Te+=Ze():(Te+=xe,Ie())):(Te+=xe,Ie())}return Te}function Pe(){if(!Zd(xe))return null;for(var Ee="";ye("-");)Ee+=xe,Ie();for(Ee==="-"&&!DR(xe)&&!ye("\\")&&Ve("Identifiers cannot consist of a single hyphen."),o&&Ee.length>=2&&Ve("Identifiers cannot start with two hyphens with strict mode on."),wb[xe]&&Ve("Identifiers cannot start with hyphens followed by digits.");de<be;)if(DR(xe))Ee+=Ye();else if(ye("\\"))Ie(),Ot(),Jd(xe)?Ee+=Ze():Ee+=Ye();else break;return Ee}function It(){for(var Ee="";de<be&&!ye(")");)if(ye("\\")){if(Ie(),Et()&&!o)return(Ee+"\\").trim();Ot(),Jd(xe)?Ee+=Ze():Ee+=Ye()}else Ee+=Ye();return Ee.trim()}function kn(){if(xe===" "||xe===" "||xe==="\f"||xe===`
|
|
276
|
+
`){Ie();return}xe==="\r"&&Ie(),xe===`
|
|
277
|
+
`&&Ie()}function bt(){for(;lse[xe];)Ie()}function ce(Ee){Ee===void 0&&(Ee=!1),bt();for(var Te=[We(Ee)];ye(",");)Ie(),bt(),Te.push(We(Ee));return{type:"Selector",rules:Te}}function me(){je("["),bt();var Ee;if(ye("|")){De(O,"Namespaces are not enabled."),Ie();var Te=Pe();De(Te,"Expected attribute name."),Ee={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(ye("*")){De(O,"Namespaces are not enabled."),De(R,"Wildcard namespace is not enabled."),Ie(),je("|");var ut=Pe();De(ut,"Expected attribute name."),Ee={type:"Attribute",name:ut,namespace:{type:"WildcardNamespace"}}}else{var nt=Pe();if(De(nt,"Expected attribute name."),Ee={type:"Attribute",name:nt},ye("|")){var Bn=de;if(Ie(),Zd(xe)){De(O,"Namespaces are not enabled.");var Br=Pe();De(Br,"Expected attribute name."),Ee={type:"Attribute",name:Br,namespace:{type:"NamespaceName",name:nt}}}else Ue(Bn)}}if(De(Ee.name,"Expected attribute name."),bt(),Et()&&!o)return Ee;if(ye("]"))Ie();else{if(Ee.operator=St($),De(Ee.operator,"Expected a valid attribute selector operator."),bt(),Ot(),cse[xe])Ee.value={type:"String",value:Ge(xe)};else if(D&&ye("$")){Ie();var Sr=Pe();De(Sr,"Expected substitute name."),Ee.value={type:"Substitution",name:Sr}}else{var hr=Pe();De(hr,"Expected attribute value."),Ee.value={type:"String",value:hr}}if(bt(),Et()&&!o)return Ee;if(!ye("]")){var mr=Pe();if(De(mr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=mr,De(M,"Attribute case sensitivity modifiers are not enabled."),De(C||H[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),bt(),Et()&&!o)return Ee}je("]")}return Ee}function Be(){for(var Ee="";wb[xe];)Ee+=Ye();return De(Ee!=="","Formula parse error."),parseInt(Ee)}var qe=function(){return ye("-")||ye("+")||wb[xe]};function Qe(){if(ye("e")||ye("o")){var Ee=Pe();if(Ee==="even")return bt(),[2,0];if(Ee==="odd")return bt(),[2,1]}var Te=null,ut=1;if(ye("-")&&(Ie(),ut=-1),qe()&&(ye("+")&&Ie(),Te=Be(),!ye("\\")&&!ye("n")))return[0,Te*ut];Te===null&&(Te=1),Te*=ut;var nt;if(ye("\\")?(Ie(),Jd(xe)?nt=Ze():nt=Ye()):nt=Ye(),De(nt==="n",'Formula parse error: expected "n".'),bt(),ye("+")||ye("-")){var Bn=ye("+")?1:-1;return Ie(),bt(),[Te,Bn*Be()]}else return[Te,0]}function gt(Ee,Te,ut){var nt;if(ye("(")){if(Ie(),bt(),D&&ye("$")){Ie();var Bn=Pe();De(Bn,"Expected substitute name."),nt={type:"Substitution",name:Bn}}else if(ut.type==="String")nt={type:"String",value:It()},De(nt.value,"Expected ".concat(Te," argument value."));else if(ut.type==="Selector")nt=ce(!0);else if(ut.type==="Formula"){var Br=Qe(),Sr=Br[0],hr=Br[1];if(nt={type:"Formula",a:Sr,b:hr},ut.ofSelector&&(bt(),ye("o")||ye("\\"))){var mr=Pe();De(mr==="of","Formula of selector parse error."),bt(),nt={type:"FormulaOfSelector",a:Sr,b:hr,selector:We()}}}else return Ve("Invalid ".concat(Te," signature."));if(bt(),Et()&&!o)return nt;je(")")}else De(ut.optional,"Argument is required for ".concat(Te,' "').concat(Ee,'".'));return nt}function cn(){if(ye("*"))return De(A,"Wildcard tag name is not enabled."),Ie(),{type:"WildcardTag"};if(Zd(xe)){De(T,"Tag names are not enabled.");var Ee=Pe();return De(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return Ve("Expected tag name.")}function Qt(){if(ye("*")){var Ee=de;if(Ie(),!ye("|")||(Ie(),!Oe()))return Ue(Ee),cn();De(O,"Namespaces are not enabled."),De(R,"Wildcard namespace is not enabled.");var Te=cn();return Te.namespace={type:"WildcardNamespace"},Te}else if(ye("|")){De(O,"Namespaces are not enabled."),Ie();var Te=cn();return Te.namespace={type:"NoNamespace"},Te}else if(Zd(xe)){var ut=Pe();if(De(ut,"Expected tag name."),!ye("|"))return De(T,"Tag names are not enabled."),{type:"TagName",name:ut};var Ee=de;if(Ie(),!Oe())return Ue(Ee),{type:"TagName",name:ut};De(O,"Namespaces are not enabled.");var Te=cn();return Te.namespace={type:"NamespaceName",name:ut},Te}else return Ve("Expected tag name.")}function We(Ee){var Te,ut;Ee===void 0&&(Ee=!1);var nt={type:"Rule",items:[]};if(Ee){var Bn=St(F);Bn&&(nt.combinator=Bn,bt())}for(;de<be;)if(Oe())De(nt.items.length===0,"Unexpected tag/namespace start."),nt.items.push(Qt());else if(ye("|")){var Br=de;if(Ie(),Oe())De(nt.items.length===0,"Unexpected tag/namespace start."),Ue(Br),nt.items.push(Qt());else{Ue(Br);break}}else if(ye(".")){De(k,"Class names are not enabled."),Ie();var Sr=Pe();De(Sr,"Expected class name."),nt.items.push({type:"ClassName",name:Sr})}else if(ye("#")){De(w,"IDs are not enabled."),Ie();var hr=Pe();De(hr,"Expected ID name."),nt.items.push({type:"Id",name:hr})}else if(ye("["))De(z,"Attributes are not enabled."),nt.items.push(me());else if(ye(":")){var mr=!1,Ma=!1;Ie(),ye(":")&&(De(ae,"Pseudo elements are not enabled."),De(ne,"Pseudo elements double colon notation is not enabled."),mr=!0,Ie());var In=Pe();if(De(mr||In,"Expected pseudo-class name."),De(!mr||In,"Expected pseudo-element name."),De(In,"Expected pseudo-class name."),!(!mr||L||Object.prototype.hasOwnProperty.call(ee,In))){var Ur=kR.pseudoElements[In],ft='Unknown pseudo-element "'.concat(In,'"');Ur&&Ur.length>0&&(ft+=". It is defined in: ".concat(Ur.join(", "))),Ve(ft+".")}if(Ma=ae&&(mr||!mr&&I&&Object.prototype.hasOwnProperty.call(ee,In)),Ma){var J=(Te=ee[In])!==null&&Te!==void 0?Te:L&&CR,ie={type:"PseudoElement",name:In},pe=gt(In,"pseudo-element",J);pe&&(De(pe.type!=="Formula"&&pe.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ie.argument=pe),nt.items.push(ie)}else{De(W,"Pseudo-classes are not enabled.");var J=(ut=j[In])!==null&&ut!==void 0?ut:Z&&CR;if(!J){var Ur=kR.pseudoClasses[In],ft='Unknown pseudo-class: "'.concat(In,'"');Ur&&Ur.length>0&&(ft+=". It is defined in: ".concat(Ur.join(", "))),Ve(ft+".")}var pe=gt(In,"pseudo-class",J),ke={type:"PseudoClass",name:In};pe&&(ke.argument=pe),nt.items.push(ke)}}else break;if(nt.items.length===0)return Et()?Ve("Expected rule but end of input reached."):Ve('Expected rule but "'.concat(xe,'" found.'));if(bt(),!Et()&&!ye(",")&&!ye(")")){var Bn=St(F);bt(),nt.nestedRule=We(),nt.nestedRule.combinator=Bn}return nt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(kb,"Expected string input."));return te=Ee,be=te.length,de=0,xe=te.charAt(0),ce()}}const fse=dse({syntax:"selectors-4"});function pse(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return fse(e)}const gL="֑-߿יִ-﷽ﹰ-ﻼ",yL="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",hse=new RegExp("^[^"+yL+"]*["+gL+"]"),mse=new RegExp("^[^"+gL+"]*["+yL+"]");function gse(e){const t=String(e||"");return hse.test(t)?"rtl":mse.test(t)?"ltr":"neutral"}function vL(e){return"children"in e?bL(e):"value"in e?e.value:""}function yse(e){return e.type==="text"?e.value:"children"in e?bL(e):""}function bL(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=yse(e.children[t]);return n.join("")}function vse(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let s;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=RR(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Bi),h==="rtl"?s=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=Db(vL(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?Db(String(t.properties.value)):"ltr":pa(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function u(d){if(d.type==="text")return s=Db(d.value),s?Bg:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||RR(d)))return _f}}function Db(e){const t=gse(e);return t==="neutral"?void 0:t}function RR(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function bse(e,t,n){const r=$p(n,e.name),a=t.properties[r.property];let o=Ese(a,r);if(!e.value)return o!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return s===o;case"$=":return s===o.slice(-s.length);case"*=":return o.includes(s);case"^=":return s===o.slice(0,s.length);case"|=":return s===o||s===o.slice(0,s.length)&&o.charAt(s.length)==="-";case"~=":return s===o||VE(o).includes(s)}return!1}function Ese(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?$0:F0)(e)}else return String(e)}const Tse=[];function Sse(e,t){return(t.properties.className||Tse).includes(e.name)}function _se(e,t){return t.properties.id===e.name}function Cse(e,t){return e.name===t.tagName}function Ase(e,t){return function(n,r){let a=OR(n,"tag");const o=OR(r??"*","range"),s=[];let c=-1;for(;++c<o.length;){const u=o[c].toLowerCase();let d=-1;const p=[];for(;++d<a.length;)e(a[d].toLowerCase(),u)?s.push(a[d]):p.push(a[d]);a=p}return s}}const xse=Ase(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0});function OR(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const wse=new Set([9,10,12,13,32]),IR=48,kse=57;function Dse(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=s()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=IR&&e.charCodeAt(t)<=kse;)d=d*10+(e.charCodeAt(t)-IR),t++;return t===u?null:d}function c(){for(;t<e.length&&wse.has(e.charCodeAt(t));)t++}}var NR,LR;function Rse(){return LR||(LR=1,NR={trueFunc:function(){return!0},falseFunc:function(){return!1}}),NR}var Ose=Rse();const PR=X0(Ose);function Ise(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return PR.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?PR.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function MR(e){return Ise(Dse(e))}const Nse={}.hasOwnProperty;function Bl(e,t){const n=e.type==="element"&&Nse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Lse=MR.default||MR,Pse=M0("name",{handlers:{"any-link":Mse,blank:$se,checked:Fse,dir:Bse,disabled:EL,empty:Use,enabled:jse,"first-child":Hse,"first-of-type":zse,has:Vse,is:TL,lang:qse,"last-child":Wse,"last-of-type":Yse,not:Qse,"nth-child":Kse,"nth-last-child":Xse,"nth-last-of-type":Zse,"nth-of-type":Jse,"only-child":ele,"only-of-type":tle,optional:nle,"read-only":rle,"read-write":SL,required:_L,root:ale,scope:ole},invalid:Gse,unknown:ile});function Mse(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Bl(t,"href")}function ri(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function $se(e,t){return!CL(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Mp(r)}}function Fse(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Bl(t,"checked")):t.tagName==="option"?Bl(t,"selected"):!1}function Bse(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function EL(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Bl(t,"disabled")}function Use(e,t){return!CL(t,n);function n(r){return r.type==="element"||r.type==="text"}}function jse(e,t){return!EL(e,t)}function Hse(e,t,n,r,a){return ri(a,e),a.elementIndex===0}function zse(e,t,n,r,a){return ri(a,e),a.typeIndex===0}function ay(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Lse(n.a+"n+"+n.b),e._cachedFn=t}return t}function Vse(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return g_(o,{type:"root",children:t.children}),o.results.length>0}function Gse(){}function TL(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return g_(o,t),o.results[0]===t}function qse(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&xse(a.language,zE(e.argument.value)).length>0}function Wse(e,t,n,r,a){return ri(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Yse(e,t,n,r,a){return ri(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Qse(e,t,n,r,a){return!TL(e,t,n,r,a)}function Kse(e,t,n,r,a){const o=ay(e);return ri(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function Xse(e,t,n,r,a){const o=ay(e);return ri(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function Zse(e,t,n,r,a){const o=ay(e);return ri(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function Jse(e,t,n,r,a){const o=ay(e);return ri(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function ele(e,t,n,r,a){return ri(a,e),a.elementCount===1}function tle(e,t,n,r,a){return ri(a,e),a.typeCount===1}function nle(e,t){return!_L(e,t)}function rle(e,t,n,r,a){return!SL(e,t,n,r,a)}function SL(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Bl(t,"readOnly")&&!Bl(t,"disabled"):!!a.editableOrEditingHost}function _L(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Bl(t,"required")}function ale(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function ole(e,t,n,r,a){return a.scopeElements.includes(t)}function CL(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function ile(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function sle(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!bse(o,t,a.schema))return!1}else if(o.type==="Id"){if(!_se(o,t))return!1}else if(o.type==="ClassName"){if(!Sse(o,t))return!1}else if(o.type==="PseudoClass"){if(!Pse(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!Cse(o,t))return!1}return!0}const lle=[];function g_(e,t){t&&AL(e,[],t,void 0,void 0,t)}function Rb(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function cle(e,t,n,r){const a=rg(t.descendant,t.directChild);let o,s=-1;const c={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)$R(c,n.children[s]);for(s=-1;++s<n.children.length;){const d=n.children[s],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in d){const h=rg(a,o),y=AL(e,h,n.children[s],s,n,r);o=rg(y.generalSibling,y.adjacentSibling)}if(e.one&&e.found)break;$R(u,n.children[s])}}function ule(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const c=t[s];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(sle(c,n,r,a,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Rb(o,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Rb(o,"descendant",c):c.combinator==="~"&&Rb(o,"generalSibling",c)}return o}function rg(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:lle}function $R(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function AL(e,t,n,r,a,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=vse(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==o&&(u=e.rootQuery.rules.filter(d=>d.combinator===void 0||d.combinator===">"&&a===o)),s=ule(e,rg(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&cle(e,s,n,o),c(),s}function dle(e,t,n){const r=fle(e,t);return g_(r,t||void 0),r.results}function fle(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:pse(e),schema:xu,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const xL=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=xL(n.children))}),t),ple=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=dle(t,r);a&&a.length>0&&pa(r,a,(o,s,c)=>{n(o,s,c)});return}pa(r,(a,o,s)=>{n(a,o,s)})}}},hle=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),mle=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},wL=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?wL(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},FR=({value:e=""})=>{const t=hle(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},BR=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},gle=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{pa(r,"element",(a,o,s)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const u=mle(s.children,o);if(u){const d=FR(u);Object.keys(d).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=BR(c.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&s&&Array.isArray(s.children)&&typeof o=="number"){const c=wL(s.children,o,"",n);if(c){const u=FR(c);Object.keys(u).length>0&&(a.properties=BR(a.properties,u,t))}}})}};var yle=function(e){return t=>{pa(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},vle=function(e){return t=>{pa(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const ble=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{pa(r,(a,o,s)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return c=!0,!1;if(d===n)return c=!1,!1}return!c})}})}};var Ele={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Tle(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const Sle=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_le=Object.hasOwnProperty;let Cle=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=Ale(t,n===!0);const o=a;for(;_le.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function Ale(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Sle,"").replace(/ /g,"-"))}function kL(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const xle={},UR=new Cle;function wle(e){const t=(e||xle).prefix||"";return function(n){UR.reset(),pa(n,"element",function(r){kL(r)&&!r.properties.id&&(r.properties.id=t+UR.slug(vL(r)))})}}const DL=(function(e){if(e==null)return Rle;if(typeof e=="string")return Dle(e);if(typeof e=="object")return kle(e);if(typeof e=="function")return y_(e);throw new Error("Expected function, string, or array as `test`")});function kle(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=DL(e[n]);return y_(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Dle(e){return y_(t);function t(n){return n.tagName===e}}function y_(e){return t;function t(n,r,a){return!!(Ole(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Rle(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ole(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const jR={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Ile={};function Nle(e){const t=e||Ile;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,s=t.group,c=DL(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(y){pa(y,"element",function(g,b,E){if(kL(g)&&g.properties.id&&c(g,b,E))return Object.assign(g.properties,Om(r,g)),u(g,b,E)})};function d(y){const g=HR(o||jR,y);return y.children[a==="prepend"?"unshift":"push"](Ob(y,Om(n,y),g)),[_f]}function p(y,g,b){if(typeof g!="number"||!b)return;const E=HR(o||jR,y),T=Ob(y,Om(n,y),E);let A=a==="before"?[T,y]:[y,T];if(s){const w=RL(s,y);w&&!Array.isArray(w)&&w.type==="element"&&(w.children=A,A=[w])}return b.children.splice(g,1,...A),[_f,g+A.length]}function h(y){let g=y.children,b=[];return typeof o=="function"?(g=[],b=o(y)):o&&(b=v_(o)),y.children=[Ob(y,Om(n,y),Array.isArray(b)?[...g,...b]:[...g,b])],[_f]}}function v_(e){return Fl(e)}function Ob(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function HR(e,t){const n=RL(e,t);return Array.isArray(n)?n:[n]}function RL(e,t){return typeof e=="function"?e(t):v_(e)}function Om(e,t){return typeof e=="function"?e(t):e?v_(e):{}}var Lle=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=Ne({class:"anchor"},o.properties),o.children=[Ele])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=xL(n.children);n.children.push(Tle(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Ple=[wle,Nle,ble];const OL=Tt.forwardRef((e,t)=>{var n,r=[yle,vle,...Ple,[ple,{rewrite:Lle((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[gle,{properties:"attr"}],...e.rehypePlugins||[]];return P.jsx(Xie,Ne({},e,{rehypePlugins:r,ref:t}))});function Mle(e,t){return Ne({},e,t)}var Lu=Tt.createContext({markdown:""});function IL(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ne({},t,IL(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function NL(e,t,n,r,a){t===void 0&&(t=[]);var o=IL(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var c=!!o[s.join("+")],u=c?o[s.join("+")]:void 0;if(Object.keys(o).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?s.includes("ctrl")||s.includes("cmd"):s.includes(h));p&&(u=o[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,s);return}}}var Ib;function zR(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof Ib>"u"){var t=document.createElement("textarea");t.value="1",Ib=!!t.firstChild}return Ib}function ou(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),c=document.createTextNode(t);if(zR(e)){var u=e.firstChild;if(!u)e.appendChild(c);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var y=u.nodeValue.length;a>=d&&a<=d+y&&s.setStart(p=u,a-d),o>=d&&o<=d+y&&s.setEnd(h=u,o-d),d+=y,u=u.nextSibling}a!==o&&s.deleteContents()}}if(zR(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var g=e.value;e.value=g.slice(0,a)+t+g.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Qr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=$le(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var s=t.slice(o.start-r.length,o.end+a.length);if(s.startsWith(r)&&s.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function If(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
278
|
+
`)+1,a=t.slice(n.end).indexOf(`
|
|
279
|
+
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function LL(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function PL(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function $le(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,o=t;o-1>-1;o--)if(n(e[o-1])){r=o;break}for(var s=t;s<e.length;s++)if(n(e[s])){a=s;break}return{start:r,end:a}}function wr(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:o=a}=e;n.length>=a.length+o.length&&n.startsWith(a)&&n.endsWith(o)?(t.replaceSelection(n.slice(a.length,o.length?-o.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+o),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function b_(e,t){var n=e.split(/\n/),r=0,a=n.map((o,s)=>{if(typeof t=="string")return o.startsWith(t)?(r-=t.length,o.slice(t.length)):(r+=t.length,t+o);if(typeof t=="function"){if(o.startsWith(t(o,s)))return r-=t(o,s).length,o.slice(t(o,s).length);var c=t(o,s);return r+=c.length,t(o,s)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
280
|
+
`);return{modifiedText:a,insertionLength:r}}var Fle={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:P.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:P.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},ML={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:P.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:P.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",o="\n```\n";r.selectedText.length>=a.length+o.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(o)?(a="```\n",o="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
281
|
+
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
282
|
+
`||r.selection.end===e.text.length)&&(o="\n```"));var s=Qr({text:e.text,selection:e.selection,prefix:a,suffix:o}),c=t.setSelectionRange(s);wr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:o})}},Ble={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:P.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:P.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
283
|
+
`)===-1){var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else ML.execute(e,t)}},Ule={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:P.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),P.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),P.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ag={keyCommand:"divider"},jle={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:P.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function Hle(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var zle=(e,t)=>{var n=Ne({children:e,icon:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:P.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=Ne({},(Hle(r),r));return a.parent=n,Ne({},a)})),n},Vle={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:P.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Gle={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:P.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:P.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Qr({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},qle={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:P.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:P.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Wle={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:P.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:P.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=Qr({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},E_=(e,t,n)=>{var r=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=LL(a.text,a.selection.start),s=Array(o+1).join(`
|
|
287
|
+
`),c=PL(a.text,a.selection.end),u=Array(c+1).join(`
|
|
288
|
+
`),{modifiedText:d,insertionLength:p}=b_(a.selectedText,n);if(p<0){var h=a.selection.start,y=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
289
|
+
`&&(h-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
290
|
+
`&&(y+=1),t.setSelectionRange({start:h,end:y}),t.replaceSelection(""+d),t.setSelectionRange({start:h,end:h+d.length})}else{t.replaceSelection(""+s+d+u);var g=a.selection.start+o,b=g+d.length;t.setSelectionRange({start:g,end:b})}},Yle={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:P.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:P.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{E_(e,t,"- ")}},Qle={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:P.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:P.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{E_(e,t,(n,r)=>r+1+". ")}},Kle={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:P.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:P.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{E_(e,t,(n,r)=>"- [ ] ")}},Xle={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:P.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[P.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),P.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},Zle={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:P.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[P.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),P.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},Jle={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:P.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[P.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),P.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},ece={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:P.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=LL(r.text,r.selection.start),o=Array(a+1).join(`
|
|
291
|
+
`),s=PL(r.text,r.selection.end),c=Array(s+1).join(`
|
|
292
|
+
`),u=b_(r.selectedText,e.command.prefix);t.replaceSelection(""+o+u.modifiedText+c);var d=r.selection.start+a,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},tce={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:P.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:P.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},$L={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:P.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},nce=$L;function Pu(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=If({text:t.text,selection:t.selection}),s=n.setSelectionRange(o);wr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:a})}Ne({},$L,{icon:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:P.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var rce={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:P.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},ace=rce,oce={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:P.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},ice=oce,sce={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:P.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},lce=sce,cce={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:P.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},uce=cce,dce={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:P.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{Pu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},fce=dce,pce={name:"table",keyCommand:"table",prefix:`
|
|
293
|
+
| Header | Header |
|
|
294
|
+
|--------|--------|
|
|
295
|
+
| Cell | Cell |
|
|
296
|
+
| Cell | Cell |
|
|
297
|
+
| Cell | Cell |
|
|
298
|
+
|
|
299
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:P.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:P.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=Qr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),wr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},hce={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:P.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:P.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},mce=()=>[Fle,qle,tce,Vle,zle([nce,ace,ice,lce,uce,fce],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ag,Wle,ece,Ble,ML,Ule,Gle,pce,ag,Yle,Qle,Kle,ag,hce],gce=()=>[Zle,Jle,Xle,ag,jle];function Wg(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}let T_=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return ou(this.textArea,t),Wg(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Wg(this.textArea)}},S_=class{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new T_(t)}getState(){return this.textArea?Wg(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ne({command:t},Wg(this.textArea)),this.textApi,n,r,a)}};function og(e){e.stopPropagation(),e.preventDefault()}function VR(e,t){og(e);var n=e.target,r=new T_(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=If({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var o=n.value.slice(a.start,a.end);if(t<0){var s=If({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:a.end}),ou(n,o+`
|
|
300
|
+
`+c),r.setSelectionRange({start:s.start,end:s.start+o.length})}else{var u=If({text:n.value,selection:{start:a.end+1,end:a.end+1}}),d=n.value.slice(u.start,u.end);r.setSelectionRange({start:a.start,end:u.end}),ou(n,d+`
|
|
301
|
+
`+o),r.setSelectionRange({start:u.end-o.length,end:u.end})}}}function yce(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),o=a.split(`
|
|
302
|
+
`),s=o[o.length-1],c=new T_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){og(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var d=r.value.substring(0,r.selectionStart).split(`
|
|
303
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
304
|
+
`),h=[];p.forEach((F,q)=>{F!==d[q]&&h.push(F)});var y=h.join(`
|
|
305
|
+
`),g=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(y),end:r.selectionEnd});var E=b_(y,e.shiftKey?"":u),T=E.modifiedText;e.shiftKey&&(T=T.split(`
|
|
306
|
+
`).map(F=>F.replace(new RegExp("^"+u),"")).join(`
|
|
307
|
+
`)),c.replaceSelection(T);var A=e.shiftKey?-t:t,w=e.shiftKey?-h.length*t:h.length*t;c.setSelectionRange({start:b+A,end:b+g.length+w})}else return ou(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){og(e);var k=`
|
|
308
|
+
- `;return s.startsWith("*")&&(k=`
|
|
309
|
+
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(k=`
|
|
310
|
+
- [ ] `),/^\d+.\s/.test(s)&&(k=`
|
|
311
|
+
`+(parseInt(s)+1)+". "),ou(r,k)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){og(e);var O={start:r.selectionStart,end:r.selectionEnd},R=O;O=If({text:r.value,selection:O});var D=r.value.slice(O.start,O.end);c.setSelectionRange({start:O.end,end:O.end}),ou(r,`
|
|
312
|
+
`+D),c.setSelectionRange({start:R.start,end:R.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?VR(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&VR(e,1)}var vce=["prefixCls","onChange"],bce=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Ece(e){var{prefixCls:t,onChange:n}=e,r=Nr(e,vce),a=x.useContext(Lu),{markdown:o,commands:s,fullscreen:c,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:y,autoFocusEnd:g,textareaWarp:b,dispatch:E}=a;Nr(a,bce);var T=Tt.useRef(null),A=Tt.useRef(),w=Tt.useRef({fullscreen:c,preview:u});x.useEffect(()=>{w.current={fullscreen:c,preview:u,highlightEnable:d}},[c,u,d]),x.useEffect(()=>{if(T.current&&E){var O=new S_(T.current);A.current=O,E({textarea:T.current,commandOrchestrator:O})}},[]),x.useEffect(()=>{if(g&&T.current&&b){T.current.focus();var O=T.current.value.length;T.current.setSelectionRange(O,O),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),T.current&&(T.current.scrollTop=T.current.scrollHeight)},0)}},[b]);var k=O=>{yce(O,h,y),NL(O,[...s||[],...p||[]],A.current,E,w.current)};return x.useEffect(()=>(T.current&&T.current.addEventListener("keydown",k),()=>{T.current&&T.current.removeEventListener("keydown",k)}),[]),P.jsx("textarea",Ne({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:T,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:O=>{E&&E({markdown:O.target.value}),n&&n(O)}}))}var Tce=["prefixCls","className","onScroll","renderTextarea"];function Sce(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,s=Nr(t,Tce),{markdown:c,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=x.useContext(Lu),y=Tt.useRef(null),g=Tt.useRef(),b=Tt.createRef();x.useEffect(()=>{var T={};b.current&&(T.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(Ne({},T))},[]),x.useEffect(()=>{if(y.current&&h){var T=new S_(y.current);g.current=T,h({textarea:y.current,commandOrchestrator:T})}},[]);var E={WebkitTextFillColor:"initial",overflow:"auto"};return P.jsx("div",{ref:b,className:n+"-area "+(r||""),onScroll:a,children:P.jsx("div",{className:n+"-text",children:o?Tt.cloneElement(o(Ne({},s,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:s.onChange,shortcuts:NL,useContext:{commands:d,extraCommands:p,commandOrchestrator:g.current}}),{ref:y}):P.jsx(x.Fragment,{children:P.jsx(Ece,Ne({prefixCls:n},s,{style:E}))})})})}function _ce(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=x.useContext(Lu);return x.useMemo(()=>P.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?P.jsx(FL,Ne({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function GR(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:s,commandOrchestrator:c,dispatch:u}=x.useContext(Lu),d=x.useRef("");function p(h,y){if(u){var g={barPopup:Ne({},o)};h.keyCommand==="preview"&&(g.preview=h.value),h.keyCommand==="fullscreen"&&(g.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(b=>{y===b.groupName?g.barPopup[y]=!0:b.keyCommand&&(g.barPopup[b.groupName]=!1)}):(y||h.parent)&&Object.keys(g.barPopup||{}).forEach(b=>{g.barPopup[b]=!1}),Object.keys(g).length&&u(Ne({},g)),c&&c.executeCommand(h)}}return x.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(d.current||(d.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=d.current))},[r,d,n]),P.jsx("ul",{children:(e.commands||[]).map((h,y)=>{if(h.keyCommand==="divider")return P.jsx("li",Ne({},h.liProps,{className:t+"-toolbar-divider"}),y);if(!h.keyCommand)return P.jsx(x.Fragment,{},y);var g=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&a===h.value,b=h.children&&typeof h.children=="function"?h.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},h.groupName),execute:()=>p({execute:h.execute}),dispatch:u}):void 0,E=o&&a&&a==="preview"&&!/(preview|fullscreen)/.test(h.keyCommand),T=s?.toolbar||h.render,A=T&&typeof T=="function"?T(h,!!E,p,y):null;return P.jsxs("li",Ne({},h.liProps,{className:g?"active":"",children:[A&&Tt.isValidElement(A)&&A,!A&&!h.buttonProps&&h.icon,!A&&h.buttonProps&&Tt.createElement("button",Ne({type:"button",key:y,disabled:E,"data-name":h.name},h.buttonProps,{onClick:w=>{w.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&P.jsx(_ce,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),y)})})}function FL(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=x.useContext(Lu);return P.jsxs("div",{className:t+"-toolbar "+r,children:[P.jsx(GR,Ne({},e,{commands:e.commands||a||[]})),!n&&P.jsx(GR,Ne({},e,{commands:o||[]}))]})}function qR(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:o}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var s=n?"bottom":"";return P.jsx(FL,{prefixCls:o,overflow:a,className:s})}var Cce=e=>{var{prefixCls:t,onChange:n}=e||{},r=x.useRef(null),a=x.useRef(),o=x.useRef(e.height);x.useEffect(()=>{o.current!==e.height&&(o.current=e.height)},[e.height]);function s(p){if(a.current){var h,y=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY),g=a.current.height+y-a.current.dragY;g>=e.minHeight&&g<=e.maxHeight&&n&&n(a.current.height+(y-a.current.dragY))}}function c(){var p,h;a.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",s),(h=r.current)==null||h.removeEventListener("touchend",c)}function u(p){var h,y,g;p.preventDefault();var b=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY);a.current={height:o.current,dragY:b},document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),(y=r.current)==null||y.addEventListener("touchmove",s,{passive:!1}),(g=r.current)==null||g.addEventListener("touchend",c,{passive:!1})}x.useEffect(()=>{if(document){var p,h;(p=r.current)==null||p.addEventListener("touchstart",u,{passive:!1}),(h=r.current)==null||h.addEventListener("mousedown",u)}return()=>{if(document){var y;(y=r.current)==null||y.removeEventListener("touchstart",u),document.removeEventListener("mousemove",s)}}},[]);var d=x.useMemo(()=>P.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:P.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return P.jsx("div",{className:t+"-bar",ref:r,children:d})},Ace=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function xce(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var wce=Tt.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:s=mce(),commandsFilter:c,direction:u,extraCommands:d=gce(),height:p=200,enableScroll:h=!0,visibleDragbar:y=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:g=!0,preview:b="live",fullscreen:E=!1,overflow:T=!0,previewOptions:A={},textareaProps:w,maxHeight:k=1200,minHeight:O=100,autoFocus:R,autoFocusEnd:D=!1,tabSize:F=2,defaultTabEnable:q=!1,onChange:z,onStatistics:$,onHeightChange:H,hideToolbar:C,toolbarBottom:M=!1,components:B,renderTextarea:W}=n,j=Nr(n,Ace),Z=s.map(je=>c?c(je,!1):je).filter(Boolean),Q=d.map(je=>c?c(je,!0):je).filter(Boolean),[ae,I]=x.useReducer(Mle,{markdown:o,preview:b,components:B,height:p,minHeight:O,highlightEnable:g,tabSize:F,defaultTabEnable:q,scrollTop:0,scrollTopPreview:0,commands:Z,extraCommands:Q,fullscreen:E,barPopup:{}}),ne=x.useRef(null),ee=x.useRef(null),L=x.useRef(h);x.useImperativeHandle(t,()=>Ne({},ae,{container:ne.current,dispatch:I})),x.useMemo(()=>L.current=h,[h]),x.useEffect(()=>{var je={};ne.current&&(je.container=ne.current||void 0),je.markdown=o||"",je.barPopup={},I&&I(Ne({},ae,je))},[]);var te=[a,"wmde-markdown-var",u?r+"-"+u:null,r,ae.preview?r+"-show-"+ae.preview:null,ae.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();x.useMemo(()=>o!==ae.markdown&&I({markdown:o||""}),[o,ae.markdown]),x.useMemo(()=>b!==ae.preview&&I({preview:b}),[b]),x.useMemo(()=>F!==ae.tabSize&&I({tabSize:F}),[F]),x.useMemo(()=>g!==ae.highlightEnable&&I({highlightEnable:g}),[g]),x.useMemo(()=>R!==ae.autoFocus&&I({autoFocus:R}),[R]),x.useMemo(()=>D!==ae.autoFocusEnd&&I({autoFocusEnd:D}),[D]),x.useMemo(()=>E!==ae.fullscreen&&I({fullscreen:E}),[E]),x.useMemo(()=>p!==ae.height&&I({height:p}),[p]),x.useMemo(()=>p!==ae.height&&H&&H(ae.height,p,ae),[p,H,ae]),x.useMemo(()=>s!==ae.commands&&I({commands:Z}),[e.commands]),x.useMemo(()=>d!==ae.extraCommands&&I({extraCommands:Q}),[e.extraCommands]);var be=x.useRef(),de=x.useRef("preview"),xe=x.useRef(!1);x.useMemo(()=>{be.current=ae.textareaWarp,ae.textareaWarp&&(ae.textareaWarp.addEventListener("mouseover",()=>{de.current="text"}),ae.textareaWarp.addEventListener("mouseleave",()=>{de.current="preview"}))},[ae.textareaWarp]);var ye=(je,St)=>{if(L.current){var it=be.current,Ze=ee.current?ee.current:void 0;if(xe.current||(de.current=St,xe.current=!0),it&&Ze){var Ge=(it.scrollHeight-it.offsetHeight)/(Ze.scrollHeight-Ze.offsetHeight);je.target===it&&de.current==="text"&&(Ze.scrollTop=it.scrollTop/Ge),je.target===Ze&&de.current==="preview"&&(it.scrollTop=Ze.scrollTop*Ge);var Pe=0;de.current==="text"?Pe=it.scrollTop||0:de.current==="preview"&&(Pe=Ze.scrollTop||0),I({scrollTop:Pe})}}},Oe=r+"-preview "+(A.className||""),Ue=je=>ye(je,"preview"),Ie=x.useMemo(()=>P.jsx("div",{ref:ee,className:Oe,children:P.jsx(OL,Ne({},A,{onScroll:Ue,source:ae.markdown||""}))}),[Oe,A,ae.markdown]),Ye=B?.preview&&B?.preview(ae.markdown||"",ae,I);Ye&&Tt.isValidElement(Ye)&&(Ie=P.jsx("div",{className:Oe,ref:ee,onScroll:Ue,children:Ye}));var Ve=Ne({},j.style,{height:ae.height||"100%"}),De=()=>I({barPopup:Ne({},xce(ae.barPopup))}),Ot=je=>I({height:je}),Et=je=>{if(z&&z(je.target.value,je,ae),w&&w.onChange&&w.onChange(je),ae.textarea&&ae.textarea instanceof HTMLTextAreaElement&&$){var St=new S_(ae.textarea),it=St.getState()||{};$(Ne({},it,{lineCount:je.target.value.split(`
|
|
313
|
+
`).length,length:je.target.value.length}))}};return P.jsx(Lu.Provider,{value:Ne({},ae,{dispatch:I}),children:P.jsxs("div",Ne({ref:ne,className:te},j,{onClick:De,style:Ve,children:[P.jsx(qR,{hideToolbar:C,toolbarBottom:M,prefixCls:r,overflow:T,placement:"top"}),P.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ae.preview||"")&&P.jsx(Sce,Ne({className:r+"-input",prefixCls:r,autoFocus:R},w,{onChange:Et,renderTextarea:B?.textarea||W,onScroll:je=>ye(je,"text")})),/(live|preview)/.test(ae.preview||"")&&Ie]}),y&&!ae.fullscreen&&P.jsx(Cce,{prefixCls:r,height:ae.height,maxHeight:k,minHeight:O,onChange:Ot}),P.jsx(qR,{hideToolbar:C,toolbarBottom:M,prefixCls:r,overflow:T,placement:"bottom"})]}))})}),kce=wce;kce.Markdown=OL;const BL=x.createContext(void 0);function Dce({children:e,workbookStorage:t}){const n=x.useMemo(()=>({workbookStorage:t}),[t]);return P.jsx(BL.Provider,{value:n,children:e})}function Hye(){const e=x.useContext(BL);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const UL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},jL=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:jL(e,n.parentId);let s=r[o],c=UL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&c!=null;)s=c,c=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ig=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},HL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=UL(e,n);if(r==null)return t;t=r}return t},sp=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),zL=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],s=[a.id];let c=r.parentId,u=a.parentId,d=s.indexOf(c)!==-1,p=o.indexOf(u)!==-1,h=!0,y=!0;for(;!p&&!d;)h&&(o.push(c),d=s.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=e.getItemMeta(c).parentId)),y&&!d&&(s.push(u),p=o.indexOf(u)!==-1,y=u!==null,!p&&y&&(u=e.getItemMeta(u).parentId));const g=d?c:u,b=e.getItemOrderedChildrenIds(g),E=o[o.indexOf(g)-1],T=s[s.indexOf(g)-1];return b.indexOf(E)<b.indexOf(T)?[t,n]:[n,t]},Rce=(e,t,n)=>{const r=u=>{if(e.isItemExpandable(u)&&e.isItemExpanded(u))return e.getItemOrderedChildrenIds(u)[0];let d=e.getItemMeta(u);for(;d!=null;){const p=e.getItemOrderedChildrenIds(d.parentId),h=e.getItemIndex(d.id);if(h<p.length-1)return p[h+1];d=e.getItemMeta(d.parentId)}throw new Error("Invalid range")},[a,o]=zL(e,t,n),s=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||s.push(c);return s},Oce=e=>{let t=sp(e);const n=[];for(;t!=null;)n.push(t),t=ig(e,t);return n},lp=(e,t)=>t!==e.closest('*[role="treeitem"]');let WR=0;const Ice=()=>(WR+=1,`mui-tree-view-${WR}`),__=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,VL=x.createContext(null),ql=()=>{const e=x.useContext(VL);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
314
|
+
`));return e},C_=x.createContext(()=>-1),Dl=(e,t)=>e.getAvailablePlugins().has(t),Nce=({props:e})=>{const{instance:t}=ql(),{label:n,itemId:r}=e,[a,o]=x.useState(n),s=t.isItemBeingEdited(r);return x.useEffect(()=>{s||o(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:u})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:d=>{c.onChange?.(d),o(d.target.value)},onKeyDown:d=>{if(c.onKeyDown?.(d),d.defaultMuiPrevented)return;const p=d.target;d.key==="Enter"&&p.value?u.handleSaveItemLabel(d,p.value):d.key==="Escape"&&u.handleCancelItemLabelEditing(d)},onBlur:d=>{c.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},oo=({instance:e,state:t,setState:n,params:r})=>{const a=x.useRef(t.editedItemId),o=h=>a.current===h,s=h=>{n(y=>Ne({},y,{editedItemId:h})),a.current=h},c=h=>h===t.editedItemId,u=!!r.isItemEditable,d=h=>{if(h==null||!u)return!1;const y=e.getItem(h);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(h,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",h].join(`
|
|
315
|
+
`));n(g=>{const b=g.items.itemMetaMap[h];return b.label!==y?Ne({},g,{items:Ne({},g.items,{itemMetaMap:Ne({},g.items.itemMetaMap,{[h]:Ne({},b,{label:y})})})}):g}),r.onItemLabelChange&&r.onItemLabelChange(h,y)};return{instance:{setEditedItemId:s,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};oo.itemPlugin=Nce;oo.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ne({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};oo.getInitialState=()=>({editedItemId:null});oo.params={onItemLabelChange:!0,isItemEditable:!0};const GL=e=>Array.isArray(e)?e.length>0&&e.some(GL):!!e,Lce=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=ql(),o={expandable:GL(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},s=p=>{if(o.disabled)return;o.focused||n.focusItem(p,e);const h=r&&(p.shiftKey||p.ctrlKey||p.metaKey);o.expandable&&!(h&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{o.disabled||(!o.focused&&!o.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},u=p=>{const h=p.nativeEvent.shiftKey;r&&h?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},d=()=>{Dl(n,oo)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:c,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{Dl(n,oo)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Dl(n,oo)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:o,publicAPI:a}};function Kn(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const Pce=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d,publicAPI:p}=ql(),h=x.useContext(C_),{id:y,itemId:g,label:b,children:E,rootRef:T}=e,{rootRef:A,contentRef:w,propsEnhancers:k}=t(e),{interactions:O,status:R}=Lce({itemId:g,children:E}),D=x.useRef(null),F=x.useRef(null),q=Kn(T,A,D),z=Kn(w,F),$=x.useRef(null),H=__({itemId:g,treeId:u,id:y}),C=d.canItemBeTabbed(g)?0:-1,M={rootRefObject:D,contentRefObject:F,interactions:O},B=ee=>L=>{if(ee.onFocus?.(L),L.defaultMuiPrevented)return;const te=!R.disabled||r;!R.focused&&te&&L.currentTarget===L.target&&d.focusItem(L,g)},W=ee=>L=>{if(ee.onBlur?.(L),L.defaultMuiPrevented)return;const te=d.getItemDOMElement(g);R.editing||L.relatedTarget&&lp(L.relatedTarget,te)&&(L.target&&L.target?.dataset?.element==="labelInput"&&lp(L.target,te)||L.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},j=ee=>L=>{ee.onKeyDown?.(L),!(L.defaultMuiPrevented||L.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(L,g)},Z=ee=>L=>{ee.onDoubleClick?.(L),!L.defaultMuiPrevented&&O.toggleItemEditing()},Q=ee=>L=>{ee.onClick?.(L),n?.(L,g),!(L.defaultMuiPrevented||$.current?.contains(L.target))&&(c==="content"&&O.handleExpansion(L),s||O.handleSelection(L))},ae=ee=>L=>{ee.onMouseDown?.(L),!L.defaultMuiPrevented&&(L.shiftKey||L.ctrlKey||L.metaKey||R.disabled)&&L.preventDefault()},I=ee=>L=>{ee.onChange?.(L),!L.defaultMuiPrevented&&(o||R.disabled||O.handleCheckboxSelection(L))},ne=ee=>L=>{ee.onClick?.(L),!L.defaultMuiPrevented&&c==="iconContainer"&&O.handleExpansion(L)};return{getRootProps:(ee={})=>{const L=Ne({},zr(e),zr(ee));let te;R.selected?te=!0:o||R.disabled?te=void 0:te=!1;const be=Ne({},L,{ref:q,role:"treeitem",tabIndex:C,id:H,"aria-expanded":R.expandable?R.expanded:void 0,"aria-selected":te,"aria-disabled":R.disabled||void 0},ee,{onFocus:B(L),onBlur:W(L),onKeyDown:j(L)});a&&(be.style={"--TreeView-itemDepth":typeof h=="function"?h(g):h});const de=k.root?.(Ne({},M,{externalEventHandlers:L}))??{};return Ne({},be,de)},getContentProps:(ee={})=>{const L=zr(ee),te=Ne({},L,ee,{ref:z,onClick:Q(L),onMouseDown:ae(L),status:R});a&&(te.indentationAtItemLevel=!0);const be=k.content?.(Ne({},M,{externalEventHandlers:L}))??{};return Ne({},te,be)},getGroupTransitionProps:(ee={})=>{const L=zr(ee),te=Ne({},L,{unmountOnExit:!0,component:"ul",role:"group",in:R.expanded,children:E},ee);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ee={})=>{const L=zr(ee);return Ne({},L,ee,{onClick:ne(L)})},getCheckboxProps:(ee={})=>{const L=zr(ee);return Ne({},L,{visible:s,ref:$,checked:R.selected,disabled:o||R.disabled,tabIndex:-1},ee,{onChange:I(L)})},getLabelProps:(ee={})=>{const L=Ne({},zr(ee)),te=Ne({},L,{children:b},ee,{onDoubleClick:Z(L)});return d.isTreeViewEditable&&(te.editable=R.editable),te},getLabelInputProps:(ee={})=>{const L=zr(ee),te=k.labelInput?.({rootRefObject:D,contentRefObject:F,externalEventHandlers:L,interactions:O})??{};return Ne({},ee,te)},getDragAndDropOverlayProps:(ee={})=>{const L=zr(ee),te=k.dragAndDropOverlay?.(Ne({},M,{externalEventHandlers:L}))??{};return Ne({},ee,te)},rootRef:q,status:R,publicAPI:p}},Mce=Pce,$ce=wn(P.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),Fce=wn([P.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),P.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Bce=wn(P.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));var A_=Yp(),_t=e=>Wp(e,A_),x_=Yp();_t.write=e=>Wp(e,x_);var oy=Yp();_t.onStart=e=>Wp(e,oy);var w_=Yp();_t.onFrame=e=>Wp(e,w_);var k_=Yp();_t.onFinish=e=>Wp(e,k_);var iu=[];_t.setTimeout=(e,t)=>{const n=_t.now()+t,r=()=>{const o=iu.findIndex(s=>s.cancel==r);~o&&iu.splice(o,1),As-=~o?1:0},a={time:n,handler:e,cancel:r};return iu.splice(qL(n),0,a),As+=1,WL(),a};var qL=e=>~(~iu.findIndex(t=>t.time>e)||~iu.length);_t.cancel=e=>{oy.delete(e),w_.delete(e),k_.delete(e),A_.delete(e),x_.delete(e)};_t.sync=e=>{mT=!0,_t.batchedUpdates(e),mT=!1};_t.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,_t.onStart(n)}return r.handler=e,r.cancel=()=>{oy.delete(n),t=null},r};var D_=typeof window<"u"?window.requestAnimationFrame:(()=>{});_t.use=e=>D_=e;_t.now=typeof performance<"u"?()=>performance.now():Date.now;_t.batchedUpdates=e=>e();_t.catch=console.error;_t.frameLoop="always";_t.advance=()=>{_t.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):QL()};var Cs=-1,As=0,mT=!1;function Wp(e,t){mT?(t.delete(e),e(0)):(t.add(e),WL())}function WL(){Cs<0&&(Cs=0,_t.frameLoop!=="demand"&&D_(YL))}function Uce(){Cs=-1}function YL(){~Cs&&(D_(YL),_t.batchedUpdates(QL))}function QL(){const e=Cs;Cs=_t.now();const t=qL(Cs);if(t&&(KL(iu.splice(0,t),n=>n.handler()),As-=t),!As){Uce();return}oy.flush(),A_.flush(e?Math.min(64,Cs-e):16.667),w_.flush(),x_.flush(),k_.flush()}function Yp(){let e=new Set,t=e;return{add(n){As+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return As-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,As-=t.size,KL(t,r=>r(n)&&e.add(r)),As+=e.size,t=e)}}}function KL(e,t){e.forEach(n=>{try{t(n)}catch(r){_t.catch(r)}})}var jce=Object.defineProperty,Hce=(e,t)=>{for(var n in t)jce(e,n,{get:t[n],enumerable:!0})},To={};Hce(To,{assign:()=>Vce,colors:()=>Rs,createStringInterpolator:()=>O_,skipAnimation:()=>ZL,to:()=>XL,willAdvance:()=>I_});function gT(){}var zce=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),He={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ki(e,t){if(He.arr(e)){if(!He.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Vt=(e,t)=>e.forEach(t);function Zo(e,t,n){if(He.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Oa=e=>He.und(e)?[]:He.arr(e)?e:[e];function Nf(e,t){if(e.size){const n=Array.from(e);e.clear(),Vt(n,t)}}var gf=(e,...t)=>Nf(e,n=>n(...t)),R_=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),O_,XL,Rs=null,ZL=!1,I_=gT,Vce=e=>{e.to&&(XL=e.to),e.now&&(_t.now=e.now),e.colors!==void 0&&(Rs=e.colors),e.skipAnimation!=null&&(ZL=e.skipAnimation),e.createStringInterpolator&&(O_=e.createStringInterpolator),e.requestAnimationFrame&&_t.use(e.requestAnimationFrame),e.batchedUpdates&&(_t.batchedUpdates=e.batchedUpdates),e.willAdvance&&(I_=e.willAdvance),e.frameLoop&&(_t.frameLoop=e.frameLoop)},Lf=new Set,ro=[],Nb=[],Yg=0,iy={get idle(){return!Lf.size&&!ro.length},start(e){Yg>e.priority?(Lf.add(e),_t.onStart(Gce)):(JL(e),_t(yT))},advance:yT,sort(e){if(Yg)_t.onFrame(()=>iy.sort(e));else{const t=ro.indexOf(e);~t&&(ro.splice(t,1),eP(e))}},clear(){ro=[],Lf.clear()}};function Gce(){Lf.forEach(JL),Lf.clear(),_t(yT)}function JL(e){ro.includes(e)||eP(e)}function eP(e){ro.splice(qce(ro,t=>t.priority>e.priority),0,e)}function yT(e){const t=Nb;for(let n=0;n<ro.length;n++){const r=ro[n];Yg=r.priority,r.idle||(I_(r),r.advance(e),r.idle||t.push(r))}return Yg=0,Nb=ro,Nb.length=0,ro=t,ro.length>0}function qce(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Wce={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},yo="[-+]?\\d*\\.?\\d+",Qg=yo+"%";function sy(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Yce=new RegExp("rgb"+sy(yo,yo,yo)),Qce=new RegExp("rgba"+sy(yo,yo,yo,yo)),Kce=new RegExp("hsl"+sy(yo,Qg,Qg)),Xce=new RegExp("hsla"+sy(yo,Qg,Qg,yo)),Zce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Jce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eue=/^#([0-9a-fA-F]{6})$/,tue=/^#([0-9a-fA-F]{8})$/;function nue(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=eue.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rs&&Rs[e]!==void 0?Rs[e]:(t=Yce.exec(e))?(Hc(t[1])<<24|Hc(t[2])<<16|Hc(t[3])<<8|255)>>>0:(t=Qce.exec(e))?(Hc(t[1])<<24|Hc(t[2])<<16|Hc(t[3])<<8|KR(t[4]))>>>0:(t=Zce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=tue.exec(e))?parseInt(t[1],16)>>>0:(t=Jce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Kce.exec(e))?(YR(QR(t[1]),Im(t[2]),Im(t[3]))|255)>>>0:(t=Xce.exec(e))?(YR(QR(t[1]),Im(t[2]),Im(t[3]))|KR(t[4]))>>>0:null}function Lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=Lb(a,r,e+1/3),s=Lb(a,r,e),c=Lb(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function Hc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function QR(e){return(parseFloat(e)%360+360)%360/360}function KR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Im(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function XR(e){let t=nue(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${o})`}var cp=(e,t,n)=>{if(He.fun(e))return e;if(He.arr(e))return cp({range:e,output:t,extrapolate:n});if(He.str(e.output[0]))return O_(e);const r=e,a=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=aue(d,o);return rue(d,o[p],o[p+1],a[p],a[p+1],u,s,c,r.map)}};function rue(e,t,n,r,a,o,s,c,u){let d=u?u(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>n){if(c==="identity")return d;c==="clamp"&&(d=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=o(d),r===-1/0?d=-d:a===1/0?d=d+r:d=d*(a-r)+r,d)}function aue(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var oue={linear:e=>e},up=Symbol.for("FluidValue.get"),bu=Symbol.for("FluidValue.observers"),no=e=>!!(e&&e[up]),sa=e=>e&&e[up]?e[up]():e,ZR=e=>e[bu]||null;function iue(e,t){e.eventObserved?e.eventObserved(t):e(t)}function dp(e,t){const n=e[bu];n&&n.forEach(r=>{iue(r,t)})}var tP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");sue(this,e)}},sue=(e,t)=>nP(e,up,t);function Mu(e,t){if(e[up]){let n=e[bu];n||nP(e,bu,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function fp(e,t){const n=e[bu];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[bu]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var nP=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),sg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,lue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,JR=new RegExp(`(${sg.source})(%|[a-z]+)`,"i"),cue=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ly=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,rP=e=>{const[t,n]=uue(e);if(!t||R_())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&ly.test(n))return rP(n);if(n)return n}return e},uue=e=>{const t=ly.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Pb,due=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,aP=e=>{Pb||(Pb=Rs?new RegExp(`(${Object.keys(Rs).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>sa(o).replace(ly,rP).replace(lue,XR).replace(Pb,XR)),n=t.map(o=>o.match(sg).map(Number)),a=n[0].map((o,s)=>n.map(c=>{if(!(s in c))throw Error('The arity of each "output" value must be equal');return c[s]})).map(o=>cp({...e,output:o}));return o=>{const s=!JR.test(t[0])&&t.find(u=>JR.test(u))?.replace(sg,"");let c=0;return t[0].replace(sg,()=>`${a[c++](o)}${s||""}`).replace(cue,due)}},N_="react-spring: ",oP=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${N_}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},fue=oP(console.warn);function pue(){fue(`${N_}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var hue=oP(console.warn);function mue(){hue(`${N_}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function cy(e){return He.str(e)&&(e[0]=="#"||/\d/.test(e)||!R_()&&ly.test(e)||e in(Rs||{}))}var L_=R_()?x.useEffect:x.useLayoutEffect,gue=()=>{const e=x.useRef(!1);return L_(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function iP(){const e=x.useState()[1],t=gue();return()=>{t.current&&e(Math.random())}}var sP=e=>x.useEffect(e,yue),yue=[];function eO(e){const t=x.useRef(void 0);return x.useEffect(()=>{t.current=e}),t.current}var pp=Symbol.for("Animated:node"),vue=e=>!!e&&e[pp]===e,Uo=e=>e&&e[pp],P_=(e,t)=>zce(e,pp,t),uy=e=>e&&e[pp]&&e[pp].getPayload(),lP=class{constructor(){P_(this,this)}getPayload(){return this.payload||[]}},dy=class cP extends lP{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,He.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new cP(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return He.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,He.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Kg=class uP extends dy{constructor(t){super(0),this._string=null,this._toString=cp({output:[t,t]})}static create(t){return new uP(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(He.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=cp({output:[this.getValue(),t]})),this._value=0,super.reset()}},Xg={dependencies:null},fy=class extends lP{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Zo(this.source,(n,r)=>{vue(n)?t[r]=n.getValue(e):no(n)?t[r]=sa(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Vt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Zo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Xg.dependencies&&no(e)&&Xg.dependencies.add(e);const t=uy(e);t&&Vt(t,n=>this.add(n))}},bue=class dP extends fy{constructor(t){super(t)}static create(t){return new dP(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map(Eue)),!0)}};function Eue(e){return(cy(e)?Kg:dy).create(e)}function vT(e){const t=Uo(e);return t?t.constructor:He.arr(e)?bue:cy(e)?Kg:dy}var tO=(e,t)=>{const n=!He.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,a)=>{const o=x.useRef(null),s=n&&x.useCallback(b=>{o.current=_ue(a,b)},[a]),[c,u]=Sue(r,t),d=iP(),p=()=>{const b=o.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,c.getValue(!0)):!1)===!1&&d()},h=new Tue(p,u),y=x.useRef(void 0);L_(()=>(y.current=h,Vt(u,b=>Mu(b,h)),()=>{y.current&&(Vt(y.current.deps,b=>fp(b,y.current)),_t.cancel(y.current.update))})),x.useEffect(p,[]),sP(()=>()=>{const b=y.current;Vt(b.deps,E=>fp(E,b))});const g=t.getComponentProps(c.getValue());return x.createElement(e,{...g,ref:s})})},Tue=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&_t.write(this.update)}};function Sue(e,t){const n=new Set;return Xg.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new fy(e),Xg.dependencies=null,[e,n]}function _ue(e,t){return e&&(He.fun(e)?e(t):e.current=t),t}var nO=Symbol.for("AnimatedComponent"),Cue=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new fy(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const c=rO(s)||"Anonymous";return He.str(s)?s=o[s]||(o[s]=tO(s,a)):s=s[nO]||(s[nO]=tO(s,a)),s.displayName=`Animated(${c})`,s};return Zo(e,(s,c)=>{He.arr(e)&&(c=rO(s)),o[c]=o(s)}),{animated:o}},rO=e=>He.str(e)?e:e&&He.str(e.displayName)?e.displayName:He.fun(e)&&e.name||null;function fl(e,...t){return He.fun(e)?e(...t):e}var Pf=(e,t)=>e===!0||!!(t&&e&&(He.fun(e)?e(t):Oa(e).includes(t))),fP=(e,t)=>He.obj(e)?t&&e[t]:e,pP=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Aue=e=>e,M_=(e,t=Aue)=>{let n=xue;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const o=t(e[a],a);He.und(o)||(r[a]=o)}return r},xue=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wue={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function kue(e){const t={};let n=0;if(Zo(e,(r,a)=>{wue[a]||(t[a]=r,n++)}),n)return t}function hP(e){const t=kue(e);if(t){const n={to:t};return Zo(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function hp(e){return e=sa(e),He.arr(e)?e.map(hp):cy(e)?To.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Due(e){for(const t in e)return!0;return!1}function bT(e){return He.fun(e)||He.arr(e)&&He.obj(e[0])}function Rue(e,t){e.ref?.delete(e),t?.delete(e)}function Oue(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Iue={default:{tension:170,friction:26}},ET={...Iue.default,mass:1,damping:1,easing:oue.linear,clamp:!1},Nue=class{constructor(){this.velocity=0,Object.assign(this,ET)}};function Lue(e,t,n){n&&(n={...n},aO(n,t),t={...n,...t}),aO(e,t),Object.assign(e,t);for(const s in ET)e[s]==null&&(e[s]=ET[s]);let{frequency:r,damping:a}=e;const{mass:o}=e;return He.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r),e}function aO(e,t){if(!He.und(t.decay))e.duration=void 0;else{const n=!He.und(t.tension)||!He.und(t.friction);(n||!He.und(t.frequency)||!He.und(t.damping)||!He.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var oO=[],Pue=class{constructor(){this.changed=!1,this.values=oO,this.toValues=null,this.fromValues=oO,this.config=new Nue,this.immediate=!1}};function mP(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((s,c)=>{let u,d,p=Pf(n.cancel??r?.cancel,t);if(p)g();else{He.und(n.pause)||(a.paused=Pf(n.pause,t));let b=r?.pause;b!==!0&&(b=a.paused||Pf(b,t)),u=fl(n.delay||0,t),b?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function h(){a.resumeQueue.add(y),a.timeouts.delete(d),d.cancel(),u=d.time-_t.now()}function y(){u>0&&!To.skipAnimation?(a.delayed=!0,d=_t.setTimeout(g,u),a.pauseQueue.add(h),a.timeouts.add(d)):g()}function g(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(d),e<=(a.cancelId||0)&&(p=!0);try{o.start({...n,callId:e,cancel:p},s)}catch(b){c(b)}}})}var $_=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?su(e.get()):t.every(n=>n.noop)?gP(e.get()):go(e.get(),t.every(n=>n.finished)),gP=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),go=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),su=e=>({value:e,cancelled:!0,finished:!1});function yP(e,t,n,r){const{callId:a,parentId:o,onRest:s}=t,{asyncTo:c,promise:u}=n;return!o&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const d=M_(t,(T,A)=>A==="onRest"?void 0:T);let p,h;const y=new Promise((T,A)=>(p=T,h=A)),g=T=>{const A=a<=(n.cancelId||0)&&su(r)||a!==n.asyncId&&go(r,!1);if(A)throw T.result=A,h(T),T},b=(T,A)=>{const w=new iO,k=new sO;return(async()=>{if(To.skipAnimation)throw mp(n),k.result=go(r,!1),h(k),k;g(w);const O=He.obj(T)?{...T}:{...A,to:T};O.parentId=a,Zo(d,(D,F)=>{He.und(O[F])&&(O[F]=D)});const R=await r.start(O);return g(w),n.paused&&await new Promise(D=>{n.resumeQueue.add(D)}),R})()};let E;if(To.skipAnimation)return mp(n),go(r,!1);try{let T;He.arr(e)?T=(async A=>{for(const w of A)await b(w)})(e):T=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([T.then(p),y]),E=go(r.get(),!0,!1)}catch(T){if(T instanceof iO)E=T.result;else if(T instanceof sO)E=T.result;else throw T}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?c:void 0,n.promise=o?u:void 0)}return He.fun(s)&&_t.batchedUpdates(()=>{s(E,r,r.item)}),E})()}function mp(e,t){Nf(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var iO=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},sO=class extends Error{constructor(){super("SkipAnimationSignal")}},TT=e=>e instanceof F_,Mue=1,F_=class extends tP{constructor(){super(...arguments),this.id=Mue++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Uo(this);return e&&e.getValue()}to(...e){return To.to(this,e)}interpolate(...e){return pue(),To.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){dp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||iy.sort(this),dp(this,{type:"priority",parent:this,priority:e})}},Ul=Symbol.for("SpringPhase"),vP=1,ST=2,_T=4,Mb=e=>(e[Ul]&vP)>0,hs=e=>(e[Ul]&ST)>0,ef=e=>(e[Ul]&_T)>0,lO=(e,t)=>t?e[Ul]|=ST|vP:e[Ul]&=~ST,cO=(e,t)=>t?e[Ul]|=_T:e[Ul]&=~_T,$ue=class extends F_{constructor(e,t){if(super(),this.animation=new Pue,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!He.und(e)||!He.und(t)){const n=He.obj(e)?{...e}:{...t,from:e};He.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hs(this)||this._state.asyncTo)||ef(this)}get goal(){return sa(this.animation.to)}get velocity(){const e=Uo(this);return e instanceof dy?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Mb(this)}get isAnimating(){return hs(this)}get isPaused(){return ef(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,s=uy(r.to);!s&&no(r.to)&&(a=Oa(sa(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==Kg?1:s?s[p].lastPosition:a[p];let y=r.immediate,g=h;if(!y){if(g=d.lastPosition,o.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const E=r.fromValues[p],T=d.v0!=null?d.v0:d.v0=He.arr(o.velocity)?o.velocity[p]:o.velocity;let A;const w=o.precision||(E==h?.005:Math.min(1,Math.abs(h-E)*.001));if(He.und(o.duration))if(o.decay){const k=o.decay===!0?.998:o.decay,O=Math.exp(-(1-k)*b);g=E+T/(1-k)*(1-O),y=Math.abs(d.lastPosition-g)<=w,A=T*O}else{A=d.lastVelocity==null?T:d.lastVelocity;const k=o.restVelocity||w/10,O=o.clamp?0:o.bounce,R=!He.und(O),D=E==h?d.v0>0:E<h;let F,q=!1;const z=1,$=Math.ceil(e/z);for(let H=0;H<$&&(F=Math.abs(A)>k,!(!F&&(y=Math.abs(h-g)<=w,y)));++H){R&&(q=g==h||g>h==D,q&&(A=-A*O,g=h));const C=-o.tension*1e-6*(g-h),M=-o.friction*.001*A,B=(C+M)/o.mass;A=A+B*z,g=g+A*z}}else{let k=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,d.durationProgress>0&&(d.elapsedTime=o.duration*d.durationProgress,b=d.elapsedTime+=e)),k=(o.progress||0)+b/this._memoizedDuration,k=k>1?1:k<0?0:k,d.durationProgress=k),g=E+o.easing(k)*(h-E),A=(g-d.lastPosition)/e,y=k==1}d.lastVelocity=A,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),y=!0)}s&&!s[p].done&&(y=!1),y?d.done=!0:t=!1,d.setValue(g,o.round)&&(n=!0)});const c=Uo(this),u=c.getValue();if(t){const d=sa(r.to);(u!==d||n)&&!o.decay?(c.setValue(d),this._onChange(d)):n&&o.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return _t.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hs(this)){const{to:e,config:t}=this.animation;_t.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return He.und(e)?(n=this.queue||[],this.queue=[]):n=[He.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>$_(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),mp(this._state,e&&this._lastCallId),_t.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=He.obj(n)?n[t]:n,(n==null||bT(n))&&(n=void 0),r=He.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Mb(this)||(e.reverse&&([n,r]=[r,n]),r=sa(r),He.und(r)?Uo(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,M_(e,(s,c)=>/^on/.test(c)?fP(s,n):s)),dO(this,e,"onProps"),nf(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return mP(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{ef(this)||(cO(this,!0),gf(o.pauseQueue),nf(this,"onPause",go(this,tf(this,this.animation.to)),this))},resume:()=>{ef(this)&&(cO(this,!1),hs(this)&&this._resume(),gf(o.resumeQueue),nf(this,"onResume",go(this,tf(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const c=bP(e);if(c)return this._update(c,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(su(this));const r=!He.und(e.to),a=!He.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(su(this));const{key:o,defaultProps:s,animation:c}=this,{to:u,from:d}=c;let{to:p=u,from:h=d}=e;a&&!r&&(!t.default||He.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const y=!ki(h,d);y&&(c.from=h),h=sa(h);const g=!ki(p,u);g&&this._focus(p);const b=bT(t.to),{config:E}=c,{decay:T,velocity:A}=E;(r||a)&&(E.velocity=0),t.config&&!b&&Lue(E,fl(t.config,o),t.config!==s.config?fl(s.config,o):void 0);let w=Uo(this);if(!w||He.und(p))return n(go(this,!0));const k=He.und(t.reset)?a&&!t.default:!He.und(h)&&Pf(t.reset,o),O=k?h:this.get(),R=hp(p),D=He.num(R)||He.arr(R)||cy(R),F=!b&&(!D||Pf(s.immediate||t.immediate,o));if(g){const H=vT(p);if(H!==w.constructor)if(F)w=this._set(R);else throw Error(`Cannot animate between ${w.constructor.name} and ${H.name}, as the "to" prop suggests`)}const q=w.constructor;let z=no(p),$=!1;if(!z){const H=k||!Mb(this)&&y;(g||H)&&($=ki(hp(O),R),z=!$),(!ki(c.immediate,F)&&!F||!ki(E.decay,T)||!ki(E.velocity,A))&&(z=!0)}if($&&hs(this)&&(c.changed&&!k?z=!0:z||this._stop(u)),!b&&((z||no(u))&&(c.values=w.getPayload(),c.toValues=no(p)?null:q==Kg?[1]:Oa(R)),c.immediate!=F&&(c.immediate=F,!F&&!k&&this._set(u)),z)){const{onRest:H}=c;Vt(Bue,M=>dO(this,t,M));const C=go(this,tf(this,u));gf(this._pendingCalls,C),this._pendingCalls.add(n),c.changed&&_t.batchedUpdates(()=>{c.changed=!k,H?.(C,this),k?fl(s.onRest,C):c.onStart?.(C,this)})}k&&this._set(O),b?n(yP(t.to,t,this._state,this)):z?this._start():hs(this)&&!g?this._pendingCalls.add(n):n(gP(O))}_focus(e){const t=this.animation;e!==t.to&&(ZR(this)&&this._detach(),t.to=e,ZR(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;no(t)&&(Mu(t,this),TT(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;no(e)&&fp(e,this)}_set(e,t=!0){const n=sa(e);if(!He.und(n)){const r=Uo(this);if(!r||!ki(n,r.getValue())){const a=vT(n);!r||r.constructor!=a?P_(this,a.create(n)):r.setValue(n),r&&_t.batchedUpdates(()=>{this._onChange(n,t)})}}return Uo(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,nf(this,"onStart",go(this,tf(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),fl(this.animation.onChange,e,this)),fl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Uo(this).reset(sa(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hs(this)||(lO(this,!0),ef(this)||this._resume())}_resume(){To.skipAnimation?this.finish():iy.start(this)}_stop(e,t){if(hs(this)){lO(this,!1);const n=this.animation;Vt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),dp(this,{type:"idle",parent:this});const r=t?su(this.get()):go(this.get(),tf(this,e??n.to));gf(this._pendingCalls,r),n.changed&&(n.changed=!1,nf(this,"onRest",r,this))}}};function tf(e,t){const n=hp(t),r=hp(e.get());return ki(r,n)}function bP(e,t=e.loop,n=e.to){const r=fl(t);if(r){const a=r!==!0&&hP(r),o=(a||e).reverse,s=!a||a.reset;return gp({...e,loop:t,default:!1,pause:void 0,to:!o||bT(n)?n:void 0,from:s?e.from:void 0,reset:s,...a})}}function gp(e){const{to:t,from:n}=e=hP(e),r=new Set;return He.obj(t)&&uO(t,r),He.obj(n)&&uO(n,r),e.keys=r.size?Array.from(r):null,e}function Fue(e){const t=gp(e);return He.und(t.default)&&(t.default=M_(t)),t}function uO(e,t){Zo(e,(n,r)=>n!=null&&t.add(r))}var Bue=["onStart","onRest","onChange","onPause","onResume"];function dO(e,t,n){e.animation[n]=t[n]!==pP(t,n)?fP(t[n],e.key):void 0}function nf(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Uue=["onStart","onChange","onRest"],jue=1,Hue=class{constructor(e,t){this.id=jue++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];He.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(gp(e)),this}start(e){let{queue:t}=this;return e?t=Oa(e).map(gp):this.queue=[],this._flush?this._flush(this,t):(CP(this,t),CT(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Vt(Oa(t),r=>n[r].stop(!!e))}else mp(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(He.und(e))this.start({pause:!0});else{const t=this.springs;Vt(Oa(e),n=>t[n].pause())}return this}resume(e){if(He.und(e))this.start({pause:!1});else{const t=this.springs;Vt(Oa(e),n=>t[n].resume())}return this}each(e){Zo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Nf(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const o=!r&&this._started,s=a||o&&n.size?this.get():null;a&&t.size&&Nf(t,([c,u])=>{u.value=s,c(u,this,this._item)}),o&&(this._started=!1,Nf(n,([c,u])=>{u.value=s,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;_t.onFrame(this._onFrame)}};function CT(e,t){return Promise.all(t.map(n=>EP(e,n))).then(n=>$_(e,n))}async function EP(e,t,n){const{keys:r,to:a,from:o,loop:s,onRest:c,onResolve:u}=t,d=He.obj(t.default)&&t.default;s&&(t.loop=!1),a===!1&&(t.to=null),o===!1&&(t.from=null);const p=He.arr(a)||He.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Vt(Uue,E=>{const T=t[E];if(He.fun(T)){const A=e._events[E];t[E]=({finished:w,cancelled:k})=>{const O=A.get(T);O?(w||(O.finished=!1),k&&(O.cancelled=!0)):A.set(T,{value:null,finished:w||!1,cancelled:k||!1})},d&&(d[E]=t[E])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,gf(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),g=t.cancel===!0||pP(t,"cancel")===!0;(p||g&&h.asyncId)&&y.push(mP(++e._lastAsyncId,{props:t,state:h,actions:{pause:gT,resume:gT,start(E,T){g?(mp(h,e._lastAsyncId),T(su(e))):(E.onRest=c,T(yP(p,E,h,e)))}}})),h.paused&&await new Promise(E=>{h.resumeQueue.add(E)});const b=$_(e,await Promise.all(y));if(s&&b.finished&&!(n&&b.noop)){const E=bP(t,s,a);if(E)return CP(e,[E]),EP(e,E,!0)}return u&&_t.batchedUpdates(()=>u(b,e,e.item)),b}function fO(e,t){const n={...e.springs};return t&&Vt(Oa(t),r=>{He.und(r.keys)&&(r=gp(r)),He.obj(r.to)||(r={...r,to:void 0}),_P(n,r,a=>SP(a))}),TP(e,n),n}function TP(e,t){Zo(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Mu(n,e))})}function SP(e,t){const n=new $ue;return n.key=e,t&&Mu(n,t),n}function _P(e,t,n){t.keys&&Vt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function CP(e,t){Vt(t,n=>{_P(e.springs,n,r=>SP(r,e))})}var zue=x.createContext({pause:!1,immediate:!1}),Vue=()=>{const e=[],t=function(r){mue();const a=[];return Vt(e,(o,s)=>{if(He.und(r))a.push(o.start());else{const c=n(r,o,s);c&&a.push(o.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Vt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Vt(e,r=>r.resume(...arguments)),this},t.set=function(r){Vt(e,(a,o)=>{const s=He.fun(r)?r(o,a):r;s&&a.set(s)})},t.start=function(r){const a=[];return Vt(e,(o,s)=>{if(He.und(r))a.push(o.start());else{const c=this._getProps(r,o,s);c&&a.push(o.start(c))}}),a},t.stop=function(){return Vt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Vt(e,(a,o)=>a.update(this._getProps(r,a,o))),this};const n=function(r,a,o){return He.fun(r)?r(o,a):r};return t._getProps=n,t};function Gue(e,t,n){const r=He.fun(t)&&t;r&&!n&&(n=[]);const a=x.useMemo(()=>r||arguments.length==3?Vue():void 0,[]),o=x.useRef(0),s=iP(),c=x.useMemo(()=>({ctrls:[],queue:[],flush(A,w){const k=fO(A,w);return o.current>0&&!c.queue.length&&!Object.keys(k).some(R=>!A.springs[R])?CT(A,w):new Promise(R=>{TP(A,k),c.queue.push(()=>{R(CT(A,w))}),s()})}}),[]),u=x.useRef([...c.ctrls]),d=x.useRef([]),p=eO(e)||0;x.useMemo(()=>{Vt(u.current.slice(e,p),A=>{Rue(A,a),A.stop(!0)}),u.current.length=e,h(p,e)},[e]),x.useMemo(()=>{h(0,Math.min(p,e))},n);function h(A,w){for(let k=A;k<w;k++){const O=u.current[k]||(u.current[k]=new Hue(null,c.flush)),R=r?r(k,O):t[k];R&&(d.current[k]=Fue(R))}}const y=u.current.map((A,w)=>fO(A,d.current[w])),g=x.useContext(zue),b=eO(g),E=g!==b&&Due(g);L_(()=>{o.current++,c.ctrls=u.current;const{queue:A}=c;A.length&&(c.queue=[],Vt(A,w=>w())),Vt(u.current,(w,k)=>{a?.add(w),E&&w.start({default:g});const O=d.current[k];O&&(Oue(w,O.ref),w.ref?w.queue.push(O):w.start(O))})}),sP(()=>()=>{Vt(c.ctrls,A=>A.stop(!0))});const T=y.map(A=>({...A}));return a?[T,a]:T}function que(e,t){const n=He.fun(e),[[r],a]=Gue(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var Wue=class extends F_{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=cp(...t);const n=this._get(),r=vT(n);P_(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ki(t,n)||(Uo(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&pO(this._active)&&$b(this)}_get(){const e=He.arr(this.source)?this.source.map(sa):Oa(sa(this.source));return this.calc(...e)}_start(){this.idle&&!pO(this._active)&&(this.idle=!1,Vt(uy(this),e=>{e.done=!1}),To.skipAnimation?(_t.batchedUpdates(()=>this.advance()),$b(this)):iy.start(this))}_attach(){let e=1;Vt(Oa(this.source),t=>{no(t)&&Mu(t,this),TT(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Vt(Oa(this.source),e=>{no(e)&&fp(e,this)}),this._active.clear(),$b(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Oa(this.source).reduce((t,n)=>Math.max(t,(TT(n)?n.priority:0)+1),0))}};function Yue(e){return e.idle!==!1}function pO(e){return!e.size||Array.from(e).every(Yue)}function $b(e){e.idle||(e.idle=!0,Vt(uy(e),t=>{t.done=!0}),dp(e,{type:"idle",parent:e}))}To.assign({createStringInterpolator:aP,to:(e,t)=>new Wue(e,t)});var AP=/^--/;function Que(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!AP.test(e)&&!(Mf.hasOwnProperty(e)&&Mf[e])?t+"px":(""+t).trim()}var hO={};function Kue(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:o,scrollTop:s,scrollLeft:c,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(y=>n||e.hasAttribute(y)?y:hO[y]||(hO[y]=y.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));o!==void 0&&(e.textContent=o);for(const y in a)if(a.hasOwnProperty(y)){const g=Que(y,a[y]);AP.test(y)?e.style.setProperty(y,g):e.style[y]=g}h.forEach((y,g)=>{e.setAttribute(y,p[g])}),r!==void 0&&(e.className=r),s!==void 0&&(e.scrollTop=s),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var Mf={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xue=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Zue=["Webkit","Ms","Moz","O"];Mf=Object.keys(Mf).reduce((e,t)=>(Zue.forEach(n=>e[Xue(n,t)]=e[t]),e),Mf);var Jue=/^(matrix|translate|scale|rotate|skew)/,ede=/^(translate)/,tde=/^(rotate|skew)/,Fb=(e,t)=>He.num(e)&&e!==0?e+t:e,lg=(e,t)=>He.arr(e)?e.every(n=>lg(n,t)):He.num(e)?e===t:parseFloat(e)===t,nde=class extends fy{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(s=>[`translate3d(${s.map(c=>Fb(c,"px")).join(",")})`,lg(s,0)])),Zo(r,(s,c)=>{if(c==="transform")a.push([s||""]),o.push(u=>[u,u===""]);else if(Jue.test(c)){if(delete r[c],He.und(s))return;const u=ede.test(c)?"px":tde.test(c)?"deg":"";a.push(Oa(s)),o.push(c==="rotate3d"?([d,p,h,y])=>[`rotate3d(${d},${p},${h},${Fb(y,u)})`,lg(y,0)]:d=>[`${c}(${d.map(p=>Fb(p,u)).join(",")})`,lg(d,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new rde(a,o)),super(r)}},rde=class extends tP{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Vt(this.inputs,(n,r)=>{const a=sa(n[0]),[o,s]=this.transforms[r](He.arr(a)?a:n.map(sa));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Vt(this.inputs,t=>Vt(t,n=>no(n)&&Mu(n,this)))}observerRemoved(e){e==0&&Vt(this.inputs,t=>Vt(t,n=>no(n)&&fp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),dp(this,e)}},ade=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];To.assign({batchedUpdates:Tp.unstable_batchedUpdates,createStringInterpolator:aP,colors:Wce});var ode=Cue(ade,{applyAnimatedValues:Kue,createAnimatedStyle:e=>new nde(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ide=ode.animated;const sde=wn(P.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),lde=wn(P.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function $u(){const e=wp(N0);return e[L0]||e}const xP=e=>e.scrollTop;function Eu(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function cde(e){return Ht("MuiCollapse",e)}Lt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function AT(e,t){return AT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},AT(e,t)}function wP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,AT(e,t)}const mO={disabled:!1},Zg=Tt.createContext(null);var ude=function(e){return e.scrollTop},yf="unmounted",ul="exited",dl="entering",Wc="entered",xT="exiting",xo=(function(e){wP(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=a,c=s&&!s.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?c?(u=ul,o.appearStatus=dl):u=Wc:r.unmountOnExit||r.mountOnEnter?u=yf:u=ul,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===yf?{status:ul}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==dl&&o!==Wc&&(a=dl):(o===dl||o===Wc)&&(a=xT)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,s;return a=o=s=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,s=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===dl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this);o&&ude(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ul&&this.setState({status:yf})},n.performEnter=function(r){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:r,c=this.props.nodeRef?[s]:[Ts.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!o||mO.disabled){this.safeSetState({status:Wc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:dl},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Wc},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Ts.findDOMNode(this);if(!a||mO.disabled){this.safeSetState({status:ul},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:xT},function(){r.props.onExiting(s),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:ul},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,r(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===yf)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Nr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(Zg.Provider,{value:null},typeof o=="function"?o(r,s):Tt.cloneElement(Tt.Children.only(o),s))},t})(Tt.Component);xo.contextType=Zg;xo.propTypes={};function zc(){}xo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zc,onEntering:zc,onEntered:zc,onExit:zc,onExiting:zc,onExited:zc};xo.UNMOUNTED=yf;xo.EXITED=ul;xo.ENTERING=dl;xo.ENTERED=Wc;xo.EXITING=xT;const gO={};function kP(e,t){const n=x.useRef(gO);return n.current===gO&&(n.current=e(t)),n}const dde=[];function fde(e){x.useEffect(e,dde)}let pde=class DP{static create(){return new DP}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function py(){const e=kP(pde.create).current;return fde(e.disposeEffect),e}const hde=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return zt(r,cde,n)},mde=ze("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(gn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),gde=ze("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),yde=ze("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),yp=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:o,collapsedSize:s="0px",component:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:y,onExit:g,onExited:b,onExiting:E,orientation:T="vertical",style:A,timeout:w=j3.standard,TransitionComponent:k=xo,...O}=n,R={...n,orientation:T,collapsedSize:s},D=hde(R),F=$u(),q=py(),z=x.useRef(null),$=x.useRef(),H=typeof s=="number"?`${s}px`:s,C=T==="horizontal",M=C?"width":"height",B=x.useRef(null),W=Kn(t,B),j=te=>be=>{if(te){const de=B.current;be===void 0?te(de):te(de,be)}},Z=()=>z.current?z.current[C?"clientWidth":"clientHeight"]:0,Q=j((te,be)=>{z.current&&C&&(z.current.style.position="absolute"),te.style[M]=H,p&&p(te,be)}),ae=j((te,be)=>{const de=Z();z.current&&C&&(z.current.style.position="");const{duration:xe,easing:ye}=Eu({style:A,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const Oe=F.transitions.getAutoHeightDuration(de);te.style.transitionDuration=`${Oe}ms`,$.current=Oe}else te.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;te.style[M]=`${de}px`,te.style.transitionTimingFunction=ye,y&&y(te,be)}),I=j((te,be)=>{te.style[M]="auto",h&&h(te,be)}),ne=j(te=>{te.style[M]=`${Z()}px`,g&&g(te)}),ee=j(b),L=j(te=>{const be=Z(),{duration:de,easing:xe}=Eu({style:A,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const ye=F.transitions.getAutoHeightDuration(be);te.style.transitionDuration=`${ye}ms`,$.current=ye}else te.style.transitionDuration=typeof de=="string"?de:`${de}ms`;te.style[M]=H,te.style.transitionTimingFunction=xe,E&&E(te)});return P.jsx(k,{in:d,onEnter:Q,onEntered:I,onEntering:ae,onExit:ne,onExited:ee,onExiting:L,addEndListener:te=>{w==="auto"&&q.start($.current||0,te),r&&r(B.current,te)},nodeRef:B,timeout:w==="auto"?null:w,...O,children:(te,{ownerState:be,...de})=>P.jsx(mde,{as:c,className:mt(D.root,o,{entered:D.entered,exited:!d&&H==="0px"&&D.hidden}[te]),style:{[C?"minWidth":"minHeight"]:H,...A},ref:W,ownerState:{...R,state:te},...de,children:P.jsx(gde,{ownerState:{...R,state:te},className:D.wrapper,ref:z,children:P.jsx(yde,{ownerState:{...R,state:te},className:D.wrapperInner,children:a})})})})});yp&&(yp.muiSupportAuto=!0);var Bb={exports:{}},Ub,yO;function vde(){if(yO)return Ub;yO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ub=e,Ub}var jb,vO;function bde(){if(vO)return jb;vO=1;var e=vde();function t(){}function n(){}return n.resetWarningCache=t,jb=function(){function r(s,c,u,d,p,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},jb}var bO;function Ede(){return bO||(bO=1,Bb.exports=bde()()),Bb.exports}var Tde=Ede();const EO=X0(Tde);function B_(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=ql();return r({children:t,itemId:n,instance:a})}B_.propTypes={children:EO.node,itemId:EO.string.isRequired};const U_=x.createContext(void 0);function Wl(){return x.useContext(U_)}function Sde(e){return Ht("PrivateSwitchBase",e)}Lt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Vo(e,t,n){return typeof e=="function"?e(t,n):e}function TO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function RP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const g=mt(n?.className,o,a?.className,r?.className),b={...n?.style,...a?.style,...r?.style},E={...n,...a,...r};return g.length>0&&(E.className=g),Object.keys(b).length>0&&(E.style=b),{props:E,internalRef:void 0}}const s=zr({...a,...r}),c=TO(r),u=TO(a),d=t(s),p=mt(d?.className,n?.className,o,a?.className,r?.className),h={...d?.style,...n?.style,...a?.style,...r?.style},y={...d,...n,...u,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function Jg(e){return typeof e=="string"}function OP(e,t,n){return e===void 0||Jg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function _n(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=o,g=p[e]||r,b=Vo(h[e],a),{props:{component:E,...T},internalRef:A}=RP({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),w=Kn(A,b?.ref,t.ref),k=e==="root"?E||d:E,O=OP(g,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...T,...k&&!c&&{as:k},...k&&c&&{component:k},ref:w},a);return[g,O]}function wT(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:o}=x.useRef(t!==void 0),[s,c]=x.useState(n),u=o?t:s,d=x.useCallback(p=>{o||c(p)},[]);return[u,d]}function _de(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=x.useState(!1),y=mt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},b=mt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),x.useEffect(()=>{if(!c&&u!=null){const E=setTimeout(u,d);return()=>{clearTimeout(E)}}},[u,c,d]),P.jsx("span",{className:y,style:g,children:P.jsx("span",{className:b})})}const Xa=Lt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function Cde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j_(e,t){var n=function(a){return t&&x.isValidElement(a)?t(a):a},r=Object.create(null);return e&&x.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function Ade(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<a.length;s++)c[a[s]]=n(a[s]);return c}function Sl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function xde(e,t){return j_(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Sl(n,"appear",e),enter:Sl(n,"enter",e),exit:Sl(n,"exit",e)})})}function wde(e,t,n){var r=j_(e.children),a=Ade(t,r);return Object.keys(a).forEach(function(o){var s=a[o];if(x.isValidElement(s)){var c=o in t,u=o in r,d=t[o],p=x.isValidElement(d)&&!d.props.in;u&&(!c||p)?a[o]=x.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Sl(s,"exit",e),enter:Sl(s,"enter",e)}):!u&&c&&!p?a[o]=x.cloneElement(s,{in:!1}):u&&c&&x.isValidElement(d)&&(a[o]=x.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Sl(s,"exit",e),enter:Sl(s,"enter",e)}))}}),a}var kde=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Dde={component:"div",childFactory:function(e){return e}},H_=(function(e){wP(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=o.handleExited.bind(Cde(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var o=a.children,s=a.handleExited,c=a.firstRender;return{children:c?xde(r,s):wde(r,o,s),firstRender:!1}},n.handleExited=function(r,a){var o=j_(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(s){var c=Ne({},s.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,o=r.childFactory,s=Nr(r,["component","childFactory"]),c=this.state.contextValue,u=kde(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?Tt.createElement(Zg.Provider,{value:c},u):Tt.createElement(Zg.Provider,{value:c},Tt.createElement(a,s,u))},t})(Tt.Component);H_.propTypes={};H_.defaultProps=Dde;const kT=550,Rde=80,Ode=ei`
|
|
316
|
+
0% {
|
|
317
|
+
transform: scale(0);
|
|
318
|
+
opacity: 0.1;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
100% {
|
|
322
|
+
transform: scale(1);
|
|
323
|
+
opacity: 0.3;
|
|
324
|
+
}
|
|
325
|
+
`,Ide=ei`
|
|
326
|
+
0% {
|
|
327
|
+
opacity: 1;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
100% {
|
|
331
|
+
opacity: 0;
|
|
332
|
+
}
|
|
333
|
+
`,Nde=ei`
|
|
334
|
+
0% {
|
|
335
|
+
transform: scale(1);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
50% {
|
|
339
|
+
transform: scale(0.92);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
100% {
|
|
343
|
+
transform: scale(1);
|
|
344
|
+
}
|
|
345
|
+
`,Lde=ze("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Pde=ze(_de,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
346
|
+
opacity: 0;
|
|
347
|
+
position: absolute;
|
|
348
|
+
|
|
349
|
+
&.${Xa.rippleVisible} {
|
|
350
|
+
opacity: 0.3;
|
|
351
|
+
transform: scale(1);
|
|
352
|
+
animation-name: ${Ode};
|
|
353
|
+
animation-duration: ${kT}ms;
|
|
354
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&.${Xa.ripplePulsate} {
|
|
358
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
& .${Xa.child} {
|
|
362
|
+
opacity: 1;
|
|
363
|
+
display: block;
|
|
364
|
+
width: 100%;
|
|
365
|
+
height: 100%;
|
|
366
|
+
border-radius: 50%;
|
|
367
|
+
background-color: currentColor;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
& .${Xa.childLeaving} {
|
|
371
|
+
opacity: 0;
|
|
372
|
+
animation-name: ${Ide};
|
|
373
|
+
animation-duration: ${kT}ms;
|
|
374
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
& .${Xa.childPulsate} {
|
|
378
|
+
position: absolute;
|
|
379
|
+
/* @noflip */
|
|
380
|
+
left: 0px;
|
|
381
|
+
top: 0;
|
|
382
|
+
animation-name: ${Nde};
|
|
383
|
+
animation-duration: 2500ms;
|
|
384
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
385
|
+
animation-iteration-count: infinite;
|
|
386
|
+
animation-delay: 200ms;
|
|
387
|
+
}
|
|
388
|
+
`,Mde=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...s}=n,[c,u]=x.useState([]),d=x.useRef(0),p=x.useRef(null);x.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=x.useRef(!1),y=py(),g=x.useRef(null),b=x.useRef(null),E=x.useCallback(k=>{const{pulsate:O,rippleX:R,rippleY:D,rippleSize:F,cb:q}=k;u(z=>[...z,P.jsx(Pde,{classes:{ripple:mt(a.ripple,Xa.ripple),rippleVisible:mt(a.rippleVisible,Xa.rippleVisible),ripplePulsate:mt(a.ripplePulsate,Xa.ripplePulsate),child:mt(a.child,Xa.child),childLeaving:mt(a.childLeaving,Xa.childLeaving),childPulsate:mt(a.childPulsate,Xa.childPulsate)},timeout:kT,pulsate:O,rippleX:R,rippleY:D,rippleSize:F},d.current)]),d.current+=1,p.current=q},[a]),T=x.useCallback((k={},O={},R=()=>{})=>{const{pulsate:D=!1,center:F=r||O.pulsate,fakeElement:q=!1}=O;if(k?.type==="mousedown"&&h.current){h.current=!1;return}k?.type==="touchstart"&&(h.current=!0);const z=q?null:b.current,$=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,C,M;if(F||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)H=Math.round($.width/2),C=Math.round($.height/2);else{const{clientX:B,clientY:W}=k.touches&&k.touches.length>0?k.touches[0]:k;H=Math.round(B-$.left),C=Math.round(W-$.top)}if(F)M=Math.sqrt((2*$.width**2+$.height**2)/3),M%2===0&&(M+=1);else{const B=Math.max(Math.abs((z?z.clientWidth:0)-H),H)*2+2,W=Math.max(Math.abs((z?z.clientHeight:0)-C),C)*2+2;M=Math.sqrt(B**2+W**2)}k?.touches?g.current===null&&(g.current=()=>{E({pulsate:D,rippleX:H,rippleY:C,rippleSize:M,cb:R})},y.start(Rde,()=>{g.current&&(g.current(),g.current=null)})):E({pulsate:D,rippleX:H,rippleY:C,rippleSize:M,cb:R})},[r,E,y]),A=x.useCallback(()=>{T({},{pulsate:!0})},[T]),w=x.useCallback((k,O)=>{if(y.clear(),k?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{w(k,O)});return}g.current=null,u(R=>R.length>0?R.slice(1):R),p.current=O},[y]);return x.useImperativeHandle(t,()=>({pulsate:A,start:T,stop:w}),[A,T,w]),P.jsx(Lde,{className:mt(Xa.root,a.root,o),ref:b,...s,children:P.jsx(H_,{component:null,exit:!0,children:c})})});function $de(e){return Ht("MuiButtonBase",e)}const Fde=Lt("MuiButtonBase",["root","disabled","focusVisible"]);let Bde=class DT{static create(){return new DT}static use(){const t=kP(DT.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=jde(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function Ude(){return Bde.use()}function jde(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const Ps=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Mr(e){const t=x.useRef(e);return Ps(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function SO(e){try{return e.matches(":focus-visible")}catch{}return!1}const Hde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=zt({root:["root",t&&"disabled",n&&"focusVisible"]},$de,a);return n&&r&&(o.root+=` ${r}`),o},zde=ze("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Fde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hy=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:b,onClick:E,onContextMenu:T,onDragLeave:A,onFocus:w,onFocusVisible:k,onKeyDown:O,onKeyUp:R,onMouseDown:D,onMouseLeave:F,onMouseUp:q,onTouchEnd:z,onTouchMove:$,onTouchStart:H,tabIndex:C=0,TouchRippleProps:M,touchRippleRef:B,type:W,...j}=n,Z=x.useRef(null),Q=Ude(),ae=Kn(Q.ref,B),[I,ne]=x.useState(!1);u&&I&&ne(!1),x.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),Z.current.focus()}}),[]);const ee=Q.shouldMount&&!d&&!u;x.useEffect(()=>{I&&h&&!d&&Q.pulsate()},[d,h,I,Q]);const L=xi(Q,"start",D,p),te=xi(Q,"stop",T,p),be=xi(Q,"stop",A,p),de=xi(Q,"stop",q,p),xe=xi(Q,"stop",Ge=>{I&&Ge.preventDefault(),F&&F(Ge)},p),ye=xi(Q,"start",H,p),Oe=xi(Q,"stop",z,p),Ue=xi(Q,"stop",$,p),Ie=xi(Q,"stop",Ge=>{SO(Ge.target)||ne(!1),b&&b(Ge)},!1),Ye=Mr(Ge=>{Z.current||(Z.current=Ge.currentTarget),SO(Ge.target)&&(ne(!0),k&&k(Ge)),w&&w(Ge)}),Ve=()=>{const Ge=Z.current;return c&&c!=="button"&&!(Ge.tagName==="A"&&Ge.href)},De=Mr(Ge=>{h&&!Ge.repeat&&I&&Ge.key===" "&&Q.stop(Ge,()=>{Q.start(Ge)}),Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&Ge.preventDefault(),O&&O(Ge),Ge.target===Ge.currentTarget&&Ve()&&Ge.key==="Enter"&&!u&&(Ge.preventDefault(),E&&E(Ge))}),Ot=Mr(Ge=>{h&&Ge.key===" "&&I&&!Ge.defaultPrevented&&Q.stop(Ge,()=>{Q.pulsate(Ge)}),R&&R(Ge),E&&Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&!Ge.defaultPrevented&&E(Ge)});let Et=c;Et==="button"&&(j.href||j.to)&&(Et=g);const je={};Et==="button"?(je.type=W===void 0?"button":W,je.disabled=u):(!j.href&&!j.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const St=Kn(t,Z),it={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:C,focusVisible:I},Ze=Hde(it);return P.jsxs(zde,{as:Et,className:mt(Ze.root,s),ownerState:it,onBlur:Ie,onClick:E,onContextMenu:te,onFocus:Ye,onKeyDown:De,onKeyUp:Ot,onMouseDown:L,onMouseLeave:xe,onMouseUp:de,onDragLeave:be,onTouchEnd:Oe,onTouchMove:Ue,onTouchStart:ye,ref:St,tabIndex:u?-1:C,type:W,...je,...j,children:[o,ee?P.jsx(Mde,{ref:ae,center:a,...M}):null]})});function xi(e,t,n,r=!1){return Mr(a=>(n&&n(a),r||e[t](a),!0))}const Vde=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${at(a)}`],input:["input"]};return zt(o,Sde,t)},Gde=ze(hy,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),qde=ze("input",{name:"MuiSwitchBase",shouldForwardProp:Zr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wde=x.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:y,name:g,onBlur:b,onChange:E,onFocus:T,readOnly:A,required:w=!1,tabIndex:k,type:O,value:R,slots:D={},slotProps:F={},...q}=e,[z,$]=wT({controlled:r,default:!!o,name:"SwitchBase",state:"checked"}),H=Wl(),C=te=>{T&&T(te),H&&H.onFocus&&H.onFocus(te)},M=te=>{b&&b(te),H&&H.onBlur&&H.onBlur(te)},B=te=>{if(te.nativeEvent.defaultPrevented)return;const be=te.target.checked;$(be),E&&E(te,be)};let W=s;H&&typeof W>"u"&&(W=H.disabled);const j=O==="checkbox"||O==="radio",Z={...e,checked:z,disabled:W,disableFocusRipple:c,edge:u},Q=Vde(Z),ae={slots:D,slotProps:{input:h,...F}},[I,ne]=_n("root",{ref:t,elementType:Gde,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,component:"span",...q},getSlotProps:te=>({...te,onFocus:be=>{te.onFocus?.(be),C(be)},onBlur:be=>{te.onBlur?.(be),M(be)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[ee,L]=_n("input",{ref:y,elementType:qde,className:Q.input,externalForwardedProps:ae,getSlotProps:te=>({...te,onChange:be=>{te.onChange?.(be),B(be)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:W,id:j?p:void 0,name:g,readOnly:A,required:w,tabIndex:k,type:O,...O==="checkbox"&&R===void 0?{}:{value:R}}});return P.jsxs(I,{...ne,children:[P.jsx(ee,{...L}),z?a:d]})}),Yde=wn(P.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Qde=wn(P.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Kde=wn(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Xde(e){return Ht("MuiCheckbox",e)}const Hb=Lt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function Zde(e){return typeof e.main=="string"}function Jde(e,t=[]){if(!Zde(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function So(e=[]){return([,t])=>t&&Jde(t,e)}function efe(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function IP(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{efe(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=mt(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,a=n(e,r),o=mt(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const tfe=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${at(r)}`,`size${at(a)}`]},s=zt(o,Xde,t);return{...t,...s}},nfe=ze(Wde,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${at(n.size)}`],n.color!=="default"&&t[`color${at(n.color)}`]]}})(gn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{[`&.${Hb.checked}, &.${Hb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Hb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),rfe=P.jsx(Qde,{}),afe=P.jsx(Yde,{}),ofe=P.jsx(Kde,{}),NP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCheckbox"}),{checkedIcon:r=rfe,color:a="primary",icon:o=afe,indeterminate:s=!1,indeterminateIcon:c=ofe,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:y={},slotProps:g={},...b}=n,E=s?c:o,T=s?c:r,A={...n,disableRipple:p,color:a,indeterminate:s,size:d},w=tfe(A),k=g.input??u,[O,R]=_n("root",{ref:t,elementType:nfe,className:mt(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...b},ownerState:A,additionalProps:{type:"checkbox",icon:x.cloneElement(E,{fontSize:E.props.fontSize??d}),checkedIcon:x.cloneElement(T,{fontSize:T.props.fontSize??d}),disableRipple:p,slots:y,slotProps:{input:IP(typeof k=="function"?k(A):k,{"data-indeterminate":s})}}});return P.jsx(O,{...R,classes:w})}),ife=["visible"],sfe=ze("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),lfe=ze("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>ks(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),cfe=ze("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>ks(e)&&e!=="editable"})(({theme:e})=>Ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),ufe=ze("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});ze(yp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});ze(x.forwardRef((e,t)=>{const{visible:n}=e,r=Nr(e,ife);return n?P.jsx(NP,Ne({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function xs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:Vo(n,r),{props:c,internalRef:u}=RP({...o,externalSlotProps:s}),d=Kn(u,s?.ref,e.additionalProps?.ref);return OP(t,{...c,ref:d},r)}const LP=wn(P.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),PP=wn(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function dfe(e){const{slots:t,slotProps:n,status:r}=e,a=ql(),o=Ne({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??LP,collapseIcon:a.icons.slots.collapseIcon??PP}),s=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const u=t?.[c]??o[c],d=xs({elementType:u,externalSlotProps:p=>Ne({},Vo(s[c],p),Vo(n?.[c],p)),ownerState:{}});return u?P.jsx(u,Ne({},d)):null}function ffe(e){return Ht("MuiRichTreeView",e)}Lt("MuiRichTreeView",["root"]);function pfe(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Kf(t.components[n].defaultProps,r)}function hfe(e){return Object.keys(e).length===0}function mfe(e=null){const t=x.useContext(_u);return!t||hfe(t)?e:t}const gfe=NS();function yfe(e=gfe){return mfe(e)}function vfe({props:e,name:t,defaultTheme:n,themeId:r}){let a=yfe(n);return a=a[r]||a,pfe({theme:a,name:t,props:e})}function bfe({props:e,name:t}){return vfe({props:e,name:t,defaultTheme:N0,themeId:L0})}function MP(e){return bfe}const Efe=(e,t,n)=>{e.$$publishEvent(t,n)},Kc="__TREE_VIEW_ROOT_PARENT_ID__",Tfe=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Sfe=["children"],$P=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},s={[Kc]:[]},c=(d,p,h)=>{const y=r?r(d):d.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(d)].join(`
|
|
389
|
+
`));if(a[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
|
|
390
|
+
`));const g=n?n(d):d.label;if(g==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(d)].join(`
|
|
391
|
+
`));a[y]={id:y,label:g,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},o[y]=d;const b=h??Kc;s[b]||(s[b]=[]),s[b].push(y),d.children?.forEach(E=>c(E,p+1,y))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=Tfe(s[d])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Qp=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=x.useCallback(T=>n.items.itemMetaMap[T],[n.items.itemMetaMap]),s=x.useCallback(T=>n.items.itemMap[T],[n.items.itemMap]),c=x.useCallback(()=>{const T=A=>{const w=n.items.itemMap[A],k=Nr(w,Sfe),O=n.items.itemOrderedChildrenIds[A];return O&&(k.children=O.map(T)),k};return n.items.itemOrderedChildrenIds[Kc].map(T)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=x.useCallback(T=>{if(T==null)return!1;let A=e.getItemMeta(T);if(!A)return!1;if(A.disabled)return!0;for(;A.parentId!=null;)if(A=e.getItemMeta(A.parentId),A.disabled)return!0;return!1},[e]),d=x.useCallback(T=>{const A=e.getItemMeta(T).parentId??Kc;return n.items.itemChildrenIndexes[A][T]},[e,n.items.itemChildrenIndexes]),p=x.useCallback(T=>n.items.itemOrderedChildrenIds[T??Kc]??[],[n.items.itemOrderedChildrenIds]),h=T=>{const A=e.getItemMeta(T);return A==null?null:document.getElementById(__({treeId:n.id.treeId,itemId:T,id:A.idAttribute}))},y=T=>t.disabledItemsFocusable?!0:!e.isItemDisabled(T),g=x.useRef(!1),b=x.useCallback(()=>{g.current=!0},[]),E=x.useCallback(()=>g.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(T=>{const A=$P({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(T.items.itemMetaMap).forEach(w=>{A.itemMetaMap[w.id]||Efe(e,"removeItem",{id:w.id})}),Ne({},T,{items:A})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:s,getItemTree:c,getItemsToRender:()=>{const T=A=>{const w=n.items.itemMetaMap[A];return{label:w.label,itemId:w.id,id:w.idAttribute,children:n.items.itemOrderedChildrenIds[A]?.map(T)}};return n.items.itemOrderedChildrenIds[Kc].map(T)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:y,preventItemUpdates:b,areItemUpdatesPrevented:E},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Qp.getInitialState=e=>({items:$P({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Qp.getDefaultizedParams=({params:e})=>Ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Qp.wrapRoot=({children:e,instance:t})=>P.jsx(C_.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Qp.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const my=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(y=>{h.set(y,!0)}),h},[n.expandedItems.value]),a=(h,y)=>{t.onExpandedItemsChange?.(h,y),n.expandedItems.setControlledValue(y)},o=x.useCallback(h=>r.has(h),[r]),s=x.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=Mr((h,y)=>{const g=e.isItemExpanded(y);e.setItemExpansion(h,y,!g)}),u=Mr((h,y,g)=>{if(e.isItemExpanded(y)===g)return;let b;g?b=[y].concat(n.expandedItems.value):b=n.expandedItems.value.filter(E=>E!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,y,g),a(h,b)}),d=(h,y)=>{const g=e.getItemMeta(y),b=e.getItemOrderedChildrenIds(g.parentId).filter(T=>e.isItemExpandable(T)&&!e.isItemExpanded(T)),E=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(T=>{t.onItemExpansionToggle(h,T,!0)}),a(h,E))},p=x.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:u,toggleItemExpansion:c,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};my.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const _fe=[];my.getDefaultizedParams=({params:e})=>Ne({},e,{defaultExpandedItems:e.defaultExpandedItems??_fe});my.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const cg=e=>Array.isArray(e)?e:e!=null?[e]:[],zb=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},gy=({instance:e,params:t,models:n})=>{const r=x.useRef(null),a=x.useRef({}),o=x.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),s=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=h.filter(b=>!e.isItemSelected(b)),g=n.selectedItems.value.filter(b=>!h.includes(b));y.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),g.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},c=p=>o.has(p),u=({event:p,itemId:h,keepExistingSelection:y=!1,shouldBeSelected:g})=>{if(t.disableSelection)return;let b;if(y){const E=cg(n.selectedItems.value),T=e.isItemSelected(h);T&&(g===!1||g==null)?b=E.filter(A=>A!==h):!T&&(g===!0||g==null)?b=[h].concat(E):b=E}else g===!1||g==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,a.current={}},d=(p,[h,y])=>{if(t.disableSelection||!t.multiSelect)return;let g=cg(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(g=g.filter(A=>!a.current[A]));const b=zb(g),E=Rce(e,h,y),T=E.filter(A=>!b[A]);g=g.concat(T),s(p,g),a.current=zb(E)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:c,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=Oce(e);s(p,h),a.current=zb(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[y,g]=zL(e,h,r.current);d(p,[y,g])}},selectRangeFromStartToItem:(p,h)=>{d(p,[sp(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,HL(e)])},selectItemFromArrowNavigation:(p,h,y)=>{if(t.disableSelection||!t.multiSelect)return;let g=cg(n.selectedItems.value).slice();Object.keys(a.current).length===0?(g.push(y),a.current={[h]:!0,[y]:!0}):(a.current[h]||(a.current={}),a.current[y]?(g=g.filter(b=>b!==h),delete a.current[h]):(g.push(y),a.current[y]=!0)),s(p,g)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};gy.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const Cfe=[];gy.getDefaultizedParams=({params:e})=>Ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?Cfe:null)});gy.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let Afe=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},xfe=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},wfe=class{};function kfe(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new xfe:new Afe);const[o]=x.useState(new wfe),s=x.useRef(null),c=x.useRef(void 0);c.current=a;const u=x.useRef(null);if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(o,()=>{s.current?.(),s.current=null,u.current=null},u.current)}else!c.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{s.current?.(),s.current=null}},[n,r])}}const Dfe={registry:null},Rfe=kfe(Dfe),FP=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?FP(t.shadowRoot):t:null};function Yr(e){return e&&e.ownerDocument||document}const Ofe=(e,t)=>{let n=cg(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=sp(e)),n},z_=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const s=Ofe(e,a.selectedItems.value),c=Mr(T=>{const A=typeof T=="function"?T(n.focusedItemId):T;n.focusedItemId!==A&&r(w=>Ne({},w,{focusedItemId:A}))}),u=x.useCallback(()=>!!o.current&&o.current.contains(FP(Yr(o.current))),[o]),d=x.useCallback(T=>n.focusedItemId===T&&u(),[n.focusedItemId,u]),p=T=>{const A=e.getItemMeta(T);return A&&(A.parentId==null||e.isItemExpanded(A.parentId))},h=(T,A)=>{const w=e.getItemDOMElement(A);w&&w.focus(),c(A),t.onItemFocus&&t.onItemFocus(T,A)},y=Mr((T,A)=>{p(A)&&h(T,A)}),g=Mr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const T=e.getItemDOMElement(n.focusedItemId);T&&T.blur()}c(null)}}),b=T=>T===s;Rfe(e,"removeItem",({id:T})=>{n.focusedItemId===T&&h(null,s)});const E=T=>A=>{T.onFocus?.(A),!A.defaultMuiPrevented&&A.target===A.currentTarget&&h(A,s)};return{getRootProps:T=>({onFocus:E(T)}),publicAPI:{focusItem:y},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:y,removeFocusedItem:g}}};z_.getInitialState=()=>({focusedItemId:null});z_.params={onItemFocus:!0};const Ife=x.createContext(),BP=()=>x.useContext(Ife)??!1;function Nfe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const UP=({instance:e,params:t,state:n})=>{const r=BP(),a=x.useRef({}),o=Mr(d=>{a.current=d(a.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=d},[n.items.itemMetaMap,t.getItemId,e]);const s=(d,p)=>{const h=p.toLowerCase(),y=T=>{const A=ig(e,T);return A===null?sp(e):A};let g=null,b=y(d);const E={};for(;g==null&&!E[b];)a.current[b]===h?g=b:(E[b]=!0,b=y(b));return g},c=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||lp(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,y=d.key;switch(!0){case(y===" "&&c(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{Dl(e,oo)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):c(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case y==="ArrowDown":{const g=ig(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&c(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case y==="ArrowUp":{const g=jL(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&c(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const g=ig(e,p);g&&(e.focusItem(d,g),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const g=e.getItemMeta(p).parentId;g&&(e.focusItem(d,g),d.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,sp(e)),d.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,HL(e)),d.preventDefault();break}case y==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&Nfe(y)):{const g=s(p,y);g!=null&&(e.focusItem(d,g),d.preventDefault());break}}}}}};UP.params={};const jP=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});jP.params={};const Lfe=[Qp,my,gy,z_,UP,jP,oo];function HP(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:s}}=ql(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,g=t.isItemEditable?t.isItemEditable(e):!1,b=k=>{if(!h){d||t.focusItem(k,e);const O=r&&(k.shiftKey||k.ctrlKey||k.metaKey);c&&!(O&&t.isItemExpanded(e))&&t.toggleItemExpansion(k,e)}},E=k=>{h||(!d&&!y&&t.focusItem(k,e),r&&(k.shiftKey||k.ctrlKey||k.metaKey)?k.shiftKey?t.expandSelectionRange(k,e):t.selectItem({event:k,itemId:e,keepExistingSelection:!0}):t.selectItem({event:k,itemId:e,shouldBeSelected:!0}))},T=k=>{if(o||h)return;const O=k.nativeEvent.shiftKey;r&&O?t.expandSelectionRange(k,e):t.selectItem({event:k,itemId:e,keepExistingSelection:r,shouldBeSelected:k.target.checked})},A=k=>{(k.shiftKey||k.ctrlKey||k.metaKey||h)&&k.preventDefault()},w=()=>{Dl(t,oo)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:g,editing:y,disableSelection:o,checkboxSelection:a,handleExpansion:b,handleSelection:E,handleCheckboxSelection:T,handleContentClick:n,preventSelection:A,expansionTrigger:s,toggleItemEditing:w,handleSaveItemLabel:(k,O)=>{Dl(t,oo)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,O),w(),t.focusItem(k,e))},handleCancelItemLabelEditing:k=>{Dl(t,oo)&&t.isItemBeingEditedRef(e)&&(w(),t.focusItem(k,e))}}}const Pfe=ze("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ne({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Mfe=ze("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>zm(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Ra(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function $fe(e){return e.action==null?null:P.jsx(Mfe,Ne({},e))}const Ffe=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],zP=x.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:s,label:c,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:y}=e,g=Nr(e,Ffe),{disabled:b,expanded:E,selected:T,focused:A,editing:w,editable:k,disableSelection:O,checkboxSelection:R,handleExpansion:D,handleSelection:F,handleCheckboxSelection:q,handleContentClick:z,preventSelection:$,expansionTrigger:H,toggleItemEditing:C}=HP(u),M=s||o||a,B=x.useRef(null),W=Q=>{$(Q),p&&p(Q)},j=Q=>{z?.(Q,u),!B.current?.contains(Q.target)&&(H==="content"&&D(Q),R||F(Q),d&&d(Q))},Z=Q=>{Q.defaultMuiPrevented||C()};return P.jsxs("div",Ne({},g,{className:mt(n.root,r,E&&n.expanded,T&&n.selected,A&&n.focused,b&&n.disabled,w&&n.editing,k&&n.editable),onClick:j,onMouseDown:W,ref:t,children:[P.jsx("div",{className:n.iconContainer,children:M}),R&&P.jsx(NP,{className:n.checkbox,checked:T,onChange:q,disabled:b||O,ref:B,tabIndex:-1}),w?P.jsx(Pfe,Ne({},y,{className:n.labelInput})):P.jsx("div",Ne({className:n.label},k&&{onDoubleClick:Z},{children:c})),h&&P.jsx($fe,Ne({},h))]}))});function Bfe(e){return Ht("MuiTreeItem",e)}const wi=Lt("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Ufe=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],jfe=["ownerState"],Hfe=["ownerState"],zfe=["ownerState"],Vfe=MP(),Gfe=e=>{const{classes:t}=e;return zt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Bfe,t)},qfe=ze("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Wfe=ze(zP,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${wi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${wi.label}`]:t.label}],shouldForwardProp:e=>ks(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${wi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ra(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${wi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${wi.label}`]:Ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${wi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Yfe=ze(yp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Qfe=x.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d}=ql(),p=x.useContext(C_),h=Vfe({props:e,name:"MuiTreeItem"}),{children:y,className:g,slots:b,slotProps:E,ContentComponent:T=zP,ContentProps:A,itemId:w,id:k,label:O,onClick:R,onMouseDown:D,onBlur:F,onKeyDown:q}=h,z=Nr(h,Ufe),{expanded:$,focused:H,selected:C,disabled:M,editing:B,handleExpansion:W,handleCancelItemLabelEditing:j,handleSaveItemLabel:Z}=HP(w),{contentRef:Q,rootRef:ae,propsEnhancers:I}=r(h),ne=x.useRef(null),ee=x.useRef(null),L=Kn(t,ae,ne),te=Kn(A?.ref,Q,ee),be={expandIcon:b?.expandIcon??n.slots.expandIcon??LP,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??PP,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},de=Te=>Array.isArray(Te)?Te.length>0&&Te.some(de):!!Te,xe=de(y),ye=Ne({},h,{expanded:$,focused:H,selected:C,disabled:M,indentationAtItemLevel:o}),Oe=Gfe(ye),Ue=be.groupTransition??void 0,Ie=xs({elementType:Ue,ownerState:{},externalSlotProps:E?.groupTransition,additionalProps:Ne({unmountOnExit:!0,in:$,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:Oe.groupTransition}),Ye=Te=>{c==="iconContainer"&&W(Te)},Ve=$?be.collapseIcon:be.expandIcon,De=xs({elementType:Ve,ownerState:{},externalSlotProps:Te=>$?Ne({},Vo(n.slotProps.collapseIcon,Te),Vo(E?.collapseIcon,Te)):Ne({},Vo(n.slotProps.expandIcon,Te),Vo(E?.expandIcon,Te)),additionalProps:{onClick:Ye}}),Ot=Nr(De,jfe),Et=xe&&Ve?P.jsx(Ve,Ne({},Ot)):null,je=xe?void 0:be.endIcon,St=xs({elementType:je,ownerState:{},externalSlotProps:Te=>xe?{}:Ne({},Vo(n.slotProps.endIcon,Te),Vo(E?.endIcon,Te))}),it=Nr(St,Hfe),Ze=je?P.jsx(je,Ne({},it)):null,Ge=be.icon,Pe=xs({elementType:Ge,ownerState:{},externalSlotProps:E?.icon}),It=Nr(Pe,zfe),kn=Ge?P.jsx(Ge,Ne({},It)):null;let bt;C?bt=!0:s||M?bt=void 0:bt=!1;function ce(Te){!H&&(!M||a)&&Te.currentTarget===Te.target&&d.focusItem(Te,w)}function me(Te){F?.(Te),!(B||Te.relatedTarget&&lp(Te.relatedTarget,ne.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&lp(Te.target,ne.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const Be=Te=>{q?.(Te),Te.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Te,w)},qe=__({itemId:w,treeId:u,id:k}),Qe=d.canItemBeTabbed(w)?0:-1,gt={rootRefObject:ne,contentRefObject:ee,interactions:{handleSaveItemLabel:Z,handleCancelItemLabelEditing:j}},cn=I.root?.(Ne({},gt,{externalEventHandlers:zr(z)}))??{},Qt=I.content?.(Ne({},gt,{externalEventHandlers:zr(A)}))??{},We=I.dragAndDropOverlay?.(Ne({},gt,{externalEventHandlers:{}}))??{},Ee=I.labelInput?.(Ne({},gt,{externalEventHandlers:{}}))??{};return P.jsx(B_,{itemId:w,children:P.jsxs(qfe,Ne({className:mt(Oe.root,g),role:"treeitem","aria-expanded":xe?$:void 0,"aria-selected":bt,"aria-disabled":M||void 0,id:qe,tabIndex:Qe},z,{ownerState:ye,onFocus:ce,onBlur:me,onKeyDown:Be,ref:L,style:o?Ne({},z.style,{"--TreeView-itemDepth":typeof p=="function"?p(w):p}):z.style},cn,{children:[P.jsx(Wfe,Ne({as:T,classes:{root:Oe.content,expanded:Oe.expanded,selected:Oe.selected,focused:Oe.focused,disabled:Oe.disabled,editable:Oe.editable,editing:Oe.editing,iconContainer:Oe.iconContainer,label:Oe.label,labelInput:Oe.labelInput,checkbox:Oe.checkbox},label:O,itemId:w,onClick:R,onMouseDown:D,icon:kn,expansionIcon:Et,displayIcon:Ze,ownerState:ye},A,Qt,We.action==null?{}:{dragAndDropOverlayProps:We},Ee.value==null?{}:{labelInputProps:Ee},{ref:te})),y&&P.jsx(Yfe,Ne({as:Ue},Ie,{children:y}))]}))})}),Kfe=["ownerState"];function Xfe({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const s=e?.item??Qfe,c=xs({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),u=Nr(c,Kfe),d=x.useMemo(()=>o?P.jsx(VP,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return P.jsx(s,Ne({},u,{children:d}))}function VP(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return P.jsx(x.Fragment,{children:t.map(a=>P.jsx(Xfe,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const Zfe=(e,t)=>{const n=x.useRef({}),[r,a]=x.useState(()=>{const o={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,u])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:u.getDefaultValue},o[c]=u.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,s])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:u=>{s.isControlled||a(d=>Ne({},d,{[o]:u}))}}]}))},Jfe=["slots","slotProps","apiRef","experimentalFeatures"],epe=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,s=Nr(e.props,Jfe);const c={};o.forEach(y=>{Object.assign(c,y.params)});const u={},d={};Object.keys(s).forEach(y=>{const g=s[y];c[y]?u[y]=g:d[y]=g});const p=a??{},h=o.reduce((y,g)=>g.getDefaultizedParams?g.getDefaultizedParams({params:y,experimentalFeatures:p}):y,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},tpe=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,s=null;const c=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const y=h.itemPlugin({props:a,rootRef:o,contentRef:s});y?.rootRef&&(o=y.rootRef),y?.contentRef&&(s=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(g=>{u[g]=!0}))});const d=h=>y=>{const g={};return c.forEach(b=>{const E=b[h];E!=null&&Object.assign(g,E(y))}),g},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:s,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let s=o;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapItem&&(s=u.wrapItem({itemId:a,children:s,instance:t}))}return s},wrapRoot:({children:a})=>{let o=a;for(let s=e.length-1;s>=0;s-=1){const c=e[s];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let npe=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=a.length-1;s>=0;s-=1){const c=a[s];r.highPriority.has(c)&&c.apply(this,n)}for(let s=0;s<o.length;s+=1){const c=o[s];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const rpe=e=>e.isPropagationStopped!==void 0,GP=()=>{const[e]=x.useState(()=>new npe),t=x.useCallback((...r)=>{const[a,o,s={}]=r;s.defaultMuiPrevented=!1,!(rpe(s)&&s.isPropagationStopped())&&e.emit(a,o,s)},[e]),n=x.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};GP.params={};const qP=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};qP.params={};const V_=({params:e,state:t,setState:n})=>{x.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ne({},a,{id:Ne({},a.id,{treeId:e.id??Ice()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};V_.params={id:!0};V_.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const ape=[GP,qP,V_];function ope(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const ipe=({plugins:e,rootRef:t,props:n})=>{const r=[...ape,...e],{pluginParams:a,forwardedProps:o,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=epe({plugins:r,props:n}),p=Zfe(r,a),h=x.useRef({}).current,y=ope(s),g=x.useRef(null),b=Kn(g,t),E=tpe({plugins:r,instance:h,publicAPI:y,rootRef:g}),[T,A]=x.useState(()=>{const O={};return r.forEach(R=>{R.getInitialState&&Object.assign(O,R.getInitialState(a))}),O}),w=[],k=O=>{const R=O({instance:h,params:a,slots:u,slotProps:d,experimentalFeatures:c,state:T,setState:A,rootRef:g,models:p,plugins:r});R.getRootProps&&w.push(R.getRootProps),R.publicAPI&&Object.assign(y,R.publicAPI),R.instance&&Object.assign(h,R.instance),R.contextValue&&Object.assign(E,R.contextValue)};return r.forEach(k),{getRootProps:(O={})=>{const R=Ne({role:"tree"},o,O,{ref:b});return w.forEach(D=>{Object.assign(R,D(O))}),R},rootRef:b,contextValue:E,instance:h}};function spe(e){const{value:t,children:n}=e;return P.jsx(VL.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const lpe=MP(),cpe=e=>{const{classes:t}=e;return zt({root:["root"]},ffe,t)},upe=ze("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),dpe=x.forwardRef(function(e,t){const n=lpe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=ipe({plugins:Lfe,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=cpe(n),d=s?.root??upe,p=xs({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return P.jsx(spe,{value:a,children:P.jsx(d,Ne({},p,{children:P.jsx(VP,{slots:s,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function Wye({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return P.jsx(dpe,{items:gpe(e,n),defaultExpandedItems:t,slots:{item:mpe}})}const fpe=ide(yp);function ppe(e){const t=que({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return P.jsx(fpe,{style:t,...e})}function hpe({item:e,...t}){const n=P.jsxs(cfe,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&P.jsx($ce,{})||e.fileType==="notebook"&&P.jsx(Fce,{})||e.fileType==="model"&&P.jsx(lde,{})||e.fileType=="database"&&P.jsx(sde,{})||P.jsx(Bce,{}),P.jsx(vS,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?P.jsx(pz,{title:e.error,placement:"right",children:n}):n}const mpe=x.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:s,...c}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:y,status:g,publicAPI:b}=Mce({id:n,itemId:r,children:o,label:a,disabled:s,rootRef:t}),E=b.getItem(r);return g.selected=!1,g.focused=!1,P.jsx(B_,{itemId:r,children:P.jsxs(sfe,{...u(c),children:[P.jsxs(lfe,{...d(),...E.link&&{onClick:T=>E.link(T)},sx:{pointerEvents:!E.selectable&&"none"},children:[P.jsx(ufe,{...h(),children:P.jsx(dfe,{status:g})}),P.jsx(hpe,{...p({item:E})})]}),o&&P.jsx(ppe,{...y()})]})})});function gpe(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((s,c)=>{c===o.length-1?a.set(s,r):(a.has(s)||a.set(s,new Map),a=a.get(s))})}),WP(n,"",t)}function WP(e,t,n){const r=[];return e.forEach((a,o)=>{const s=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:s,link:s==="model"||s==="notebook"?u=>n(t+o,u):void 0,selectable:s==="model"||s==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:WP(a,t,n)})}),r}const G_=new WG({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});function ype(e){const{server:t}=QS(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return iq(n,G_)}function vpe(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return sq(t,G_)}function bpe({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a,resourceUri:o}){return Tt.useEffect(()=>{a&&a(t)},[t,a]),P.jsx(Q3,{children:P.jsxs(OB,{spacing:2,component:"section",children:[P.jsx(Tpe,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:o}),P.jsx(U9,{height:"5px"})]})})}function Vb(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Epe({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a,resourceUri:o}){const[s,c]=Tt.useState(n||Vb());Tt.useEffect(()=>{n&&c(n)},[n]);const[u,d]=Tt.useState([]),{MalloyExplorerProvider:p,QueryPanel:h,ResizableCollapsiblePanel:y,ResultPanel:g,SourcePanel:b}=r;Tt.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:E,packageName:T,versionId:A}=P0(o),{apiClients:w}=QS(),k=vpe({mutationFn:()=>{const F=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return c({...s,query:F}),w.queryResults.executeQuery(E,T,e.modelPath,F,void 0,void 0,A)},onSuccess:F=>{if(F){const q=JSON.parse(F.data.result);c({...s,malloyResult:q})}}}),[O,R]=Tt.useState(e.sourceInfo.name);Tt.useEffect(()=>{O!==e.sourceInfo.name&&(R(e.sourceInfo.name),c(Vb()))},[e,O]);const D=Tt.useCallback(F=>{c({...s,malloyQuery:F,malloyResult:void 0})},[s]);return O!==e.sourceInfo.name?P.jsx("div",{children:"Loading..."}):P.jsx(K3,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:P.jsx(p,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:D,focusedNestViewPath:u,onFocusedNestViewPathChange:d,onDrill:F=>{console.info(F)},children:P.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[P.jsx(y,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:P.jsx(b,{onRefresh:()=>c(Vb())})}),P.jsx(y,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:P.jsx(h,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{k.mutate()}catch(F){console.error("Error running query:",F)}}})}),P.jsx(g,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:F=>c({...s,malloyQuery:F}),submittedQuery:s?.malloyQuery?{executionState:k.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:k.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Tpe(e){const[t,n]=x.useState(null),[r,a]=x.useState(null),[o,s]=x.useState(!0);return x.useEffect(()=>{let c=!0;return Promise.all([G(()=>import("./index-GXiK4wJn.js"),__vite__mapDeps([93,94,95])),G(()=>import("./index-BTifa3VC.js").then(u=>u.i),[])]).then(([u,d])=>{c&&(n(u),a(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),c&&s(!1)}),()=>{c=!1}},[]),o||!t||!r?P.jsx(CG,{children:P.jsx(K3,{children:P.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):P.jsx(Epe,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Spe(e,t=!0){const{modelPath:n,projectName:r,packageName:a,versionId:o}=P0(e),{apiClients:s}=QS();return ype({queryKey:["package",r,a,n,o],queryFn:async()=>(await s.models.getModel(r,a,n,o)).data,enabled:t})}const _pe=ze(Cl)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),Cpe=ze(HH)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function Yye({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:a,resourceUri:o}){const[s,c]=Tt.useState(r);Tt.useEffect(()=>{c(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=Spe(o,!e),{modelPath:y}=P0(o),g=e||u;return p&&!e?P.jsx(xE,{text:"Fetching Model..."}):d&&!e?(console.log("error",h),P.jsx(hz,{error:h,context:`ModelExplorer > ${y}`})):g?P.jsxs(SG,{variant:"outlined",children:[P.jsx(_G,{children:P.jsx(ik,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&P.jsx(_pe,{children:g.sourceInfos.map((b,E)=>{let T;try{T=JSON.parse(b)}catch{T={name:String(E)}}return P.jsx(Cpe,{selected:s===E,onClick:()=>{c(E),a&&a(E)},children:T.name||`Source ${E+1}`},T.name||E)})})})}),P.jsx(Q3,{children:P.jsxs(ik,{spacing:2,component:"section",children:[Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&P.jsx(bpe,{sourceAndPaths:g.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:y})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:o}),P.jsx(Cl,{height:"5px"})]})})]}):P.jsx(xE,{text:"Loading..."})}const Qye=wn(P.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Kye=wn(P.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),Xye=wn(P.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Zye=wn(P.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Jye=wn(P.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),e1e=wn(P.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),t1e=wn(P.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),n1e=wn(P.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),r1e=dS({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Yt({props:e,name:"MuiStack"})}),_O="Local";let Ape=class{async listWorkspaces(t){return Promise.resolve([{name:_O,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:_O})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}};function xpe(e){return Ht("MuiButton",e)}const ol=Lt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),wpe=x.createContext({}),kpe=x.createContext(void 0);let CO=0;function Dpe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(CO+=1,n(`mui-${CO}`))},[t]),r}const Rpe={...ug},AO=Rpe.useId;function Kp(e){if(AO!==void 0){const t=AO();return e??t}return Dpe(e)}function Ope(e){return Ht("MuiCircularProgress",e)}Lt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ms=44,RT=ei`
|
|
392
|
+
0% {
|
|
393
|
+
transform: rotate(0deg);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
100% {
|
|
397
|
+
transform: rotate(360deg);
|
|
398
|
+
}
|
|
399
|
+
`,OT=ei`
|
|
400
|
+
0% {
|
|
401
|
+
stroke-dasharray: 1px, 200px;
|
|
402
|
+
stroke-dashoffset: 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
50% {
|
|
406
|
+
stroke-dasharray: 100px, 200px;
|
|
407
|
+
stroke-dashoffset: -15px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
100% {
|
|
411
|
+
stroke-dasharray: 1px, 200px;
|
|
412
|
+
stroke-dashoffset: -126px;
|
|
413
|
+
}
|
|
414
|
+
`,Ipe=typeof RT!="string"?Cp`
|
|
415
|
+
animation: ${RT} 1.4s linear infinite;
|
|
416
|
+
`:null,Npe=typeof OT!="string"?Cp`
|
|
417
|
+
animation: ${OT} 1.4s ease-in-out infinite;
|
|
418
|
+
`:null,Lpe=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,o={root:["root",n,`color${at(r)}`],svg:["svg"],circle:["circle",`circle${at(n)}`,a&&"circleDisableShrink"]};return zt(o,Ope,t)},Ppe=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${at(n.color)}`]]}})(gn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ipe||{animation:`${RT} 1.4s linear infinite`}},...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Mpe=ze("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),$pe=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${at(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(gn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Npe||{animation:`${OT} 1.4s ease-in-out infinite`}}]}))),YP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:o=!1,size:s=40,style:c,thickness:u=3.6,value:d=0,variant:p="indeterminate",...h}=n,y={...n,color:a,disableShrink:o,size:s,thickness:u,value:d,variant:p},g=Lpe(y),b={},E={},T={};if(p==="determinate"){const A=2*Math.PI*((ms-u)/2);b.strokeDasharray=A.toFixed(3),T["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*A).toFixed(3)}px`,E.transform="rotate(-90deg)"}return P.jsx(Ppe,{className:mt(g.root,r),style:{width:s,height:s,...E,...c},ownerState:y,ref:t,role:"progressbar",...T,...h,children:P.jsx(Mpe,{className:g.svg,ownerState:y,viewBox:`${ms/2} ${ms/2} ${ms} ${ms}`,children:P.jsx($pe,{className:g.circle,style:b,ownerState:y,cx:ms,cy:ms,r:(ms-u)/2,fill:"none",strokeWidth:u})})})}),Fpe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:o,loading:s,loadingPosition:c,classes:u}=e,d={root:["root",s&&"loading",o,`${o}${at(t)}`,`size${at(a)}`,`${o}Size${at(a)}`,`color${at(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${at(c)}`],startIcon:["icon","startIcon",`iconSize${at(a)}`],endIcon:["icon","endIcon",`iconSize${at(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=zt(d,xpe,u);return{...u,...p}},QP=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Bpe=ze(hy,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${at(n.color)}`],t[`size${at(n.size)}`],t[`${n.variant}Size${at(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(gn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ol.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ol.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(So()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ol.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ol.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ol.loading}`]:{color:"transparent"}}}]}})),Upe=ze("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${at(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...QP]})),jpe=ze("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${at(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...QP]})),Hpe=ze("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xO=ze("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),o1e=x.forwardRef(function(e,t){const n=x.useContext(wpe),r=x.useContext(kpe),a=Kf(n,e),o=Yt({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:b,fullWidth:E=!1,id:T,loading:A=null,loadingIndicator:w,loadingPosition:k="center",size:O="medium",startIcon:R,type:D,variant:F="text",...q}=o,z=Kp(T),$=w??P.jsx(YP,{"aria-labelledby":z,color:"inherit",size:16}),H={...o,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:E,loading:A,loadingIndicator:$,loadingPosition:k,size:O,type:D,variant:F},C=Fpe(H),M=(R||A&&k==="start")&&P.jsx(Upe,{className:C.startIcon,ownerState:H,children:R||P.jsx(xO,{className:C.loadingIconPlaceholder,ownerState:H})}),B=(g||A&&k==="end")&&P.jsx(jpe,{className:C.endIcon,ownerState:H,children:g||P.jsx(xO,{className:C.loadingIconPlaceholder,ownerState:H})}),W=r||"",j=typeof A=="boolean"?P.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:A&&P.jsx(Hpe,{className:C.loadingIndicator,ownerState:H,children:$})}):null;return P.jsxs(Bpe,{ownerState:H,className:mt(n.className,C.root,d,W),component:u,disabled:p||A,focusRipple:!y,focusVisibleClassName:mt(C.focusVisible,b),ref:t,type:D,id:A?z:T,...q,classes:C,children:[M,k!=="end"&&j,s,k==="end"&&j,B]})});function zpe(e){return Ht("MuiDialog",e)}const Gb=Lt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),KP=x.createContext({});function Vpe(e){return Ht("MuiPaper",e)}Lt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Gpe=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return zt(o,Vpe,a)},qpe=ze("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(gn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),yy=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPaper"}),r=$u(),{className:a,component:o="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,p={...n,component:o,elevation:s,square:c,variant:u},h=Gpe(p);return P.jsx(qpe,{as:o,ownerState:p,className:mt(h.root,a),ref:t,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Sg("#fff",CE(s))}, ${Sg("#fff",CE(s))})`}},...d.style}})});function Fu(e){return parseInt(x.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Wpe={entering:{opacity:1},entered:{opacity:1}},IT=x.forwardRef(function(e,t){const n=$u(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:y,onExited:g,onExiting:b,style:E,timeout:T=r,TransitionComponent:A=xo,...w}=e,k=x.useRef(null),O=Kn(k,Fu(s),t),R=C=>M=>{if(C){const B=k.current;M===void 0?C(B):C(B,M)}},D=R(h),F=R((C,M)=>{xP(C);const B=Eu({style:E,timeout:T,easing:c},{mode:"enter"});C.style.webkitTransition=n.transitions.create("opacity",B),C.style.transition=n.transitions.create("opacity",B),d&&d(C,M)}),q=R(p),z=R(b),$=R(C=>{const M=Eu({style:E,timeout:T,easing:c},{mode:"exit"});C.style.webkitTransition=n.transitions.create("opacity",M),C.style.transition=n.transitions.create("opacity",M),y&&y(C)}),H=R(g);return P.jsx(A,{appear:o,in:u,nodeRef:k,onEnter:F,onEntered:q,onEntering:D,onExit:$,onExited:H,onExiting:z,addEndListener:C=>{a&&a(k.current,C)},timeout:T,...w,children:(C,{ownerState:M,...B})=>x.cloneElement(s,{style:{opacity:0,visibility:C==="exited"&&!u?"hidden":void 0,...Wpe[C],...E,...s.props.style},ref:O,...B})})});function XP(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function $i(e){return Yr(e).defaultView||window}function Ype(e){const t=Yr(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function $f(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wO(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function Qpe(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function kO(e,t,n,r,a){const o=[t,n,...r];[].forEach.call(e.children,s=>{const c=!o.includes(s),u=!Qpe(s);c&&u&&$f(s,a)})}function qb(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function Kpe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ype(r)){const o=XP($i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wO(r)+o}px`;const s=Yr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${wO(c)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Yr(r).body;else{const o=r.parentElement,s=$i(r);a=o?.nodeName==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Xpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}let Zpe=class{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&$f(t.modalRef,!1);const a=Xpe(n);kO(n,t.mount,t.modalRef,a,!0);const o=qb(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=qb(this.containers,o=>o.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=Kpe(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=qb(this.containers,s=>s.modals.includes(t)),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&$f(t.modalRef,n),kO(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&$f(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};function DO(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Jpe(e){return typeof e=="function"?e():e}function ehe(e){return e?e.props.hasOwnProperty("in"):!1}const RO=()=>{},Nm=new Zpe;function the(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,h=x.useRef({}),y=x.useRef(null),g=x.useRef(null),b=Kn(g,p),[E,T]=x.useState(!d),A=ehe(c);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const k=()=>Yr(y.current),O=()=>(h.current.modalRef=g.current,h.current.mount=y.current,h.current),R=()=>{Nm.mount(O(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=Mr(()=>{const C=Jpe(t)||k().body;Nm.add(O(),C),g.current&&R()}),F=()=>Nm.isTopModal(O()),q=Mr(C=>{y.current=C,C&&(d&&F()?R():g.current&&$f(g.current,w))}),z=x.useCallback(()=>{Nm.remove(O(),w)},[w]);x.useEffect(()=>()=>{z()},[z]),x.useEffect(()=>{d?D():(!A||!a)&&z()},[d,z,A,a,D]);const $=C=>M=>{C.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!F())&&(n||(M.stopPropagation(),u&&u(M,"escapeKeyDown")))},H=C=>M=>{C.onClick?.(M),M.target===M.currentTarget&&u&&u(M,"backdropClick")};return{getRootProps:(C={})=>{const M=zr(e);delete M.onTransitionEnter,delete M.onTransitionExited;const B={...M,...C};return{role:"presentation",...B,onKeyDown:$(B),ref:b}},getBackdropProps:(C={})=>{const M=C;return{"aria-hidden":!0,...M,onClick:H(M),open:d}},getTransitionProps:()=>{const C=()=>{T(!1),o&&o()},M=()=>{T(!0),s&&s(),a&&z()};return{onEnter:DO(C,c?.props.onEnter??RO),onExited:DO(M,c?.props.onExited??RO)}},rootRef:b,portalRef:q,isTopModal:F,exited:E,hasTransition:A}}function nhe(e){return Ht("MuiModal",e)}Lt("MuiModal",["root","hidden","backdrop"]);function OO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rhe(e){return typeof e=="function"?e():e}const ahe=x.forwardRef(function(e,t){const{children:n,container:r,disablePortal:a=!1}=e,[o,s]=x.useState(null),c=Kn(x.isValidElement(n)?Fu(n):null,t);if(Ps(()=>{a||s(rhe(r)||document.body)},[r,a]),Ps(()=>{if(o&&!a)return OO(t,o),()=>{OO(t,null)}},[t,o,a]),a){if(x.isValidElement(n)){const u={ref:c};return x.cloneElement(n,u)}return n}return o&&Tp.createPortal(n,o)}),ohe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ihe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function she(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function lhe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||she(e))}function che(e){const t=[],n=[];return Array.from(e.querySelectorAll(ohe)).forEach((r,a)=>{const o=ihe(r);o===-1||!lhe(r)||(o===0?t.push(r):n.push({documentOrder:a,tabIndex:o,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function uhe(){return!0}function dhe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:o=che,isEnabled:s=uhe,open:c}=e,u=x.useRef(!1),d=x.useRef(null),p=x.useRef(null),h=x.useRef(null),y=x.useRef(null),g=x.useRef(!1),b=x.useRef(null),E=Kn(Fu(t),b),T=x.useRef(null);x.useEffect(()=>{!c||!b.current||(g.current=!n)},[n,c]),x.useEffect(()=>{if(!c||!b.current)return;const k=Yr(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{a||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),x.useEffect(()=>{if(!c||!b.current)return;const k=Yr(b.current),O=F=>{T.current=F,!(r||!s()||F.key!=="Tab")&&k.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},R=()=>{const F=b.current;if(F===null)return;if(!k.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(k.activeElement)||r&&k.activeElement!==d.current&&k.activeElement!==p.current)return;if(k.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let q=[];if((k.activeElement===d.current||k.activeElement===p.current)&&(q=o(b.current)),q.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),$=q[0],H=q[q.length-1];typeof $!="string"&&typeof H!="string"&&(z?H.focus():$.focus())}else F.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",O,!0);const D=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(D),k.removeEventListener("focusin",R),k.removeEventListener("keydown",O,!0)}},[n,r,a,s,c,o]);const A=k=>{h.current===null&&(h.current=k.relatedTarget),g.current=!0,y.current=k.target;const O=t.props.onFocus;O&&O(k)},w=k=>{h.current===null&&(h.current=k.relatedTarget),g.current=!0};return P.jsxs(x.Fragment,{children:[P.jsx("div",{tabIndex:c?0:-1,onFocus:w,ref:d,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:E,onFocus:A}),P.jsx("div",{tabIndex:c?0:-1,onFocus:w,ref:p,"data-testid":"sentinelEnd"})]})}function fhe(e){return Ht("MuiBackdrop",e)}Lt("MuiBackdrop",["root","invisible"]);const phe=e=>{const{classes:t,invisible:n}=e;return zt({root:["root",n&&"invisible"]},fhe,t)},hhe=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ZP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:o="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:y,transitionDuration:g,...b}=n,E={...n,component:o,invisible:s},T=phe(E),A={transition:y,root:u.Root,...h},w={...d,...p},k={component:o,slots:A,slotProps:w},[O,R]=_n("root",{elementType:hhe,externalForwardedProps:k,className:mt(T.root,a),ownerState:E}),[D,F]=_n("transition",{elementType:IT,externalForwardedProps:k,ownerState:E});return P.jsx(D,{in:c,timeout:g,...b,...F,children:P.jsx(O,{"aria-hidden":!0,...R,classes:T,ref:t,children:r})})}),mhe=e=>{const{open:t,exited:n,classes:r}=e;return zt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nhe,r)},ghe=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(gn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),yhe=ze(ZP,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),JP=x.forwardRef(function(e,t){const n=Yt({name:"MuiModal",props:e}),{BackdropComponent:r=yhe,BackdropProps:a,classes:o,className:s,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:E=!1,disablePortal:T=!1,disableRestoreFocus:A=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:O=!1,onClose:R,onTransitionEnter:D,onTransitionExited:F,open:q,slotProps:z={},slots:$={},theme:H,...C}=n,M={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:E,disablePortal:T,disableRestoreFocus:A,disableScrollLock:w,hideBackdrop:k,keepMounted:O},{getRootProps:B,getBackdropProps:W,getTransitionProps:j,portalRef:Z,isTopModal:Q,exited:ae,hasTransition:I}=the({...M,rootRef:t}),ne={...M,exited:ae},ee=mhe(ne),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),I){const{onEnter:Oe,onExited:Ue}=j();L.onEnter=Oe,L.onExited=Ue}const te={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...y,...z}},[be,de]=_n("root",{ref:t,elementType:ghe,externalForwardedProps:{...te,...C,component:p},getSlotProps:B,ownerState:ne,className:mt(s,ee?.root,!ne.open&&ne.exited&&ee?.hidden)}),[xe,ye]=_n("backdrop",{ref:a?.ref,elementType:r,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Oe=>W({...Oe,onClick:Ue=>{Oe?.onClick&&Oe.onClick(Ue)}}),className:mt(a?.className,ee?.backdrop),ownerState:ne});return!O&&!q&&(!I||ae)?null:P.jsx(ahe,{ref:Z,container:d,disablePortal:T,children:P.jsxs(be,{...de,children:[!k&&r?P.jsx(xe,{...ye}):null,P.jsx(dhe,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:A,isEnabled:Q,open:q,children:x.cloneElement(u,L)})]})})}),vhe=ze(ZP,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bhe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${at(n)}`],paper:["paper",`paperScroll${at(n)}`,`paperWidth${at(String(r))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return zt(s,zpe,t)},Ehe=ze(JP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),The=ze("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${at(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),She=ze(yy,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${at(n.scroll)}`],t[`paperWidth${at(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(gn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Gb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Gb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Gb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),s1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialog"}),r=$u(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:E="sm",onClick:T,onClose:A,open:w,PaperComponent:k=yy,PaperProps:O={},scroll:R="paper",slots:D={},slotProps:F={},TransitionComponent:q=IT,transitionDuration:z=a,TransitionProps:$,...H}=n,C={...n,disableEscapeKeyDown:y,fullScreen:g,fullWidth:b,maxWidth:E,scroll:R},M=bhe(C),B=x.useRef(),W=Ye=>{B.current=Ye.target===Ye.currentTarget},j=Ye=>{T&&T(Ye),B.current&&(B.current=null,A&&A(Ye,"backdropClick"))},Z=Kp(s),Q=x.useMemo(()=>({titleId:Z}),[Z]),ae={transition:q,...D},I={transition:$,paper:O,backdrop:d,...F},ne={slots:ae,slotProps:I},[ee,L]=_n("root",{elementType:Ehe,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:C,className:mt(M.root,h),ref:t}),[te,be]=_n("backdrop",{elementType:vhe,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:C}),[de,xe]=_n("paper",{elementType:She,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:C,className:mt(M.paper,O.className)}),[ye,Oe]=_n("container",{elementType:The,externalForwardedProps:ne,ownerState:C,className:M.container}),[Ue,Ie]=_n("transition",{elementType:IT,externalForwardedProps:ne,ownerState:C,additionalProps:{appear:!0,in:w,timeout:z,role:"presentation"}});return P.jsx(ee,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:z,as:u,...be}},disableEscapeKeyDown:y,onClose:A,open:w,onClick:j,...L,...H,children:P.jsx(Ue,{...Ie,children:P.jsx(ye,{onMouseDown:W,...Oe,children:P.jsx(de,{as:k,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Z,"aria-modal":c,...xe,children:P.jsx(KP.Provider,{value:Q,children:p})})})})})});function _he(e){return Ht("MuiDialogTitle",e)}const Che=Lt("MuiDialogTitle",["root"]),Ahe=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ip;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function xhe(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=Ahe(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const c=t(...s);return qo(c)?{...r,...c}:r}:o={...r,...t},{...a,sx:o}}function whe(e){return P.jsx(aS,{...e,defaultTheme:N0,themeId:L0})}function khe(e){return function(t){return P.jsx(whe,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function Dhe(){return xhe}function Rhe(e){return Ht("MuiTypography",e)}Lt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ohe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ihe=Dhe(),Nhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=e,c={root:["root",o,e.align!=="inherit"&&`align${at(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return zt(c,Rhe,s)},Lhe=ze("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${at(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(gn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${at(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),IO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},e6=x.forwardRef(function(e,t){const{color:n,...r}=Yt({props:e,name:"MuiTypography"}),a=!Ohe[n],o=Ihe({...r,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=IO,...b}=o,E={...o,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:y,variantMapping:g},T=u||(h?"p":g[y]||IO[y])||"span",A=Nhe(E);return P.jsx(Lhe,{as:T,ref:t,className:mt(A.root,c),...b,ownerState:E,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})}),Phe=e=>{const{classes:t}=e;return zt({root:["root"]},_he,t)},Mhe=ze(e6,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),l1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogTitle"}),{className:r,id:a,...o}=n,s=n,c=Phe(s),{titleId:u=a}=x.useContext(KP);return P.jsx(Mhe,{component:"h2",className:mt(c.root,r),ownerState:s,ref:t,variant:"h6",id:a??u,...o})});function $he(e){return Ht("MuiDialogContent",e)}Lt("MuiDialogContent",["root","dividers"]);const Fhe=e=>{const{classes:t,dividers:n}=e;return zt({root:["root",n&&"dividers"]},$he,t)},Bhe=ze("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(gn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Che.root} + &`]:{paddingTop:0}}}]}))),c1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...o}=n,s={...n,dividers:a},c=Fhe(s);return P.jsx(Bhe,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function Uhe(e){return Ht("MuiDialogContentText",e)}Lt("MuiDialogContentText",["root"]);const jhe=e=>{const{classes:t}=e,n=zt({root:["root"]},Uhe,t);return{...t,...n}},Hhe=ze(e6,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),u1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContentText"}),{children:r,className:a,...o}=n,s=jhe(o);return P.jsx(Hhe,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:o,className:mt(s.root,a),...n,classes:s})});function zhe(e){return Ht("MuiTextField",e)}Lt("MuiTextField",["root"]);var NO;const Vhe=ze("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Zr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ghe=ze("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Zr})(gn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function qhe(e){const{children:t,classes:n,className:r,label:a,notched:o,...s}=e,c=a!=null&&a!=="",u={...e,notched:o,withLabel:c};return P.jsx(Vhe,{"aria-hidden":!0,className:r,ownerState:u,...s,children:P.jsx(Ghe,{ownerState:u,children:c?P.jsx("span",{children:a}):NO||(NO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function Bu({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}function Whe(e){return Ht("MuiInputBase",e)}const Tu=Lt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Yhe(e){return Ht("MuiOutlinedInput",e)}const Mo={...Tu,...Lt("MuiOutlinedInput",["root","notchedOutline","input"])};function LO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function e0(e,t=!1){return e&&(LO(e.value)&&e.value!==""||t&&LO(e.defaultValue)&&e.defaultValue!=="")}function Qhe(e){return e.startAdornment}function t6(e,t=166){let n;function r(...a){const o=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Lm(e){return parseInt(e,10)||0}const Khe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Xhe(e){for(const t in e)return!1;return!0}function PO(e){return Xhe(e)||e.outerHeightStyle===0&&!e.overflowing}const Zhe=x.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:a=1,style:o,value:s,...c}=e,{current:u}=x.useRef(s!=null),d=x.useRef(null),p=Kn(t,d),h=x.useRef(null),y=x.useRef(null),g=x.useCallback(()=>{const w=d.current,k=y.current;if(!w||!k)return;const O=$i(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=O.width,k.value=w.value||e.placeholder||"x",k.value.slice(-1)===`
|
|
419
|
+
`&&(k.value+=" ");const R=O.boxSizing,D=Lm(O.paddingBottom)+Lm(O.paddingTop),F=Lm(O.borderBottomWidth)+Lm(O.borderTopWidth),q=k.scrollHeight;k.value="x";const z=k.scrollHeight;let $=q;a&&($=Math.max(Number(a)*z,$)),r&&($=Math.min(Number(r)*z,$)),$=Math.max($,z);const H=$+(R==="border-box"?D+F:0),C=Math.abs($-q)<=1;return{outerHeightStyle:H,overflowing:C}},[r,a,e.placeholder]),b=Mr(()=>{const w=d.current,k=g();if(!w||!k||PO(k))return!1;const O=k.outerHeightStyle;return h.current!=null&&h.current!==O}),E=x.useCallback(()=>{const w=d.current,k=g();if(!w||!k||PO(k))return;const O=k.outerHeightStyle;h.current!==O&&(h.current=O,w.style.height=`${O}px`),w.style.overflow=k.overflowing?"hidden":""},[g]),T=x.useRef(-1);Ps(()=>{const w=t6(E),k=d?.current;if(!k)return;const O=$i(k);O.addEventListener("resize",w);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{b()&&(R.unobserve(k),cancelAnimationFrame(T.current),E(),T.current=requestAnimationFrame(()=>{R.observe(k)}))}),R.observe(k)),()=>{w.clear(),cancelAnimationFrame(T.current),O.removeEventListener("resize",w),R&&R.disconnect()}},[g,E,b]),Ps(()=>{E()});const A=w=>{u||E();const k=w.target,O=k.value.length,R=k.value.endsWith(`
|
|
420
|
+
`),D=k.selectionStart===O;R&&D&&k.setSelectionRange(O,O),n&&n(w)};return P.jsxs(x.Fragment,{children:[P.jsx("textarea",{value:s,onChange:A,ref:p,rows:a,style:o,...c}),P.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Khe.shadow,...o,paddingTop:0,paddingBottom:0}})]})});var MO;const vy=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${at(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},by=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Jhe=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:o,focused:s,formControl:c,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:y,startAdornment:g,type:b}=e,E={root:["root",`color${at(n)}`,r&&"disabled",a&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",y&&y!=="medium"&&`size${at(y)}`,p&&"multiline",g&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return zt(E,Whe,t)},Ey=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:vy})(gn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Tu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ty=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:by})(gn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Tu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Tu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),$O=khe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),q_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:o,className:s,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:b,fullWidth:E=!1,id:T,inputComponent:A="input",inputProps:w={},inputRef:k,margin:O,maxRows:R,minRows:D,multiline:F=!1,name:q,onBlur:z,onChange:$,onClick:H,onFocus:C,onKeyDown:M,onKeyUp:B,placeholder:W,readOnly:j,renderSuffix:Z,rows:Q,size:ae,slotProps:I={},slots:ne={},startAdornment:ee,type:L="text",value:te,...be}=n,de=w.value!=null?w.value:te,{current:xe}=x.useRef(de!=null),ye=x.useRef(),Oe=x.useCallback(Qe=>{},[]),Ue=Kn(ye,k,w.ref,Oe),[Ie,Ye]=x.useState(!1),Ve=Wl(),De=Bu({props:n,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=Ve?Ve.focused:Ie,x.useEffect(()=>{!Ve&&h&&Ie&&(Ye(!1),z&&z())},[Ve,h,Ie,z]);const Ot=Ve&&Ve.onFilled,Et=Ve&&Ve.onEmpty,je=x.useCallback(Qe=>{e0(Qe)?Ot&&Ot():Et&&Et()},[Ot,Et]);Ps(()=>{xe&&je({value:de})},[de,je,xe]);const St=Qe=>{C&&C(Qe),w.onFocus&&w.onFocus(Qe),Ve&&Ve.onFocus?Ve.onFocus(Qe):Ye(!0)},it=Qe=>{z&&z(Qe),w.onBlur&&w.onBlur(Qe),Ve&&Ve.onBlur?Ve.onBlur(Qe):Ye(!1)},Ze=(Qe,...gt)=>{if(!xe){const cn=Qe.target||ye.current;if(cn==null)throw new Error(Pi(1));je({value:cn.value})}w.onChange&&w.onChange(Qe,...gt),$&&$(Qe,...gt)};x.useEffect(()=>{je(ye.current)},[]);const Ge=Qe=>{ye.current&&Qe.currentTarget===Qe.target&&ye.current.focus(),H&&H(Qe)};let Pe=A,It=w;F&&Pe==="input"&&(Q?It={type:void 0,minRows:Q,maxRows:Q,...It}:It={type:void 0,maxRows:R,minRows:D,...It},Pe=Zhe);const kn=Qe=>{je(Qe.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};x.useEffect(()=>{Ve&&Ve.setAdornedStart(!!ee)},[Ve,ee]);const bt={...n,color:De.color||"primary",disabled:De.disabled,endAdornment:g,error:De.error,focused:De.focused,formControl:Ve,fullWidth:E,hiddenLabel:De.hiddenLabel,multiline:F,size:De.size,startAdornment:ee,type:L},ce=Jhe(bt),me=ne.root||u.Root||Ey,Be=I.root||d.root||{},qe=ne.input||u.Input||Ty;return It={...It,...I.input??d.input},P.jsxs(x.Fragment,{children:[!y&&typeof $O=="function"&&(MO||(MO=P.jsx($O,{}))),P.jsxs(me,{...Be,ref:t,onClick:Ge,...be,...!Jg(me)&&{ownerState:{...bt,...Be.ownerState}},className:mt(ce.root,Be.className,s,j&&"MuiInputBase-readOnly"),children:[ee,P.jsx(U_.Provider,{value:null,children:P.jsx(qe,{"aria-invalid":De.error,"aria-describedby":r,autoComplete:a,autoFocus:o,defaultValue:p,disabled:De.disabled,id:T,onAnimationStart:kn,name:q,placeholder:W,readOnly:j,required:De.required,rows:Q,value:de,onKeyDown:M,onKeyUp:B,type:L,...It,...!Jg(qe)&&{as:Pe,ownerState:{...bt,...It.ownerState}},ref:Ue,className:mt(ce.input,It.className,j&&"MuiInputBase-readOnly"),onBlur:it,onChange:Ze,onFocus:St})}),g,Z?Z({...De,startAdornment:ee}):null]})]})}),eme=e=>{const{classes:t}=e,n=zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Yhe,t);return{...t,...n}},tme=ze(Ey,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:vy})(gn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Mo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mo.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(So()).map(([n])=>({props:{color:n},style:{[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Mo.error} .${Mo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mo.disabled} .${Mo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),nme=ze(qhe,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(gn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),rme=ze(Ty,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:by})(gn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),W_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:a=!1,inputComponent:o="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...y}=n,g=eme(n),b=Wl(),E=Bu({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:c,size:E.size,type:h},A=d.root??r.Root??tme,w=d.input??r.Input??rme,[k,O]=_n("notchedOutline",{elementType:nme,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&E.required?P.jsxs(x.Fragment,{children:[s," ","*"]}):s}});return P.jsx(q_,{slots:{root:A,input:w},slotProps:p,renderSuffix:R=>P.jsx(k,{...O,notched:typeof u<"u"?u:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:a,inputComponent:o,multiline:c,ref:t,type:h,...y,classes:{...g,notchedOutline:null}})});W_.muiName="Input";function ame(e){return Ht("MuiFilledInput",e)}const il={...Tu,...Lt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ome=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:o,hiddenLabel:s,multiline:c}=e,u={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${at(o)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=zt(u,ame,t);return{...t,...d}},ime=ze(Ey,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vy(e,t),!n.disableUnderline&&t.underline]}})(gn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${il.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${il.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${il.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${il.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${il.disabled}, .${il.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${il.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(So()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:c})=>s.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),sme=ze(Ty,{name:"MuiFilledInput",slot:"Input",overridesResolver:by})(gn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Y_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:y="text",...g}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:d,type:y},E=ome(n),T={root:{ownerState:b},input:{ownerState:b}},A=p??o?Pr(T,p??o):T,w=h.root??a.Root??ime,k=h.input??a.Input??sme;return P.jsx(q_,{slots:{root:w,input:k},slotProps:A,fullWidth:s,inputComponent:u,multiline:d,ref:t,type:y,...g,classes:E})});Y_.muiName="Input";function lme(e){return Ht("MuiInput",e)}const rf={...Tu,...Lt("MuiInput",["root","underline","input"])},cme=e=>{const{classes:t,disableUnderline:n}=e,r=zt({root:["root",!n&&"underline"],input:["input"]},lme,t);return{...t,...r}},ume=ze(Ey,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vy(e,t),!n.disableUnderline&&t.underline]}})(gn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rf.disabled}, .${rf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${rf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(So()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),dme=ze(Ty,{name:"MuiInput",slot:"Input",overridesResolver:by})({}),Q_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...y}=n,g=cme(n),b={root:{ownerState:{disableUnderline:r}}},E=d??o?Pr(d??o,b):b,T=p.root??a.Root??ume,A=p.input??a.Input??dme;return P.jsx(q_,{slots:{root:T,input:A},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:t,type:h,...y,classes:g})});Q_.muiName="Input";function fme(e){return Ht("MuiInputLabel",e)}Lt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function pme(e){return Ht("MuiFormLabel",e)}const Ff=Lt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hme=e=>{const{classes:t,color:n,focused:r,disabled:a,error:o,filled:s,required:c}=e,u={root:["root",`color${at(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",o&&"error"]};return zt(u,pme,t)},mme=ze("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(gn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{[`&.${Ff.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ff.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ff.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),gme=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(gn(({theme:e})=>({[`&.${Ff.error}`]:{color:(e.vars||e).palette.error.main}}))),yme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormLabel"}),{children:r,className:a,color:o,component:s="label",disabled:c,error:u,filled:d,focused:p,required:h,...y}=n,g=Wl(),b=Bu({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:b.color||"primary",component:s,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},T=hme(E);return P.jsxs(mme,{as:s,ownerState:E,className:mt(T.root,a),ref:t,...y,children:[r,b.required&&P.jsxs(gme,{ownerState:E,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})}),vme=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:o,variant:s,required:c}=e,u={root:["root",n&&"formControl",!o&&"animated",a&&"shrink",r&&r!=="medium"&&`size${at(r)}`,s],asterisk:[c&&"asterisk"]},d=zt(u,fme,t);return{...t,...d}},bme=ze(yme,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ff.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(gn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Eme=x.forwardRef(function(e,t){const n=Yt({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:a,shrink:o,variant:s,className:c,...u}=n,d=Wl();let p=o;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Bu({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=vme(y);return P.jsx(bme,{"data-shrink":p,ref:t,className:mt(g.root,c),...u,ownerState:y,classes:g})});function Tme(e){return Ht("MuiFormHelperText",e)}const FO=Lt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var BO;const Sme=e=>{const{classes:t,contained:n,size:r,disabled:a,error:o,filled:s,focused:c,required:u}=e,d={root:["root",a&&"disabled",o&&"error",r&&`size${at(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return zt(d,Tme,t)},_me=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${at(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(gn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${FO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${FO.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Cme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:o="p",disabled:s,error:c,filled:u,focused:d,margin:p,required:h,variant:y,...g}=n,b=Wl(),E=Bu({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),T={...n,component:o,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete T.ownerState;const A=Sme(T);return P.jsx(_me,{as:o,className:mt(A.root,a),ref:t,...g,ownerState:T,children:r===" "?BO||(BO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function Ame(e){return Ht("MuiMenu",e)}Lt("MuiMenu",["root","paper","list"]);function xme(e){return Ht("MuiPopover",e)}Lt("MuiPopover",["root","paper"]);function NT(e){return`scale(${e}, ${e**2})`}const wme={entering:{opacity:1,transform:NT(1)},entered:{opacity:1,transform:"none"}},Wb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t0=x.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:a,easing:o,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:y,style:g,timeout:b="auto",TransitionComponent:E=xo,...T}=e,A=py(),w=x.useRef(),k=$u(),O=x.useRef(null),R=Kn(O,Fu(a),t),D=M=>B=>{if(M){const W=O.current;B===void 0?M(W):M(W,B)}},F=D(d),q=D((M,B)=>{xP(M);const{duration:W,delay:j,easing:Z}=Eu({style:g,timeout:b,easing:o},{mode:"enter"});let Q;b==="auto"?(Q=k.transitions.getAutoHeightDuration(M.clientHeight),w.current=Q):Q=W,M.style.transition=[k.transitions.create("opacity",{duration:Q,delay:j}),k.transitions.create("transform",{duration:Wb?Q:Q*.666,delay:j,easing:Z})].join(","),c&&c(M,B)}),z=D(u),$=D(y),H=D(M=>{const{duration:B,delay:W,easing:j}=Eu({style:g,timeout:b,easing:o},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(M.clientHeight),w.current=Z):Z=B,M.style.transition=[k.transitions.create("opacity",{duration:Z,delay:W}),k.transitions.create("transform",{duration:Wb?Z:Z*.666,delay:Wb?W:W||Z*.333,easing:j})].join(","),M.style.opacity=0,M.style.transform=NT(.75),p&&p(M)}),C=D(h);return P.jsx(E,{appear:r,in:s,nodeRef:O,onEnter:q,onEntered:z,onEntering:F,onExit:H,onExited:C,onExiting:$,addEndListener:M=>{b==="auto"&&A.start(w.current||0,M),n&&n(O.current,M)},timeout:b==="auto"?null:b,...T,children:(M,{ownerState:B,...W})=>x.cloneElement(a,{style:{opacity:0,transform:NT(.75),visibility:M==="exited"&&!s?"hidden":void 0,...wme[M],...g,...a.props.style},ref:R,...W})})});t0&&(t0.muiSupportAuto=!0);function UO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function jO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function HO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pm(e){return typeof e=="function"?e():e}const kme=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"]},xme,t)},Dme=ze(JP,{name:"MuiPopover",slot:"Root"})({}),n6=ze(yy,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Rme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPopover"}),{action:r,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:b={},slots:E={},slotProps:T={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:k="auto",TransitionProps:O={},disableScrollLock:R=!1,...D}=n,F=x.useRef(),q={...n,anchorOrigin:o,anchorReference:c,elevation:h,marginThreshold:y,transformOrigin:A,TransitionComponent:w,transitionDuration:k,TransitionProps:O},z=kme(q),$=x.useCallback(()=>{if(c==="anchorPosition")return s;const Oe=Pm(a),Ue=(Oe&&Oe.nodeType===1?Oe:Yr(F.current).body).getBoundingClientRect();return{top:Ue.top+UO(Ue,o.vertical),left:Ue.left+jO(Ue,o.horizontal)}},[a,o.horizontal,o.vertical,s,c]),H=x.useCallback(Oe=>({vertical:UO(Oe,A.vertical),horizontal:jO(Oe,A.horizontal)}),[A.horizontal,A.vertical]),C=x.useCallback(Oe=>{const Ue={width:Oe.offsetWidth,height:Oe.offsetHeight},Ie=H(Ue);if(c==="none")return{top:null,left:null,transformOrigin:HO(Ie)};const Ye=$();let Ve=Ye.top-Ie.vertical,De=Ye.left-Ie.horizontal;const Ot=Ve+Ue.height,Et=De+Ue.width,je=$i(Pm(a)),St=je.innerHeight-y,it=je.innerWidth-y;if(y!==null&&Ve<y){const Ze=Ve-y;Ve-=Ze,Ie.vertical+=Ze}else if(y!==null&&Ot>St){const Ze=Ot-St;Ve-=Ze,Ie.vertical+=Ze}if(y!==null&&De<y){const Ze=De-y;De-=Ze,Ie.horizontal+=Ze}else if(Et>it){const Ze=Et-it;De-=Ze,Ie.horizontal+=Ze}return{top:`${Math.round(Ve)}px`,left:`${Math.round(De)}px`,transformOrigin:HO(Ie)}},[a,c,$,H,y]),[M,B]=x.useState(g),W=x.useCallback(()=>{const Oe=F.current;if(!Oe)return;const Ue=C(Oe);Ue.top!==null&&Oe.style.setProperty("top",Ue.top),Ue.left!==null&&(Oe.style.left=Ue.left),Oe.style.transformOrigin=Ue.transformOrigin,B(!0)},[C]);x.useEffect(()=>(R&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,R,W]);const j=()=>{W()},Z=()=>{B(!1)};x.useEffect(()=>{g&&W()}),x.useImperativeHandle(r,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),x.useEffect(()=>{if(!g)return;const Oe=t6(()=>{W()}),Ue=$i(Pm(a));return Ue.addEventListener("resize",Oe),()=>{Oe.clear(),Ue.removeEventListener("resize",Oe)}},[a,g,W]);let Q=k;const ae={slots:{transition:w,...E},slotProps:{transition:O,paper:b,...T}},[I,ne]=_n("transition",{elementType:t0,externalForwardedProps:ae,ownerState:q,getSlotProps:Oe=>({...Oe,onEntering:(Ue,Ie)=>{Oe.onEntering?.(Ue,Ie),j()},onExited:Ue=>{Oe.onExited?.(Ue),Z()}}),additionalProps:{appear:!0,in:g}});k==="auto"&&!I.muiSupportAuto&&(Q=void 0);const ee=p||(a?Yr(Pm(a)).body:void 0),[L,{slots:te,slotProps:be,...de}]=_n("root",{ref:t,elementType:Dme,externalForwardedProps:{...ae,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:IP(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:ee,open:g},ownerState:q,className:mt(z.root,d)}),[xe,ye]=_n("paper",{ref:F,className:z.paper,elementType:n6,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:M?void 0:{opacity:0}},ownerState:q});return P.jsx(L,{...de,...!Jg(L)&&{slots:te,slotProps:be,disableScrollLock:R},children:P.jsx(I,{...ne,timeout:Q,children:P.jsx(xe,{...ye,children:u})})})}),LT=x.createContext({});function Ome(e){return Ht("MuiList",e)}Lt("MuiList",["root","padding","dense","subheader"]);const Ime=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return zt({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},Ome,t)},Nme=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Lme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiList"}),{children:r,className:a,component:o="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,p=x.useMemo(()=>({dense:s}),[s]),h={...n,component:o,dense:s,disablePadding:c},y=Ime(h);return P.jsx(LT.Provider,{value:p,children:P.jsxs(Nme,{as:o,className:mt(y.root,a),ref:t,ownerState:h,...d,children:[u,r]})})});function Yb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function r6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function af(e,t,n,r,a,o){let s=!1,c=a(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(s)return!1;s=!0}const u=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!r6(c,o)||u)c=a(e,c,n);else return c.focus(),!0}return!1}const Pme=x.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,y=x.useRef(null),g=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ps(()=>{r&&y.current.focus()},[r]),x.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(w,{direction:k})=>{const O=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&O){const R=`${XP($i(w))}px`;y.current.style[k==="rtl"?"paddingLeft":"paddingRight"]=R,y.current.style.width=`calc(100% + ${R})`}return y.current}}),[]);const b=w=>{const k=y.current,O=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const R=Yr(k).activeElement;if(O==="ArrowDown")w.preventDefault(),af(k,R,u,c,Yb);else if(O==="ArrowUp")w.preventDefault(),af(k,R,u,c,zO);else if(O==="Home")w.preventDefault(),af(k,null,u,c,Yb);else if(O==="End")w.preventDefault(),af(k,null,u,c,zO);else if(O.length===1){const D=g.current,F=O.toLowerCase(),q=performance.now();D.keys.length>0&&(q-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&F!==D.keys[0]&&(D.repeating=!1)),D.lastTime=q,D.keys.push(F);const z=R&&!D.repeating&&r6(R,D);D.previousKeyMatched&&(z||af(k,R,!1,c,Yb,D))?w.preventDefault():D.previousKeyMatched=!1}d&&d(w)},E=Kn(y,t);let T=-1;x.Children.forEach(o,(w,k)=>{if(!x.isValidElement(w)){T===k&&(T+=1,T>=o.length&&(T=-1));return}w.props.disabled||(p==="selectedMenu"&&w.props.selected||T===-1)&&(T=k),T===k&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(T+=1,T>=o.length&&(T=-1))});const A=x.Children.map(o,(w,k)=>{if(k===T){const O={};return a&&(O.autoFocus=!0),w.props.tabIndex===void 0&&p==="selectedMenu"&&(O.tabIndex=0),x.cloneElement(w,O)}return w});return P.jsx(Lme,{role:"menu",ref:E,className:s,onKeyDown:b,tabIndex:r?0:-1,...h,children:A})}),Mme={vertical:"top",horizontal:"right"},$me={vertical:"top",horizontal:"left"},Fme=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"],list:["list"]},Ame,t)},Bme=ze(Rme,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ume=ze(n6,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jme=ze(Pme,{name:"MuiMenu",slot:"List"})({outline:0}),Hme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...b}={},variant:E="selectedMenu",slots:T={},slotProps:A={},...w}=n,k=BP(),O={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:c,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:b,variant:E},R=Fme(O),D=r&&!s&&d,F=x.useRef(null),q=(Q,ae)=>{F.current&&F.current.adjustStyleForScrollbar(Q,{direction:k?"rtl":"ltr"}),g&&g(Q,ae)},z=Q=>{Q.key==="Tab"&&(Q.preventDefault(),u&&u(Q,"tabKeyDown"))};let $=-1;x.Children.map(a,(Q,ae)=>{x.isValidElement(Q)&&(Q.props.disabled||(E==="selectedMenu"&&Q.props.selected||$===-1)&&($=ae))});const H={slots:T,slotProps:{list:c,transition:b,paper:p,...A}},C=xs({elementType:T.root,externalSlotProps:A.root,ownerState:O,className:[R.root,o]}),[M,B]=_n("paper",{className:R.paper,elementType:Ume,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:O}),[W,j]=_n("list",{className:mt(R.list,c.className),elementType:jme,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:Q=>({...Q,onKeyDown:ae=>{z(ae),Q.onKeyDown?.(ae)}}),ownerState:O}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(O):H.slotProps.transition;return P.jsx(Bme,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Mme:$me,slots:{root:T.root,paper:M,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:C,paper:B,backdrop:typeof A.backdrop=="function"?A.backdrop(O):A.backdrop,transition:{...Z,onEntering:(...Q)=>{q(...Q),Z?.onEntering?.(...Q)}}},open:d,ref:t,transitionDuration:y,ownerState:O,...w,classes:h,children:P.jsx(W,{actions:F,autoFocus:r&&($===-1||s),autoFocusItem:D,variant:E,...j,children:a})})});function zme(e){return Ht("MuiNativeSelect",e)}const K_=Lt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Vme=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${at(n)}`,o&&"iconOpen",r&&"disabled"]};return zt(c,zme,t)},a6=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${K_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Gme=ze(a6,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${K_.multiple}`]:t.multiple}]}})({}),o6=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${K_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),qme=ze(o6,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${at(n.variant)}`],n.open&&t.iconOpen]}})({}),Wme=x.forwardRef(function(e,t){const{className:n,disabled:r,error:a,IconComponent:o,inputRef:s,variant:c="standard",...u}=e,d={...e,disabled:r,variant:c,error:a},p=Vme(d);return P.jsxs(x.Fragment,{children:[P.jsx(Gme,{ownerState:d,className:mt(p.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:P.jsx(qme,{as:o,ownerState:d,className:p.icon})]})});function i6(e){return Ht("MuiSelect",e)}const of=Lt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var VO;const Yme=ze(a6,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${of.select}`]:t.select},{[`&.${of.select}`]:t[n.variant]},{[`&.${of.error}`]:t.error},{[`&.${of.multiple}`]:t.multiple}]}})({[`&.${of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Qme=ze(o6,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${at(n.variant)}`],n.open&&t.iconOpen]}})({}),Kme=ze("input",{shouldForwardProp:e=>q3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function GO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xme(e){return e==null||typeof e=="string"&&!e.trim()}const Zme=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${at(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return zt(c,i6,t)},Jme=x.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:a,autoWidth:o,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:b,labelId:E,MenuProps:T={},multiple:A,name:w,onBlur:k,onChange:O,onClose:R,onFocus:D,onOpen:F,open:q,readOnly:z,renderValue:$,required:H,SelectDisplayProps:C={},tabIndex:M,type:B,value:W,variant:j="standard",...Z}=e,[Q,ae]=wT({controlled:W,default:d,name:"Select"}),[I,ne]=wT({controlled:q,default:u,name:"Select"}),ee=x.useRef(null),L=x.useRef(null),[te,be]=x.useState(null),{current:de}=x.useRef(q!=null),[xe,ye]=x.useState(),Oe=Kn(t,b),Ue=x.useCallback(We=>{L.current=We,We&&be(We)},[]),Ie=te?.parentNode;x.useImperativeHandle(Oe,()=>({focus:()=>{L.current.focus()},node:ee.current,value:Q}),[Q]),x.useEffect(()=>{u&&I&&te&&!de&&(ye(o?null:Ie.clientWidth),L.current.focus())},[te,o]),x.useEffect(()=>{a&&L.current.focus()},[a]),x.useEffect(()=>{if(!E)return;const We=Yr(L.current).getElementById(E);if(We){const Ee=()=>{getSelection().isCollapsed&&L.current.focus()};return We.addEventListener("click",Ee),()=>{We.removeEventListener("click",Ee)}}},[E]);const Ye=(We,Ee)=>{We?F&&F(Ee):R&&R(Ee),de||(ye(o?null:Ie.clientWidth),ne(We))},Ve=We=>{We.button===0&&(We.preventDefault(),L.current.focus(),Ye(!0,We))},De=We=>{Ye(!1,We)},Ot=x.Children.toArray(s),Et=We=>{const Ee=Ot.find(Te=>Te.props.value===We.target.value);Ee!==void 0&&(ae(Ee.props.value),O&&O(We,Ee))},je=We=>Ee=>{let Te;if(Ee.currentTarget.hasAttribute("tabindex")){if(A){Te=Array.isArray(Q)?Q.slice():[];const ut=Q.indexOf(We.props.value);ut===-1?Te.push(We.props.value):Te.splice(ut,1)}else Te=We.props.value;if(We.props.onClick&&We.props.onClick(Ee),Q!==Te&&(ae(Te),O)){const ut=Ee.nativeEvent||Ee,nt=new ut.constructor(ut.type,ut);Object.defineProperty(nt,"target",{writable:!0,value:{value:Te,name:w}}),O(nt,We)}A||Ye(!1,Ee)}},St=We=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(We.key)&&(We.preventDefault(),Ye(!0,We))},it=te!==null&&I,Ze=We=>{!it&&k&&(Object.defineProperty(We,"target",{writable:!0,value:{value:Q,name:w}}),k(We))};delete Z["aria-invalid"];let Ge,Pe;const It=[];let kn=!1;(e0({value:Q})||h)&&($?Ge=$(Q):kn=!0);const bt=Ot.map(We=>{if(!x.isValidElement(We))return null;let Ee;if(A){if(!Array.isArray(Q))throw new Error(Pi(2));Ee=Q.some(Te=>GO(Te,We.props.value)),Ee&&kn&&It.push(We.props.children)}else Ee=GO(Q,We.props.value),Ee&&kn&&(Pe=We.props.children);return x.cloneElement(We,{"aria-selected":Ee?"true":"false",onClick:je(We),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(Te)},role:"option",selected:Ee,value:void 0,"data-value":We.props.value})});kn&&(A?It.length===0?Ge=null:Ge=It.reduce((We,Ee,Te)=>(We.push(Ee),Te<It.length-1&&We.push(", "),We),[]):Ge=Pe);let ce=xe;!o&&de&&te&&(ce=Ie.clientWidth);let me;typeof M<"u"?me=M:me=p?null:0;const Be=C.id||(w?`mui-component-select-${w}`:void 0),qe={...e,variant:j,value:Q,open:it,error:y},Qe=Zme(qe),gt={...T.PaperProps,...typeof T.slotProps?.paper=="function"?T.slotProps.paper(qe):T.slotProps?.paper},cn={...T.MenuListProps,...typeof T.slotProps?.list=="function"?T.slotProps.list(qe):T.slotProps?.list},Qt=Kp();return P.jsxs(x.Fragment,{children:[P.jsx(Yme,{as:"div",ref:Ue,tabIndex:me,role:"combobox","aria-controls":it?Qt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":it?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[E,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":H?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:St,onMouseDown:p||z?null:Ve,onBlur:Ze,onFocus:D,...C,ownerState:qe,className:mt(C.className,Qe.select,c),id:Be,children:Xme(Ge)?VO||(VO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ge}),P.jsx(Kme,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:w,ref:ee,"aria-hidden":!0,onChange:Et,tabIndex:-1,disabled:p,className:Qe.nativeInput,autoFocus:a,required:H,...Z,ownerState:qe}),P.jsx(Qme,{as:g,className:Qe.icon,ownerState:qe}),P.jsx(Hme,{id:`menu-${w||""}`,anchorEl:Ie,open:it,onClose:De,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Qt,...cn},paper:{...gt,style:{minWidth:ce,...gt!=null?gt.style:null}}},children:bt})]})}),ege=wn(P.jsx("path",{d:"M7 10l5 5 5-5z"})),tge=e=>{const{classes:t}=e,n=zt({root:["root"]},i6,t);return{...t,...n}},X_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Zr(e)&&e!=="variant"},nge=ze(Q_,X_)(""),rge=ze(W_,X_)(""),age=ze(Y_,X_)(""),s6=x.forwardRef(function(e,t){const n=Yt({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:a,classes:o={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=ege,id:p,input:h,inputProps:y,label:g,labelId:b,MenuProps:E,multiple:T=!1,native:A=!1,onClose:w,onOpen:k,open:O,renderValue:R,SelectDisplayProps:D,variant:F="outlined",...q}=n,z=A?Wme:Jme,$=Wl(),H=Bu({props:n,muiFormControl:$,states:["variant","error"]}),C=H.variant||F,M={...n,variant:C,classes:o},B=tge(M),{root:W,...j}=B,Z=h||{standard:P.jsx(nge,{ownerState:M}),outlined:P.jsx(rge,{label:g,ownerState:M}),filled:P.jsx(age,{ownerState:M})}[C],Q=Kn(t,Fu(Z));return P.jsx(x.Fragment,{children:x.cloneElement(Z,{inputComponent:z,inputProps:{children:a,error:H.error,IconComponent:d,variant:C,type:void 0,multiple:T,...A?{id:p}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:b,MenuProps:E,onClose:w,onOpen:k,open:O,renderValue:R,SelectDisplayProps:{id:p,...D}},...y,classes:y?Pr(j,y.classes):j,...h?h.props.inputProps:{}},...(T&&A||u)&&C==="outlined"?{notched:!0}:{},ref:Q,className:mt(Z.props.className,s,B.root),...!h&&{variant:C},...q})})});s6.muiName="Select";function oge(e){return Ht("MuiFormControl",e)}Lt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);function Qb(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const ige=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${at(n)}`,r&&"fullWidth"]};return zt(a,oge,t)},sge=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${at(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),lge=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormControl"}),{children:r,className:a,color:o="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:b="medium",variant:E="outlined",...T}=n,A={...n,color:o,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:y,required:g,size:b,variant:E},w=ige(A),[k,O]=x.useState(()=>{let B=!1;return r&&x.Children.forEach(r,W=>{if(!Qb(W,["Input","Select"]))return;const j=Qb(W,["Select"])?W.props.input:W;j&&Qhe(j.props)&&(B=!0)}),B}),[R,D]=x.useState(()=>{let B=!1;return r&&x.Children.forEach(r,W=>{Qb(W,["Input","Select"])&&(e0(W.props,!0)||e0(W.props.inputProps,!0))&&(B=!0)}),B}),[F,q]=x.useState(!1);c&&F&&q(!1);const z=d!==void 0&&!c?d:F;let $;x.useRef(!1);const H=x.useCallback(()=>{D(!0)},[]),C=x.useCallback(()=>{D(!1)},[]),M=x.useMemo(()=>({adornedStart:k,setAdornedStart:O,color:o,disabled:c,error:u,filled:R,focused:z,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{q(!1)},onFocus:()=>{q(!0)},onEmpty:C,onFilled:H,registerEffect:$,required:g,variant:E}),[k,o,c,u,R,z,p,h,$,C,H,g,b,E]);return P.jsx(U_.Provider,{value:M,children:P.jsx(sge,{as:s,ownerState:A,className:mt(w.root,a),ref:t,...T,children:r})})}),cge={standard:Q_,filled:Y_,outlined:W_},uge=e=>{const{classes:t}=e;return zt({root:["root"]},zhe,t)},dge=ze(lge,{name:"MuiTextField",slot:"Root"})({}),d1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:o,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:b,InputLabelProps:E,inputProps:T,InputProps:A,inputRef:w,label:k,maxRows:O,minRows:R,multiline:D=!1,name:F,onBlur:q,onChange:z,onFocus:$,placeholder:H,required:C=!1,rows:M,select:B=!1,SelectProps:W,slots:j={},slotProps:Z={},type:Q,value:ae,variant:I="outlined",...ne}=n,ee={...n,autoFocus:a,color:c,disabled:d,error:p,fullWidth:y,multiline:D,required:C,select:B,variant:I},L=uge(ee),te=Kp(b),be=g&&te?`${te}-helper-text`:void 0,de=k&&te?`${te}-label`:void 0,xe=cge[I],ye={slots:j,slotProps:{input:A,inputLabel:E,htmlInput:T,formHelperText:h,select:W,...Z}},Oe={},Ue=ye.slotProps.inputLabel;I==="outlined"&&(Ue&&typeof Ue.shrink<"u"&&(Oe.notched=Ue.shrink),Oe.label=k),B&&((!W||!W.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Ie,Ye]=_n("root",{elementType:dge,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...ne},ownerState:ee,className:mt(L.root,s),ref:t,additionalProps:{disabled:d,error:p,fullWidth:y,required:C,color:c,variant:I}}),[Ve,De]=_n("input",{elementType:xe,externalForwardedProps:ye,additionalProps:Oe,ownerState:ee}),[Ot,Et]=_n("inputLabel",{elementType:Eme,externalForwardedProps:ye,ownerState:ee}),[je,St]=_n("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:ee}),[it,Ze]=_n("formHelperText",{elementType:Cme,externalForwardedProps:ye,ownerState:ee}),[Ge,Pe]=_n("select",{elementType:s6,externalForwardedProps:ye,ownerState:ee}),It=P.jsx(Ve,{"aria-describedby":be,autoComplete:r,autoFocus:a,defaultValue:u,fullWidth:y,multiline:D,name:F,rows:M,maxRows:O,minRows:R,type:Q,value:ae,id:te,inputRef:w,onBlur:q,onChange:z,onFocus:$,placeholder:H,inputProps:St,slots:{input:j.htmlInput?je:void 0},...De});return P.jsxs(Ie,{...Ye,children:[k!=null&&k!==""&&P.jsx(Ot,{htmlFor:te,id:de,...Et,children:k}),B?P.jsx(Ge,{"aria-describedby":be,id:te,labelId:de,value:ae,input:It,...Pe,children:o}):It,g&&P.jsx(it,{id:be,...Ze,children:g})]})});function fge(e){return Ht("MuiMenuItem",e)}const sf=Lt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qO=Lt("MuiListItemIcon",["root","alignItemsFlexStart"]),WO=Lt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),YO=Lt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hge=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:o,classes:s}=e,c=zt({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},fge,s);return{...s,...c}},mge=ze(hy,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pge})(gn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${sf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${sf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${YO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${YO.inset}`]:{marginLeft:52},[`& .${WO.root}`]:{marginTop:0,marginBottom:0},[`& .${WO.inset}`]:{paddingLeft:36},[`& .${qO.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${qO.root} svg`]:{fontSize:"1.25rem"}}}]}))),f1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...y}=n,g=x.useContext(LT),b=x.useMemo(()=>({dense:o||g.dense||!1,disableGutters:c}),[g.dense,o,c]),E=x.useRef(null);Ps(()=>{r&&E.current&&E.current.focus()},[r]);const T={...n,dense:b.dense,divider:s,disableGutters:c},A=hge(n),w=Kn(E,t);let k;return n.disabled||(k=p!==void 0?p:-1),P.jsx(LT.Provider,{value:b,children:P.jsx(mge,{ref:w,role:d,tabIndex:k,component:a,focusVisibleClassName:mt(A.focusVisible,u),className:mt(A.root,h),...y,ownerState:T,classes:A})})});function gge(e){return Ht("MuiDialogActions",e)}Lt("MuiDialogActions",["root","spacing"]);const yge=e=>{const{classes:t,disableSpacing:n}=e;return zt({root:["root",!n&&"spacing"]},gge,t)},vge=ze("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),p1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...o}=n,s={...n,disableSpacing:a},c=yge(s);return P.jsx(vge,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function bge(e){return Ht("MuiIconButton",e)}const QO=Lt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ege=e=>{const{classes:t,disabled:n,color:r,edge:a,size:o,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${at(r)}`,a&&`edge${at(a)}`,`size${at(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zt(c,bge,t)},Tge=ze(hy,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${at(n.color)}`],n.edge&&t[`edge${at(n.edge)}`],t[`size${at(n.size)}`]]}})(gn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),gn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(So()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${QO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${QO.loading}`]:{color:"transparent"}}))),Sge=ze("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),h1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiIconButton"}),{edge:r=!1,children:a,className:o,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:y,...g}=n,b=Kp(p),E=y??P.jsx(YP,{"aria-labelledby":b,color:"inherit",size:16}),T={...n,edge:r,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:E,size:d},A=Ege(T);return P.jsxs(Tge,{id:h?b:p,className:mt(A.root,o),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:t,...g,ownerState:T,children:[typeof h=="boolean"&&P.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:P.jsx(Sge,{className:A.loadingIndicator,ownerState:T,children:h&&E})}),a]})}),m1e=wn(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),g1e=wn(P.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),y1e=wn(P.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),v1e=wn(P.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),b1e=wn(P.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),E1e=wn([P.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),P.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),T1e=wn(P.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"}));function _ge(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=e,s=py();x.useEffect(()=>{if(!a)return;function T(A){A.defaultPrevented||A.key==="Escape"&&r?.(A,"escapeKeyDown")}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[a,r]);const c=Mr((T,A)=>{r?.(T,A)}),u=Mr(T=>{!r||T==null||s.start(T,()=>{c(null,"timeout")})});x.useEffect(()=>(a&&u(t),s.clear),[a,t,u,s]);const d=T=>{r?.(T,"clickaway")},p=s.clear,h=x.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),y=T=>A=>{const w=T.onBlur;w?.(A),h()},g=T=>A=>{const w=T.onFocus;w?.(A),p()},b=T=>A=>{const w=T.onMouseEnter;w?.(A),p()},E=T=>A=>{const w=T.onMouseLeave;w?.(A),h()};return x.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,a,h,p]),{getRootProps:(T={})=>{const A={...zr(e),...zr(T)};return{role:"presentation",...T,...A,onBlur:y(A),onFocus:g(A),onMouseEnter:b(A),onMouseLeave:E(A)}},onClickAway:d}}function Cge(e){return Ht("MuiSnackbar",e)}Lt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function KO(e){return e.substring(2).toLowerCase()}function Age(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function xge(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=e,s=x.useRef(!1),c=x.useRef(null),u=x.useRef(!1),d=x.useRef(!1);x.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=Kn(Fu(t),c),h=Mr(b=>{const E=d.current;d.current=!1;const T=Yr(c.current);if(!u.current||!c.current||"clientX"in b&&Age(b,T))return;if(s.current){s.current=!1;return}let A;b.composedPath?A=b.composedPath().includes(c.current):A=!T.documentElement.contains(b.target)||c.current.contains(b.target),!A&&(n||!E)&&a(b)}),y=b=>E=>{d.current=!0;const T=t.props[b];T&&T(E)},g={ref:p};return o!==!1&&(g[o]=y(o)),x.useEffect(()=>{if(o!==!1){const b=KO(o),E=Yr(c.current),T=()=>{s.current=!0};return E.addEventListener(b,h),E.addEventListener("touchmove",T),()=>{E.removeEventListener(b,h),E.removeEventListener("touchmove",T)}}},[h,o]),r!==!1&&(g[r]=y(r)),x.useEffect(()=>{if(r!==!1){const b=KO(r),E=Yr(c.current);return E.addEventListener(b,h),()=>{E.removeEventListener(b,h)}}},[h,r]),x.cloneElement(t,g)}function wge(e){return Ht("MuiSnackbarContent",e)}Lt("MuiSnackbarContent",["root","message","action"]);const kge=e=>{const{classes:t}=e;return zt({root:["root"],action:["action"],message:["message"]},wge,t)},Dge=ze(yy,{name:"MuiSnackbarContent",slot:"Root"})(gn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(TE(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:TE(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Rge=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Oge=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ige=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:o,role:s="alert",...c}=n,u=n,d=kge(u);return P.jsxs(Dge,{role:s,elevation:6,className:mt(d.root,a),ownerState:u,ref:t,...c,children:[P.jsx(Rge,{className:d.message,ownerState:u,children:o}),r?P.jsx(Oge,{className:d.action,ownerState:u,children:r}):null]})}),Nge=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${at(n.vertical)}${at(n.horizontal)}`]};return zt(r,Cge,t)},Lge=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${at(n.anchorOrigin.vertical)}${at(n.anchorOrigin.horizontal)}`]]}})(gn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),S1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbar"}),r=$u(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:g=!1,message:b,onBlur:E,onClose:T,onFocus:A,onMouseEnter:w,onMouseLeave:k,open:O,resumeHideDuration:R,slots:D={},slotProps:F={},TransitionComponent:q,transitionDuration:z=a,TransitionProps:{onEnter:$,onExited:H,...C}={},...M}=n,B={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:q,transitionDuration:z},W=Nge(B),{getRootProps:j,onClickAway:Z}=_ge({...B}),[Q,ae]=x.useState(!0),I=Ye=>{ae(!0),H&&H(Ye)},ne=(Ye,Ve)=>{ae(!1),$&&$(Ye,Ve)},ee={slots:{transition:q,...D},slotProps:{content:y,clickAwayListener:h,transition:C,...F}},[L,te]=_n("root",{ref:t,className:[W.root,p],elementType:Lge,getSlotProps:j,externalForwardedProps:{...ee,...M},ownerState:B}),[be,{ownerState:de,...xe}]=_n("clickAwayListener",{elementType:xge,externalForwardedProps:ee,getSlotProps:Ye=>({onClickAway:(...Ve)=>{const De=Ve[0];Ye.onClickAway?.(...Ve),!De?.defaultMuiPrevented&&Z(...Ve)}}),ownerState:B}),[ye,Oe]=_n("content",{elementType:Ige,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:b,action:o},ownerState:B}),[Ue,Ie]=_n("transition",{elementType:t0,externalForwardedProps:ee,getSlotProps:Ye=>({onEnter:(...Ve)=>{Ye.onEnter?.(...Ve),ne(...Ve)},onExited:(...Ve)=>{Ye.onExited?.(...Ve),I(...Ve)}}),additionalProps:{appear:!0,in:O,timeout:z,direction:s==="top"?"down":"up"},ownerState:B});return!O&&Q?null:P.jsx(be,{...xe,...D.clickAwayListener&&{ownerState:de},children:P.jsx(L,{...te,children:P.jsx(Ue,{...Ie,children:d||P.jsx(ye,{...Oe})})})})});ct.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const $n={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},Pge=E0({palette:{mode:"light",primary:$n.primary,secondary:$n.secondary,grey:$n.grey,success:$n.success,warning:$n.warning,error:$n.error,info:$n.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:$n.grey[900],secondary:$n.grey[600]},divider:$n.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${$n.grey[300]} ${$n.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:$n.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:$n.grey[300],borderRadius:"4px","&:hover":{background:$n.grey[400]}},"&::-webkit-scrollbar-corner":{background:$n.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${$n.grey[300]} ${$n.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:$n.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:$n.grey[300],borderRadius:"4px","&:hover":{background:$n.grey[400]}},"&::-webkit-scrollbar-corner":{background:$n.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:$n.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:$n.grey[200]}},defaultProps:{sx:{my:1}}}}}),Mge=x.lazy(()=>G(()=>import("./HomePage-7j10faAk.js"),__vite__mapDeps([96,97,98,99,100,101,102,103,104]))),$ge=x.lazy(()=>G(()=>import("./MainPage-CAwngISZ.js"),__vite__mapDeps([105,97,104,103]))),Fge=x.lazy(()=>G(()=>import("./ModelPage-BZzRs40Z.js"),__vite__mapDeps([106,107,108,109,99]))),Bge=x.lazy(()=>G(()=>import("./PackagePage-CpVMURqi.js"),__vite__mapDeps([110,97,107,108,109,99,100,102,111]))),Uge=x.lazy(()=>G(()=>import("./ProjectPage-Wkk3rsE4.js"),__vite__mapDeps([112,97,108,102,100,98,99,101]))),jge=x.lazy(()=>G(()=>import("./RouteError-DSynFzxI.js"),__vite__mapDeps([113,103]))),Hge=x.lazy(()=>G(()=>import("./WorkbookPage-CAKkhCC4.js"),__vite__mapDeps([114,108,109,99,111,100,104,98,97]))),zge=(e="/",t,n)=>S8([{path:e,element:P.jsx(fX,{children:P.jsx(Dce,{workbookStorage:t,children:P.jsxs(pU,{theme:Pge,children:[P.jsx(oz,{}),P.jsx($ge,{headerProps:n})]})})}),errorElement:P.jsx(jge,{}),children:[{path:"",element:P.jsx(Mge,{})},{path:":projectName",element:P.jsx(Uge,{})},{path:":projectName/:packageName",element:P.jsx(Bge,{})},{path:":projectName/:packageName/*",element:P.jsx(Fge,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:P.jsx(Hge,{})}]}]),Vge=zge("/",new Ape,void 0);S$.createRoot(document.getElementById("root")).render(P.jsx(x.StrictMode,{children:P.jsx(L8,{router:Vge})}));export{Jge as $,An as A,Cl as B,p1e as C,QS as D,d1e as E,tn as F,e6 as G,Pa as H,cj as I,Eo as J,Wf as K,b3 as L,u1e as M,c1e as N,tB as O,NU as P,h1e as Q,Tt as R,vpe as S,vS as T,TH as U,qge as V,ype as W,O7 as X,Wge as Y,P0 as Z,Y0e as _,o1e as a,Tp as a$,Qge as a0,e0e as a1,Q0e as a2,Spe as a3,Yye as a4,Kge as a5,bU as a6,pm as a7,u3 as a8,Il as a9,Yc as aA,PU as aB,bE as aC,G7 as aD,WB as aE,Fi as aF,Gw as aG,bpe as aH,Vb as aI,Jye as aJ,e1e as aK,t1e as aL,SG as aM,kce as aN,n1e as aO,Hye as aP,_G as aQ,r1e as aR,Q3 as aS,Zye as aT,b0 as aU,XI as aV,DU as aW,_H as aX,G as aY,ug as aZ,Ts as a_,Ni as aa,LU as ab,t0e as ac,n0e as ad,r0e as ae,Bce as af,gye as ag,f1e as ah,pz as ai,Wye as aj,xye as ak,Xye as al,Kye as am,Xge as an,Zge as ao,a0e as ap,Y9 as aq,wp as ar,oS as as,K9 as at,m0 as au,xS as av,eu as aw,jw as ax,hS as ay,Yge as az,s1e as b,Gge as b0,XO as b1,f3 as c,Qye as d,hz as e,ik as f,y1e as g,O3 as h,I3 as i,P as j,v1e as k,E1e as l,m1e as m,HH as n,b1e as o,g1e as p,ha as q,x as r,Kr as s,T1e as t,sN as u,l1e as v,Xr as w,kt as x,xE as y,S1e as z};
|