@malloy-publisher/server 0.0.111 → 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-DvcpwYS4.js → Container-L_WqT4jT.js} +1 -1
- package/dist/app/assets/{DialogTitle-D-8JHIhX.js → DialogTitle-Bn08FgCr.js} +1 -1
- package/dist/app/assets/{Edit-CY66B5e8.js → Edit-BJgSEJcw.js} +1 -1
- package/dist/app/assets/FormControlContext-Dw41r2fL.js +1 -0
- package/dist/app/assets/{HomePage-Bov6-5AZ.js → HomePage-7j10faAk.js} +2 -2
- package/dist/app/assets/MainPage-CAwngISZ.js +1 -0
- package/dist/app/assets/MenuItem-lIU1AdLr.js +1 -0
- package/dist/app/assets/{Modal-C-Euultz.js → Modal-D1yZSrQW.js} +1 -1
- package/dist/app/assets/{ModelPage-BMg6IR4I.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-Csve1erO.js → ProjectPage-Wkk3rsE4.js} +1 -1
- package/dist/app/assets/{RouteError-DVrYYQx8.js → RouteError-DSynFzxI.js} +1 -1
- package/dist/app/assets/{WorkbookPage-Bos3GG6c.js → WorkbookPage-CAKkhCC4.js} +2 -2
- package/dist/app/assets/{index-B4eYfbqj.js → index-BTifa3VC.js} +1 -1
- package/dist/app/assets/index-Csigubii.js +420 -0
- package/dist/app/assets/{index-CUx2TJnu.js → index-GXiK4wJn.js} +1 -1
- package/dist/app/assets/{index.es20-D_GGseeK.js → index.es20-Xp2DiRye.js} +1 -1
- package/dist/app/assets/{index.es23-BsVG9VR1.js → index.es23-DEF5rVoS.js} +2 -2
- package/dist/app/assets/{index.es311-B4I7CPCs.js → index.es310-AKXDC8rl.js} +1 -1
- package/dist/app/assets/{index.es312-D6Wb5Qbz.js → index.es311-CE0-K0fx.js} +1 -1
- package/dist/app/assets/{index.es315-De-j80TX.js → index.es314-CsD4AFJi.js} +1 -1
- package/dist/app/assets/{index.es320-BOD1ZJZT.js → index.es319-BAaFF8nF.js} +1 -1
- package/dist/app/assets/{index.es328-CVyYL2Cb.js → index.es327-CLjg00CO.js} +1 -1
- package/dist/app/assets/{index.es329-C73tSnxx.js → index.es328-Dk49f56D.js} +1 -1
- package/dist/app/assets/{index.es332-pdJPCQ16.js → index.es331-CNjOIk10.js} +1 -1
- package/dist/app/assets/{index.es336-BW2O-pnR.js → index.es335-BeNrivcI.js} +1 -1
- package/dist/app/assets/{index.es339-BaWHmQaH.js → index.es338-BhR7SkS5.js} +1 -1
- package/dist/app/assets/{index.es342-D2Lnssjt.js → index.es341-C_6PzCoq.js} +1 -1
- package/dist/app/assets/{index.es343-YbS6hTnA.js → index.es342-D1uAr8c1.js} +1 -1
- package/dist/app/assets/{index.es357-CoBUMGfg.js → index.es356-7PPXN4m3.js} +1 -1
- package/dist/app/assets/{index.es358-DbSm3pvF.js → index.es357-CJh2QG0N.js} +1 -1
- package/dist/app/assets/{index.es359-DMGMoOZB.js → index.es358-C_zZutkw.js} +1 -1
- package/dist/app/assets/{index.es361-BHceIWHs.js → index.es360-DeQ44nE8.js} +1 -1
- package/dist/app/assets/{index.es366-PXx-OsXN.js → index.es365-oFKdnBEe.js} +1 -1
- package/dist/app/assets/{index.es368-Cr9RaTtA.js → index.es367-BUiiHWL7.js} +1 -1
- package/dist/app/assets/{index.es369-C0mtzGRN.js → index.es368-Bb8Mmpp1.js} +1 -1
- package/dist/app/assets/{index.es374-Drv5n-HJ.js → index.es373-C5Q5iXfG.js} +1 -1
- package/dist/app/assets/{index.es375-U_De2V6q.js → index.es374-s3ewK3v_.js} +1 -1
- package/dist/app/assets/{index.es377-B3MRYiit.js → index.es376-Dot0I9EF.js} +1 -1
- package/dist/app/assets/{index.es378-DoTPPeUr.js → index.es377-B6TLwhtH.js} +1 -1
- package/dist/app/assets/{index.es379-BPm5p9Tu.js → index.es378-mEifvHi6.js} +1 -1
- package/dist/app/assets/{index.es382-DKIqkYbM.js → index.es381-DdV8KTBv.js} +1 -1
- package/dist/app/assets/{index.es384-DXiKOUzH.js → index.es383-B762Qvzb.js} +1 -1
- package/dist/app/assets/{index.es385-CLF2pcju.js → index.es384-DBjLFE2E.js} +1 -1
- package/dist/app/assets/{index.es386-Bh-sEjq4.js → index.es385-DkDs29_v.js} +1 -1
- package/dist/app/assets/{index.es392-CRHao7mg.js → index.es391-BOBiTPht.js} +1 -1
- package/dist/app/assets/{index.es393-Cm6sEy7_.js → index.es392-BGdYwXRd.js} +1 -1
- package/dist/app/assets/{index.es394-B8ZpxCSt.js → index.es393-BnuSumNM.js} +1 -1
- package/dist/app/assets/{index.es395-DkWbmmH5.js → index.es394-DMJpONen.js} +1 -1
- package/dist/app/assets/{index.es397-CKDseQYx.js → index.es396-Dexy1Fdn.js} +1 -1
- package/dist/app/assets/{index.es401-CtFcnffO.js → index.es400-V_MXD6ds.js} +1 -1
- package/dist/app/assets/{index.es402-CxdH5hVg.js → index.es401-CAcCA7it.js} +1 -1
- package/dist/app/assets/{index.es410-DUOnTx6Y.js → index.es409-DgSxLsfq.js} +1 -1
- package/dist/app/assets/{index.es413-o0g0o7a9.js → index.es412-wcTkTrNP.js} +1 -1
- package/dist/app/assets/{index.es416-Dy45-wq4.js → index.es415-hnSTt9Hn.js} +1 -1
- package/dist/app/assets/{index.es419-DltXKq7x.js → index.es418-DwuHSZfi.js} +1 -1
- package/dist/app/assets/{index.es423-CYo8sXPV.js → index.es422-DWsCMo9a.js} +1 -1
- package/dist/app/assets/{index.es425-8kqvQzEa.js → index.es424-CX2jVTDC.js} +1 -1
- package/dist/app/assets/{index.es433-D_41FSTK.js → index.es432-DpOOpPot.js} +1 -1
- package/dist/app/assets/{index.es434-DeV3Y_jn.js → index.es433--E-hGrgp.js} +1 -1
- package/dist/app/assets/{index.es441-Cj1Yw83T.js → index.es440-NJaU5ncf.js} +1 -1
- package/dist/app/assets/{index.es442-BAhAeZbN.js → index.es441-CR0Ohpvp.js} +1 -1
- package/dist/app/assets/{index.es452-CPGmraR2.js → index.es451-sHTEx-Dl.js} +1 -1
- package/dist/app/assets/{index.es456-BdFu7nX3.js → index.es455-9ZC7rz1G.js} +1 -1
- package/dist/app/assets/{index.es462-D6GNpC-z.js → index.es461-DAQjszqb.js} +1 -1
- package/dist/app/assets/{index.es467-ClH_GnCa.js → index.es466-sT_GOjPl.js} +1 -1
- package/dist/app/assets/{index.es468-Di3zYFeC.js → index.es467-D1qnNYJr.js} +1 -1
- package/dist/app/assets/{index.es470-DgLPjbVB.js → index.es469-DW1np4pg.js} +1 -1
- package/dist/app/assets/{index.es474-B824aOrb.js → index.es473-wVAdvQ6_.js} +1 -1
- package/dist/app/assets/{index.es476-BlPAYHhB.js → index.es475-CZM7KBU8.js} +1 -1
- package/dist/app/assets/{index.es478-BBy72e0U.js → index.es477-OAyIdwW_.js} +1 -1
- package/dist/app/assets/{index.es481-Df-VYnz4.js → index.es480-DSR8isSz.js} +1 -1
- package/dist/app/assets/{index.es482-DNcoqtdL.js → index.es481-CBydsWwB.js} +1 -1
- package/dist/app/assets/{index.es486-D8LYNoLQ.js → index.es485-CJc4fpNV.js} +1 -1
- package/dist/app/assets/{index.es488-BUMxLwvA.js → index.es487-C1wULFp4.js} +1 -1
- package/dist/app/assets/{index.es495-D-qd6FpS.js → index.es494-BLp6ucpV.js} +1 -1
- package/dist/app/assets/{index.es497-LaARGtc9.js → index.es496-Tis1R15L.js} +1 -1
- package/dist/app/assets/{index.es499-DUJgu_Bk.js → index.es498-DnIxUf2o.js} +1 -1
- package/dist/app/assets/{index.es503-BJ9VRCwz.js → index.es502-DhEHE70J.js} +1 -1
- package/dist/app/assets/{index.es513-DcdvkC6C.js → index.es512-B---8rhN.js} +1 -1
- package/dist/app/assets/{index.es514-BR9aJ-oz.js → index.es513-BU_koFtA.js} +1 -1
- package/dist/app/assets/{index.es521-B5F1bSbk.js → index.es520-ZlB1VPRK.js} +1 -1
- package/dist/app/assets/{index.es522-DMB2cdTG.js → index.es521-VBglaSPm.js} +1 -1
- package/dist/app/assets/{index.es7-B-1xtkbo.js → index.es7-4Yy4RzF4.js} +1 -1
- package/dist/app/assets/index.modern-DMvoTRLq.js +17 -0
- package/dist/app/assets/{index.umd-BkIL5b5A.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 +5100 -2420
- package/package.json +1 -1
- package/src/service/connection.ts +10 -9
- package/dist/app/assets/Chip-DFxjDMYx.js +0 -1
- package/dist/app/assets/FormControlContext-BW02KQZu.js +0 -1
- package/dist/app/assets/MainPage-BYUYRBax.js +0 -1
- package/dist/app/assets/MenuItem-CpI-7eAr.js +0 -1
- package/dist/app/assets/MoreVert-BVtzLkHm.js +0 -1
- package/dist/app/assets/PackagePage-Ca-5S4bY.js +0 -2
- package/dist/app/assets/index-CXVjjE47.js +0 -420
- package/dist/app/assets/index.modern-CUFHTrKB.js +0 -17
- package/dist/app/assets/listItemTextClasses-lEedVyO7.js +0 -1
- /package/dist/app/assets/{index.es300-CG6Dc4jp.js → index.es299-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es308-DsBKuouk.js → index.es307-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es309-D_z4Izcz.js → index.es308-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es310-727ZlQH0.js → index.es309-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es313-Dn00JSTd.js → index.es312-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es314-COJ4H7py.js → index.es313-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es316-Bu5BbsvL.js → index.es315-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es317-7O62HKoU.js → index.es316-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es318-BPT9niGB.js → index.es317-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es319-Dhn9LcZ4.js → index.es318-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es321-eg146-Ew.js → index.es320-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es322-Du268qiB.js → index.es321-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es323-fje9CFhw.js → index.es322-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es324-BwXTMy5W.js → index.es323-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es325-3xVqZejG.js → index.es324-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es326-xW4inM5L.js → index.es325-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es327-DHo0CJ0O.js → index.es326-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es330-C3t2pwGQ.js → index.es329-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es331-DNquZEk8.js → index.es330-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es333-BHOwM8T6.js → index.es332-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es334-DxSadP1t.js → index.es333-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es335-DbXoA79R.js → index.es334-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es337-Bp6g37R7.js → index.es336-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es338-sacFqUAJ.js → index.es337-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es340-C7gG9l05.js → index.es339-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es341-Dsg_Bt_b.js → index.es340-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es344-D9R-vmeu.js → index.es343-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es345-BPhBrDlE.js → index.es344-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es346-C-TU5hQ_.js → index.es345-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es347-DtFQj3wx.js → index.es346-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es348-m2LEI-9-.js → index.es347-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es349-BoXegm-a.js → index.es348-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es350-B9wLZaAG.js → index.es349-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es351-ClGRhx96.js → index.es350-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es352-DEIpsLCJ.js → index.es351-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es353-BgYniUM_.js → index.es352-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es354-COcR7UxN.js → index.es353-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es355-BjQB5zDj.js → index.es354-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es356-C-nORZOA.js → index.es355-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es360-BX77sIaO.js → index.es359-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es362-B-DoSBHF.js → index.es361-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es363-bCA53EVm.js → index.es362-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es364-w-ucz2PV.js → index.es363-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es365-Dayu4EKP.js → index.es364-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es367-DKXYxT9g.js → index.es366-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es370-DfxzS6Rs.js → index.es369-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es371-SKMF96pI.js → index.es370-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es372-ajMbGru0.js → index.es371-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es373--30QC5Em.js → index.es372--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es376-B430Bg39.js → index.es375-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es380-CM8KxXT1.js → index.es379-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es381-B1SYOhNW.js → index.es380-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es383-DkBy-JyN.js → index.es382-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es387-BILxekzW.js → index.es386-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es388-C5wWYbrZ.js → index.es387-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es389-HzYwdGDm.js → index.es388-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es390-T-Tgc4AT.js → index.es389-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es391-ifBTmRxC.js → index.es390-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es396-BMj5Y0dO.js → index.es395-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es398-BjABl1g7.js → index.es397-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es399-xI-RfyKK.js → index.es398-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es400-ySlJ1b_l.js → index.es399-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es403-BQoSv7ci.js → index.es402-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es404-w8dY5SsB.js → index.es403-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es405-TU54ms6u.js → index.es404-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es406-DREVFZK8.js → index.es405-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es407-BfivnA6A.js → index.es406-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es408-P4WzXJd0.js → index.es407-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es409-BAng5TT0.js → index.es408-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es411-B5lbUyaz.js → index.es410-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es412-mebxcVVE.js → index.es411-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es414-XBlWyCtg.js → index.es413-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es415-BfCpw3nA.js → index.es414-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es417-Cc5clBb7.js → index.es416-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es418-IuBKFhSY.js → index.es417-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es420-Du5NY7AG.js → index.es419-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es421-Bvotw-X0.js → index.es420-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es422-UIAJJxZW.js → index.es421-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es424-D9-PGadD.js → index.es423-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es426-sdHcTMYB.js → index.es425-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es427-Ci6OQyBP.js → index.es426-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es428-BC5c_5Pe.js → index.es427-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es429-Tz6hzZYG.js → index.es428-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es430-DB_GagMm.js → index.es429-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es431-DLbgOhZU.js → index.es430-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es432-B0XVJmRM.js → index.es431-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es435-shcSOmrb.js → index.es434-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es436-D4Tzg5kh.js → index.es435-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es437-Deuh7S70.js → index.es436-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es438-BUEGK8hf.js → index.es437-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es439-BNioltXt.js → index.es438-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es440-JqZropPD.js → index.es439-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es443-LKU2TuZ1.js → index.es442-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es444-BFLt1xDp.js → index.es443-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es445-DKykz6zU.js → index.es444-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es446-B3ZDOciz.js → index.es445-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es447-CSHBycmS.js → index.es446-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es448-BIEUsx6d.js → index.es447-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es449-B48N-Iqd.js → index.es448-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es450-BY-TUvya.js → index.es449-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es451-zocC4JxJ.js → index.es450-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es453-Cza_XSSt.js → index.es452-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es454-Bg-kzb6g.js → index.es453-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es455-DhUJRlN_.js → index.es454-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es457-C8lEn-DE.js → index.es456-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es458-DhMKtDLN.js → index.es457-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es459-CwjWoCRV.js → index.es458-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es460-CzouJOBO.js → index.es459-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es461-B1bQXN8T.js → index.es460-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es463-5LuOXUq_.js → index.es462-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es464-DWJ3fJO_.js → index.es463-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es465-DJlmqQ1C.js → index.es464-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es466-QhoSD0DR.js → index.es465-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es469-Be6lgOlo.js → index.es468-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es471-BJ4Li9vH.js → index.es470-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es472-DQVVAn-B.js → index.es471-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es473-BJGe-b2p.js → index.es472-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es475-BLhTXw86.js → index.es474-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es477-atvbtKCR.js → index.es476-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es479-DkLiglaE.js → index.es478-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es480-C1w2a3ep.js → index.es479-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es483-Cf8iN4DR.js → index.es482-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es484-COK4E0Yg.js → index.es483-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es485-BknIz3MU.js → index.es484-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es487-BeQkCIfX.js → index.es486-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es489-BSxZ-RaX.js → index.es488-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es490-C7L56vO4.js → index.es489-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es491-CUnW07Te.js → index.es490-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es492-C1XDQQGZ.js → index.es491-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es493-CQjiPCtT.js → index.es492-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es494-DQ1-QYvQ.js → index.es493-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es496-BbSNqyBO.js → index.es495-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es498-CB2ApiWb.js → index.es497-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es500-B_m7g4N7.js → index.es499-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es501-B6W0miNI.js → index.es500-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es502-BMR_PYu6.js → index.es501-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es504-Dj6nwHGl.js → index.es503-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es505-BpWG_bgh.js → index.es504-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es506-BVUVsWT6.js → index.es505-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es507-CAQ2eGtk.js → index.es506-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es508-BFOHcciG.js → index.es507-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es509-CdO5JTpU.js → index.es508-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es510-CJaU5se_.js → index.es509-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es511-DYoNaHQp.js → index.es510-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es512-m4uW47V2.js → index.es511-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es515-nyqBNV6O.js → index.es514-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es516-C6j12Q_x.js → index.es515-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es517-7A4Fjokl.js → index.es516-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es518-CB0Krxn9.js → index.es517-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es519-DCE3LsBG.js → index.es518-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es520-C3FkfJm5.js → index.es519-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es523-CVw76BM1.js → index.es522-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es524-HnGAYVZD.js → index.es523-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es525-BVz_zdnA.js → index.es524-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es526-C3khCPGq.js → index.es525-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es527-D-2ljcwZ.js → index.es526-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es528-Cv9koXgw.js → index.es527-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es529-CD_QflpE.js → index.es528-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es530-DRW-0cLl.js → index.es529-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es531-C-_shW-Y.js → index.es530-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es532-LGGdnPYs.js → index.es531-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es533-C3mMm8J8.js → index.es532-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es534-BzJJZx-M.js → index.es533-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es535-BXkSAIEj.js → index.es534-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es536-BgDCqdQA.js → index.es535-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es537-C8M2exoo.js → index.es536-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es538-DHJKELXO.js → index.es537-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es539-Cuk6v7N8.js → index.es538-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es540-DH5Ifo-i.js → index.es539-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es541-E3gJ1_iC.js → index.es540-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es542-DAi9KRSo.js → index.es541-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es543-D7oLnXFd.js → index.es542-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es544-BfjtVDDH.js → index.es543-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es545-DnULxvSX.js → index.es544-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es546-CkXjmgJE.js → index.es545-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es547-CfQXZHmo.js → index.es546-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es548-DWedfzmr.js → index.es547-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es549-DUszq2jm.js → index.es548-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es550-B7mTdjB0.js → index.es549-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es551-D5KoaKCx.js → index.es550-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es552-BfHTSMKl.js → index.es551-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es553-B0m2ddpp.js → index.es552-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es554-CyktbL80.js → index.es553-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es555-Csfq5Kiy.js → index.es554-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es556-CafNBF8u.js → index.es555-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es557-CTRr51gU.js → index.es556-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es558-D4h5O-jR.js → index.es557-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es559-C39BiMTA.js → index.es558-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es560-Ddv68eIx.js → index.es559-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es561-GBQ2dnAY.js → index.es560-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es562-PoHY5YXO.js → index.es561-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es563-3e1v2bzS.js → index.es562-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es564-CS3Unz2-.js → index.es563-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es565-bN70gL4F.js → index.es564-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es566-CmCqftbK.js → index.es565-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es567-Ds-gbosJ.js → index.es566-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es568-CjDtw9vr.js → index.es567-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es569-BthQWCQV.js → index.es568-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es570-DqwNpetd.js → index.es569-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es571-Bw305WKR.js → index.es570-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es572-DXbdFlpD.js → index.es571-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es573-L9t79GZl.js → index.es572-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es574-CbfX1IO0.js → index.es573-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es575-DBQeEorK.js → index.es574-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es576-BEBZ7ncR.js → index.es575-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es577-Bkuqu6BP.js → index.es576-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es578-D0r3Knsf.js → index.es577-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es579-CVO1_9PV.js → index.es578-CVO1_9PV.js} +0 -0
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es311-B4I7CPCs.js","assets/index.es392-CRHao7mg.js","assets/index.es400-ySlJ1b_l.js","assets/index.es345-BPhBrDlE.js","assets/index.es312-D6Wb5Qbz.js","assets/index.es474-B824aOrb.js","assets/index.es315-De-j80TX.js","assets/index.es521-B5F1bSbk.js","assets/index.es399-xI-RfyKK.js","assets/index.es403-BQoSv7ci.js","assets/index.es320-BOD1ZJZT.js","assets/index.es504-Dj6nwHGl.js","assets/index.es446-B3ZDOciz.js","assets/index.es328-CVyYL2Cb.js","assets/index.es484-COK4E0Yg.js","assets/index.es329-C73tSnxx.js","assets/index.es475-BLhTXw86.js","assets/index.es332-pdJPCQ16.js","assets/index.es455-DhUJRlN_.js","assets/index.es336-BW2O-pnR.js","assets/index.es339-BaWHmQaH.js","assets/index.es342-D2Lnssjt.js","assets/index.es464-DWJ3fJO_.js","assets/index.es379-BPm5p9Tu.js","assets/index.es330-C3t2pwGQ.js","assets/index.es343-YbS6hTnA.js","assets/index.es477-atvbtKCR.js","assets/index.es357-CoBUMGfg.js","assets/index.es393-Cm6sEy7_.js","assets/index.es358-DbSm3pvF.js","assets/index.es359-DMGMoOZB.js","assets/index.es361-BHceIWHs.js","assets/index.es468-Di3zYFeC.js","assets/index.es385-CLF2pcju.js","assets/index.es382-DKIqkYbM.js","assets/index.es409-BAng5TT0.js","assets/index.es501-B6W0miNI.js","assets/index.es419-DltXKq7x.js","assets/index.es523-CVw76BM1.js","assets/index.es366-PXx-OsXN.js","assets/index.es367-DKXYxT9g.js","assets/index.es368-Cr9RaTtA.js","assets/index.es422-UIAJJxZW.js","assets/index.es369-C0mtzGRN.js","assets/index.es371-SKMF96pI.js","assets/index.es370-DfxzS6Rs.js","assets/index.es374-Drv5n-HJ.js","assets/index.es353-BgYniUM_.js","assets/index.es375-U_De2V6q.js","assets/index.es377-B3MRYiit.js","assets/index.es378-DoTPPeUr.js","assets/index.es384-DXiKOUzH.js","assets/index.es386-Bh-sEjq4.js","assets/index.es394-B8ZpxCSt.js","assets/index.es395-DkWbmmH5.js","assets/index.es388-C5wWYbrZ.js","assets/index.es397-CKDseQYx.js","assets/index.es401-CtFcnffO.js","assets/index.es402-CxdH5hVg.js","assets/index.es410-DUOnTx6Y.js","assets/index.es459-CwjWoCRV.js","assets/index.es413-o0g0o7a9.js","assets/index.es497-LaARGtc9.js","assets/index.es416-Dy45-wq4.js","assets/index.es423-CYo8sXPV.js","assets/index.es415-BfCpw3nA.js","assets/index.es425-8kqvQzEa.js","assets/index.es433-D_41FSTK.js","assets/index.es434-DeV3Y_jn.js","assets/index.es441-Cj1Yw83T.js","assets/index.es442-BAhAeZbN.js","assets/index.es452-CPGmraR2.js","assets/index.es456-BdFu7nX3.js","assets/index.es462-D6GNpC-z.js","assets/index.es344-D9R-vmeu.js","assets/index.es467-ClH_GnCa.js","assets/index.es335-DbXoA79R.js","assets/index.es470-DgLPjbVB.js","assets/index.es476-BlPAYHhB.js","assets/index.es391-ifBTmRxC.js","assets/index.es478-BBy72e0U.js","assets/index.es481-Df-VYnz4.js","assets/index.es482-DNcoqtdL.js","assets/index.es502-BMR_PYu6.js","assets/index.es486-D8LYNoLQ.js","assets/index.es488-BUMxLwvA.js","assets/index.es495-D-qd6FpS.js","assets/index.es381-B1SYOhNW.js","assets/index.es499-DUJgu_Bk.js","assets/index.es503-BJ9VRCwz.js","assets/index.es513-DcdvkC6C.js","assets/index.es514-BR9aJ-oz.js","assets/index.es522-DMB2cdTG.js","assets/index-CUx2TJnu.js","assets/index-B4eYfbqj.js","assets/index.umd-BkIL5b5A.js","assets/HomePage-Bov6-5AZ.js","assets/index.es20-D_GGseeK.js","assets/MenuItem-CpI-7eAr.js","assets/listItemTextClasses-lEedVyO7.js","assets/Modal-C-Euultz.js","assets/MoreVert-BVtzLkHm.js","assets/Edit-CY66B5e8.js","assets/Container-DvcpwYS4.js","assets/Chip-DFxjDMYx.js","assets/MainPage-BYUYRBax.js","assets/ModelPage-BMg6IR4I.js","assets/index.es7-B-1xtkbo.js","assets/index.modern-CUFHTrKB.js","assets/DialogTitle-D-8JHIhX.js","assets/PackagePage-Ca-5S4bY.js","assets/FormControlContext-BW02KQZu.js","assets/ProjectPage-Csve1erO.js","assets/RouteError-DVrYYQx8.js","assets/WorkbookPage-Bos3GG6c.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function i$(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 Rge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bv={exports:{}},kd={};/**
|
|
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 w2;function s$(){if(w2)return kd;w2=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 kd.Fragment=t,kd.jsx=n,kd.jsxs=n,kd}var D2;function l$(){return D2||(D2=1,bv.exports=s$()),bv.exports}var P=l$(),Ev={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 k2;function c$(){if(k2)return Dt;k2=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 g(I){return I===null||typeof I!="object"?null:(I=h&&I[h]||I["@@iterator"],typeof I=="function"?I:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,E={};function _(I,re,ee){this.props=I,this.context=re,this.refs=E,this.updater=ee||y}_.prototype.isReactComponent={},_.prototype.setState=function(I,re){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,re,"setState")},_.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function A(){}A.prototype=_.prototype;function D(I,re,ee){this.props=I,this.context=re,this.refs=E,this.updater=ee||y}var w=D.prototype=new A;w.constructor=D,b(w,_.prototype),w.isPureReactComponent=!0;var R=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function F(I,re,ee,L,te,be){return ee=be.ref,{$$typeof:e,type:I,key:re,ref:ee!==void 0?ee:null,props:be}}function G(I,re){return F(I.type,re,void 0,void 0,void 0,I.props)}function j(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function T(I){var re={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ee){return re[ee]})}var M=/\/+/g;function U(I,re){return typeof I=="object"&&I!==null&&I.key!=null?T(""+I.key):re.toString(36)}function B(){}function Y(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(B,B):(I.status="pending",I.then(function(re){I.status==="pending"&&(I.status="fulfilled",I.value=re)},function(re){I.status==="pending"&&(I.status="rejected",I.reason=re)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function X(I,re,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,X(de(I._payload),re,ee,L,te)}}if(de)return te=te(I),de=L===""?"."+U(I,0):L,R(te)?(ee="",de!=null&&(ee=de.replace(M,"$&/")+"/"),X(te,re,ee,"",function(Oe){return Oe})):te!=null&&(j(te)&&(te=G(te,ee+(te.key==null||I&&I.key===te.key?"":(""+te.key).replace(M,"$&/")+"/")+de)),re.push(te)),1;de=0;var xe=L===""?".":L+":";if(R(I))for(var ge=0;ge<I.length;ge++)L=I[ge],be=xe+U(L,ge),de+=X(L,re,ee,be,te);else if(ge=g(I),typeof ge=="function")for(I=ge.call(I),ge=0;!(L=I.next()).done;)L=L.value,be=xe+U(L,ge++),de+=X(L,re,ee,be,te);else if(be==="object"){if(typeof I.then=="function")return X(Y(I),re,ee,L,te);throw re=String(I),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.")}return de}function z(I,re,ee){if(I==null)return I;var L=[],te=0;return X(I,L,"","",function(be){return re.call(ee,be,te++)}),L}function Z(I){if(I._status===-1){var re=I._result;re=re(),re.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=re)}if(I._status===1)return I._result.default;throw I._result}var J=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var re=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(re))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function oe(){}return Dt.Children={map:z,forEach:function(I,re,ee){z(I,function(){re.apply(this,arguments)},ee)},count:function(I){var re=0;return z(I,function(){re++}),re},toArray:function(I){return z(I,function(re){return re})||[]},only:function(I){if(!j(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Dt.Component=_,Dt.Fragment=n,Dt.Profiler=a,Dt.PureComponent=D,Dt.StrictMode=r,Dt.Suspense=u,Dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Dt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return O.H.useMemoCache(I)}},Dt.cache=function(I){return function(){return I.apply(null,arguments)}},Dt.cloneElement=function(I,re,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(re!=null)for(de in re.ref!==void 0&&(be=void 0),re.key!==void 0&&(te=""+re.key),re)!k.call(re,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&re.ref===void 0||(L[de]=re[de]);var de=arguments.length-2;if(de===1)L.children=ee;else if(1<de){for(var xe=Array(de),ge=0;ge<de;ge++)xe[ge]=arguments[ge+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,re,ee){var L,te={},be=null;if(re!=null)for(L in re.key!==void 0&&(be=""+re.key),re)k.call(re,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(te[L]=re[L]);var de=arguments.length-2;if(de===1)te.children=ee;else if(1<de){for(var xe=Array(de),ge=0;ge<de;ge++)xe[ge]=arguments[ge+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=j,Dt.lazy=function(I){return{$$typeof:p,_payload:{_status:-1,_result:I},_init:Z}},Dt.memo=function(I,re){return{$$typeof:d,type:I,compare:re===void 0?null:re}},Dt.startTransition=function(I){var re=O.T,ee={};O.T=ee;try{var L=I(),te=O.S;te!==null&&te(ee,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(oe,J)}catch(be){J(be)}finally{O.T=re}},Dt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Dt.use=function(I){return O.H.use(I)},Dt.useActionState=function(I,re,ee){return O.H.useActionState(I,re,ee)},Dt.useCallback=function(I,re){return O.H.useCallback(I,re)},Dt.useContext=function(I){return O.H.useContext(I)},Dt.useDebugValue=function(){},Dt.useDeferredValue=function(I,re){return O.H.useDeferredValue(I,re)},Dt.useEffect=function(I,re,ee){var L=O.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return L.useEffect(I,re)},Dt.useId=function(){return O.H.useId()},Dt.useImperativeHandle=function(I,re,ee){return O.H.useImperativeHandle(I,re,ee)},Dt.useInsertionEffect=function(I,re){return O.H.useInsertionEffect(I,re)},Dt.useLayoutEffect=function(I,re){return O.H.useLayoutEffect(I,re)},Dt.useMemo=function(I,re){return O.H.useMemo(I,re)},Dt.useOptimistic=function(I,re){return O.H.useOptimistic(I,re)},Dt.useReducer=function(I,re,ee){return O.H.useReducer(I,re,ee)},Dt.useRef=function(I){return O.H.useRef(I)},Dt.useState=function(I){return O.H.useState(I)},Dt.useSyncExternalStore=function(I,re,ee){return O.H.useSyncExternalStore(I,re,ee)},Dt.useTransition=function(){return O.H.useTransition()},Dt.version="19.1.1",Dt}var R2;function kT(){return R2||(R2=1,Ev.exports=c$()),Ev.exports}var x=kT();const Tt=VO(x),lg=i$({__proto__:null,default:Tt},[x]);var Tv={exports:{}},Rd={},Sv={exports:{}},_v={};/**
|
|
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 O2;function u$(){return O2||(O2=1,(function(e){function t(z,Z){var J=z.length;z.push(Z);e:for(;0<J;){var oe=J-1>>>1,I=z[oe];if(0<a(I,Z))z[oe]=Z,z[J]=I,J=oe;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var Z=z[0],J=z.pop();if(J!==Z){z[0]=J;e:for(var oe=0,I=z.length,re=I>>>1;oe<re;){var ee=2*(oe+1)-1,L=z[ee],te=ee+1,be=z[te];if(0>a(L,J))te<I&&0>a(be,L)?(z[oe]=be,z[te]=J,oe=te):(z[oe]=L,z[ee]=J,oe=ee);else if(te<I&&0>a(be,J))z[oe]=be,z[te]=J,oe=te;else break e}}return Z}function a(z,Z){var J=z.sortIndex-Z.sortIndex;return J!==0?J:z.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,g=3,y=!1,b=!1,E=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var Z=n(d);Z!==null;){if(Z.callback===null)r(d);else if(Z.startTime<=z)r(d),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=n(d)}}function O(z){if(E=!1,R(z),!b)if(n(u)!==null)b=!0,k||(k=!0,U());else{var Z=n(d);Z!==null&&X(O,Z.startTime-z)}}var k=!1,F=-1,G=5,j=-1;function T(){return _?!0:!(e.unstable_now()-j<G)}function M(){if(_=!1,k){var z=e.unstable_now();j=z;var Z=!0;try{e:{b=!1,E&&(E=!1,D(F),F=-1),y=!0;var J=g;try{t:{for(R(z),h=n(u);h!==null&&!(h.expirationTime>z&&T());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,g=h.priorityLevel;var I=oe(h.expirationTime<=z);if(z=e.unstable_now(),typeof I=="function"){h.callback=I,R(z),Z=!0;break t}h===n(u)&&r(u),R(z)}else r(u);h=n(u)}if(h!==null)Z=!0;else{var re=n(d);re!==null&&X(O,re.startTime-z),Z=!1}}break e}finally{h=null,g=J,y=!1}Z=void 0}}finally{Z?U():k=!1}}}var U;if(typeof w=="function")U=function(){w(M)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,Y=B.port2;B.port1.onmessage=M,U=function(){Y.postMessage(null)}}else U=function(){A(M,0)};function X(z,Z){F=A(function(){z(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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(z){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var J=g;g=Z;try{return z()}finally{g=J}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(z,Z){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var J=g;g=z;try{return Z()}finally{g=J}},e.unstable_scheduleCallback=function(z,Z,J){var oe=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?oe+J:oe):J=oe,z){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=J+I,z={id:p++,callback:Z,priorityLevel:z,startTime:J,expirationTime:I,sortIndex:-1},J>oe?(z.sortIndex=J,t(d,z),n(u)===null&&z===n(d)&&(E?(D(F),F=-1):E=!0,X(O,J-oe))):(z.sortIndex=I,t(u,z),b||y||(b=!0,k||(k=!0,U()))),z},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(z){var Z=g;return function(){var J=g;g=Z;try{return z.apply(this,arguments)}finally{g=J}}}})(_v)),_v}var I2;function d$(){return I2||(I2=1,Sv.exports=u$()),Sv.exports}var Cv={exports:{}},Rr={};/**
|
|
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 N2;function f$(){if(N2)return Rr;N2=1;var e=kT();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 Rr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rr.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)},Rr.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()}},Rr.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))},Rr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Rr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,y=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:g,fetchPriority:y}):p==="script"&&r.d.X(u,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Rr.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)},Rr.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})}},Rr.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)},Rr.requestFormReset=function(u){r.d.r(u)},Rr.unstable_batchedUpdates=function(u,d){return u(d)},Rr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Rr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Rr.version="19.1.1",Rr}var L2;function GO(){if(L2)return Cv.exports;L2=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(),Cv.exports=f$(),Cv.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 P2;function p$(){if(P2)return Rd;P2=1;var e=d$(),t=kT(),n=GO();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,$=v.child;$;){if($===f){N=!0,f=v,m=S;break}if($===m){N=!0,m=v,f=S;break}$=$.sibling}if(!N){for($=S.child;$;){if($===f){N=!0,f=S,m=v;break}if($===m){N=!0,m=S,f=v;break}$=$.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"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),w=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function U(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var B=Symbol.for("react.client.reference");function Y(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===B?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case k:return"SuspenseList";case j:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case w:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case R: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:Y(i.type)||"Memo";case G:l=i._payload,i=i._init;try{return Y(i(l))}catch{}}return null}var X=Array.isArray,z=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,J={pending:!1,data:null,method:null,action:null},oe=[],I=-1;function re(i){return{current:i}}function ee(i){0>I||(i.current=oe[I],oe[I]=null,I--)}function L(i,l){I++,oe[I]=i.current,i.current=l}var te=re(null),be=re(null),de=re(null),xe=re(null);function ge(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)?t2(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=t2(l),i=n2(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=n2(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),Cd._currentValue=J)}var Ye=Object.prototype.hasOwnProperty,Ve=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,Et=e.unstable_requestPaint,je=e.unstable_now,St=e.unstable_getCurrentPriorityLevel,ot=e.unstable_ImmediatePriority,Ze=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,Ot=e.unstable_IdlePriority,Dn=e.log,bt=e.unstable_setDisableYieldValue,ce=null,me=null;function Be(i){if(typeof Dn=="function"&&bt(i),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(ce,i)}catch{}}var We=Math.clz32?Math.clz32:ln,Qe=Math.log,gt=Math.LN2;function ln(i){return i>>>=0,i===0?32:31-(Qe(i)/gt|0)|0}var Qt=256,qe=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 $=m&134217727;return $!==0?(m=$&~S,m!==0?v=Ee(m):(N&=$,N!==0?v=Ee(N):f||(f=$&~i,f!==0&&(v=Ee(f))))):($=m&~S,$!==0?v=Ee($):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 Fn(){var i=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),i}function jr(){var i=qe;return qe<<=1,(qe&62914560)===0&&(qe=4194304),i}function _r(i){for(var l=[],f=0;31>f;f++)l.push(i);return l}function mr(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function gr(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 $=i.entanglements,Q=i.expirationTimes,ue=i.hiddenUpdates;for(f=N&~f;0<f;){var Ce=31-We(f),we=1<<Ce;$[Ce]=0,Q[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-We(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-We(f),v=1<<m;v&l|i[m]&l&&(i[m]|=l),f&=~v}}function Hr(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 K(){var i=Z.p;return i!==0?i:(i=window.event,i===void 0?32:T2(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),De="__reactFiber$"+pe,Me="__reactProps$"+pe,Xe="__reactContainer$"+pe,at="__reactEvents$"+pe,Je="__reactListeners$"+pe,lt="__reactHandles$"+pe,pt="__reactResources$"+pe,et="__reactMarker$"+pe;function it(i){delete i[De],delete i[Me],delete i[at],delete i[Je],delete i[lt]}function It(i){var l=i[De];if(l)return l;for(var f=i.parentNode;f;){if(l=f[Xe]||f[De]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(i=i2(i);i!==null;){if(f=i[De])return f;i=i2(i)}return l}i=f,f=i.parentNode}return null}function cn(i){if(i=i[De]||i[Xe]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function jn(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 wt(i){i[et]=!0}var pn=new Set,Do={};function ya(i,l){zr(i,l),zr(i+"Capture",l)}function zr(i,l){for(Do[i]=l,i=0;i<l.length;i++)pn.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]*$"),ql={},Hi={};function oi(i){return Ye.call(Hi,i)?!0:Ye.call(ql,i)?!1:$a.test(i)?Hi[i]=!0:(ql[i]=!0,!1)}function ii(i,l,f){if(oi(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 si(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 Pt(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 rr,Fs;function Fa(i){if(rr===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);rr=l&&l[1]||"",Fs=-1<f.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+rr+i+Fs}var Bn=!1;function zi(i,l){if(!i||Bn)return"";Bn=!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],$=S[1];if(N&&$){var Q=N.split(`
|
|
45
|
-
`),ue=$.split(`
|
|
46
|
-
`);for(v=m=0;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;for(;v<ue.length&&!ue[v].includes("DetermineComponentFrameRoot");)v++;if(m===Q.length||v===ue.length)for(m=Q.length-1,v=ue.length-1;1<=m&&0<=v&&Q[m]!==ue[v];)v--;for(;1<=m&&0<=v;m--,v--)if(Q[m]!==ue[v]){if(m!==1||v!==1)do if(m--,v--,0>v||Q[m]!==ue[v]){var Ce=`
|
|
47
|
-
`+Q[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{Bn=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?Fa(f):""}function Qp(i){switch(i.tag){case 26:case 27:case 5:return Fa(i.type);case 16:return Fa("Lazy");case 13:return Fa("Suspense");case 19:return Fa("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 Fa("Activity");default:return""}}function Kp(i){try{var l="";do l+=Qp(i),i=i.return;while(i);return l}catch(f){return`
|
|
48
|
-
Error generating stack: `+f.message+`
|
|
49
|
-
`+f.stack}}function Ba(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function K_(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function t6(i){var l=K_(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 Xp(i){i._valueTracker||(i._valueTracker=t6(i))}function X_(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var f=l.getValue(),m="";return i&&(m=K_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(l.setValue(i),!0):!1}function Zp(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 n6=/[\n"\\]/g;function Ua(i){return i.replace(n6,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function g0(i,l,f,m,v,S,N,$){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=""+Ba(l)):i.value!==""+Ba(l)&&(i.value=""+Ba(l)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),l!=null?y0(i,N,Ba(l)):f!=null?y0(i,N,Ba(f)):m!=null&&i.removeAttribute("value"),v==null&&S!=null&&(i.defaultChecked=!!S),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?i.name=""+Ba($):i.removeAttribute("name")}function Z_(i,l,f,m,v,S,N,$){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?""+Ba(f):"",l=l!=null?""+Ba(l):f,$||l===i.value||(i.value=l),i.defaultValue=l}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=$?i.checked:!!m,i.defaultChecked=!!m,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N)}function y0(i,l,f){l==="number"&&Zp(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function Wl(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=""+Ba(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 J_(i,l,f){if(l!=null&&(l=""+Ba(l),l!==i.value&&(i.value=l),f==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=f!=null?""+Ba(f):""}function eC(i,l,f,m){if(l==null){if(m!=null){if(f!=null)throw Error(r(92));if(X(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),l=f}f=Ba(l),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function Yl(i,l){if(l){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=l;return}}i.textContent=l}var r6=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 tC(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||r6.has(l)?l==="float"?i.cssFloat=f:i[l]=(""+f).trim():i[l]=f+"px"}function nC(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&&tC(i,v,m)}else for(var S in l)l.hasOwnProperty(S)&&tC(i,S,l[S])}function v0(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 a6=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"]]),o6=/^[\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 Jp(i){return o6.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var b0=null;function E0(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ql=null,Kl=null;function rC(i){var l=cn(i);if(l&&(i=l.stateNode)){var f=i[Me]||null;e:switch(i=l.stateNode,l.type){case"input":if(g0(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="'+Ua(""+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));g0(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&&X_(m)}break e;case"textarea":J_(i,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&Wl(i,!!f.multiple,l,!1)}}}var T0=!1;function aC(i,l,f){if(T0)return i(l,f);T0=!0;try{var m=i(l);return m}finally{if(T0=!1,(Ql!==null||Kl!==null)&&(Fh(),Ql&&(l=Ql,i=Kl,Kl=Ql=null,rC(l),i)))for(l=0;l<i.length;l++)rC(i[l])}}function $u(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"),S0=!1;if(li)try{var Fu={};Object.defineProperty(Fu,"passive",{get:function(){S0=!0}}),window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{S0=!1}var Vi=null,_0=null,eh=null;function oC(){if(eh)return eh;var i,l=_0,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 eh=v.slice(i,1<m?1-m:void 0)}function th(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 nh(){return!0}function iC(){return!1}function ta(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 $ in i)i.hasOwnProperty($)&&(f=i[$],this[$]=f?f(S):S[$]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?nh:iC,this.isPropagationStopped=iC,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=nh)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=nh)},persist:function(){},isPersistent:nh}),l}var Bs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rh=ta(Bs),Bu=p({},Bs,{view:0,detail:0}),i6=ta(Bu),C0,A0,Uu,ah=p({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:w0,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!==Uu&&(Uu&&i.type==="mousemove"?(C0=i.screenX-Uu.screenX,A0=i.screenY-Uu.screenY):A0=C0=0,Uu=i),C0)},movementY:function(i){return"movementY"in i?i.movementY:A0}}),sC=ta(ah),s6=p({},ah,{dataTransfer:0}),l6=ta(s6),c6=p({},Bu,{relatedTarget:0}),x0=ta(c6),u6=p({},Bs,{animationName:0,elapsedTime:0,pseudoElement:0}),d6=ta(u6),f6=p({},Bs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),p6=ta(f6),h6=p({},Bs,{data:0}),lC=ta(h6),m6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g6={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"},y6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v6(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=y6[i])?!!l[i]:!1}function w0(){return v6}var b6=p({},Bu,{key:function(i){if(i.key){var l=m6[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=th(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?g6[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:w0,charCode:function(i){return i.type==="keypress"?th(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?th(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),E6=ta(b6),T6=p({},ah,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cC=ta(T6),S6=p({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:w0}),_6=ta(S6),C6=p({},Bs,{propertyName:0,elapsedTime:0,pseudoElement:0}),A6=ta(C6),x6=p({},ah,{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}),w6=ta(x6),D6=p({},Bs,{newState:0,oldState:0}),k6=ta(D6),R6=[9,13,27,32],D0=li&&"CompositionEvent"in window,ju=null;li&&"documentMode"in document&&(ju=document.documentMode);var O6=li&&"TextEvent"in window&&!ju,uC=li&&(!D0||ju&&8<ju&&11>=ju),dC=" ",fC=!1;function pC(i,l){switch(i){case"keyup":return R6.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hC(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Xl=!1;function I6(i,l){switch(i){case"compositionend":return hC(l);case"keypress":return l.which!==32?null:(fC=!0,dC);case"textInput":return i=l.data,i===dC&&fC?null:i;default:return null}}function N6(i,l){if(Xl)return i==="compositionend"||!D0&&pC(i,l)?(i=oC(),eh=_0=Vi=null,Xl=!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 uC&&l.locale!=="ko"?null:l.data;default:return null}}var L6={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 mC(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!L6[i.type]:l==="textarea"}function gC(i,l,f,m){Ql?Kl?Kl.push(m):Kl=[m]:Ql=m,l=Vh(l,"onChange"),0<l.length&&(f=new rh("onChange","change",null,f,m),i.push({event:f,listeners:l}))}var Hu=null,zu=null;function P6(i){Kx(i,0)}function oh(i){var l=jn(i);if(X_(l))return i}function yC(i,l){if(i==="change")return l}var vC=!1;if(li){var k0;if(li){var R0="oninput"in document;if(!R0){var bC=document.createElement("div");bC.setAttribute("oninput","return;"),R0=typeof bC.oninput=="function"}k0=R0}else k0=!1;vC=k0&&(!document.documentMode||9<document.documentMode)}function EC(){Hu&&(Hu.detachEvent("onpropertychange",TC),zu=Hu=null)}function TC(i){if(i.propertyName==="value"&&oh(zu)){var l=[];gC(l,zu,i,E0(i)),aC(P6,l)}}function M6(i,l,f){i==="focusin"?(EC(),Hu=l,zu=f,Hu.attachEvent("onpropertychange",TC)):i==="focusout"&&EC()}function $6(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return oh(zu)}function F6(i,l){if(i==="click")return oh(l)}function B6(i,l){if(i==="input"||i==="change")return oh(l)}function U6(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var va=typeof Object.is=="function"?Object.is:U6;function Vu(i,l){if(va(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)||!va(i[v],l[v]))return!1}return!0}function SC(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function _C(i,l){var f=SC(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=SC(f)}}function CC(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?CC(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function AC(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=Zp(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=Zp(i.document)}return l}function O0(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 j6=li&&"documentMode"in document&&11>=document.documentMode,Zl=null,I0=null,Gu=null,N0=!1;function xC(i,l,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;N0||Zl==null||Zl!==Zp(m)||(m=Zl,"selectionStart"in m&&O0(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}),Gu&&Vu(Gu,m)||(Gu=m,m=Vh(I0,"onSelect"),0<m.length&&(l=new rh("onSelect","select",null,l,f),i.push({event:l,listeners:m}),l.target=Zl)))}function Us(i,l){var f={};return f[i.toLowerCase()]=l.toLowerCase(),f["Webkit"+i]="webkit"+l,f["Moz"+i]="moz"+l,f}var Jl={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")},L0={},wC={};li&&(wC=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function js(i){if(L0[i])return L0[i];if(!Jl[i])return i;var l=Jl[i],f;for(f in l)if(l.hasOwnProperty(f)&&f in wC)return L0[i]=l[f];return i}var DC=js("animationend"),kC=js("animationiteration"),RC=js("animationstart"),H6=js("transitionrun"),z6=js("transitionstart"),V6=js("transitioncancel"),OC=js("transitionend"),IC=new Map,P0="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(" ");P0.push("scrollEnd");function ho(i,l){IC.set(i,l),ya(l,[i])}var NC=new WeakMap;function ja(i,l){if(typeof i=="object"&&i!==null){var f=NC.get(i);return f!==void 0?f:(l={value:i,source:l,stack:Kp(l)},NC.set(i,l),l)}return{value:i,source:l,stack:Kp(l)}}var Ha=[],ec=0,M0=0;function ih(){for(var i=ec,l=M0=ec=0;l<i;){var f=Ha[l];Ha[l++]=null;var m=Ha[l];Ha[l++]=null;var v=Ha[l];Ha[l++]=null;var S=Ha[l];if(Ha[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&&LC(f,v,S)}}function sh(i,l,f,m){Ha[ec++]=i,Ha[ec++]=l,Ha[ec++]=f,Ha[ec++]=m,M0|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function $0(i,l,f,m){return sh(i,l,f,m),lh(i)}function tc(i,l){return sh(i,null,null,l),lh(i)}function LC(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-We(f),i=S.hiddenUpdates,m=i[v],m===null?i[v]=[l]:m.push(l),l.lane=f|536870912),S):null}function lh(i){if(50<gd)throw gd=0,z1=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var nc={};function G6(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 ba(i,l,f,m){return new G6(i,l,f,m)}function F0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ci(i,l){var f=i.alternate;return f===null?(f=ba(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 PC(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 ch(i,l,f,m,v,S){var N=0;if(m=i,typeof i=="function")F0(i)&&(N=1);else if(typeof i=="string")N=WM(i,f,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case j:return i=ba(31,f,l,v),i.elementType=j,i.lanes=S,i;case b:return Hs(f.children,v,S,l);case E:N=8,v|=24;break;case _:return i=ba(12,f,l,v|2),i.elementType=_,i.lanes=S,i;case O:return i=ba(13,f,l,v),i.elementType=O,i.lanes=S,i;case k:return i=ba(19,f,l,v),i.elementType=k,i.lanes=S,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case A:case w:N=10;break e;case D:N=9;break e;case R:N=11;break e;case F:N=14;break e;case G:N=16,m=null;break e}N=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return l=ba(N,f,l,v),l.elementType=i,l.type=m,l.lanes=S,l}function Hs(i,l,f,m){return i=ba(7,i,m,l),i.lanes=f,i}function B0(i,l,f){return i=ba(6,i,null,l),i.lanes=f,i}function U0(i,l,f){return l=ba(4,i.children!==null?i.children:[],i.key,l),l.lanes=f,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var rc=[],ac=0,uh=null,dh=0,za=[],Va=0,zs=null,ui=1,di="";function Vs(i,l){rc[ac++]=dh,rc[ac++]=uh,uh=i,dh=l}function MC(i,l,f){za[Va++]=ui,za[Va++]=di,za[Va++]=zs,zs=i;var m=ui;i=di;var v=32-We(m)-1;m&=~(1<<v),f+=1;var S=32-We(l)+v;if(30<S){var N=v-v%5;S=(m&(1<<N)-1).toString(32),m>>=N,v-=N,ui=1<<32-We(l)+v|f<<v|m,di=S+i}else ui=1<<S|f<<v|m,di=i}function j0(i){i.return!==null&&(Vs(i,1),MC(i,1,0))}function H0(i){for(;i===uh;)uh=rc[--ac],rc[ac]=null,dh=rc[--ac],rc[ac]=null;for(;i===zs;)zs=za[--Va],za[Va]=null,di=za[--Va],za[Va]=null,ui=za[--Va],za[Va]=null}var Vr=null,zn=null,rn=!1,Gs=null,ko=!1,z0=Error(r(519));function qs(i){var l=Error(r(418,""));throw Yu(ja(l,i)),z0}function $C(i){var l=i.stateNode,f=i.type,m=i.memoizedProps;switch(l[De]=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<vd.length;f++)Bt(vd[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),Z_(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Xp(l);break;case"select":Bt("invalid",l);break;case"textarea":Bt("invalid",l),eC(l,m.value,m.defaultValue,m.children),Xp(l)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||m.suppressHydrationWarning===!0||e2(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=Gh),l=!0):l=!1,l||qs(i)}function FC(i){for(Vr=i.return;Vr;)switch(Vr.tag){case 5:case 13:ko=!1;return;case 27:case 3:ko=!0;return;default:Vr=Vr.return}}function qu(i){if(i!==Vr)return!1;if(!rn)return FC(i),rn=!0,!1;var l=i.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||ov(i.type,i.memoizedProps)),f=!f),f&&zn&&qs(i),FC(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=go(i.nextSibling);break e}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++;i=i.nextSibling}zn=null}}else l===27?(l=zn,is(i.type)?(i=cv,cv=null,zn=i):zn=l):zn=Vr?go(i.stateNode.nextSibling):null;return!0}function Wu(){zn=Vr=null,rn=!1}function BC(){var i=Gs;return i!==null&&(aa===null?aa=i:aa.push.apply(aa,i),Gs=null),i}function Yu(i){Gs===null?Gs=[i]:Gs.push(i)}var V0=re(null),Ws=null,fi=null;function Gi(i,l,f){L(V0,l._currentValue),l._currentValue=f}function pi(i){i._currentValue=V0.current,ee(V0)}function G0(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 q0(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 $=S;S=v;for(var Q=0;Q<l.length;Q++)if($.context===l[Q]){S.lanes|=f,$=S.alternate,$!==null&&($.lanes|=f),G0(S.return,f,i),m||(N=null);break e}S=$.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),G0(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 Qu(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 $=v.type;va(v.pendingProps.value,N.value)||(i!==null?i.push($):i=[$])}}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(Cd):i=[Cd])}v=v.return}i!==null&&q0(l,i,f,m),l.flags|=262144}function fh(i){for(i=i.firstContext;i!==null;){if(!va(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 UC(Ws,i)}function ph(i,l){return Ws===null&&Ys(i),UC(i,l)}function UC(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 q6=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()})}},W6=e.unstable_scheduleCallback,Y6=e.unstable_NormalPriority,ur={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function W0(){return{controller:new q6,data:new Map,refCount:0}}function Ku(i){i.refCount--,i.refCount===0&&W6(Y6,function(){i.controller.abort()})}var Xu=null,Y0=0,oc=0,ic=null;function Q6(i,l){if(Xu===null){var f=Xu=[];Y0=0,oc=K1(),ic={status:"pending",value:void 0,then:function(m){f.push(m)}}}return Y0++,l.then(jC,jC),l}function jC(){if(--Y0===0&&Xu!==null){ic!==null&&(ic.status="fulfilled");var i=Xu;Xu=null,oc=0,ic=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function K6(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 HC=z.S;z.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&Q6(i,l),HC!==null&&HC(i,l)};var Qs=re(null);function Q0(){var i=Qs.current;return i!==null?i:kn.pooledCache}function hh(i,l){l===null?L(Qs,Qs.current):L(Qs,l.pool)}function zC(){var i=Q0();return i===null?null:{parent:ur._currentValue,pool:i}}var Zu=Error(r(460)),VC=Error(r(474)),mh=Error(r(542)),K0={then:function(){}};function GC(i){return i=i.status,i==="fulfilled"||i==="rejected"}function gh(){}function qC(i,l,f){switch(f=i[f],f===void 0?i.push(l):f!==l&&(l.then(gh,gh),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,YC(i),i;default:if(typeof l.status=="string")l.then(gh,gh);else{if(i=kn,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,YC(i),i}throw Ju=l,Zu}}var Ju=null;function WC(){if(Ju===null)throw Error(r(459));var i=Ju;return Ju=null,i}function YC(i){if(i===Zu||i===mh)throw Error(r(483))}var qi=!1;function X0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Z0(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=lh(i),LC(i,null,f),l}return sh(i,m,l,f),lh(i)}function ed(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 J0(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 e1=!1;function td(){if(e1){var i=ic;if(i!==null)throw i}}function nd(i,l,f,m){e1=!1;var v=i.updateQueue;qi=!1;var S=v.firstBaseUpdate,N=v.lastBaseUpdate,$=v.shared.pending;if($!==null){v.shared.pending=null;var Q=$,ue=Q.next;Q.next=null,N===null?S=ue:N.next=ue,N=Q;var Ce=i.alternate;Ce!==null&&(Ce=Ce.updateQueue,$=Ce.lastBaseUpdate,$!==N&&($===null?Ce.firstBaseUpdate=ue:$.next=ue,Ce.lastBaseUpdate=Q))}if(S!==null){var we=v.baseState;N=0,Ce=ue=Q=null,$=S;do{var fe=$.lane&-536870913,he=fe!==$.lane;if(he?(Gt&fe)===fe:(m&fe)===fe){fe!==0&&fe===oc&&(e1=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var vt=i,ht=$;fe=l;var gn=f;switch(ht.tag){case 1:if(vt=ht.payload,typeof vt=="function"){we=vt.call(gn,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(gn,we,fe):vt,fe==null)break e;we=p({},we,fe);break e;case 2:qi=!0}}fe=$.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:$.tag,payload:$.payload,callback:$.callback,next:null},Ce===null?(ue=Ce=he,Q=we):Ce=Ce.next=he,N|=fe;if($=$.next,$===null){if($=v.shared.pending,$===null)break;he=$,$=he.next,he.next=null,v.lastBaseUpdate=he,v.shared.pending=null}}while(!0);Ce===null&&(Q=we),v.baseState=Q,v.firstBaseUpdate=ue,v.lastBaseUpdate=Ce,S===null&&(v.shared.lanes=0),ns|=N,i.lanes=N,i.memoizedState=we}}function QC(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function KC(i,l){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)QC(f[i],l)}var sc=re(null),yh=re(0);function XC(i,l){i=Ei,L(yh,i),L(sc,l),Ei=i|l.baseLanes}function t1(){L(yh,Ei),L(sc,sc.current)}function n1(){Ei=yh.current,ee(sc),ee(yh)}var Qi=0,Lt=null,hn=null,ar=null,vh=!1,lc=!1,Ks=!1,bh=0,rd=0,cc=null,X6=0;function Xn(){throw Error(r(321))}function r1(i,l){if(l===null)return!1;for(var f=0;f<l.length&&f<i.length;f++)if(!va(i[f],l[f]))return!1;return!0}function a1(i,l,f,m,v,S){return Qi=S,Lt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,z.H=i===null||i.memoizedState===null?LA:PA,Ks=!1,S=f(m,v),Ks=!1,lc&&(S=JC(l,f,m,v)),ZC(i),S}function ZC(i){z.H=Ah;var l=hn!==null&&hn.next!==null;if(Qi=0,ar=hn=Lt=null,vh=!1,rd=0,cc=null,l)throw Error(r(300));i===null||yr||(i=i.dependencies,i!==null&&fh(i)&&(yr=!0))}function JC(i,l,f,m){Lt=i;var v=0;do{if(lc&&(cc=null),rd=0,lc=!1,25<=v)throw Error(r(301));if(v+=1,ar=hn=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}z.H=aM,S=l(f,m)}while(lc);return S}function Z6(){var i=z.H,l=i.useState()[0];return l=typeof l.then=="function"?ad(l):l,i=i.useState()[0],(hn!==null?hn.memoizedState:null)!==i&&(Lt.flags|=1024),l}function o1(){var i=bh!==0;return bh=0,i}function i1(i,l,f){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~f}function s1(i){if(vh){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}vh=!1}Qi=0,ar=hn=Lt=null,lc=!1,rd=bh=0,cc=null}function na(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ar===null?Lt.memoizedState=ar=i:ar=ar.next=i,ar}function or(){if(hn===null){var i=Lt.alternate;i=i!==null?i.memoizedState:null}else i=hn.next;var l=ar===null?Lt.memoizedState:ar.next;if(l!==null)ar=l,hn=i;else{if(i===null)throw Lt.alternate===null?Error(r(467)):Error(r(310));hn=i,i={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},ar===null?Lt.memoizedState=ar=i:ar=ar.next=i}return ar}function l1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ad(i){var l=rd;return rd+=1,cc===null&&(cc=[]),i=qC(cc,i,l),l=Lt,(ar===null?l.memoizedState:ar.next)===null&&(l=l.alternate,z.H=l===null||l.memoizedState===null?LA:PA),i}function Eh(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return ad(i);if(i.$$typeof===w)return kr(i)}throw Error(r(438,String(i)))}function c1(i){var l=null,f=Lt.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var m=Lt.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=l1(),Lt.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]=T;return l.index++,f}function hi(i,l){return typeof l=="function"?l(i):l}function Th(i){var l=or();return u1(l,hn,i)}function u1(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 $=N=null,Q=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)Q!==null&&(Q=Q.next={lane:0,revertLane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),we===oc&&(Ce=!0);else if((Qi&fe)===fe){ue=ue.next,fe===oc&&(Ce=!0);continue}else we={lane:0,revertLane:ue.revertLane,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null},Q===null?($=Q=we,N=S):Q=Q.next=we,Lt.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},Q===null?($=Q=fe,N=S):Q=Q.next=fe,Lt.lanes|=we,ns|=we;ue=ue.next}while(ue!==null&&ue!==l);if(Q===null?N=S:Q.next=$,!va(S,i.memoizedState)&&(yr=!0,Ce&&(f=ic,f!==null)))throw f;i.memoizedState=S,i.baseState=N,i.baseQueue=Q,m.lastRenderedState=S}return v===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function d1(i){var l=or(),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);va(S,l.memoizedState)||(yr=!0),l.memoizedState=S,l.baseQueue===null&&(l.baseState=S),f.lastRenderedState=S}return[S,m]}function eA(i,l,f){var m=Lt,v=or(),S=rn;if(S){if(f===void 0)throw Error(r(407));f=f()}else f=l();var N=!va((hn||v).memoizedState,f);N&&(v.memoizedState=f,yr=!0),v=v.queue;var $=rA.bind(null,m,v,i);if(od(2048,8,$,[i]),v.getSnapshot!==l||N||ar!==null&&ar.memoizedState.tag&1){if(m.flags|=2048,uc(9,Sh(),nA.bind(null,m,v,f,l),null),kn===null)throw Error(r(349));S||(Qi&124)!==0||tA(m,l,f)}return f}function tA(i,l,f){i.flags|=16384,i={getSnapshot:l,value:f},l=Lt.updateQueue,l===null?(l=l1(),Lt.updateQueue=l,l.stores=[i]):(f=l.stores,f===null?l.stores=[i]:f.push(i))}function nA(i,l,f,m){l.value=f,l.getSnapshot=m,aA(l)&&oA(i)}function rA(i,l,f){return f(function(){aA(l)&&oA(i)})}function aA(i){var l=i.getSnapshot;i=i.value;try{var f=l();return!va(i,f)}catch{return!0}}function oA(i){var l=tc(i,2);l!==null&&Ca(l,i,2)}function f1(i){var l=na();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 iA(i,l,f,m){return i.baseState=f,u1(i,hn,typeof m=="function"?m:hi)}function J6(i,l,f,m,v){if(Ch(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)}};z.T!==null?f(!0):S.isTransition=!1,m(S),f=l.pending,f===null?(S.next=l.pending=S,sA(l,S)):(S.next=f.next,l.pending=f.next=S)}}function sA(i,l){var f=l.action,m=l.payload,v=i.state;if(l.isTransition){var S=z.T,N={};z.T=N;try{var $=f(v,m),Q=z.S;Q!==null&&Q(N,$),lA(i,l,$)}catch(ue){p1(i,l,ue)}finally{z.T=S}}else try{S=f(v,m),lA(i,l,S)}catch(ue){p1(i,l,ue)}}function lA(i,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){cA(i,l,m)},function(m){return p1(i,l,m)}):cA(i,l,f)}function cA(i,l,f){l.status="fulfilled",l.value=f,uA(l),i.state=f,l=i.pending,l!==null&&(f=l.next,f===l?i.pending=null:(f=f.next,l.next=f,sA(i,f)))}function p1(i,l,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=f,uA(l),l=l.next;while(l!==m)}i.action=null}function uA(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function dA(i,l){return l}function fA(i,l){if(rn){var f=kn.formState;if(f!==null){e:{var m=Lt;if(rn){if(zn){t:{for(var v=zn,S=ko;v.nodeType!==8;){if(!S){v=null;break t}if(v=go(v.nextSibling),v===null){v=null;break t}}S=v.data,v=S==="F!"||S==="F"?v:null}if(v){zn=go(v.nextSibling),m=v.data==="F!";break e}}qs(m)}m=!1}m&&(l=f[0])}}return f=na(),f.memoizedState=f.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dA,lastRenderedState:l},f.queue=m,f=OA.bind(null,Lt,m),m.dispatch=f,m=f1(!1),S=v1.bind(null,Lt,!1,m.queue),m=na(),v={state:l,dispatch:null,action:i,pending:null},m.queue=v,f=J6.bind(null,Lt,v,S,f),v.dispatch=f,m.memoizedState=i,[l,f,!1]}function pA(i){var l=or();return hA(l,hn,i)}function hA(i,l,f){if(l=u1(i,l,dA)[0],i=Th(hi)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=ad(l)}catch(N){throw N===Zu?mh:N}else m=l;l=or();var v=l.queue,S=v.dispatch;return f!==l.memoizedState&&(Lt.flags|=2048,uc(9,Sh(),eM.bind(null,v,f),null)),[m,S,i]}function eM(i,l){i.action=l}function mA(i){var l=or(),f=hn;if(f!==null)return hA(l,f,i);or(),l=l.memoizedState,f=or();var m=f.queue.dispatch;return f.memoizedState=i,[l,m,!1]}function uc(i,l,f,m){return i={tag:i,create:f,deps:m,inst:l,next:null},l=Lt.updateQueue,l===null&&(l=l1(),Lt.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 Sh(){return{destroy:void 0,resource:void 0}}function gA(){return or().memoizedState}function _h(i,l,f,m){var v=na();m=m===void 0?null:m,Lt.flags|=i,v.memoizedState=uc(1|l,Sh(),f,m)}function od(i,l,f,m){var v=or();m=m===void 0?null:m;var S=v.memoizedState.inst;hn!==null&&m!==null&&r1(m,hn.memoizedState.deps)?v.memoizedState=uc(l,S,f,m):(Lt.flags|=i,v.memoizedState=uc(1|l,S,f,m))}function yA(i,l){_h(8390656,8,i,l)}function vA(i,l){od(2048,8,i,l)}function bA(i,l){return od(4,2,i,l)}function EA(i,l){return od(4,4,i,l)}function TA(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 SA(i,l,f){f=f!=null?f.concat([i]):null,od(4,4,TA.bind(null,l,i),f)}function h1(){}function _A(i,l){var f=or();l=l===void 0?null:l;var m=f.memoizedState;return l!==null&&r1(l,m[1])?m[0]:(f.memoizedState=[i,l],i)}function CA(i,l){var f=or();l=l===void 0?null:l;var m=f.memoizedState;if(l!==null&&r1(l,m[1]))return m[0];if(m=i(),Ks){Be(!0);try{i()}finally{Be(!1)}}return f.memoizedState=[m,l],m}function m1(i,l,f){return f===void 0||(Qi&1073741824)!==0?i.memoizedState=l:(i.memoizedState=f,i=wx(),Lt.lanes|=i,ns|=i,f)}function AA(i,l,f,m){return va(f,l)?f:sc.current!==null?(i=m1(i,f,m),va(i,l)||(yr=!0),i):(Qi&42)===0?(yr=!0,i.memoizedState=f):(i=wx(),Lt.lanes|=i,ns|=i,l)}function xA(i,l,f,m,v){var S=Z.p;Z.p=S!==0&&8>S?S:8;var N=z.T,$={};z.T=$,v1(i,!1,l,f);try{var Q=v(),ue=z.S;if(ue!==null&&ue($,Q),Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var Ce=K6(Q,m);id(i,l,Ce,_a(i))}else id(i,l,m,_a(i))}catch(we){id(i,l,{then:function(){},status:"rejected",reason:we},_a())}finally{Z.p=S,z.T=N}}function tM(){}function g1(i,l,f,m){if(i.tag!==5)throw Error(r(476));var v=wA(i).queue;xA(i,v,l,J,f===null?tM:function(){return DA(i),f(m)})}function wA(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:J},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 DA(i){var l=wA(i).next.queue;id(i,l,{},_a())}function y1(){return kr(Cd)}function kA(){return or().memoizedState}function RA(){return or().memoizedState}function nM(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var f=_a();i=Wi(f);var m=Yi(l,i,f);m!==null&&(Ca(m,l,f),ed(m,l,f)),l={cache:W0()},i.payload=l;return}l=l.return}}function rM(i,l,f){var m=_a();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},Ch(i)?IA(l,f):(f=$0(i,l,f,m),f!==null&&(Ca(f,i,m),NA(f,l,m)))}function OA(i,l,f){var m=_a();id(i,l,f,m)}function id(i,l,f,m){var v={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(Ch(i))IA(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,$=S(N,f);if(v.hasEagerState=!0,v.eagerState=$,va($,N))return sh(i,l,v,0),kn===null&&ih(),!1}catch{}finally{}if(f=$0(i,l,v,m),f!==null)return Ca(f,i,m),NA(f,l,m),!0}return!1}function v1(i,l,f,m){if(m={lane:2,revertLane:K1(),action:m,hasEagerState:!1,eagerState:null,next:null},Ch(i)){if(l)throw Error(r(479))}else l=$0(i,f,m,2),l!==null&&Ca(l,i,2)}function Ch(i){var l=i.alternate;return i===Lt||l!==null&&l===Lt}function IA(i,l){lc=vh=!0;var f=i.pending;f===null?l.next=l:(l.next=f.next,f.next=l),i.pending=l}function NA(i,l,f){if((f&4194048)!==0){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,In(i,f)}}var Ah={readContext:kr,use:Eh,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},LA={readContext:kr,use:Eh,useCallback:function(i,l){return na().memoizedState=[i,l===void 0?null:l],i},useContext:kr,useEffect:yA,useImperativeHandle:function(i,l,f){f=f!=null?f.concat([i]):null,_h(4194308,4,TA.bind(null,l,i),f)},useLayoutEffect:function(i,l){return _h(4194308,4,i,l)},useInsertionEffect:function(i,l){_h(4,2,i,l)},useMemo:function(i,l){var f=na();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=na();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=rM.bind(null,Lt,i),[m.memoizedState,i]},useRef:function(i){var l=na();return i={current:i},l.memoizedState=i},useState:function(i){i=f1(i);var l=i.queue,f=OA.bind(null,Lt,l);return l.dispatch=f,[i.memoizedState,f]},useDebugValue:h1,useDeferredValue:function(i,l){var f=na();return m1(f,i,l)},useTransition:function(){var i=f1(!1);return i=xA.bind(null,Lt,i.queue,!0,!1),na().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,f){var m=Lt,v=na();if(rn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),kn===null)throw Error(r(349));(Gt&124)!==0||tA(m,l,f)}v.memoizedState=f;var S={value:f,getSnapshot:l};return v.queue=S,yA(rA.bind(null,m,S,i),[i]),m.flags|=2048,uc(9,Sh(),nA.bind(null,m,S,f,l),null),f},useId:function(){var i=na(),l=kn.identifierPrefix;if(rn){var f=di,m=ui;f=(m&~(1<<32-We(m)-1)).toString(32)+f,l="«"+l+"R"+f,f=bh++,0<f&&(l+="H"+f.toString(32)),l+="»"}else f=X6++,l="«"+l+"r"+f.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:y1,useFormState:fA,useActionState:fA,useOptimistic:function(i){var l=na();l.memoizedState=l.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=v1.bind(null,Lt,!0,f),f.dispatch=l,[i,l]},useMemoCache:c1,useCacheRefresh:function(){return na().memoizedState=nM.bind(null,Lt)}},PA={readContext:kr,use:Eh,useCallback:_A,useContext:kr,useEffect:vA,useImperativeHandle:SA,useInsertionEffect:bA,useLayoutEffect:EA,useMemo:CA,useReducer:Th,useRef:gA,useState:function(){return Th(hi)},useDebugValue:h1,useDeferredValue:function(i,l){var f=or();return AA(f,hn.memoizedState,i,l)},useTransition:function(){var i=Th(hi)[0],l=or().memoizedState;return[typeof i=="boolean"?i:ad(i),l]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:y1,useFormState:pA,useActionState:pA,useOptimistic:function(i,l){var f=or();return iA(f,hn,i,l)},useMemoCache:c1,useCacheRefresh:RA},aM={readContext:kr,use:Eh,useCallback:_A,useContext:kr,useEffect:vA,useImperativeHandle:SA,useInsertionEffect:bA,useLayoutEffect:EA,useMemo:CA,useReducer:d1,useRef:gA,useState:function(){return d1(hi)},useDebugValue:h1,useDeferredValue:function(i,l){var f=or();return hn===null?m1(f,i,l):AA(f,hn.memoizedState,i,l)},useTransition:function(){var i=d1(hi)[0],l=or().memoizedState;return[typeof i=="boolean"?i:ad(i),l]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:y1,useFormState:mA,useActionState:mA,useOptimistic:function(i,l){var f=or();return hn!==null?iA(f,hn,i,l):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:c1,useCacheRefresh:RA},dc=null,sd=0;function xh(i){var l=sd;return sd+=1,dc===null&&(dc=[]),qC(dc,i,l)}function ld(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function wh(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 MA(i){var l=i._init;return l(i._payload)}function $A(i){function l(ae,ne){if(i){var se=ae.deletions;se===null?(ae.deletions=[ne],ae.flags|=16):se.push(ne)}}function f(ae,ne){if(!i)return null;for(;ne!==null;)l(ae,ne),ne=ne.sibling;return null}function m(ae){for(var ne=new Map;ae!==null;)ae.key!==null?ne.set(ae.key,ae):ne.set(ae.index,ae),ae=ae.sibling;return ne}function v(ae,ne){return ae=ci(ae,ne),ae.index=0,ae.sibling=null,ae}function S(ae,ne,se){return ae.index=se,i?(se=ae.alternate,se!==null?(se=se.index,se<ne?(ae.flags|=67108866,ne):se):(ae.flags|=67108866,ne)):(ae.flags|=1048576,ne)}function N(ae){return i&&ae.alternate===null&&(ae.flags|=67108866),ae}function $(ae,ne,se,Ae){return ne===null||ne.tag!==6?(ne=B0(se,ae.mode,Ae),ne.return=ae,ne):(ne=v(ne,se),ne.return=ae,ne)}function Q(ae,ne,se,Ae){var Ke=se.type;return Ke===b?Ce(ae,ne,se.props.children,Ae,se.key):ne!==null&&(ne.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===G&&MA(Ke)===ne.type)?(ne=v(ne,se.props),ld(ne,se),ne.return=ae,ne):(ne=ch(se.type,se.key,se.props,null,ae.mode,Ae),ld(ne,se),ne.return=ae,ne)}function ue(ae,ne,se,Ae){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==se.containerInfo||ne.stateNode.implementation!==se.implementation?(ne=U0(se,ae.mode,Ae),ne.return=ae,ne):(ne=v(ne,se.children||[]),ne.return=ae,ne)}function Ce(ae,ne,se,Ae,Ke){return ne===null||ne.tag!==7?(ne=Hs(se,ae.mode,Ae,Ke),ne.return=ae,ne):(ne=v(ne,se),ne.return=ae,ne)}function we(ae,ne,se){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=B0(""+ne,ae.mode,se),ne.return=ae,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case g:return se=ch(ne.type,ne.key,ne.props,null,ae.mode,se),ld(se,ne),se.return=ae,se;case y:return ne=U0(ne,ae.mode,se),ne.return=ae,ne;case G:var Ae=ne._init;return ne=Ae(ne._payload),we(ae,ne,se)}if(X(ne)||U(ne))return ne=Hs(ne,ae.mode,se,null),ne.return=ae,ne;if(typeof ne.then=="function")return we(ae,xh(ne),se);if(ne.$$typeof===w)return we(ae,ph(ae,ne),se);wh(ae,ne)}return null}function fe(ae,ne,se,Ae){var Ke=ne!==null?ne.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ke!==null?null:$(ae,ne,""+se,Ae);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case g:return se.key===Ke?Q(ae,ne,se,Ae):null;case y:return se.key===Ke?ue(ae,ne,se,Ae):null;case G:return Ke=se._init,se=Ke(se._payload),fe(ae,ne,se,Ae)}if(X(se)||U(se))return Ke!==null?null:Ce(ae,ne,se,Ae,null);if(typeof se.then=="function")return fe(ae,ne,xh(se),Ae);if(se.$$typeof===w)return fe(ae,ne,ph(ae,se),Ae);wh(ae,se)}return null}function he(ae,ne,se,Ae,Ke){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ae=ae.get(se)||null,$(ne,ae,""+Ae,Ke);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case g:return ae=ae.get(Ae.key===null?se:Ae.key)||null,Q(ne,ae,Ae,Ke);case y:return ae=ae.get(Ae.key===null?se:Ae.key)||null,ue(ne,ae,Ae,Ke);case G:var Mt=Ae._init;return Ae=Mt(Ae._payload),he(ae,ne,se,Ae,Ke)}if(X(Ae)||U(Ae))return ae=ae.get(se)||null,Ce(ne,ae,Ae,Ke,null);if(typeof Ae.then=="function")return he(ae,ne,se,xh(Ae),Ke);if(Ae.$$typeof===w)return he(ae,ne,se,ph(ne,Ae),Ke);wh(ne,Ae)}return null}function vt(ae,ne,se,Ae){for(var Ke=null,Mt=null,st=ne,yt=ne=0,br=null;st!==null&&yt<se.length;yt++){st.index>yt?(br=st,st=null):br=st.sibling;var nn=fe(ae,st,se[yt],Ae);if(nn===null){st===null&&(st=br);break}i&&st&&nn.alternate===null&&l(ae,st),ne=S(nn,ne,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn,st=br}if(yt===se.length)return f(ae,st),rn&&Vs(ae,yt),Ke;if(st===null){for(;yt<se.length;yt++)st=we(ae,se[yt],Ae),st!==null&&(ne=S(st,ne,yt),Mt===null?Ke=st:Mt.sibling=st,Mt=st);return rn&&Vs(ae,yt),Ke}for(st=m(st);yt<se.length;yt++)br=he(st,ae,yt,se[yt],Ae),br!==null&&(i&&br.alternate!==null&&st.delete(br.key===null?yt:br.key),ne=S(br,ne,yt),Mt===null?Ke=br:Mt.sibling=br,Mt=br);return i&&st.forEach(function(ds){return l(ae,ds)}),rn&&Vs(ae,yt),Ke}function ht(ae,ne,se,Ae){if(se==null)throw Error(r(151));for(var Ke=null,Mt=null,st=ne,yt=ne=0,br=null,nn=se.next();st!==null&&!nn.done;yt++,nn=se.next()){st.index>yt?(br=st,st=null):br=st.sibling;var ds=fe(ae,st,nn.value,Ae);if(ds===null){st===null&&(st=br);break}i&&st&&ds.alternate===null&&l(ae,st),ne=S(ds,ne,yt),Mt===null?Ke=ds:Mt.sibling=ds,Mt=ds,st=br}if(nn.done)return f(ae,st),rn&&Vs(ae,yt),Ke;if(st===null){for(;!nn.done;yt++,nn=se.next())nn=we(ae,nn.value,Ae),nn!==null&&(ne=S(nn,ne,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn);return rn&&Vs(ae,yt),Ke}for(st=m(st);!nn.done;yt++,nn=se.next())nn=he(st,ae,yt,nn.value,Ae),nn!==null&&(i&&nn.alternate!==null&&st.delete(nn.key===null?yt:nn.key),ne=S(nn,ne,yt),Mt===null?Ke=nn:Mt.sibling=nn,Mt=nn);return i&&st.forEach(function(o$){return l(ae,o$)}),rn&&Vs(ae,yt),Ke}function gn(ae,ne,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 g:e:{for(var Ke=se.key;ne!==null;){if(ne.key===Ke){if(Ke=se.type,Ke===b){if(ne.tag===7){f(ae,ne.sibling),Ae=v(ne,se.props.children),Ae.return=ae,ae=Ae;break e}}else if(ne.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===G&&MA(Ke)===ne.type){f(ae,ne.sibling),Ae=v(ne,se.props),ld(Ae,se),Ae.return=ae,ae=Ae;break e}f(ae,ne);break}else l(ae,ne);ne=ne.sibling}se.type===b?(Ae=Hs(se.props.children,ae.mode,Ae,se.key),Ae.return=ae,ae=Ae):(Ae=ch(se.type,se.key,se.props,null,ae.mode,Ae),ld(Ae,se),Ae.return=ae,ae=Ae)}return N(ae);case y:e:{for(Ke=se.key;ne!==null;){if(ne.key===Ke)if(ne.tag===4&&ne.stateNode.containerInfo===se.containerInfo&&ne.stateNode.implementation===se.implementation){f(ae,ne.sibling),Ae=v(ne,se.children||[]),Ae.return=ae,ae=Ae;break e}else{f(ae,ne);break}else l(ae,ne);ne=ne.sibling}Ae=U0(se,ae.mode,Ae),Ae.return=ae,ae=Ae}return N(ae);case G:return Ke=se._init,se=Ke(se._payload),gn(ae,ne,se,Ae)}if(X(se))return vt(ae,ne,se,Ae);if(U(se)){if(Ke=U(se),typeof Ke!="function")throw Error(r(150));return se=Ke.call(se),ht(ae,ne,se,Ae)}if(typeof se.then=="function")return gn(ae,ne,xh(se),Ae);if(se.$$typeof===w)return gn(ae,ne,ph(ae,se),Ae);wh(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ne!==null&&ne.tag===6?(f(ae,ne.sibling),Ae=v(ne,se),Ae.return=ae,ae=Ae):(f(ae,ne),Ae=B0(se,ae.mode,Ae),Ae.return=ae,ae=Ae),N(ae)):f(ae,ne)}return function(ae,ne,se,Ae){try{sd=0;var Ke=gn(ae,ne,se,Ae);return dc=null,Ke}catch(st){if(st===Zu||st===mh)throw st;var Mt=ba(29,st,null,ae.mode);return Mt.lanes=Ae,Mt.return=ae,Mt}finally{}}}var fc=$A(!0),FA=$A(!1),Ga=re(null),Ro=null;function Ki(i){var l=i.alternate;L(dr,dr.current&1),L(Ga,i),Ro===null&&(l===null||sc.current!==null||l.memoizedState!==null)&&(Ro=i)}function BA(i){if(i.tag===22){if(L(dr,dr.current),L(Ga,i),Ro===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(Ro=i)}}else Xi()}function Xi(){L(dr,dr.current),L(Ga,Ga.current)}function mi(i){ee(Ga),Ro===i&&(Ro=null),ee(dr)}var dr=re(0);function Dh(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==="$?"||lv(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 b1(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 E1={enqueueSetState:function(i,l,f){i=i._reactInternals;var m=_a(),v=Wi(m);v.payload=l,f!=null&&(v.callback=f),l=Yi(i,v,m),l!==null&&(Ca(l,i,m),ed(l,i,m))},enqueueReplaceState:function(i,l,f){i=i._reactInternals;var m=_a(),v=Wi(m);v.tag=1,v.payload=l,f!=null&&(v.callback=f),l=Yi(i,v,m),l!==null&&(Ca(l,i,m),ed(l,i,m))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var f=_a(),m=Wi(f);m.tag=2,l!=null&&(m.callback=l),l=Yi(i,m,f),l!==null&&(Ca(l,i,f),ed(l,i,f))}};function UA(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?!Vu(f,m)||!Vu(v,S):!0}function jA(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&&E1.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 kh=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 HA(i){kh(i)}function zA(i){console.error(i)}function VA(i){kh(i)}function Rh(i,l){try{var f=i.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function GA(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 T1(i,l,f){return f=Wi(f),f.tag=3,f.payload={element:null},f.callback=function(){Rh(i,l)},f}function qA(i){return i=Wi(i),i.tag=3,i}function WA(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(){GA(l,f,m)}}var N=f.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){GA(l,f,m),typeof v!="function"&&(rs===null?rs=new Set([this]):rs.add(this));var $=m.stack;this.componentDidCatch(m.value,{componentStack:$!==null?$:""})})}function oM(i,l,f,m,v){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=f.alternate,l!==null&&Qu(l,f,v,!0),f=Ga.current,f!==null){switch(f.tag){case 13:return Ro===null?G1():f.alternate===null&&Vn===0&&(Vn=3),f.flags&=-257,f.flags|=65536,f.lanes=v,m===K0?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([m]):l.add(m),W1(i,m,v)),!1;case 22:return f.flags|=65536,m===K0?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)),W1(i,m,v)),!1}throw Error(r(435,f.tag))}return W1(i,m,v),G1(),!1}if(rn)return l=Ga.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,m!==z0&&(i=Error(r(422),{cause:m}),Yu(ja(i,f)))):(m!==z0&&(l=Error(r(423),{cause:m}),Yu(ja(l,f))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,m=ja(m,f),v=T1(i.stateNode,m,v),J0(i,v),Vn!==4&&(Vn=2)),!1;var S=Error(r(520),{cause:m});if(S=ja(S,f),md===null?md=[S]:md.push(S),Vn!==4&&(Vn=2),l===null)return!0;m=ja(m,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,i=v&-v,f.lanes|=i,i=T1(f.stateNode,m,i),J0(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=qA(v),WA(v,i,f,m),J0(f,v),!1}f=f.return}while(f!==null);return!1}var YA=Error(r(461)),yr=!1;function Cr(i,l,f,m){l.child=i===null?FA(l,null,f,m):fc(l,i.child,f,m)}function QA(i,l,f,m,v){f=f.render;var S=l.ref;if("ref"in m){var N={};for(var $ in m)$!=="ref"&&(N[$]=m[$])}else N=m;return Ys(l),m=a1(i,l,f,N,S,v),$=o1(),i!==null&&!yr?(i1(i,l,v),gi(i,l,v)):(rn&&$&&j0(l),l.flags|=1,Cr(i,l,m,v),l.child)}function KA(i,l,f,m,v){if(i===null){var S=f.type;return typeof S=="function"&&!F0(S)&&S.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=S,XA(i,l,S,m,v)):(i=ch(f.type,null,m,l,l.mode,v),i.ref=l.ref,i.return=l,l.child=i)}if(S=i.child,!k1(i,v)){var N=S.memoizedProps;if(f=f.compare,f=f!==null?f:Vu,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 XA(i,l,f,m,v){if(i!==null){var S=i.memoizedProps;if(Vu(S,m)&&i.ref===l.ref)if(yr=!1,l.pendingProps=m=S,k1(i,v))(i.flags&131072)!==0&&(yr=!0);else return l.lanes=i.lanes,gi(i,l,v)}return S1(i,l,f,m,v)}function ZA(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 JA(i,l,m,f)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&hh(l,S!==null?S.cachePool:null),S!==null?XC(l,S):t1(),BA(l);else return l.lanes=l.childLanes=536870912,JA(i,l,S!==null?S.baseLanes|f:f,f)}else S!==null?(hh(l,S.cachePool),XC(l,S),Xi(),l.memoizedState=null):(i!==null&&hh(l,null),t1(),Xi());return Cr(i,l,v,f),l.child}function JA(i,l,f,m){var v=Q0();return v=v===null?null:{parent:ur._currentValue,pool:v},l.memoizedState={baseLanes:f,cachePool:v},i!==null&&hh(l,null),t1(),BA(l),i!==null&&Qu(i,l,m,!0),null}function Oh(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 S1(i,l,f,m,v){return Ys(l),f=a1(i,l,f,m,void 0,v),m=o1(),i!==null&&!yr?(i1(i,l,v),gi(i,l,v)):(rn&&m&&j0(l),l.flags|=1,Cr(i,l,f,v),l.child)}function ex(i,l,f,m,v,S){return Ys(l),l.updateQueue=null,f=JC(l,m,f,v),ZC(i),m=o1(),i!==null&&!yr?(i1(i,l,S),gi(i,l,S)):(rn&&m&&j0(l),l.flags|=1,Cr(i,l,f,S),l.child)}function tx(i,l,f,m,v){if(Ys(l),l.stateNode===null){var S=nc,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=E1,l.stateNode=S,S._reactInternals=l,S=l.stateNode,S.props=m,S.state=l.memoizedState,S.refs={},X0(l),N=f.contextType,S.context=typeof N=="object"&&N!==null?kr(N):nc,S.state=l.memoizedState,N=f.getDerivedStateFromProps,typeof N=="function"&&(b1(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&&E1.enqueueReplaceState(S,S.state,null),nd(l,m,S,v),td(),S.state=l.memoizedState),typeof S.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(i===null){S=l.stateNode;var $=l.memoizedProps,Q=Xs(f,$);S.props=Q;var ue=S.context,Ce=f.contextType;N=nc,typeof Ce=="object"&&Ce!==null&&(N=kr(Ce));var we=f.getDerivedStateFromProps;Ce=typeof we=="function"||typeof S.getSnapshotBeforeUpdate=="function",$=l.pendingProps!==$,Ce||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||($||ue!==N)&&jA(l,S,m,N),qi=!1;var fe=l.memoizedState;S.state=fe,nd(l,m,S,v),td(),ue=l.memoizedState,$||fe!==ue||qi?(typeof we=="function"&&(b1(l,f,we,m),ue=l.memoizedState),(Q=qi||UA(l,f,Q,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=Q):(typeof S.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{S=l.stateNode,Z0(i,l),N=l.memoizedProps,Ce=Xs(f,N),S.props=Ce,we=l.pendingProps,fe=S.context,ue=f.contextType,Q=nc,typeof ue=="object"&&ue!==null&&(Q=kr(ue)),$=f.getDerivedStateFromProps,(ue=typeof $=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(N!==we||fe!==Q)&&jA(l,S,m,Q),qi=!1,fe=l.memoizedState,S.state=fe,nd(l,m,S,v),td();var he=l.memoizedState;N!==we||fe!==he||qi||i!==null&&i.dependencies!==null&&fh(i.dependencies)?(typeof $=="function"&&(b1(l,f,$,m),he=l.memoizedState),(Ce=qi||UA(l,f,Ce,m,fe,he,Q)||i!==null&&i.dependencies!==null&&fh(i.dependencies))?(ue||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(m,he,Q),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(m,he,Q)),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=Q,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,Oh(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=fc(l,i.child,null,v),l.child=fc(l,null,f,v)):Cr(i,l,f,v),l.memoizedState=S.state,i=l.child):i=gi(i,l,v),i}function nx(i,l,f,m){return Wu(),l.flags|=256,Cr(i,l,f,m),l.child}var _1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function C1(i){return{baseLanes:i,cachePool:zC()}}function A1(i,l,f){return i=i!==null?i.childLanes&~f:0,l&&(i|=qa),i}function rx(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:(dr.current&2)!==0),N&&(v=!0,l.flags&=-129),N=(l.flags&32)!==0,l.flags&=-33,i===null){if(rn){if(v?Ki(l):Xi(),rn){var $=zn,Q;if(Q=$){e:{for(Q=$,$=ko;Q.nodeType!==8;){if(!$){$=null;break e}if(Q=go(Q.nextSibling),Q===null){$=null;break e}}$=Q}$!==null?(l.memoizedState={dehydrated:$,treeContext:zs!==null?{id:ui,overflow:di}:null,retryLane:536870912,hydrationErrors:null},Q=ba(18,null,null,0),Q.stateNode=$,Q.return=l,l.child=Q,Vr=l,zn=null,Q=!0):Q=!1}Q||qs(l)}if($=l.memoizedState,$!==null&&($=$.dehydrated,$!==null))return lv($)?l.lanes=32:l.lanes=536870912,null;mi(l)}return $=m.children,m=m.fallback,v?(Xi(),v=l.mode,$=Ih({mode:"hidden",children:$},v),m=Hs(m,v,f,null),$.return=l,m.return=l,$.sibling=m,l.child=$,v=l.child,v.memoizedState=C1(f),v.childLanes=A1(i,N,f),l.memoizedState=_1,m):(Ki(l),x1(l,$))}if(Q=i.memoizedState,Q!==null&&($=Q.dehydrated,$!==null)){if(S)l.flags&256?(Ki(l),l.flags&=-257,l=w1(i,l,f)):l.memoizedState!==null?(Xi(),l.child=i.child,l.flags|=128,l=null):(Xi(),v=m.fallback,$=l.mode,m=Ih({mode:"visible",children:m.children},$),v=Hs(v,$,f,null),v.flags|=2,m.return=l,v.return=l,m.sibling=v,l.child=m,fc(l,i.child,null,f),m=l.child,m.memoizedState=C1(f),m.childLanes=A1(i,N,f),l.memoizedState=_1,l=v);else if(Ki(l),lv($)){if(N=$.nextSibling&&$.nextSibling.dataset,N)var ue=N.dgst;N=ue,m=Error(r(419)),m.stack="",m.digest=N,Yu({value:m,source:null,stack:null}),l=w1(i,l,f)}else if(yr||Qu(i,l,f,!1),N=(f&i.childLanes)!==0,yr||N){if(N=kn,N!==null&&(m=f&-f,m=(m&42)!==0?1:Hr(m),m=(m&(N.suspendedLanes|f))!==0?0:m,m!==0&&m!==Q.retryLane))throw Q.retryLane=m,tc(i,m),Ca(N,i,m),YA;$.data==="$?"||G1(),l=w1(i,l,f)}else $.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=Q.treeContext,zn=go($.nextSibling),Vr=l,rn=!0,Gs=null,ko=!1,i!==null&&(za[Va++]=ui,za[Va++]=di,za[Va++]=zs,ui=i.id,di=i.overflow,zs=l),l=x1(l,m.children),l.flags|=4096);return l}return v?(Xi(),v=m.fallback,$=l.mode,Q=i.child,ue=Q.sibling,m=ci(Q,{mode:"hidden",children:m.children}),m.subtreeFlags=Q.subtreeFlags&65011712,ue!==null?v=ci(ue,v):(v=Hs(v,$,f,null),v.flags|=2),v.return=l,m.return=l,m.sibling=v,l.child=m,m=v,v=l.child,$=i.child.memoizedState,$===null?$=C1(f):(Q=$.cachePool,Q!==null?(ue=ur._currentValue,Q=Q.parent!==ue?{parent:ue,pool:ue}:Q):Q=zC(),$={baseLanes:$.baseLanes|f,cachePool:Q}),v.memoizedState=$,v.childLanes=A1(i,N,f),l.memoizedState=_1,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 x1(i,l){return l=Ih({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Ih(i,l){return i=ba(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function w1(i,l,f){return fc(l,i.child,null,f),i=x1(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function ax(i,l,f){i.lanes|=l;var m=i.alternate;m!==null&&(m.lanes|=l),G0(i.return,l,f)}function D1(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 ox(i,l,f){var m=l.pendingProps,v=m.revealOrder,S=m.tail;if(Cr(i,l,m.children,f),m=dr.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&&ax(i,f,l);else if(i.tag===19)ax(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(dr,m),v){case"forwards":for(f=l.child,v=null;f!==null;)i=f.alternate,i!==null&&Dh(i)===null&&(v=f),f=f.sibling;f=v,f===null?(v=l.child,l.child=null):(v=f.sibling,f.sibling=null),D1(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&&Dh(i)===null){l.child=v;break}i=v.sibling,v.sibling=f,f=v,v=i}D1(l,!0,f,null,S);break;case"together":D1(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(Qu(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 k1(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&fh(i)))}function iM(i,l,f){switch(l.tag){case 3:ge(l,l.stateNode.containerInfo),Gi(l,ur,i.memoizedState.cache),Wu();break;case 27:case 5:Ue(l);break;case 4:ge(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?rx(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||(Qu(i,l,f,!1),m=(f&l.childLanes)!==0),v){if(m)return ox(i,l,f);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),L(dr,dr.current),m)break;return null;case 22:case 23:return l.lanes=0,ZA(i,l,f);case 24:Gi(l,ur,i.memoizedState.cache)}return gi(i,l,f)}function ix(i,l,f){if(i!==null)if(i.memoizedProps!==l.pendingProps)yr=!0;else{if(!k1(i,f)&&(l.flags&128)===0)return yr=!1,iM(i,l,f);yr=(i.flags&131072)!==0}else yr=!1,rn&&(l.flags&1048576)!==0&&MC(l,dh,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")F0(m)?(i=Xs(m,i),l.tag=1,l=tx(null,l,m,i,f)):(l.tag=0,l=S1(null,l,m,i,f));else{if(m!=null){if(v=m.$$typeof,v===R){l.tag=11,l=QA(null,l,m,i,f);break e}else if(v===F){l.tag=14,l=KA(null,l,m,i,f);break e}}throw l=Y(m)||m,Error(r(306,l,""))}}return l;case 0:return S1(i,l,l.type,l.pendingProps,f);case 1:return m=l.type,v=Xs(m,l.pendingProps),tx(i,l,m,v,f);case 3:e:{if(ge(l,l.stateNode.containerInfo),i===null)throw Error(r(387));m=l.pendingProps;var S=l.memoizedState;v=S.element,Z0(i,l),nd(l,m,null,f);var N=l.memoizedState;if(m=N.cache,Gi(l,ur,m),m!==S.cache&&q0(l,[ur],f,!0),td(),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=nx(i,l,m,f);break e}else if(m!==v){v=ja(Error(r(424)),l),Yu(v),l=nx(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=go(i.firstChild),Vr=l,rn=!0,Gs=null,ko=!0,f=FA(l,null,m,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Wu(),m===v){l=gi(i,l,f);break e}Cr(i,l,m,f)}l=l.child}return l;case 26:return Oh(i,l),i===null?(f=u2(l.type,null,l.pendingProps,null))?l.memoizedState=f:rn||(f=l.type,i=l.pendingProps,m=qh(de.current).createElement(f),m[De]=l,m[Me]=i,xr(m,f,i),wt(m),l.stateNode=m):l.memoizedState=u2(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return Ue(l),i===null&&rn&&(m=l.stateNode=s2(l.type,l.pendingProps,de.current),Vr=l,ko=!0,v=zn,is(l.type)?(cv=v,zn=go(m.firstChild)):zn=v),Cr(i,l,l.pendingProps.children,f),Oh(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&rn&&((v=m=zn)&&(m=LM(m,l.type,l.pendingProps,ko),m!==null?(l.stateNode=m,Vr=l,zn=go(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,ov(v,S)?m=null:N!==null&&ov(v,N)&&(l.flags|=32),l.memoizedState!==null&&(v=a1(i,l,Z6,null,null,f),Cd._currentValue=v),Oh(i,l),Cr(i,l,m,f),l.child;case 6:return i===null&&rn&&((i=f=zn)&&(f=PM(f,l.pendingProps,ko),f!==null?(l.stateNode=f,Vr=l,zn=null,i=!0):i=!1),i||qs(l)),null;case 13:return rx(i,l,f);case 4:return ge(l,l.stateNode.containerInfo),m=l.pendingProps,i===null?l.child=fc(l,null,m,f):Cr(i,l,m,f),l.child;case 11:return QA(i,l,l.type,l.pendingProps,f);case 7:return Cr(i,l,l.pendingProps,f),l.child;case 8:return Cr(i,l,l.pendingProps.children,f),l.child;case 12:return Cr(i,l,l.pendingProps.children,f),l.child;case 10:return m=l.pendingProps,Gi(l,l.type,m.value),Cr(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,Cr(i,l,m,f),l.child;case 14:return KA(i,l,l.type,l.pendingProps,f);case 15:return XA(i,l,l.type,l.pendingProps,f);case 19:return ox(i,l,f);case 31:return m=l.pendingProps,f=l.mode,m={mode:m.mode,children:m.children},i===null?(f=Ih(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 ZA(i,l,f);case 24:return Ys(l),m=kr(ur),i===null?(v=Q0(),v===null&&(v=kn,S=W0(),v.pooledCache=S,S.refCount++,S!==null&&(v.pooledCacheLanes|=f),v=S),l.memoizedState={parent:m,cache:v},X0(l),Gi(l,ur,v)):((i.lanes&f)!==0&&(Z0(i,l),nd(l,null,null,f),td()),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,ur,m)):(m=S.cache,Gi(l,ur,m),m!==v.cache&&q0(l,[ur],f,!0))),Cr(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 sx(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!m2(l)){if(l=Ga.current,l!==null&&((Gt&4194048)===Gt?Ro!==null:(Gt&62914560)!==Gt&&(Gt&536870912)===0||l!==Ro))throw Ju=K0,VC;i.flags|=8192}}function Nh(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?jr():536870912,i.lanes|=l,gc|=l)}function cd(i,l){if(!rn)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 Un(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 sM(i,l,f){var m=l.pendingProps;switch(H0(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Un(l),null;case 1:return Un(l),null;case 3:return f=l.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),pi(ur),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,BC())),Un(l),null;case 26:return f=l.memoizedState,i===null?(yi(l),f!==null?(Un(l),sx(l,f)):(Un(l),l.flags&=-16777217)):f?f!==i.memoizedState?(yi(l),Un(l),sx(l,f)):(Un(l),l.flags&=-16777217):(i.memoizedProps!==m&&yi(l),Un(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 Un(l),null}i=te.current,qu(l)?$C(l):(i=s2(v,m,f),l.stateNode=i,yi(l))}return Un(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 Un(l),null}if(i=te.current,qu(l))$C(l);else{switch(v=qh(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[De]=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(xr(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 Un(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=Vr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}i[De]=l,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||e2(i.nodeValue,f)),i||qs(l)}else i=qh(i).createTextNode(m),i[De]=l,l.stateNode=i}return Un(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[De]=l}else Wu(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Un(l),v=!1}else v=BC(),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),Nh(l,l.updateQueue),Un(l),null;case 4:return Oe(),i===null&&ev(l.stateNode.containerInfo),Un(l),null;case 10:return pi(l.type),Un(l),null;case 19:if(ee(dr),v=l.memoizedState,v===null)return Un(l),null;if(m=(l.flags&128)!==0,S=v.rendering,S===null)if(m)cd(v,!1);else{if(Vn!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(S=Dh(i),S!==null){for(l.flags|=128,cd(v,!1),i=S.updateQueue,l.updateQueue=i,Nh(l,i),l.subtreeFlags=0,i=f,f=l.child;f!==null;)PC(f,i),f=f.sibling;return L(dr,dr.current&1|2),l.child}i=i.sibling}v.tail!==null&&je()>Mh&&(l.flags|=128,m=!0,cd(v,!1),l.lanes=4194304)}else{if(!m)if(i=Dh(S),i!==null){if(l.flags|=128,m=!0,i=i.updateQueue,l.updateQueue=i,Nh(l,i),cd(v,!0),v.tail===null&&v.tailMode==="hidden"&&!S.alternate&&!rn)return Un(l),null}else 2*je()-v.renderingStartTime>Mh&&f!==536870912&&(l.flags|=128,m=!0,cd(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=dr.current,L(dr,m?i&1|2:i&1),l):(Un(l),null);case 22:case 23:return mi(l),n1(),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&&(Un(l),l.subtreeFlags&6&&(l.flags|=8192)):Un(l),f=l.updateQueue,f!==null&&Nh(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(ur),Un(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function lM(i,l){switch(H0(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return pi(ur),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));Wu()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return ee(dr),null;case 4:return Oe(),null;case 10:return pi(l.type),null;case 22:case 23:return mi(l),n1(),i!==null&&ee(Qs),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return pi(ur),null;case 25:return null;default:return null}}function lx(i,l){switch(H0(l),l.tag){case 3:pi(ur),Oe();break;case 26:case 27:case 5:Ie(l);break;case 4:Oe();break;case 13:mi(l);break;case 19:ee(dr);break;case 10:pi(l.type);break;case 22:case 23:mi(l),n1(),i!==null&&ee(Qs);break;case 24:pi(ur)}}function ud(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($){En(l,l.return,$)}}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,$=N.destroy;if($!==void 0){N.destroy=void 0,v=l;var Q=f,ue=$;try{ue()}catch(Ce){En(v,Q,Ce)}}}m=m.next}while(m!==S)}}catch(Ce){En(l,l.return,Ce)}}function cx(i){var l=i.updateQueue;if(l!==null){var f=i.stateNode;try{KC(l,f)}catch(m){En(i,i.return,m)}}}function ux(i,l,f){f.props=Xs(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){En(i,l,m)}}function dd(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){En(i,l,v)}}function Oo(i,l){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(v){En(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){En(i,l,v)}else f.current=null}function dx(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){En(i,i.return,v)}}function R1(i,l,f){try{var m=i.stateNode;kM(m,i.type,f,l),m[Me]=l}catch(v){En(i,i.return,v)}}function fx(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&is(i.type)||i.tag===4}function O1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||fx(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 I1(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=Gh));else if(m!==4&&(m===27&&is(i.type)&&(f=i.stateNode,l=null),i=i.child,i!==null))for(I1(i,l,f),i=i.sibling;i!==null;)I1(i,l,f),i=i.sibling}function Lh(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(Lh(i,l,f),i=i.sibling;i!==null;)Lh(i,l,f),i=i.sibling}function px(i){var l=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);xr(l,m,f),l[De]=i,l[Me]=f}catch(S){En(i,i.return,S)}}var vi=!1,Zn=!1,N1=!1,hx=typeof WeakSet=="function"?WeakSet:Set,vr=null;function cM(i,l){if(i=i.containerInfo,rv=Zh,i=AC(i),O0(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,$=-1,Q=-1,ue=0,Ce=0,we=i,fe=null;t:for(;;){for(var he;we!==f||v!==0&&we.nodeType!==3||($=N+v),we!==S||m!==0&&we.nodeType!==3||(Q=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&&($=N),fe===S&&++Ce===m&&(Q=N),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}f=$===-1||Q===-1?null:{start:$,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(av={focusedElem:i,selectionRange:f},Zh=!1,vr=l;vr!==null;)if(l=vr,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,vr=i;else for(;vr!==null;){switch(l=vr,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){En(f,f.return,ht)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,f=i.nodeType,f===9)sv(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":sv(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,vr=i;break}vr=l.return}}function mx(i,l,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Ji(i,f),m&4&&ud(5,f);break;case 1:if(Ji(i,f),m&4)if(i=f.stateNode,l===null)try{i.componentDidMount()}catch(N){En(f,f.return,N)}else{var v=Xs(f.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(v,l,i.__reactInternalSnapshotBeforeUpdate)}catch(N){En(f,f.return,N)}}m&64&&cx(f),m&512&&dd(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{KC(i,l)}catch(N){En(f,f.return,N)}}break;case 27:l===null&&m&4&&px(f);case 26:case 5:Ji(i,f),l===null&&m&4&&dx(f),m&512&&dd(f,f.return);break;case 12:Ji(i,f);break;case 13:Ji(i,f),m&4&&vx(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=vM.bind(null,f),MM(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 gx(i){var l=i.alternate;l!==null&&(i.alternate=null,gx(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&it(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 Nn=null,ra=!1;function bi(i,l,f){for(f=f.child;f!==null;)yx(i,l,f),f=f.sibling}function yx(i,l,f){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(ce,f)}catch{}switch(f.tag){case 26:Zn||Oo(f,l),bi(i,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Zn||Oo(f,l);var m=Nn,v=ra;is(f.type)&&(Nn=f.stateNode,ra=!1),bi(i,l,f),Ed(f.stateNode),Nn=m,ra=v;break;case 5:Zn||Oo(f,l);case 6:if(m=Nn,v=ra,Nn=null,bi(i,l,f),Nn=m,ra=v,Nn!==null)if(ra)try{(Nn.nodeType===9?Nn.body:Nn.nodeName==="HTML"?Nn.ownerDocument.body:Nn).removeChild(f.stateNode)}catch(S){En(f,l,S)}else try{Nn.removeChild(f.stateNode)}catch(S){En(f,l,S)}break;case 18:Nn!==null&&(ra?(i=Nn,o2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),Dd(i)):o2(Nn,f.stateNode));break;case 4:m=Nn,v=ra,Nn=f.stateNode.containerInfo,ra=!0,bi(i,l,f),Nn=m,ra=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||(Oo(f,l),m=f.stateNode,typeof m.componentWillUnmount=="function"&&ux(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 vx(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Dd(i)}catch(f){En(l,l.return,f)}}function uM(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new hx),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new hx),l;default:throw Error(r(435,i.tag))}}function L1(i,l){var f=uM(i);l.forEach(function(m){var v=bM.bind(null,i,m);f.has(m)||(f.add(m),m.then(v,v))})}function Ea(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,$=N;e:for(;$!==null;){switch($.tag){case 27:if(is($.type)){Nn=$.stateNode,ra=!1;break e}break;case 5:Nn=$.stateNode,ra=!1;break e;case 3:case 4:Nn=$.stateNode.containerInfo,ra=!0;break e}$=$.return}if(Nn===null)throw Error(r(160));yx(S,N,v),Nn=null,ra=!1,S=v.alternate,S!==null&&(S.return=null),v.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)bx(l,i),l=l.sibling}var mo=null;function bx(i,l){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ea(l,i),Ta(i),m&4&&(Zi(3,i,i.return),ud(3,i),Zi(5,i,i.return));break;case 1:Ea(l,i),Ta(i),m&512&&(Zn||f===null||Oo(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=mo;if(Ea(l,i),Ta(i),m&512&&(Zn||f===null||Oo(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[De]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=v.createElement(m),v.head.insertBefore(S,v.querySelector("head > title"))),xr(S,m,f),S[De]=i,wt(S),m=S;break e;case"link":var N=p2("link","href",v).get(m+(f.href||""));if(N){for(var $=0;$<N.length;$++)if(S=N[$],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($,1);break t}}S=v.createElement(m),xr(S,m,f),v.head.appendChild(S);break;case"meta":if(N=p2("meta","content",v).get(m+(f.content||""))){for($=0;$<N.length;$++)if(S=N[$],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($,1);break t}}S=v.createElement(m),xr(S,m,f),v.head.appendChild(S);break;default:throw Error(r(468,m))}S[De]=i,wt(S),m=S}i.stateNode=m}else h2(v,i.type,i.stateNode);else i.stateNode=f2(v,m,i.memoizedProps);else S!==m?(S===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):S.count--,m===null?h2(v,i.type,i.stateNode):f2(v,m,i.memoizedProps)):m===null&&i.stateNode!==null&&R1(i,i.memoizedProps,f.memoizedProps)}break;case 27:Ea(l,i),Ta(i),m&512&&(Zn||f===null||Oo(f,f.return)),f!==null&&m&4&&R1(i,i.memoizedProps,f.memoizedProps);break;case 5:if(Ea(l,i),Ta(i),m&512&&(Zn||f===null||Oo(f,f.return)),i.flags&32){v=i.stateNode;try{Yl(v,"")}catch(he){En(i,i.return,he)}}m&4&&i.stateNode!=null&&(v=i.memoizedProps,R1(i,v,f!==null?f.memoizedProps:v)),m&1024&&(N1=!0);break;case 6:if(Ea(l,i),Ta(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(he){En(i,i.return,he)}}break;case 3:if(Qh=null,v=mo,mo=Wh(l.containerInfo),Ea(l,i),mo=v,Ta(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Dd(l.containerInfo)}catch(he){En(i,i.return,he)}N1&&(N1=!1,Ex(i));break;case 4:m=mo,mo=Wh(i.stateNode.containerInfo),Ea(l,i),Ta(i),mo=m;break;case 12:Ea(l,i),Ta(i);break;case 13:Ea(l,i),Ta(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(U1=je()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,L1(i,m)));break;case 22:v=i.memoizedState!==null;var Q=f!==null&&f.memoizedState!==null,ue=vi,Ce=Zn;if(vi=ue||v,Zn=Ce||Q,Ea(l,i),Zn=Ce,vi=ue,Ta(i),m&8192)e:for(l=i.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(f===null||Q||vi||Zn||Zs(i)),f=null,l=i;;){if(l.tag===5||l.tag===26){if(f===null){Q=f=l;try{if(S=Q.stateNode,v)N=S.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{$=Q.stateNode;var we=Q.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;$.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){En(Q,Q.return,he)}}}else if(l.tag===6){if(f===null){Q=l;try{Q.stateNode.nodeValue=v?"":Q.memoizedProps}catch(he){En(Q,Q.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,L1(i,f))));break;case 19:Ea(l,i),Ta(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,L1(i,m)));break;case 30:break;case 21:break;default:Ea(l,i),Ta(i)}}function Ta(i){var l=i.flags;if(l&2){try{for(var f,m=i.return;m!==null;){if(fx(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var v=f.stateNode,S=O1(i);Lh(i,S,v);break;case 5:var N=f.stateNode;f.flags&32&&(Yl(N,""),f.flags&=-33);var $=O1(i);Lh(i,$,N);break;case 3:case 4:var Q=f.stateNode.containerInfo,ue=O1(i);I1(i,ue,Q);break;default:throw Error(r(161))}}catch(Ce){En(i,i.return,Ce)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function Ex(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;Ex(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;)mx(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:Oo(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&ux(l,l.return,f),Zs(l);break;case 27:Ed(l.stateNode);case 26:case 5:Oo(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),ud(4,S);break;case 1:if(es(v,S,f),m=S,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ue){En(m,m.return,ue)}if(m=S,v=m.updateQueue,v!==null){var $=m.stateNode;try{var Q=v.shared.hiddenCallbacks;if(Q!==null)for(v.shared.hiddenCallbacks=null,v=0;v<Q.length;v++)QC(Q[v],$)}catch(ue){En(m,m.return,ue)}}f&&N&64&&cx(S),dd(S,S.return);break;case 27:px(S);case 26:case 5:es(v,S,f),f&&m===null&&N&4&&dx(S),dd(S,S.return);break;case 12:es(v,S,f);break;case 13:es(v,S,f),f&&N&4&&vx(v,S);break;case 22:S.memoizedState===null&&es(v,S,f),dd(S,S.return);break;case 30:break;default:es(v,S,f)}l=l.sibling}}function P1(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&&Ku(f))}function M1(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Ku(i))}function Io(i,l,f,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Tx(i,l,f,m),l=l.sibling}function Tx(i,l,f,m){var v=l.flags;switch(l.tag){case 0:case 11:case 15:Io(i,l,f,m),v&2048&&ud(9,l);break;case 1:Io(i,l,f,m);break;case 3:Io(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&&Ku(i)));break;case 12:if(v&2048){Io(i,l,f,m),i=l.stateNode;try{var S=l.memoizedProps,N=S.id,$=S.onPostCommit;typeof $=="function"&&$(N,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Q){En(l,l.return,Q)}}else Io(i,l,f,m);break;case 13:Io(i,l,f,m);break;case 23:break;case 22:S=l.stateNode,N=l.alternate,l.memoizedState!==null?S._visibility&2?Io(i,l,f,m):fd(i,l):S._visibility&2?Io(i,l,f,m):(S._visibility|=2,pc(i,l,f,m,(l.subtreeFlags&10256)!==0)),v&2048&&P1(N,l);break;case 24:Io(i,l,f,m),v&2048&&M1(l.alternate,l);break;default:Io(i,l,f,m)}}function pc(i,l,f,m,v){for(v=v&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var S=i,N=l,$=f,Q=m,ue=N.flags;switch(N.tag){case 0:case 11:case 15:pc(S,N,$,Q,v),ud(8,N);break;case 23:break;case 22:var Ce=N.stateNode;N.memoizedState!==null?Ce._visibility&2?pc(S,N,$,Q,v):fd(S,N):(Ce._visibility|=2,pc(S,N,$,Q,v)),v&&ue&2048&&P1(N.alternate,N);break;case 24:pc(S,N,$,Q,v),v&&ue&2048&&M1(N.alternate,N);break;default:pc(S,N,$,Q,v)}l=l.sibling}}function fd(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:fd(f,m),v&2048&&P1(m.alternate,m);break;case 24:fd(f,m),v&2048&&M1(m.alternate,m);break;default:fd(f,m)}l=l.sibling}}var pd=8192;function hc(i){if(i.subtreeFlags&pd)for(i=i.child;i!==null;)Sx(i),i=i.sibling}function Sx(i){switch(i.tag){case 26:hc(i),i.flags&pd&&i.memoizedState!==null&&QM(mo,i.memoizedState,i.memoizedProps);break;case 5:hc(i);break;case 3:case 4:var l=mo;mo=Wh(i.stateNode.containerInfo),hc(i),mo=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=pd,pd=16777216,hc(i),pd=l):hc(i));break;default:hc(i)}}function _x(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 hd(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];vr=m,Ax(m,i)}_x(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Cx(i),i=i.sibling}function Cx(i){switch(i.tag){case 0:case 11:case 15:hd(i),i.flags&2048&&Zi(9,i,i.return);break;case 3:hd(i);break;case 12:hd(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Ph(i)):hd(i);break;default:hd(i)}}function Ph(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];vr=m,Ax(m,i)}_x(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:Zi(8,l,l.return),Ph(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,Ph(l));break;default:Ph(l)}i=i.sibling}}function Ax(i,l){for(;vr!==null;){var f=vr;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:Ku(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,vr=m;else e:for(f=i;vr!==null;){m=vr;var v=m.sibling,S=m.return;if(gx(m),m===f){vr=null;break e}if(v!==null){v.return=S,vr=v;break e}vr=S}}}var dM={getCacheForType:function(i){var l=kr(ur),f=l.data.get(i);return f===void 0&&(f=i(),l.data.set(i,f)),f}},fM=typeof WeakMap=="function"?WeakMap:Map,un=0,kn=null,Ft=null,Gt=0,dn=0,Sa=null,ts=!1,mc=!1,$1=!1,Ei=0,Vn=0,ns=0,Js=0,F1=0,qa=0,gc=0,md=null,aa=null,B1=!1,U1=0,Mh=1/0,$h=null,rs=null,Ar=0,as=null,yc=null,vc=0,j1=0,H1=null,xx=null,gd=0,z1=null;function _a(){if((un&2)!==0&&Gt!==0)return Gt&-Gt;if(z.T!==null){var i=oc;return i!==0?i:K1()}return K()}function wx(){qa===0&&(qa=(Gt&536870912)===0||rn?Fn():536870912);var i=Ga.current;return i!==null&&(i.flags|=32),qa}function Ca(i,l,f){(i===kn&&(dn===2||dn===9)||i.cancelPendingCommit!==null)&&(bc(i,0),os(i,Gt,qa,!1)),mr(i,f),((un&2)===0||i!==kn)&&(i===kn&&((un&2)===0&&(Js|=f),Vn===4&&os(i,Gt,qa,!1)),No(i))}function Dx(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?mM(i,l):q1(i,l,!0),S=m;do{if(v===0){mc&&!m&&os(i,l,0,!1);break}else{if(f=i.current.alternate,S&&!pM(f)){v=q1(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 $=i;v=md;var Q=$.current.memoizedState.isDehydrated;if(Q&&(bc($,N).flags|=256),N=q1($,N,!1),N!==2){if($1&&!Q){$.errorRecoveryDisabledLanes|=S,Js|=S,v=4;break e}S=aa,aa=v,S!==null&&(aa===null?aa=S:aa.push.apply(aa,S))}v=N}if(S=!1,v!==2)continue}}if(v===1){bc(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,qa,!ts);break e;case 2:aa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=U1+300-je(),10<v)){if(os(m,l,qa,!ts),Te(m,0,!0)!==0)break e;m.timeoutHandle=r2(kx.bind(null,m,f,aa,$h,B1,l,qa,Js,gc,ts,S,2,-0,0),v);break e}kx(m,f,aa,$h,B1,l,qa,Js,gc,ts,S,0,-0,0)}}break}while(!0);No(i)}function kx(i,l,f,m,v,S,N,$,Q,ue,Ce,we,fe,he){if(i.timeoutHandle=-1,we=l.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(_d={stylesheets:null,count:0,unsuspend:YM},Sx(l),we=KM(),we!==null)){i.cancelPendingCommit=we(Mx.bind(null,i,l,S,f,m,v,N,$,Q,Ce,1,fe,he)),os(i,S,N,!ue);return}Mx(i,l,S,f,m,v,N,$,Q)}function pM(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(!va(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&=~F1,l&=~Js,i.suspendedLanes|=l,i.pingedLanes&=~l,m&&(i.warmLanes|=l),m=i.expirationTimes;for(var v=l;0<v;){var S=31-We(v),N=1<<S;m[S]=-1,v&=~N}f!==0&&Ma(i,f,l)}function Fh(){return(un&6)===0?(yd(0),!1):!0}function V1(){if(Ft!==null){if(dn===0)var i=Ft.return;else i=Ft,fi=Ws=null,s1(i),dc=null,sd=0,i=Ft;for(;i!==null;)lx(i.alternate,i),i=i.return;Ft=null}}function bc(i,l){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,OM(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),V1(),kn=i,Ft=f=ci(i.current,null),Gt=l,dn=0,Sa=null,ts=!1,mc=ut(i,l),$1=!1,gc=qa=F1=Js=ns=Vn=0,aa=md=null,B1=!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-We(m),S=1<<v;l|=i[v],m&=~S}return Ei=l,ih(),f}function Rx(i,l){Lt=null,z.H=Ah,l===Zu||l===mh?(l=WC(),dn=3):l===VC?(l=WC(),dn=4):dn=l===YA?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Sa=l,Ft===null&&(Vn=1,Rh(i,ja(l,i.current)))}function Ox(){var i=z.H;return z.H=Ah,i===null?Ah:i}function Ix(){var i=z.A;return z.A=dM,i}function G1(){Vn=4,ts||(Gt&4194048)!==Gt&&Ga.current!==null||(mc=!0),(ns&134217727)===0&&(Js&134217727)===0||kn===null||os(kn,Gt,qa,!1)}function q1(i,l,f){var m=un;un|=2;var v=Ox(),S=Ix();(kn!==i||Gt!==l)&&($h=null,bc(i,l)),l=!1;var N=Vn;e:do try{if(dn!==0&&Ft!==null){var $=Ft,Q=Sa;switch(dn){case 8:V1(),N=6;break e;case 3:case 2:case 9:case 6:Ga.current===null&&(l=!0);var ue=dn;if(dn=0,Sa=null,Ec(i,$,Q,ue),f&&mc){N=0;break e}break;default:ue=dn,dn=0,Sa=null,Ec(i,$,Q,ue)}}hM(),N=Vn;break}catch(Ce){Rx(i,Ce)}while(!0);return l&&i.shellSuspendCounter++,fi=Ws=null,un=m,z.H=v,z.A=S,Ft===null&&(kn=null,Gt=0,ih()),N}function hM(){for(;Ft!==null;)Nx(Ft)}function mM(i,l){var f=un;un|=2;var m=Ox(),v=Ix();kn!==i||Gt!==l?($h=null,Mh=je()+500,bc(i,l)):mc=ut(i,l);e:do try{if(dn!==0&&Ft!==null){l=Ft;var S=Sa;t:switch(dn){case 1:dn=0,Sa=null,Ec(i,l,S,1);break;case 2:case 9:if(GC(S)){dn=0,Sa=null,Lx(l);break}l=function(){dn!==2&&dn!==9||kn!==i||(dn=7),No(i)},S.then(l,l);break e;case 3:dn=7;break e;case 4:dn=5;break e;case 7:GC(S)?(dn=0,Sa=null,Lx(l)):(dn=0,Sa=null,Ec(i,l,S,7));break;case 5:var N=null;switch(Ft.tag){case 26:N=Ft.memoizedState;case 5:case 27:var $=Ft;if(!N||m2(N)){dn=0,Sa=null;var Q=$.sibling;if(Q!==null)Ft=Q;else{var ue=$.return;ue!==null?(Ft=ue,Bh(ue)):Ft=null}break t}}dn=0,Sa=null,Ec(i,l,S,5);break;case 6:dn=0,Sa=null,Ec(i,l,S,6);break;case 8:V1(),Vn=6;break e;default:throw Error(r(462))}}gM();break}catch(Ce){Rx(i,Ce)}while(!0);return fi=Ws=null,z.H=m,z.A=v,un=f,Ft!==null?0:(kn=null,Gt=0,ih(),Vn)}function gM(){for(;Ft!==null&&!Rt();)Nx(Ft)}function Nx(i){var l=ix(i.alternate,i,Ei);i.memoizedProps=i.pendingProps,l===null?Bh(i):Ft=l}function Lx(i){var l=i,f=l.alternate;switch(l.tag){case 15:case 0:l=ex(f,l,l.pendingProps,l.type,void 0,Gt);break;case 11:l=ex(f,l,l.pendingProps,l.type.render,l.ref,Gt);break;case 5:s1(l);default:lx(f,l),l=Ft=PC(l,Ei),l=ix(f,l,Ei)}i.memoizedProps=i.pendingProps,l===null?Bh(i):Ft=l}function Ec(i,l,f,m){fi=Ws=null,s1(l),dc=null,sd=0;var v=l.return;try{if(oM(i,v,l,f,Gt)){Vn=1,Rh(i,ja(f,i.current)),Ft=null;return}}catch(S){if(v!==null)throw Ft=v,S;Vn=1,Rh(i,ja(f,i.current)),Ft=null;return}l.flags&32768?(rn||m===1?i=!0:mc||(Gt&536870912)!==0?i=!1:(ts=i=!0,(m===2||m===9||m===3||m===6)&&(m=Ga.current,m!==null&&m.tag===13&&(m.flags|=16384))),Px(l,i)):Bh(l)}function Bh(i){var l=i;do{if((l.flags&32768)!==0){Px(l,ts);return}i=l.return;var f=sM(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 Px(i,l){do{var f=lM(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 Mx(i,l,f,m,v,S,N,$,Q){i.cancelPendingCommit=null;do Uh();while(Ar!==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|=M0,gr(i,f,S,N,$,Q),i===kn&&(Ft=kn=null,Gt=0),yc=l,as=i,vc=f,j1=S,H1=v,xx=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,EM(Ge,function(){return jx(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=z.T,z.T=null,v=Z.p,Z.p=2,N=un,un|=4;try{cM(i,l,f)}finally{un=N,Z.p=v,z.T=m}}Ar=1,$x(),Fx(),Bx()}}function $x(){if(Ar===1){Ar=0;var i=as,l=yc,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=z.T,z.T=null;var m=Z.p;Z.p=2;var v=un;un|=4;try{bx(l,i);var S=av,N=AC(i.containerInfo),$=S.focusedElem,Q=S.selectionRange;if(N!==$&&$&&$.ownerDocument&&CC($.ownerDocument.documentElement,$)){if(Q!==null&&O0($)){var ue=Q.start,Ce=Q.end;if(Ce===void 0&&(Ce=ue),"selectionStart"in $)$.selectionStart=ue,$.selectionEnd=Math.min(Ce,$.value.length);else{var we=$.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),vt=$.textContent.length,ht=Math.min(Q.start,vt),gn=Q.end===void 0?ht:Math.min(Q.end,vt);!he.extend&&ht>gn&&(N=gn,gn=ht,ht=N);var ae=_C($,ht),ne=_C($,gn);if(ae&&ne&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==ne.node||he.focusOffset!==ne.offset)){var se=we.createRange();se.setStart(ae.node,ae.offset),he.removeAllRanges(),ht>gn?(he.addRange(se),he.extend(ne.node,ne.offset)):(se.setEnd(ne.node,ne.offset),he.addRange(se))}}}}for(we=[],he=$;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<we.length;$++){var Ae=we[$];Ae.element.scrollLeft=Ae.left,Ae.element.scrollTop=Ae.top}}Zh=!!rv,av=rv=null}finally{un=v,Z.p=m,z.T=f}}i.current=l,Ar=2}}function Fx(){if(Ar===2){Ar=0;var i=as,l=yc,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=z.T,z.T=null;var m=Z.p;Z.p=2;var v=un;un|=4;try{mx(i,l.alternate,l)}finally{un=v,Z.p=m,z.T=f}}Ar=3}}function Bx(){if(Ar===4||Ar===3){Ar=0,Et();var i=as,l=yc,f=vc,m=xx;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ar=5:(Ar=0,yc=as=null,Ux(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=z.T,v=Z.p,Z.p=2,z.T=null;try{for(var S=i.onRecoverableError,N=0;N<m.length;N++){var $=m[N];S($.value,{componentStack:$.stack})}}finally{z.T=l,Z.p=v}}(vc&3)!==0&&Uh(),No(i),v=i.pendingLanes,(f&4194090)!==0&&(v&42)!==0?i===z1?gd++:(gd=0,z1=i):gd=0,yd(0)}}function Ux(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Ku(l)))}function Uh(i){return $x(),Fx(),Bx(),jx()}function jx(){if(Ar!==5)return!1;var i=as,l=j1;j1=0;var f=ft(vc),m=z.T,v=Z.p;try{Z.p=32>f?32:f,z.T=null,f=H1,H1=null;var S=as,N=vc;if(Ar=0,yc=as=null,vc=0,(un&6)!==0)throw Error(r(331));var $=un;if(un|=4,Cx(S.current),Tx(S,S.current,N,f),un=$,yd(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(ce,S)}catch{}return!0}finally{Z.p=v,z.T=m,Ux(i,l)}}function Hx(i,l,f){l=ja(f,l),l=T1(i.stateNode,l,2),i=Yi(i,l,2),i!==null&&(mr(i,2),No(i))}function En(i,l,f){if(i.tag===3)Hx(i,i,f);else for(;l!==null;){if(l.tag===3){Hx(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=ja(f,i),f=qA(2),m=Yi(l,f,2),m!==null&&(WA(f,m,l,i),mr(m,2),No(m));break}}l=l.return}}function W1(i,l,f){var m=i.pingCache;if(m===null){m=i.pingCache=new fM;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)||($1=!0,v.add(f),i=yM.bind(null,i,l,f),l.then(i,i))}function yM(i,l,f){var m=i.pingCache;m!==null&&m.delete(l),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,kn===i&&(Gt&f)===f&&(Vn===4||Vn===3&&(Gt&62914560)===Gt&&300>je()-U1?(un&2)===0&&bc(i,0):F1|=f,gc===Gt&&(gc=0)),No(i)}function zx(i,l){l===0&&(l=jr()),i=tc(i,l),i!==null&&(mr(i,l),No(i))}function vM(i){var l=i.memoizedState,f=0;l!==null&&(f=l.retryLane),zx(i,f)}function bM(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),zx(i,f)}function EM(i,l){return Ve(i,l)}var jh=null,Tc=null,Y1=!1,Hh=!1,Q1=!1,el=0;function No(i){i!==Tc&&i.next===null&&(Tc===null?jh=Tc=i:Tc=Tc.next=i),Hh=!0,Y1||(Y1=!0,SM())}function yd(i,l){if(!Q1&&Hh){Q1=!0;do for(var f=!1,m=jh;m!==null;){if(i!==0){var v=m.pendingLanes;if(v===0)var S=0;else{var N=m.suspendedLanes,$=m.pingedLanes;S=(1<<31-We(42|i)+1)-1,S&=v&~(N&~$),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(f=!0,Wx(m,S))}else S=Gt,S=Te(m,m===kn?S:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(S&3)===0||ut(m,S)||(f=!0,Wx(m,S));m=m.next}while(f);Q1=!1}}function TM(){Vx()}function Vx(){Hh=Y1=!1;var i=0;el!==0&&(RM()&&(i=el),el=0);for(var l=je(),f=null,m=jh;m!==null;){var v=m.next,S=Gx(m,l);S===0?(m.next=null,f===null?jh=v:f.next=v,v===null&&(Tc=f)):(f=m,(i!==0||(S&3)!==0)&&(Hh=!0)),m=v}yd(i)}function Gx(i,l){for(var f=i.suspendedLanes,m=i.pingedLanes,v=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var N=31-We(S),$=1<<N,Q=v[N];Q===-1?(($&f)===0||($&m)!==0)&&(v[N]=nt($,l)):Q<=l&&(i.expiredLanes|=$),S&=~$}if(l=kn,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&&ke(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&&ke(m),ft(f)){case 2:case 8:f=Ze;break;case 32:f=Ge;break;case 268435456:f=Ot;break;default:f=Ge}return m=qx.bind(null,i),f=Ve(f,m),i.callbackPriority=l,i.callbackNode=f,l}return m!==null&&m!==null&&ke(m),i.callbackPriority=2,i.callbackNode=null,2}function qx(i,l){if(Ar!==0&&Ar!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(Uh()&&i.callbackNode!==f)return null;var m=Gt;return m=Te(i,i===kn?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(Dx(i,m,l),Gx(i,je()),i.callbackNode!=null&&i.callbackNode===f?qx.bind(null,i):null)}function Wx(i,l){if(Uh())return null;Dx(i,l,!0)}function SM(){IM(function(){(un&6)!==0?Ve(ot,TM):Vx()})}function K1(){return el===0&&(el=Fn()),el}function Yx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Jp(""+i)}function Qx(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 _M(i,l,f,m,v){if(l==="submit"&&f&&f.stateNode===v){var S=Yx((v[Me]||null).action),N=m.submitter;N&&(l=(l=N[Me]||null)?Yx(l.formAction):N.getAttribute("formAction"),l!==null&&(S=l,N=null));var $=new rh("action","action",null,m,v);i.push({event:$,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(el!==0){var Q=N?Qx(v,N):new FormData(v);g1(f,{pending:!0,data:Q,method:v.method,action:S},null,Q)}}else typeof S=="function"&&($.preventDefault(),Q=N?Qx(v,N):new FormData(v),g1(f,{pending:!0,data:Q,method:v.method,action:S},S,Q))},currentTarget:v}]})}}for(var X1=0;X1<P0.length;X1++){var Z1=P0[X1],CM=Z1.toLowerCase(),AM=Z1[0].toUpperCase()+Z1.slice(1);ho(CM,"on"+AM)}ho(DC,"onAnimationEnd"),ho(kC,"onAnimationIteration"),ho(RC,"onAnimationStart"),ho("dblclick","onDoubleClick"),ho("focusin","onFocus"),ho("focusout","onBlur"),ho(H6,"onTransitionRun"),ho(z6,"onTransitionStart"),ho(V6,"onTransitionCancel"),ho(OC,"onTransitionEnd"),zr("onMouseEnter",["mouseout","mouseover"]),zr("onMouseLeave",["mouseout","mouseover"]),zr("onPointerEnter",["pointerout","pointerover"]),zr("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vd="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(" "),xM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vd));function Kx(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 $=m[N],Q=$.instance,ue=$.currentTarget;if($=$.listener,Q!==S&&v.isPropagationStopped())break e;S=$,v.currentTarget=ue;try{S(v)}catch(Ce){kh(Ce)}v.currentTarget=null,S=Q}else for(N=0;N<m.length;N++){if($=m[N],Q=$.instance,ue=$.currentTarget,$=$.listener,Q!==S&&v.isPropagationStopped())break e;S=$,v.currentTarget=ue;try{S(v)}catch(Ce){kh(Ce)}v.currentTarget=null,S=Q}}}}function Bt(i,l){var f=l[at];f===void 0&&(f=l[at]=new Set);var m=i+"__bubble";f.has(m)||(Xx(l,i,2,!1),f.add(m))}function J1(i,l,f){var m=0;l&&(m|=4),Xx(f,i,m,l)}var zh="_reactListening"+Math.random().toString(36).slice(2);function ev(i){if(!i[zh]){i[zh]=!0,pn.forEach(function(f){f!=="selectionchange"&&(xM.has(f)||J1(f,!1,i),J1(f,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[zh]||(l[zh]=!0,J1("selectionchange",!1,l))}}function Xx(i,l,f,m){switch(T2(l)){case 2:var v=JM;break;case 8:v=e$;break;default:v=hv}f=v.bind(null,l,f,i),v=void 0,!S0||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 tv(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 $=m.stateNode.containerInfo;if($===v)break;if(N===4)for(N=m.return;N!==null;){var Q=N.tag;if((Q===3||Q===4)&&N.stateNode.containerInfo===v)return;N=N.return}for(;$!==null;){if(N=It($),N===null)return;if(Q=N.tag,Q===5||Q===6||Q===26||Q===27){m=S=N;continue e}$=$.parentNode}}m=m.return}aC(function(){var ue=S,Ce=E0(f),we=[];e:{var fe=IC.get(i);if(fe!==void 0){var he=rh,vt=i;switch(i){case"keypress":if(th(f)===0)break e;case"keydown":case"keyup":he=E6;break;case"focusin":vt="focus",he=x0;break;case"focusout":vt="blur",he=x0;break;case"beforeblur":case"afterblur":he=x0;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=sC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=l6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=_6;break;case DC:case kC:case RC:he=d6;break;case OC:he=A6;break;case"scroll":case"scrollend":he=i6;break;case"wheel":he=w6;break;case"copy":case"cut":case"paste":he=p6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=cC;break;case"toggle":case"beforetoggle":he=k6}var ht=(l&4)!==0,gn=!ht&&(i==="scroll"||i==="scrollend"),ae=ht?fe!==null?fe+"Capture":null:fe;ht=[];for(var ne=ue,se;ne!==null;){var Ae=ne;if(se=Ae.stateNode,Ae=Ae.tag,Ae!==5&&Ae!==26&&Ae!==27||se===null||ae===null||(Ae=$u(ne,ae),Ae!=null&&ht.push(bd(ne,Ae,se))),gn)break;ne=ne.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!==b0&&(vt=f.relatedTarget||f.fromElement)&&(It(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?It(vt):null,vt!==null&&(gn=o(vt),ht=vt.tag,vt!==gn||ht!==5&&ht!==27&&ht!==6)&&(vt=null)):(he=null,vt=ue),he!==vt)){if(ht=sC,Ae="onMouseLeave",ae="onMouseEnter",ne="mouse",(i==="pointerout"||i==="pointerover")&&(ht=cC,Ae="onPointerLeave",ae="onPointerEnter",ne="pointer"),gn=he==null?fe:jn(he),se=vt==null?fe:jn(vt),fe=new ht(Ae,ne+"leave",he,f,Ce),fe.target=gn,fe.relatedTarget=se,Ae=null,It(Ce)===ue&&(ht=new ht(ae,ne+"enter",vt,f,Ce),ht.target=se,ht.relatedTarget=gn,Ae=ht),gn=Ae,he&&vt)t:{for(ht=he,ae=vt,ne=0,se=ht;se;se=Sc(se))ne++;for(se=0,Ae=ae;Ae;Ae=Sc(Ae))se++;for(;0<ne-se;)ht=Sc(ht),ne--;for(;0<se-ne;)ae=Sc(ae),se--;for(;ne--;){if(ht===ae||ae!==null&&ht===ae.alternate)break t;ht=Sc(ht),ae=Sc(ae)}ht=null}else ht=null;he!==null&&Zx(we,fe,he,ht,!1),vt!==null&&gn!==null&&Zx(we,gn,vt,ht,!0)}}e:{if(fe=ue?jn(ue):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var Ke=yC;else if(mC(fe))if(vC)Ke=B6;else{Ke=$6;var Mt=M6}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?ue&&v0(ue.elementType)&&(Ke=yC):Ke=F6;if(Ke&&(Ke=Ke(i,ue))){gC(we,Ke,f,Ce);break e}Mt&&Mt(i,fe,ue),i==="focusout"&&ue&&fe.type==="number"&&ue.memoizedProps.value!=null&&y0(fe,"number",fe.value)}switch(Mt=ue?jn(ue):window,i){case"focusin":(mC(Mt)||Mt.contentEditable==="true")&&(Zl=Mt,I0=ue,Gu=null);break;case"focusout":Gu=I0=Zl=null;break;case"mousedown":N0=!0;break;case"contextmenu":case"mouseup":case"dragend":N0=!1,xC(we,f,Ce);break;case"selectionchange":if(j6)break;case"keydown":case"keyup":xC(we,f,Ce)}var st;if(D0)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 Xl?pC(i,f)&&(yt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(yt="onCompositionStart");yt&&(uC&&f.locale!=="ko"&&(Xl||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&Xl&&(st=oC()):(Vi=Ce,_0="value"in Vi?Vi.value:Vi.textContent,Xl=!0)),Mt=Vh(ue,yt),0<Mt.length&&(yt=new lC(yt,i,null,f,Ce),we.push({event:yt,listeners:Mt}),st?yt.data=st:(st=hC(f),st!==null&&(yt.data=st)))),(st=O6?I6(i,f):N6(i,f))&&(yt=Vh(ue,"onBeforeInput"),0<yt.length&&(Mt=new lC("onBeforeInput","beforeinput",null,f,Ce),we.push({event:Mt,listeners:yt}),Mt.data=st)),_M(we,i,ue,f,Ce)}Kx(we,l)})}function bd(i,l,f){return{instance:i,listener:l,currentTarget:f}}function Vh(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=$u(i,f),v!=null&&m.unshift(bd(i,v,S)),v=$u(i,l),v!=null&&m.push(bd(i,v,S))),i.tag===3)return m;i=i.return}return[]}function Sc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Zx(i,l,f,m,v){for(var S=l._reactName,N=[];f!==null&&f!==m;){var $=f,Q=$.alternate,ue=$.stateNode;if($=$.tag,Q!==null&&Q===m)break;$!==5&&$!==26&&$!==27||ue===null||(Q=ue,v?(ue=$u(f,S),ue!=null&&N.unshift(bd(f,ue,Q))):v||(ue=$u(f,S),ue!=null&&N.push(bd(f,ue,Q)))),f=f.return}N.length!==0&&i.push({event:l,listeners:N})}var wM=/\r\n?/g,DM=/\u0000|\uFFFD/g;function Jx(i){return(typeof i=="string"?i:""+i).replace(wM,`
|
|
50
|
-
`).replace(DM,"")}function e2(i,l){return l=Jx(l),Jx(i)===l}function Gh(){}function mn(i,l,f,m,v,S){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||Yl(i,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&Yl(i,""+m);break;case"className":si(i,"class",m);break;case"tabIndex":si(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":si(i,f,m);break;case"style":nC(i,m,S);break;case"data":if(l!=="object"){si(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=Jp(""+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"&&mn(i,l,"name",v.name,v,null),mn(i,l,"formEncType",v.formEncType,v,null),mn(i,l,"formMethod",v.formMethod,v,null),mn(i,l,"formTarget",v.formTarget,v,null)):(mn(i,l,"encType",v.encType,v,null),mn(i,l,"method",v.method,v,null),mn(i,l,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Jp(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=Gh);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=Jp(""+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),ii(i,"popover",m);break;case"xlinkActuate":Pt(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Pt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Pt(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Pt(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Pt(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Pt(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Pt(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Pt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Pt(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":ii(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=a6.get(f)||f,ii(i,f,m))}}function nv(i,l,f,m,v,S){switch(f){case"style":nC(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"?Yl(i,m):(typeof m=="number"||typeof m=="bigint")&&Yl(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=Gh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Do.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,""):ii(i,f,m)}}}function xr(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:mn(i,l,S,N,f,null)}}v&&mn(i,l,"srcSet",f.srcSet,f,null),m&&mn(i,l,"src",f.src,f,null);return;case"input":Bt("invalid",i);var $=S=N=v=null,Q=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":Q=Ce;break;case"defaultChecked":ue=Ce;break;case"value":S=Ce;break;case"defaultValue":$=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,l));break;default:mn(i,l,m,Ce,f,null)}}Z_(i,S,$,Q,ue,N,v,!1),Xp(i);return;case"select":Bt("invalid",i),m=N=S=null;for(v in f)if(f.hasOwnProperty(v)&&($=f[v],$!=null))switch(v){case"value":S=$;break;case"defaultValue":N=$;break;case"multiple":m=$;default:mn(i,l,v,$,f,null)}l=S,f=N,i.multiple=!!m,l!=null?Wl(i,!!m,l,!1):f!=null&&Wl(i,!!m,f,!0);return;case"textarea":Bt("invalid",i),S=v=m=null;for(N in f)if(f.hasOwnProperty(N)&&($=f[N],$!=null))switch(N){case"value":m=$;break;case"defaultValue":v=$;break;case"children":S=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:mn(i,l,N,$,f,null)}eC(i,m,v,S),Xp(i);return;case"option":for(Q in f)if(f.hasOwnProperty(Q)&&(m=f[Q],m!=null))switch(Q){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:mn(i,l,Q,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<vd.length;m++)Bt(vd[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:mn(i,l,ue,m,f,null)}return;default:if(v0(l)){for(Ce in f)f.hasOwnProperty(Ce)&&(m=f[Ce],m!==void 0&&nv(i,l,Ce,m,f,void 0));return}}for($ in f)f.hasOwnProperty($)&&(m=f[$],m!=null&&mn(i,l,$,m,f,null))}function kM(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,$=null,Q=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":Q=we;default:m.hasOwnProperty(he)||mn(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":$=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,l));break;default:he!==we&&mn(i,l,fe,he,m,we)}}g0(i,N,$,Q,ue,Ce,S,v);return;case"select":he=N=$=fe=null;for(S in f)if(Q=f[S],f.hasOwnProperty(S)&&Q!=null)switch(S){case"value":break;case"multiple":he=Q;default:m.hasOwnProperty(S)||mn(i,l,S,null,m,Q)}for(v in m)if(S=m[v],Q=f[v],m.hasOwnProperty(v)&&(S!=null||Q!=null))switch(v){case"value":fe=S;break;case"defaultValue":$=S;break;case"multiple":N=S;default:S!==Q&&mn(i,l,v,S,m,Q)}l=$,f=N,m=he,fe!=null?Wl(i,!!f,fe,!1):!!m!=!!f&&(l!=null?Wl(i,!!f,l,!0):Wl(i,!!f,f?[]:"",!1));return;case"textarea":he=fe=null;for($ in f)if(v=f[$],f.hasOwnProperty($)&&v!=null&&!m.hasOwnProperty($))switch($){case"value":break;case"children":break;default:mn(i,l,$,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&&mn(i,l,N,v,m,S)}J_(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:mn(i,l,vt,null,m,fe)}for(Q in m)if(fe=m[Q],he=f[Q],m.hasOwnProperty(Q)&&fe!==he&&(fe!=null||he!=null))switch(Q){case"selected":i.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:mn(i,l,Q,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)&&mn(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:mn(i,l,ue,fe,m,he)}return;default:if(v0(l)){for(var gn in f)fe=f[gn],f.hasOwnProperty(gn)&&fe!==void 0&&!m.hasOwnProperty(gn)&&nv(i,l,gn,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||nv(i,l,Ce,fe,m,he);return}}for(var ae in f)fe=f[ae],f.hasOwnProperty(ae)&&fe!=null&&!m.hasOwnProperty(ae)&&mn(i,l,ae,null,m,fe);for(we in m)fe=m[we],he=f[we],!m.hasOwnProperty(we)||fe===he||fe==null&&he==null||mn(i,l,we,fe,m,he)}var rv=null,av=null;function qh(i){return i.nodeType===9?i:i.ownerDocument}function t2(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 n2(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 ov(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 iv=null;function RM(){var i=window.event;return i&&i.type==="popstate"?i===iv?!1:(iv=i,!0):(iv=null,!1)}var r2=typeof setTimeout=="function"?setTimeout:void 0,OM=typeof clearTimeout=="function"?clearTimeout:void 0,a2=typeof Promise=="function"?Promise:void 0,IM=typeof queueMicrotask=="function"?queueMicrotask:typeof a2<"u"?function(i){return a2.resolve(null).then(i).catch(NM)}:r2;function NM(i){setTimeout(function(){throw i})}function is(i){return i==="head"}function o2(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&&Ed(N.documentElement),f&2&&Ed(N.body),f&4)for(f=N.head,Ed(f),N=f.firstChild;N;){var $=N.nextSibling,Q=N.nodeName;N[et]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&N.rel.toLowerCase()==="stylesheet"||f.removeChild(N),N=$}}if(v===0){i.removeChild(S),Dd(l);return}v--}else f==="$"||f==="$?"||f==="$!"?v++:m=f.charCodeAt(0)-48;else m=0;f=S}while(f);Dd(l)}function sv(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":sv(f),it(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function LM(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=go(i.nextSibling),i===null)break}return null}function PM(i,l,f){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=go(i.nextSibling),i===null))return null;return i}function lv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function MM(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 go(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 cv=null;function i2(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 s2(i,l,f){switch(l=qh(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 Ed(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);it(i)}var Wa=new Map,l2=new Set;function Wh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ti=Z.d;Z.d={f:$M,r:FM,D:BM,C:UM,L:jM,m:HM,X:VM,S:zM,M:GM};function $M(){var i=Ti.f(),l=Fh();return i||l}function FM(i){var l=cn(i);l!==null&&l.tag===5&&l.type==="form"?DA(l):Ti.r(i)}var _c=typeof document>"u"?null:document;function c2(i,l,f){var m=_c;if(m&&typeof l=="string"&&l){var v=Ua(l);v='link[rel="'+i+'"][href="'+v+'"]',typeof f=="string"&&(v+='[crossorigin="'+f+'"]'),l2.has(v)||(l2.add(v),i={rel:i,crossOrigin:f,href:l},m.querySelector(v)===null&&(l=m.createElement("link"),xr(l,"link",i),wt(l),m.head.appendChild(l)))}}function BM(i){Ti.D(i),c2("dns-prefetch",i,null)}function UM(i,l){Ti.C(i,l),c2("preconnect",i,l)}function jM(i,l,f){Ti.L(i,l,f);var m=_c;if(m&&i&&l){var v='link[rel="preload"][as="'+Ua(l)+'"]';l==="image"&&f&&f.imageSrcSet?(v+='[imagesrcset="'+Ua(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(v+='[imagesizes="'+Ua(f.imageSizes)+'"]')):v+='[href="'+Ua(i)+'"]';var S=v;switch(l){case"style":S=Cc(i);break;case"script":S=Ac(i)}Wa.has(S)||(i=p({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:i,as:l},f),Wa.set(S,i),m.querySelector(v)!==null||l==="style"&&m.querySelector(Td(S))||l==="script"&&m.querySelector(Sd(S))||(l=m.createElement("link"),xr(l,"link",i),wt(l),m.head.appendChild(l)))}}function HM(i,l){Ti.m(i,l);var f=_c;if(f&&i){var m=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Ua(m)+'"][href="'+Ua(i)+'"]',S=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Ac(i)}if(!Wa.has(S)&&(i=p({rel:"modulepreload",href:i},l),Wa.set(S,i),f.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Sd(S)))return}m=f.createElement("link"),xr(m,"link",i),wt(m),f.head.appendChild(m)}}}function zM(i,l,f){Ti.S(i,l,f);var m=_c;if(m&&i){var v=Hn(m).hoistableStyles,S=Cc(i);l=l||"default";var N=v.get(S);if(!N){var $={loading:0,preload:null};if(N=m.querySelector(Td(S)))$.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":l},f),(f=Wa.get(S))&&uv(i,f);var Q=N=m.createElement("link");wt(Q),xr(Q,"link",i),Q._p=new Promise(function(ue,Ce){Q.onload=ue,Q.onerror=Ce}),Q.addEventListener("load",function(){$.loading|=1}),Q.addEventListener("error",function(){$.loading|=2}),$.loading|=4,Yh(N,l,m)}N={type:"stylesheet",instance:N,count:1,state:$},v.set(S,N)}}}function VM(i,l){Ti.X(i,l);var f=_c;if(f&&i){var m=Hn(f).hoistableScripts,v=Ac(i),S=m.get(v);S||(S=f.querySelector(Sd(v)),S||(i=p({src:i,async:!0},l),(l=Wa.get(v))&&dv(i,l),S=f.createElement("script"),wt(S),xr(S,"link",i),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(v,S))}}function GM(i,l){Ti.M(i,l);var f=_c;if(f&&i){var m=Hn(f).hoistableScripts,v=Ac(i),S=m.get(v);S||(S=f.querySelector(Sd(v)),S||(i=p({src:i,async:!0,type:"module"},l),(l=Wa.get(v))&&dv(i,l),S=f.createElement("script"),wt(S),xr(S,"link",i),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(v,S))}}function u2(i,l,f,m){var v=(v=de.current)?Wh(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=Cc(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=Cc(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(Td(i)))&&!S._p&&(N.instance=S,N.state.loading=5),Wa.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},Wa.set(i,f),S||qM(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=Ac(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 Cc(i){return'href="'+Ua(i)+'"'}function Td(i){return'link[rel="stylesheet"]['+i+"]"}function d2(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function qM(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}),xr(l,"link",f),wt(l),i.head.appendChild(l))}function Ac(i){return'[src="'+Ua(i)+'"]'}function Sd(i){return"script[async]"+i}function f2(i,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=i.querySelector('style[data-href~="'+Ua(f.href)+'"]');if(m)return l.instance=m,wt(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"),wt(m),xr(m,"style",v),Yh(m,f.precedence,i),l.instance=m;case"stylesheet":v=Cc(f.href);var S=i.querySelector(Td(v));if(S)return l.state.loading|=4,l.instance=S,wt(S),S;m=d2(f),(v=Wa.get(v))&&uv(m,v),S=(i.ownerDocument||i).createElement("link"),wt(S);var N=S;return N._p=new Promise(function($,Q){N.onload=$,N.onerror=Q}),xr(S,"link",m),l.state.loading|=4,Yh(S,f.precedence,i),l.instance=S;case"script":return S=Ac(f.src),(v=i.querySelector(Sd(S)))?(l.instance=v,wt(v),v):(m=f,(v=Wa.get(S))&&(m=p({},f),dv(m,v)),i=i.ownerDocument||i,v=i.createElement("script"),wt(v),xr(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,Yh(m,f.precedence,i));return l.instance}function Yh(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 $=m[N];if($.dataset.precedence===l)S=$;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 uv(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function dv(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var Qh=null;function p2(i,l,f){if(Qh===null){var m=new Map,v=Qh=new Map;v.set(f,m)}else v=Qh,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[De]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var N=S.getAttribute(l)||"";N=i+N;var $=m.get(N);$?$.push(S):m.set(N,[S])}}return m}function h2(i,l,f){i=i.ownerDocument||i,i.head.insertBefore(f,l==="title"?i.querySelector("head > title"):null)}function WM(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 m2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var _d=null;function YM(){}function QM(i,l,f){if(_d===null)throw Error(r(475));var m=_d;if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=Cc(f.href),S=i.querySelector(Td(v));if(S){i=S._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Kh.bind(m),i.then(m,m)),l.state.loading|=4,l.instance=S,wt(S);return}S=i.ownerDocument||i,f=d2(f),(v=Wa.get(v))&&uv(f,v),S=S.createElement("link"),wt(S);var N=S;N._p=new Promise(function($,Q){N.onload=$,N.onerror=Q}),xr(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=Kh.bind(m),i.addEventListener("load",l),i.addEventListener("error",l))}}function KM(){if(_d===null)throw Error(r(475));var i=_d;return i.stylesheets&&i.count===0&&fv(i,i.stylesheets),0<i.count?function(l){var f=setTimeout(function(){if(i.stylesheets&&fv(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 Kh(){if(this.count--,this.count===0){if(this.stylesheets)fv(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Xh=null;function fv(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Xh=new Map,l.forEach(XM,i),Xh=null,Kh.call(i))}function XM(i,l){if(!(l.state.loading&4)){var f=Xh.get(i);if(f)var m=f.get(null);else{f=new Map,Xh.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=Kh.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 Cd={$$typeof:w,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function ZM(i,l,f,m,v,S,N,$){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=_r(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_r(0),this.hiddenUpdates=_r(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=S,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function g2(i,l,f,m,v,S,N,$,Q,ue,Ce,we){return i=new ZM(i,l,f,N,$,Q,ue,we),l=1,S===!0&&(l|=24),S=ba(3,null,null,l),i.current=S,S.stateNode=i,l=W0(),l.refCount++,i.pooledCache=l,l.refCount++,S.memoizedState={element:m,isDehydrated:f,cache:l},X0(S),i}function y2(i){return i?(i=nc,i):nc}function v2(i,l,f,m,v,S){v=y2(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&&(Ca(f,i,l),ed(f,i,l))}function b2(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<l?f:l}}function pv(i,l){b2(i,l),(i=i.alternate)&&b2(i,l)}function E2(i){if(i.tag===13){var l=tc(i,67108864);l!==null&&Ca(l,i,67108864),pv(i,67108864)}}var Zh=!0;function JM(i,l,f,m){var v=z.T;z.T=null;var S=Z.p;try{Z.p=2,hv(i,l,f,m)}finally{Z.p=S,z.T=v}}function e$(i,l,f,m){var v=z.T;z.T=null;var S=Z.p;try{Z.p=8,hv(i,l,f,m)}finally{Z.p=S,z.T=v}}function hv(i,l,f,m){if(Zh){var v=mv(m);if(v===null)tv(i,l,m,Jh,f),S2(i,m);else if(n$(v,i,l,f,m))m.stopPropagation();else if(S2(i,m),l&4&&-1<t$.indexOf(i)){for(;v!==null;){var S=cn(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 $=S;for($.pendingLanes|=2,$.entangledLanes|=2;N;){var Q=1<<31-We(N);$.entanglements[1]|=Q,N&=~Q}No(S),(un&6)===0&&(Mh=je()+500,yd(0))}}break;case 13:$=tc(S,2),$!==null&&Ca($,S,2),Fh(),pv(S,2)}if(S=mv(m),S===null&&tv(i,l,m,Jh,f),S===v)break;v=S}v!==null&&m.stopPropagation()}else tv(i,l,m,null,f)}}function mv(i){return i=E0(i),gv(i)}var Jh=null;function gv(i){if(Jh=null,i=It(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 Jh=i,null}function T2(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 ot:return 2;case Ze:return 8;case Ge:case Pe:return 32;case Ot:return 268435456;default:return 32}default:return 32}}var yv=!1,ss=null,ls=null,cs=null,Ad=new Map,xd=new Map,us=[],t$="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 S2(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":Ad.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":xd.delete(l.pointerId)}}function wd(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=cn(l),l!==null&&E2(l)),i):(i.eventSystemFlags|=m,l=i.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),i)}function n$(i,l,f,m,v){switch(l){case"focusin":return ss=wd(ss,i,l,f,m,v),!0;case"dragenter":return ls=wd(ls,i,l,f,m,v),!0;case"mouseover":return cs=wd(cs,i,l,f,m,v),!0;case"pointerover":var S=v.pointerId;return Ad.set(S,wd(Ad.get(S)||null,i,l,f,m,v)),!0;case"gotpointercapture":return S=v.pointerId,xd.set(S,wd(xd.get(S)||null,i,l,f,m,v)),!0}return!1}function _2(i){var l=It(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=_a();m=Hr(m);var v=tc(f,m);v!==null&&Ca(v,f,m),pv(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 em(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var f=mv(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);b0=m,f.target.dispatchEvent(m),b0=null}else return l=cn(f),l!==null&&E2(l),i.blockedOn=f,!1;l.shift()}return!0}function C2(i,l,f){em(i)&&f.delete(l)}function r$(){yv=!1,ss!==null&&em(ss)&&(ss=null),ls!==null&&em(ls)&&(ls=null),cs!==null&&em(cs)&&(cs=null),Ad.forEach(C2),xd.forEach(C2)}function tm(i,l){i.blockedOn===l&&(i.blockedOn=null,yv||(yv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,r$)))}var nm=null;function A2(i){nm!==i&&(nm=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nm===i&&(nm=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(gv(m||f)===null)continue;break}var S=cn(f);S!==null&&(i.splice(l,3),l-=3,g1(S,{pending:!0,data:v,method:f.method,action:m},m,v))}}))}function Dd(i){function l(Q){return tm(Q,i)}ss!==null&&tm(ss,i),ls!==null&&tm(ls,i),cs!==null&&tm(cs,i),Ad.forEach(l),xd.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);)_2(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||A2(f);else if(N){var $=null;if(S&&S.hasAttribute("formAction")){if(v=S,N=S[Me]||null)$=N.formAction;else if(gv(v)!==null)continue}else $=N.action;typeof $=="function"?f[m+1]=$:(f.splice(m,3),m-=3),A2(f)}}}function vv(i){this._internalRoot=i}rm.prototype.render=vv.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=_a();v2(f,m,i,l,null,null)},rm.prototype.unmount=vv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;v2(i.current,2,null,i,null,null),Fh(),l[Xe]=null}};function rm(i){this._internalRoot=i}rm.prototype.unstable_scheduleHydration=function(i){if(i){var l=K();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&&_2(i)}};var x2=t.version;if(x2!=="19.1.1")throw Error(r(527,x2,"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 a$={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var am=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!am.isDisabled&&am.supportsFiber)try{ce=am.inject(a$),me=am}catch{}}return Rd.createRoot=function(i,l){if(!a(i))throw Error(r(299));var f=!1,m="",v=HA,S=zA,N=VA,$=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&&($=l.unstable_transitionCallbacks)),l=g2(i,1,!1,null,null,f,m,v,S,N,$,null),i[Xe]=l.current,ev(i),new vv(l)},Rd.hydrateRoot=function(i,l,f){if(!a(i))throw Error(r(299));var m=!1,v="",S=HA,N=zA,$=VA,Q=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&&($=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(Q=f.unstable_transitionCallbacks),f.formState!==void 0&&(ue=f.formState)),l=g2(i,1,!0,l,f??null,m,v,S,N,$,Q,ue),l.context=y2(null),f=l.current,m=_a(),m=Hr(m),v=Wi(m),v.callback=null,Yi(f,v,m),f=m,l.current.lanes=f,mr(l,f),No(l),i[Xe]=l.current,ev(i),new rm(l)},Rd.version="19.1.1",Rd}var M2;function h$(){if(M2)return Tv.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(),Tv.exports=p$(),Tv.exports}var m$=h$();/**
|
|
51
|
-
* react-router v7.7.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 qO=e=>{throw TypeError(e)},g$=(e,t,n)=>t.has(e)||qO("Cannot "+n),Av=(e,t,n)=>(g$(e,t,"read from private field"),n?n.call(e):t.get(e)),y$=(e,t,n)=>t.has(e)?qO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$2="popstate";function v$(e={}){function t(r,a){let{pathname:o,search:s,hash:c}=r.location;return Mf("",{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:Rs(a)}return E$(t,n,null,e)}function Ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function b$(){return Math.random().toString(36).substring(2,10)}function F2(e,t){return{usr:e.state,key:e.key,idx:t}}function Mf(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ps(t):t,state:n,key:t&&t.key||r||b$()}}function Rs({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 Ps(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 E$(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 _=p(),A=_==null?null:_-d;d=_,u&&u({action:c,location:E.location,delta:A})}function g(_,A){c="PUSH";let D=Mf(E.location,_,A);d=p()+1;let w=F2(D,d),R=E.createHref(D);try{s.pushState(w,"",R)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(R)}o&&u&&u({action:c,location:E.location,delta:1})}function y(_,A){c="REPLACE";let D=Mf(E.location,_,A);d=p();let w=F2(D,d),R=E.createHref(D);s.replaceState(w,"",R),o&&u&&u({action:c,location:E.location,delta:0})}function b(_){return WO(_)}let E={get action(){return c},get location(){return e(a,s)},listen(_){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener($2,h),u=_,()=>{a.removeEventListener($2,h),u=null}},createHref(_){return t(a,_)},createURL:b,encodeLocation(_){let A=b(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:y,go(_){return s.go(_)}};return E}function WO(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:Rs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var af,B2=class{constructor(e){if(y$(this,af,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Av(this,af).has(e))return Av(this,af).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Av(this,af).set(e,t)}};af=new WeakMap;var T$=new Set(["lazy","caseSensitive","path","id","index","children"]);function S$(e){return T$.has(e)}var _$=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function C$(e){return _$.has(e)}function A$(e){return e.index===!0}function $f(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`),A$(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=$f(o.children,t,c,r,a)),d}})}function bs(e,t,n="/"){return Lm(e,t,n,!1)}function Lm(e,t,n,r){let a=typeof t=="string"?Ps(t):t,o=so(a.pathname||"/",n);if(o==null)return null;let s=YO(e);w$(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let d=F$(o);c=M$(s[u],d,r)}return c}function x$(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function YO(e,t=[],n=[],r=""){let a=(o,s,c)=>{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Ut(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=Yo([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(Ut(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),YO(o.children,t,p,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:L$(d,o.index),routesMeta:p})};return e.forEach((o,s)=>{if(o.path===""||!o.path?.includes("?"))a(o,s);else for(let c of QO(o.path))a(o,s,c)}),t}function QO(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=QO(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 w$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:P$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var D$=/^:[\w-]+$/,k$=3,R$=2,O$=1,I$=10,N$=-2,U2=e=>e==="*";function L$(e,t){let n=e.split("/"),r=n.length;return n.some(U2)&&(r+=N$),t&&(r+=R$),n.filter(a=>!U2(a)).reduce((a,o)=>a+(D$.test(o)?k$:o===""?O$:I$),r)}function P$(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 M$(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=cg({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),g=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=cg({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(a,h.params),s.push({params:a,pathname:Yo([o,h.pathname]),pathnameBase:H$(Yo([o,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(o=Yo([o,h.pathnameBase]))}return s}function cg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$$(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},g)=>{if(p==="*"){let b=c[g]||"";s=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function $$(e,t=!1,n=!0){cr(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?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function F$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cr(!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 so(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 B$({basename:e,pathname:t}){return t==="/"?e:Yo([e,t])}function U$(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ps(e):e;return{pathname:n?n.startsWith("/")?n:j$(n,t):t,search:z$(r),hash:V$(a)}}function j$(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 xv(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 KO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function RT(e){let t=KO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function OT(e,t,n,r=!1){let a;typeof e=="string"?a=Ps(e):(a={...e},Ut(!a.pathname||!a.pathname.includes("?"),xv("?","pathname","search",a)),Ut(!a.pathname||!a.pathname.includes("#"),xv("#","pathname","hash",a)),Ut(!a.search||!a.search.includes("#"),xv("#","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 g=s.split("/");for(;g[0]==="..";)g.shift(),h-=1;a.pathname=g.join("/")}c=h>=0?t[h]:"/"}let u=U$(a,c),d=s&&s!=="/"&&s.endsWith("/"),p=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var Yo=e=>e.join("/").replace(/\/\/+/g,"/"),H$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,V$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ug=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 Ff(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var XO=["POST","PUT","PATCH","DELETE"],G$=new Set(XO),q$=["GET",...XO],W$=new Set(q$),Y$=new Set([301,302,303,307,308]),Q$=new Set([307,308]),wv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K$={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Od={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IT=e=>X$.test(e),Z$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ZO="remix-router-transitions",JO=Symbol("ResetLoaderData");function J$(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||Z$,o={},s=$f(e.routes,a,void 0,o),c,u=e.basename||"/",d=e.dataStrategy||a7,p={unstable_middleware:!1,...e.future},h=null,g=new Set,y=null,b=null,E=null,_=e.hydrationData!=null,A=bs(s,e.history.location,u),D=!1,w=null,R;if(A==null&&!e.patchRoutesOnNavigation){let K=Qa(404,{pathname:e.history.location.pathname}),{matches:ie,route:pe}=Z2(s);R=!0,A=ie,w={[pe.id]:K}}else if(A&&!e.hydrationData&&Ma(A,s,e.history.location.pathname).active&&(A=null),A)if(A.some(K=>K.route.lazy))R=!1;else if(!A.some(K=>K.route.loader))R=!0;else{let K=e.hydrationData?e.hydrationData.loaderData:null,ie=e.hydrationData?e.hydrationData.errors:null;if(ie){let pe=A.findIndex(De=>ie[De.route.id]!==void 0);R=A.slice(0,pe+1).every(De=>!qb(De.route,K,ie))}else R=A.every(pe=>!qb(pe.route,K,ie))}else{R=!1,A=[];let K=Ma(null,s,e.history.location.pathname);K.active&&K.matches&&(D=!0,A=K.matches)}let O,k={historyAction:e.history.action,location:e.history.location,matches:A,initialized:R,navigation:wv,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||w,fetchers:new Map,blockers:new Map},F="POP",G=!1,j,T=!1,M=new Map,U=null,B=!1,Y=!1,X=new Set,z=new Map,Z=0,J=-1,oe=new Map,I=new Set,re=new Map,ee=new Map,L=new Set,te=new Map,be,de=null;function xe(){if(h=e.history.listen(({action:K,location:ie,delta:pe})=>{if(be){be(),be=void 0;return}cr(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 De=nt({currentLocation:k.location,nextLocation:ie,historyAction:K});if(De&&pe!=null){let Me=new Promise(Xe=>{be=Xe});e.history.go(pe*-1),ut(De,{state:"blocked",location:ie,proceed(){ut(De,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),Me.then(()=>e.history.go(pe))},reset(){let Xe=new Map(k.blockers);Xe.set(De,Od),Ue({blockers:Xe})}});return}return ke(K,ie)}),n){m7(t,M);let K=()=>g7(t,M);t.addEventListener("pagehide",K),U=()=>t.removeEventListener("pagehide",K)}return k.initialized||ke("POP",k.location,{initialHydration:!0}),O}function ge(){h&&h(),U&&U(),g.clear(),j&&j.abort(),k.fetchers.forEach((K,ie)=>We(ie)),k.blockers.forEach((K,ie)=>Te(ie))}function Oe(K){return g.add(K),()=>g.delete(K)}function Ue(K,ie={}){K.matches&&(K.matches=K.matches.map(Me=>{let Xe=o[Me.route.id],at=Me.route;return at.element!==Xe.element||at.errorElement!==Xe.errorElement||at.hydrateFallbackElement!==Xe.hydrateFallbackElement?{...Me,route:Xe}:Me})),k={...k,...K};let pe=[],De=[];k.fetchers.forEach((Me,Xe)=>{Me.state==="idle"&&(L.has(Xe)?pe.push(Xe):De.push(Xe))}),L.forEach(Me=>{!k.fetchers.has(Me)&&!z.has(Me)&&pe.push(Me)}),[...g].forEach(Me=>Me(k,{deletedFetchers:pe,viewTransitionOpts:ie.viewTransitionOpts,flushSync:ie.flushSync===!0})),pe.forEach(Me=>We(Me)),De.forEach(Me=>k.fetchers.delete(Me))}function Ie(K,ie,{flushSync:pe}={}){let De=k.actionData!=null&&k.navigation.formMethod!=null&&sa(k.navigation.formMethod)&&k.navigation.state==="loading"&&K.state?._isRedirect!==!0,Me;ie.actionData?Object.keys(ie.actionData).length>0?Me=ie.actionData:Me=null:De?Me=k.actionData:Me=null;let Xe=ie.loaderData?K2(k.loaderData,ie.loaderData,ie.matches||[],ie.errors):k.loaderData,at=k.blockers;at.size>0&&(at=new Map(at),at.forEach((et,it)=>at.set(it,Od)));let Je=B?!1:gr(K,ie.matches||k.matches),lt=G===!0||k.navigation.formMethod!=null&&sa(k.navigation.formMethod)&&K.state?._isRedirect!==!0;c&&(s=c,c=void 0),B||F==="POP"||(F==="PUSH"?e.history.push(K,K.state):F==="REPLACE"&&e.history.replace(K,K.state));let pt;if(F==="POP"){let et=M.get(k.location.pathname);et&&et.has(K.pathname)?pt={currentLocation:k.location,nextLocation:K}:M.has(K.pathname)&&(pt={currentLocation:K,nextLocation:k.location})}else if(T){let et=M.get(k.location.pathname);et?et.add(K.pathname):(et=new Set([K.pathname]),M.set(k.location.pathname,et)),pt={currentLocation:k.location,nextLocation:K}}Ue({...ie,actionData:Me,loaderData:Xe,historyAction:F,location:K,initialized:!0,navigation:wv,revalidation:"idle",restoreScrollPosition:Je,preventScrollReset:lt,blockers:at},{viewTransitionOpts:pt,flushSync:pe===!0}),F="POP",G=!1,T=!1,B=!1,Y=!1,de?.resolve(),de=null}async function Ye(K,ie){if(typeof K=="number"){e.history.go(K);return}let pe=Gb(k.location,k.matches,u,K,ie?.fromRouteId,ie?.relative),{path:De,submission:Me,error:Xe}=j2(!1,pe,ie),at=k.location,Je=Mf(k.location,De,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&&sa(Me.formMethod)&&Me.formAction===k.location.pathname+k.location.search&&(pt="REPLACE");let et=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,it=(ie&&ie.flushSync)===!0,It=nt({currentLocation:at,nextLocation:Je,historyAction:pt});if(It){ut(It,{state:"blocked",location:Je,proceed(){ut(It,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),Ye(K,ie)},reset(){let cn=new Map(k.blockers);cn.set(It,Od),Ue({blockers:cn})}});return}await ke(pt,Je,{submission:Me,pendingError:Xe,preventScrollReset:et,replace:ie&&ie.replace,enableViewTransition:ie&&ie.viewTransition,flushSync:it})}function Ve(){de||(de=y7()),bt(),Ue({revalidation:"loading"});let K=de.promise;return k.navigation.state==="submitting"?K:k.navigation.state==="idle"?(ke(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),K):(ke(F||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:T===!0}),K)}async function ke(K,ie,pe){j&&j.abort(),j=null,F=K,B=(pe&&pe.startUninterruptedRevalidation)===!0,mr(k.location,k.matches),G=(pe&&pe.preventScrollReset)===!0,T=(pe&&pe.enableViewTransition)===!0;let De=c||s,Me=pe&&pe.overrideNavigation,Xe=pe?.initialHydration&&k.matches&&k.matches.length>0&&!D?k.matches:bs(De,ie,u),at=(pe&&pe.flushSync)===!0;if(Xe&&k.initialized&&!Y&&u7(k.location,ie)&&!(pe&&pe.submission&&sa(pe.submission.formMethod))){Ie(ie,{matches:Xe},{flushSync:at});return}let Je=Ma(Xe,De,ie.pathname);if(Je.active&&Je.matches&&(Xe=Je.matches),!Xe){let{error:Hn,notFoundMatches:wt,route:pn}=Fn(ie.pathname);Ie(ie,{matches:wt,loaderData:{},errors:{[pn.id]:Hn}},{flushSync:at});return}j=new AbortController;let lt=Hc(e.history,ie,j.signal,pe&&pe.submission),pt=new B2(e.unstable_getContext?await e.unstable_getContext():void 0),et;if(pe&&pe.pendingError)et=[ul(Xe).route.id,{type:"error",error:pe.pendingError}];else if(pe&&pe.submission&&sa(pe.submission.formMethod)){let Hn=await Rt(lt,ie,pe.submission,Xe,pt,Je.active,pe&&pe.initialHydration===!0,{replace:pe.replace,flushSync:at});if(Hn.shortCircuited)return;if(Hn.pendingActionResult){let[wt,pn]=Hn.pendingActionResult;if(Da(pn)&&Ff(pn.error)&&pn.error.status===404){j=null,Ie(ie,{matches:Hn.matches,loaderData:{},errors:{[wt]:pn.error}});return}}Xe=Hn.matches||Xe,et=Hn.pendingActionResult,Me=Dv(ie,pe.submission),at=!1,Je.active=!1,lt=Hc(e.history,lt.url,lt.signal)}let{shortCircuited:it,matches:It,loaderData:cn,errors:jn}=await Et(lt,ie,Xe,pt,Je.active,Me,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,at,et);it||(j=null,Ie(ie,{matches:It||Xe,...X2(et),loaderData:cn,errors:jn}))}async function Rt(K,ie,pe,De,Me,Xe,at,Je={}){bt();let lt=p7(ie,pe);if(Ue({navigation:lt},{flushSync:Je.flushSync===!0}),Xe){let it=await In(De,ie.pathname,K.signal);if(it.type==="aborted")return{shortCircuited:!0};if(it.type==="error"){let It=ul(it.partialMatches).route.id;return{matches:it.partialMatches,pendingActionResult:[It,{type:"error",error:it.error}]}}else if(it.matches)De=it.matches;else{let{notFoundMatches:It,error:cn,route:jn}=Fn(ie.pathname);return{matches:It,pendingActionResult:[jn.id,{type:"error",error:cn}]}}}let pt,et=Pm(De,ie);if(!et.route.action&&!et.route.lazy)pt={type:"error",error:Qa(405,{method:K.method,pathname:ie.pathname,routeId:et.route.id})};else{let it=Qc(a,o,K,De,et,at?[]:r,Me),It=await Ot(K,it,Me,null);if(pt=It[et.route.id],!pt){for(let cn of De)if(It[cn.route.id]){pt=It[cn.route.id];break}}if(K.signal.aborted)return{shortCircuited:!0}}if(fl(pt)){let it;return Je&&Je.replace!=null?it=Je.replace:it=W2(pt.response.headers.get("Location"),new URL(K.url),u)===k.location.pathname+k.location.search,await Pe(K,pt,!0,{submission:pe,replace:it}),{shortCircuited:!0}}if(Da(pt)){let it=ul(De,et.route.id);return(Je&&Je.replace)!==!0&&(F="PUSH"),{matches:De,pendingActionResult:[it.route.id,pt,et.route.id]}}return{matches:De,pendingActionResult:[et.route.id,pt]}}async function Et(K,ie,pe,De,Me,Xe,at,Je,lt,pt,et,it){let It=Xe||Dv(ie,at),cn=at||Je||ew(It),jn=!B&&!pt;if(Me){if(jn){let rr=je(it);Ue({navigation:It,...rr!==void 0?{actionData:rr}:{}},{flushSync:et})}let Pt=await In(pe,ie.pathname,K.signal);if(Pt.type==="aborted")return{shortCircuited:!0};if(Pt.type==="error"){let rr=ul(Pt.partialMatches).route.id;return{matches:Pt.partialMatches,loaderData:{},errors:{[rr]:Pt.error}}}else if(Pt.matches)pe=Pt.matches;else{let{error:rr,notFoundMatches:Fs,route:Fa}=Fn(ie.pathname);return{matches:Fs,loaderData:{},errors:{[Fa.id]:rr}}}}let Hn=c||s,{dsMatches:wt,revalidatingFetchers:pn}=H2(K,De,a,o,e.history,k,pe,cn,ie,pt?[]:r,pt===!0,Y,X,L,re,I,Hn,u,e.patchRoutesOnNavigation!=null,it);if(J=++Z,!e.dataStrategy&&!wt.some(Pt=>Pt.shouldLoad)&&pn.length===0){let Pt=Qt();return Ie(ie,{matches:pe,loaderData:{},errors:it&&Da(it[1])?{[it[0]]:it[1].error}:null,...X2(it),...Pt?{fetchers:new Map(k.fetchers)}:{}},{flushSync:et}),{shortCircuited:!0}}if(jn){let Pt={};if(!Me){Pt.navigation=It;let rr=je(it);rr!==void 0&&(Pt.actionData=rr)}pn.length>0&&(Pt.fetchers=St(pn)),Ue(Pt,{flushSync:et})}pn.forEach(Pt=>{gt(Pt.key),Pt.controller&&z.set(Pt.key,Pt.controller)});let Do=()=>pn.forEach(Pt=>gt(Pt.key));j&&j.signal.addEventListener("abort",Do);let{loaderResults:ya,fetcherResults:zr}=await Dn(wt,pn,K,De);if(K.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",Do),pn.forEach(Pt=>z.delete(Pt.key));let $a=om(ya);if($a)return await Pe(K,$a.result,!0,{replace:lt}),{shortCircuited:!0};if($a=om(zr),$a)return I.add($a.key),await Pe(K,$a.result,!0,{replace:lt}),{shortCircuited:!0};let{loaderData:ql,errors:Hi}=Q2(k,pe,ya,it,pn,zr);pt&&k.errors&&(Hi={...k.errors,...Hi});let oi=Qt(),ii=qe(J),si=oi||ii||pn.length>0;return{matches:pe,loaderData:ql,errors:Hi,...si?{fetchers:new Map(k.fetchers)}:{}}}function je(K){if(K&&!Da(K[1]))return{[K[0]]:K[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function St(K){return K.forEach(ie=>{let pe=k.fetchers.get(ie.key),De=Id(void 0,pe?pe.data:void 0);k.fetchers.set(ie.key,De)}),new Map(k.fetchers)}async function ot(K,ie,pe,De){gt(K);let Me=(De&&De.flushSync)===!0,Xe=c||s,at=Gb(k.location,k.matches,u,pe,ie,De?.relative),Je=bs(Xe,at,u),lt=Ma(Je,Xe,at);if(lt.active&<.matches&&(Je=lt.matches),!Je){me(K,ie,Qa(404,{pathname:at}),{flushSync:Me});return}let{path:pt,submission:et,error:it}=j2(!0,at,De);if(it){me(K,ie,it,{flushSync:Me});return}let It=new B2(e.unstable_getContext?await e.unstable_getContext():void 0),cn=(De&&De.preventScrollReset)===!0;if(et&&sa(et.formMethod)){await Ze(K,ie,pt,Je,It,lt.active,Me,cn,et);return}re.set(K,{routeId:ie,path:pt}),await Ge(K,ie,pt,Je,It,lt.active,Me,cn,et)}async function Ze(K,ie,pe,De,Me,Xe,at,Je,lt){bt(),re.delete(K);let pt=k.fetchers.get(K);ce(K,h7(lt,pt),{flushSync:at});let et=new AbortController,it=Hc(e.history,pe,et.signal,lt);if(Xe){let Bn=await In(De,new URL(it.url).pathname,it.signal,K);if(Bn.type==="aborted")return;if(Bn.type==="error"){me(K,ie,Bn.error,{flushSync:at});return}else if(Bn.matches)De=Bn.matches;else{me(K,ie,Qa(404,{pathname:pe}),{flushSync:at});return}}let It=Pm(De,pe);if(!It.route.action&&!It.route.lazy){let Bn=Qa(405,{method:lt.formMethod,pathname:pe,routeId:ie});me(K,ie,Bn,{flushSync:at});return}z.set(K,et);let cn=Z,jn=Qc(a,o,it,De,It,r,Me),wt=(await Ot(it,jn,Me,K))[It.route.id];if(it.signal.aborted){z.get(K)===et&&z.delete(K);return}if(L.has(K)){if(fl(wt)||Da(wt)){ce(K,gs(void 0));return}}else{if(fl(wt))if(z.delete(K),J>cn){ce(K,gs(void 0));return}else return I.add(K),ce(K,Id(lt)),Pe(it,wt,!1,{fetcherSubmission:lt,preventScrollReset:Je});if(Da(wt)){me(K,ie,wt.error);return}}let pn=k.navigation.location||k.location,Do=Hc(e.history,pn,et.signal),ya=c||s,zr=k.navigation.state!=="idle"?bs(ya,k.navigation.location,u):k.matches;Ut(zr,"Didn't find any matches after fetcher action");let $a=++Z;oe.set(K,$a);let ql=Id(lt,wt.data);k.fetchers.set(K,ql);let{dsMatches:Hi,revalidatingFetchers:oi}=H2(Do,Me,a,o,e.history,k,zr,lt,pn,r,!1,Y,X,L,re,I,ya,u,e.patchRoutesOnNavigation!=null,[It.route.id,wt]);oi.filter(Bn=>Bn.key!==K).forEach(Bn=>{let zi=Bn.key,Qp=k.fetchers.get(zi),Kp=Id(void 0,Qp?Qp.data:void 0);k.fetchers.set(zi,Kp),gt(zi),Bn.controller&&z.set(zi,Bn.controller)}),Ue({fetchers:new Map(k.fetchers)});let ii=()=>oi.forEach(Bn=>gt(Bn.key));et.signal.addEventListener("abort",ii);let{loaderResults:si,fetcherResults:Pt}=await Dn(Hi,oi,Do,Me);if(et.signal.aborted)return;if(et.signal.removeEventListener("abort",ii),oe.delete(K),z.delete(K),oi.forEach(Bn=>z.delete(Bn.key)),k.fetchers.has(K)){let Bn=gs(wt.data);k.fetchers.set(K,Bn)}let rr=om(si);if(rr)return Pe(Do,rr.result,!1,{preventScrollReset:Je});if(rr=om(Pt),rr)return I.add(rr.key),Pe(Do,rr.result,!1,{preventScrollReset:Je});let{loaderData:Fs,errors:Fa}=Q2(k,zr,si,void 0,oi,Pt);qe($a),k.navigation.state==="loading"&&$a>J?(Ut(F,"Expected pending action"),j&&j.abort(),Ie(k.navigation.location,{matches:zr,loaderData:Fs,errors:Fa,fetchers:new Map(k.fetchers)})):(Ue({errors:Fa,loaderData:K2(k.loaderData,Fs,zr,Fa),fetchers:new Map(k.fetchers)}),Y=!1)}async function Ge(K,ie,pe,De,Me,Xe,at,Je,lt){let pt=k.fetchers.get(K);ce(K,Id(lt,pt?pt.data:void 0),{flushSync:at});let et=new AbortController,it=Hc(e.history,pe,et.signal);if(Xe){let pn=await In(De,new URL(it.url).pathname,it.signal,K);if(pn.type==="aborted")return;if(pn.type==="error"){me(K,ie,pn.error,{flushSync:at});return}else if(pn.matches)De=pn.matches;else{me(K,ie,Qa(404,{pathname:pe}),{flushSync:at});return}}let It=Pm(De,pe);z.set(K,et);let cn=Z,jn=Qc(a,o,it,De,It,r,Me),wt=(await Ot(it,jn,Me,K))[It.route.id];if(z.get(K)===et&&z.delete(K),!it.signal.aborted){if(L.has(K)){ce(K,gs(void 0));return}if(fl(wt))if(J>cn){ce(K,gs(void 0));return}else{I.add(K),await Pe(it,wt,!1,{preventScrollReset:Je});return}if(Da(wt)){me(K,ie,wt.error);return}ce(K,gs(wt.data))}}async function Pe(K,ie,pe,{submission:De,fetcherSubmission:Me,preventScrollReset:Xe,replace:at}={}){ie.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Je=ie.response.headers.get("Location");Ut(Je,"Expected a Location header on the redirect Response"),Je=W2(Je,new URL(K.url),u);let lt=Mf(k.location,Je,{_isRedirect:!0});if(n){let jn=!1;if(ie.response.headers.has("X-Remix-Reload-Document"))jn=!0;else if(IT(Je)){const Hn=WO(Je,!0);jn=Hn.origin!==t.location.origin||so(Hn.pathname,u)==null}if(jn){at?t.location.replace(Je):t.location.assign(Je);return}}j=null;let pt=at===!0||ie.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:et,formAction:it,formEncType:It}=k.navigation;!De&&!Me&&et&&it&&It&&(De=ew(k.navigation));let cn=De||Me;if(Q$.has(ie.response.status)&&cn&&sa(cn.formMethod))await ke(pt,lt,{submission:{...cn,formAction:Je},preventScrollReset:Xe||G,enableViewTransition:pe?T:void 0});else{let jn=Dv(lt,De);await ke(pt,lt,{overrideNavigation:jn,fetcherSubmission:Me,preventScrollReset:Xe||G,enableViewTransition:pe?T:void 0})}}async function Ot(K,ie,pe,De){let Me,Xe={};try{Me=await o7(d,K,ie,De,pe,!1)}catch(at){return ie.filter(Je=>Je.shouldLoad).forEach(Je=>{Xe[Je.route.id]={type:"error",error:at}}),Xe}if(K.signal.aborted)return Xe;for(let[at,Je]of Object.entries(Me))if(d7(Je)){let lt=Je.result;Xe[at]={type:"redirect",response:l7(lt,K,at,ie,u)}}else Xe[at]=await s7(Je);return Xe}async function Dn(K,ie,pe,De){let Me=Ot(pe,K,De,null),Xe=Promise.all(ie.map(async lt=>{if(lt.matches&<.match&<.request&<.controller){let et=(await Ot(lt.request,lt.matches,De,lt.key))[lt.match.route.id];return{[lt.key]:et}}else return Promise.resolve({[lt.key]:{type:"error",error:Qa(404,{pathname:lt.path})}})})),at=await Me,Je=(await Xe).reduce((lt,pt)=>Object.assign(lt,pt),{});return{loaderResults:at,fetcherResults:Je}}function bt(){Y=!0,re.forEach((K,ie)=>{z.has(ie)&&X.add(ie),gt(ie)})}function ce(K,ie,pe={}){k.fetchers.set(K,ie),Ue({fetchers:new Map(k.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function me(K,ie,pe,De={}){let Me=ul(k.matches,ie);We(K),Ue({errors:{[Me.route.id]:pe},fetchers:new Map(k.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function Be(K){return ee.set(K,(ee.get(K)||0)+1),L.has(K)&&L.delete(K),k.fetchers.get(K)||K$}function We(K){let ie=k.fetchers.get(K);z.has(K)&&!(ie&&ie.state==="loading"&&oe.has(K))&>(K),re.delete(K),oe.delete(K),I.delete(K),L.delete(K),X.delete(K),k.fetchers.delete(K)}function Qe(K){let ie=(ee.get(K)||0)-1;ie<=0?(ee.delete(K),L.add(K)):ee.set(K,ie),Ue({fetchers:new Map(k.fetchers)})}function gt(K){let ie=z.get(K);ie&&(ie.abort(),z.delete(K))}function ln(K){for(let ie of K){let pe=Be(ie),De=gs(pe.data);k.fetchers.set(ie,De)}}function Qt(){let K=[],ie=!1;for(let pe of I){let De=k.fetchers.get(pe);Ut(De,`Expected fetcher: ${pe}`),De.state==="loading"&&(I.delete(pe),K.push(pe),ie=!0)}return ln(K),ie}function qe(K){let ie=[];for(let[pe,De]of oe)if(De<K){let Me=k.fetchers.get(pe);Ut(Me,`Expected fetcher: ${pe}`),Me.state==="loading"&&(gt(pe),oe.delete(pe),ie.push(pe))}return ln(ie),ie.length>0}function Ee(K,ie){let pe=k.blockers.get(K)||Od;return te.get(K)!==ie&&te.set(K,ie),pe}function Te(K){k.blockers.delete(K),te.delete(K)}function ut(K,ie){let pe=k.blockers.get(K)||Od;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 De=new Map(k.blockers);De.set(K,ie),Ue({blockers:De})}function nt({currentLocation:K,nextLocation:ie,historyAction:pe}){if(te.size===0)return;te.size>1&&cr(!1,"A router only supports one blocker at a time");let De=Array.from(te.entries()),[Me,Xe]=De[De.length-1],at=k.blockers.get(Me);if(!(at&&at.state==="proceeding")&&Xe({currentLocation:K,nextLocation:ie,historyAction:pe}))return Me}function Fn(K){let ie=Qa(404,{pathname:K}),pe=c||s,{matches:De,route:Me}=Z2(pe);return{notFoundMatches:De,route:Me,error:ie}}function jr(K,ie,pe){if(y=K,E=ie,b=pe||null,!_&&k.navigation===wv){_=!0;let De=gr(k.location,k.matches);De!=null&&Ue({restoreScrollPosition:De})}return()=>{y=null,E=null,b=null}}function _r(K,ie){return b&&b(K,ie.map(De=>x$(De,k.loaderData)))||K.key}function mr(K,ie){if(y&&E){let pe=_r(K,ie);y[pe]=E()}}function gr(K,ie){if(y){let pe=_r(K,ie),De=y[pe];if(typeof De=="number")return De}return null}function Ma(K,ie,pe){if(e.patchRoutesOnNavigation)if(K){if(Object.keys(K[0].params).length>0)return{active:!0,matches:Lm(ie,pe,u,!0)}}else return{active:!0,matches:Lm(ie,pe,u,!0)||[]};return{active:!1,matches:null}}async function In(K,ie,pe,De){if(!e.patchRoutesOnNavigation)return{type:"success",matches:K};let Me=K;for(;;){let Xe=c==null,at=c||s,Je=o;try{await e.patchRoutesOnNavigation({signal:pe,path:ie,matches:Me,fetcherKey:De,patch:(et,it)=>{pe.aborted||z2(et,it,at,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(at,ie,u);if(lt)return{type:"success",matches:lt};let pt=Lm(at,ie,u,!0);if(!pt||Me.length===pt.length&&Me.every((et,it)=>et.route.id===pt[it].route.id))return{type:"success",matches:null};Me=pt}}function Hr(K){o={},c=$f(K,a,void 0,o)}function ft(K,ie,pe=!1){let De=c==null;z2(K,ie,c||s,o,a,pe),De&&(s=[...s],Ue({}))}return O={get basename(){return u},get future(){return p},get state(){return k},get routes(){return s},get window(){return t},initialize:xe,subscribe:Oe,enableScrollRestoration:jr,navigate:Ye,fetch:ot,revalidate:Ve,createHref:K=>e.history.createHref(K),encodeLocation:K=>e.history.encodeLocation(K),getFetcher:Be,deleteFetcher:Qe,dispose:ge,getBlocker:Ee,deleteBlocker:Te,patchRoutes:ft,_internalFetchControllers:z,_internalSetRoutes:Hr,_internalSetStateDoNotUseOrYouWillBreakYourApp(K){Ue(K)}},O}function e7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Gb(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=OT(r||".",RT(s),so(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=NT(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(y=>y).forEach(y=>p.append("index",y));let g=p.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=B$({basename:n,pathname:u.pathname})),Rs(u)}function j2(e,t,n){if(!n||!e7(n))return{path:t};if(n.formMethod&&!f7(n.formMethod))return{path:t,error:Qa(405,{method:n.formMethod})};let r=()=>({path:t,error:Qa(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),s=oI(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!sa(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((g,[y,b])=>`${g}${y}=${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(!sa(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=Yb(n.formData),u=n.formData;else if(n.body instanceof FormData)c=Yb(n.body),u=n.body;else if(n.body instanceof URLSearchParams)c=n.body,u=Y2(c);else if(n.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(n.body),u=Y2(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(sa(d.formMethod))return{path:t,submission:d};let p=Ps(t);return e&&p.search&&NT(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Rs(p),submission:d}}function H2(e,t,n,r,a,o,s,c,u,d,p,h,g,y,b,E,_,A,D,w){let R=w?Da(w[1])?w[1].error:w[1].data:void 0,O=a.createURL(o.location),k=a.createURL(u),F;if(p&&o.errors){let B=Object.keys(o.errors)[0];F=s.findIndex(Y=>Y.route.id===B)}else if(w&&Da(w[1])){let B=w[0];F=s.findIndex(Y=>Y.route.id===B)-1}let G=w?w[1].statusCode:void 0,j=G&&G>=400,T={currentUrl:O,currentParams:o.matches[0]?.params||{},nextUrl:k,nextParams:s[0].params,...c,actionResult:R,actionStatus:G},M=s.map((B,Y)=>{let{route:X}=B,z=null;if(F!=null&&Y>F?z=!1:X.lazy?z=!0:X.loader==null?z=!1:p?z=qb(X,o.loaderData,o.errors):t7(o.loaderData,o.matches[Y],B)&&(z=!0),z!==null)return Wb(n,r,e,B,d,t,z);let Z=j?!1:h||O.pathname+O.search===k.pathname+k.search||O.search!==k.search||n7(o.matches[Y],B),J={...T,defaultShouldRevalidate:Z},oe=dg(B,J);return Wb(n,r,e,B,d,t,oe,J)}),U=[];return b.forEach((B,Y)=>{if(p||!s.some(ee=>ee.route.id===B.routeId)||y.has(Y))return;let X=o.fetchers.get(Y),z=X&&X.state!=="idle"&&X.data===void 0,Z=bs(_,B.path,A);if(!Z){if(D&&z)return;U.push({key:Y,routeId:B.routeId,path:B.path,matches:null,match:null,request:null,controller:null});return}if(E.has(Y))return;let J=Pm(Z,B.path),oe=new AbortController,I=Hc(a,B.path,oe.signal),re=null;if(g.has(Y))g.delete(Y),re=Qc(n,r,I,Z,J,d,t);else if(z)h&&(re=Qc(n,r,I,Z,J,d,t));else{let ee={...T,defaultShouldRevalidate:j?!1:h};dg(J,ee)&&(re=Qc(n,r,I,Z,J,d,t,ee))}re&&U.push({key:Y,routeId:B.routeId,path:B.path,matches:re,match:J,request:I,controller:oe})}),{dsMatches:M,revalidatingFetchers:U}}function qb(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 t7(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function n7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function dg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function z2(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=>eI(d,h));p?u.push({existingRoute:p,newRoute:d}):c.push(d)}),c.length>0){let d=$f(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],g=p,[y]=$f([h],a,[],{},!0);Object.assign(g,{element:y.element?y.element:g.element,errorElement:y.errorElement?y.errorElement:g.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:g.hydrateFallbackElement})}}function eI(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=>eI(n,a))):!1}var V2=new WeakMap,tI=({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=V2.get(a);s||(s={},V2.set(a,s));let c=s[e];if(c)return c;let u=(async()=>{let d=S$(e),h=a[e]!==void 0&&e!=="hasErrorBoundary";if(d)cr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)cr(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await o();g!=null&&(Object.assign(a,{[e]:g}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(g=>g===void 0)&&(a.lazy=void 0))})();return s[e]=u,u},G2=new WeakMap;function r7(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=G2.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Ut(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),y={};for(let b in g){let E=g[b];if(E===void 0)continue;let _=C$(b),D=o[b]!==void 0&&b!=="hasErrorBoundary";_?cr(!_,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?cr(!D,`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.`):y[b]=E}Object.assign(o,y),Object.assign(o,{...r(o),lazy:void 0})})();return G2.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=tI({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 q2(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 a7(e){return e.matches.some(t=>t.route.unstable_middleware)?nI(e,!1,()=>q2(e),(t,n)=>({[n]:{type:"error",result:t}})):q2(e)}async function nI(e,t,n,r){let{matches:a,request:o,params:s,context:c}=e,u={handlerResult:void 0};try{let d=a.flatMap(h=>h.route.unstable_middleware?h.route.unstable_middleware.map(g=>[h.route.id,g]):[]),p=await rI({request:o,params:s,context:c},d,t,u,n);return t?p:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let p=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,p):p}}async function rI(e,t,n,r,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason?s.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${s.method} ${s.url}`);let c=t[o];if(!c)return r.handlerResult=await a(),r.handlerResult;let[u,d]=c,p=!1,h,g=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await rI(e,t,n,r,a,o+1)};try{let y=await d({request:e.request,params:e.params,context:e.context},g);return p?y===void 0?h:y:g()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:u,error:y}):r.middlewareError={routeId:u,error:y},y}}function aI(e,t,n,r,a){let o=tI({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=r7(r.route,sa(n.method)?"action":"loader",t,e,a);return{middleware:o,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function Wb(e,t,n,r,a,o,s,c=null){let u=!1,d=aI(e,t,n,r,a);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return u=!0,c?typeof p=="boolean"?dg(r,{...c,defaultShouldRevalidate:p}):dg(r,c):s},resolve(p){return u||s||p&&!sa(n.method)&&(r.route.lazy||r.route.loader)?i7({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Qc(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:aI(e,t,n,u,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Wb(e,t,n,u,o,s,!0,c))}async function o7(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,unstable_runClientMiddleware:d=>{let p=s;return nI(p,!1,()=>d({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(h,g)=>({[g]:{type:"error",result:h}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return u}async function i7({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:o}){let s,c,u=sa(e.method),d=u?"action":"loader",p=h=>{let g,y=new Promise((_,A)=>g=A);c=()=>g(),e.signal.addEventListener("abort",c);let b=_=>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},..._!==void 0?[_]:[]),E=(async()=>{try{return{type:"data",result:await(a?a(A=>b(A)):b())}}catch(_){return{type:"error",result:_}}})();return Promise.race([E,y])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let g,[y]=await Promise.all([p(h).catch(b=>{g=b}),n,r]);if(g!==void 0)throw g;s=y}else{await n;let g=u?t.route.action:t.route.loader;if(g)[s]=await Promise.all([p(g),r]);else if(d==="action"){let y=new URL(e.url),b=y.pathname+y.search;throw Qa(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 g=new URL(e.url),y=g.pathname+g.search;throw Qa(404,{pathname:y})}}catch(h){return{type:"error",result:h}}finally{c&&e.signal.removeEventListener("abort",c)}return s}async function s7(e){let{result:t,type:n}=e;if(iI(t)){let r;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new ug(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?J2(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 ug(t.init?.status||500,void 0,t.data),statusCode:Ff(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Ff(t)?t.status:void 0}:J2(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 l7(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"),!IT(o)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=Gb(new URL(t.url),s,a,o),e.headers.set("Location",o)}return e}function W2(e,t,n){if(IT(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=so(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Hc(e,t,n,r){let a=e.createURL(oI(t)).toString(),o={signal:n};if(r&&sa(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=Yb(r.formData):o.body=r.formData}return new Request(a,o)}function Yb(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Y2(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function c7(e,t,n,r=!1,a=!1){let o={},s=null,c,u=!1,d={},p=n&&Da(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let g=h.route.id,y=t[g];if(Ut(!fl(y),"Cannot handle redirect results in processLoaderData"),Da(y)){let b=y.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},a)s[g]=b;else{let E=ul(e,g);s[E.route.id]==null&&(s[E.route.id]=b)}r||(o[g]=JO),u||(u=!0,c=Ff(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else o[g]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(c=y.statusCode),y.headers&&(d[g]=y.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 Q2(e,t,n,r,a,o){let{loaderData:s,errors:c}=c7(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,g=o[d];if(Ut(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Da(g)){let y=ul(e.matches,p?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(fl(g))Ut(!1,"Unhandled fetcher revalidation redirect");else{let y=gs(g.data);e.fetchers.set(d,y)}}),{loaderData:s,errors:c}}function K2(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==JO).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 X2(e){return e?Da(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ul(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 Z2(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 Qa(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 ug(e||500,s,new Error(c),!0)}function om(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(fl(a))return{key:r,result:a}}}function oI(e){let t=typeof e=="string"?Ps(e):e;return Rs({...t,hash:""})}function u7(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function d7(e){return iI(e.result)&&Y$.has(e.result.status)}function Da(e){return e.type==="error"}function fl(e){return(e&&e.type)==="redirect"}function J2(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function iI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function f7(e){return W$.has(e.toUpperCase())}function sa(e){return G$.has(e.toUpperCase())}function NT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Pm(e,t){let n=typeof t=="string"?Ps(t).search:t.search;if(e[e.length-1].route.index&&NT(n||""))return e[e.length-1];let r=KO(e);return r[r.length-1]}function ew(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 Dv(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 p7(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 Id(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 h7(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 m7(e,t){try{let n=e.sessionStorage.getItem(ZO);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 g7(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(ZO,JSON.stringify(n))}catch(r){cr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function y7(){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 Bl=x.createContext(null);Bl.displayName="DataRouter";var gp=x.createContext(null);gp.displayName="DataRouterState";x.createContext(!1);var LT=x.createContext({isTransitioning:!1});LT.displayName="ViewTransition";var sI=x.createContext(new Map);sI.displayName="Fetchers";var v7=x.createContext(null);v7.displayName="Await";var ei=x.createContext(null);ei.displayName="Navigation";var Jg=x.createContext(null);Jg.displayName="Location";var Co=x.createContext({outlet:null,matches:[],isDataRoute:!1});Co.displayName="Route";var PT=x.createContext(null);PT.displayName="RouteError";function b7(e,{relative:t}={}){Ut(yp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=x.useContext(ei),{hash:a,pathname:o,search:s}=vp(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Yo([n,o])),r.createHref({pathname:c,search:s,hash:a})}function yp(){return x.useContext(Jg)!=null}function Ul(){return Ut(yp(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Jg).location}var lI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cI(e){x.useContext(ei).static||x.useLayoutEffect(e)}function E7(){let{isDataRoute:e}=x.useContext(Co);return e?P7():T7()}function T7(){Ut(yp(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(Bl),{basename:t,navigator:n}=x.useContext(ei),{matches:r}=x.useContext(Co),{pathname:a}=Ul(),o=JSON.stringify(RT(r)),s=x.useRef(!1);return cI(()=>{s.current=!0}),x.useCallback((u,d={})=>{if(cr(s.current,lI),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=OT(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Yo([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,o,a,e])}var S7=x.createContext(null);function _7(e){let t=x.useContext(Co).outlet;return t&&x.createElement(S7.Provider,{value:e},t)}function Oge(){let{matches:e}=x.useContext(Co),t=e[e.length-1];return t?t.params:{}}function vp(e,{relative:t}={}){let{matches:n}=x.useContext(Co),{pathname:r}=Ul(),a=JSON.stringify(RT(n));return x.useMemo(()=>OT(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function C7(e,t,n,r){Ut(yp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=x.useContext(ei),{matches:o}=x.useContext(Co),s=o[o.length-1],c=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let A=p&&p.path||"";uI(u,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let h=Ul(),g;g=h;let y=g.pathname||"/",b=y;if(d!=="/"){let A=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(A.length).join("/")}let E=bs(e,{pathname:b});return cr(p||E!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),cr(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.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.`),k7(E&&E.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:Yo([d,a.encodeLocation?a.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?d:Yo([d,a.encodeLocation?a.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r)}function A7(){let e=L7(),t=Ff(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 x7=x.createElement(A7,null),w7=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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?x.createElement(Co.Provider,{value:this.props.routeContext},x.createElement(PT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function D7({routeContext:e,match:t,children:n}){let r=x.useContext(Bl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Co.Provider,{value:e},n)}function k7(e,t=[],n=null,r=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 a=e,o=n?.errors;if(o!=null){let u=a.findIndex(d=>d.route.id&&o?.[d.route.id]!==void 0);Ut(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,u+1))}let s=!1,c=-1;if(n)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){s=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,p)=>{let h,g=!1,y=null,b=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,y=d.route.errorElement||x7,s&&(c<0&&p===0?(uI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):c===p&&(g=!0,b=d.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,p+1)),_=()=>{let A;return h?A=y:g?A=b:d.route.Component?A=x.createElement(d.route.Component,null):d.route.element?A=d.route.element:A=u,x.createElement(D7,{match:d,routeContext:{outlet:u,matches:E,isDataRoute:n!=null},children:A})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?x.createElement(w7,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:_(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):_()},null)}function MT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function R7(e){let t=x.useContext(Bl);return Ut(t,MT(e)),t}function O7(e){let t=x.useContext(gp);return Ut(t,MT(e)),t}function I7(e){let t=x.useContext(Co);return Ut(t,MT(e)),t}function $T(e){let t=I7(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 N7(){return $T("useRouteId")}function L7(){let e=x.useContext(PT),t=O7("useRouteError"),n=$T("useRouteError");return e!==void 0?e:t.errors?.[n]}function P7(){let{router:e}=R7("useNavigate"),t=$T("useNavigate"),n=x.useRef(!1);return cI(()=>{n.current=!0}),x.useCallback(async(a,o={})=>{cr(n.current,lI),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var tw={};function uI(e,t,n){!t&&!tw[e]&&(tw[e]=!0,cr(!1,n))}var nw={};function rw(e,t){!e&&!nw[t]&&(nw[t]=!0,console.warn(t))}function M7(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&cr(!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&&cr(!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&&cr(!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 $7=["HydrateFallback","hydrateFallbackElement"],F7=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 B7({router:e,flushSync:t}){let[n,r]=x.useState(e.state),[a,o]=x.useState(),[s,c]=x.useState({isTransitioning:!1}),[u,d]=x.useState(),[p,h]=x.useState(),[g,y]=x.useState(),b=x.useRef(new Map),E=x.useCallback((w,{deletedFetchers:R,flushSync:O,viewTransitionOpts:k})=>{w.fetchers.forEach((G,j)=>{G.data!==void 0&&b.current.set(j,G.data)}),R.forEach(G=>b.current.delete(G)),rw(O===!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 F=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(rw(k==null||F,"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."),!k||!F){t&&O?t(()=>r(w)):x.startTransition(()=>r(w));return}if(t&&O){t(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:k.currentLocation,nextLocation:k.nextLocation})});let G=e.window.document.startViewTransition(()=>{t(()=>r(w))});G.finished.finally(()=>{t(()=>{d(void 0),h(void 0),o(void 0),c({isTransitioning:!1})})}),t(()=>h(G));return}p?(u&&u.resolve(),p.skipTransition(),y({state:w,currentLocation:k.currentLocation,nextLocation:k.nextLocation})):(o(w),c({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}))},[e.window,t,p,u]);x.useLayoutEffect(()=>e.subscribe(E),[e,E]),x.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new F7)},[s]),x.useEffect(()=>{if(u&&a&&e.window){let w=a,R=u.promise,O=e.window.document.startViewTransition(async()=>{x.startTransition(()=>r(w)),await R});O.finished.finally(()=>{d(void 0),h(void 0),o(void 0),c({isTransitioning:!1})}),h(O)}},[a,u,e.window]),x.useEffect(()=>{u&&a&&n.location.key===a.location.key&&u.resolve()},[u,p,n.location,a]),x.useEffect(()=>{!s.isTransitioning&&g&&(o(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[s.isTransitioning,g]);let _=x.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,O)=>e.navigate(w,{state:R,preventScrollReset:O?.preventScrollReset}),replace:(w,R,O)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:O?.preventScrollReset})}),[e]),A=e.basename||"/",D=x.useMemo(()=>({router:e,navigator:_,static:!1,basename:A}),[e,_,A]);return x.createElement(x.Fragment,null,x.createElement(Bl.Provider,{value:D},x.createElement(gp.Provider,{value:n},x.createElement(sI.Provider,{value:b.current},x.createElement(LT.Provider,{value:s},x.createElement(H7,{basename:A,location:n.location,navigationType:n.historyAction,navigator:_},x.createElement(U7,{routes:e.routes,future:e.future,state:n})))))),null)}var U7=x.memo(j7);function j7({routes:e,future:t,state:n}){return C7(e,void 0,n,t)}function Ige(e){return _7(e.context)}function H7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Ut(!yp(),"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=Ps(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=n,y=x.useMemo(()=>{let b=so(u,s);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:g},navigationType:r}},[s,u,d,p,h,g,r]);return cr(y!=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.`),y==null?null:x.createElement(ei.Provider,{value:c},x.createElement(Jg.Provider,{children:t,value:y}))}var Mm="get",$m="application/x-www-form-urlencoded";function ey(e){return e!=null&&typeof e.tagName=="string"}function z7(e){return ey(e)&&e.tagName.toLowerCase()==="button"}function V7(e){return ey(e)&&e.tagName.toLowerCase()==="form"}function G7(e){return ey(e)&&e.tagName.toLowerCase()==="input"}function q7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function W7(e,t){return e.button===0&&(!t||t==="_self")&&!q7(e)}var im=null;function Y7(){if(im===null)try{new FormData(document.createElement("form"),0),im=!1}catch{im=!0}return im}var Q7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kv(e){return e!=null&&!Q7.has(e)?(cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$m}"`),null):e}function K7(e,t){let n,r,a,o,s;if(V7(e)){let c=e.getAttribute("action");r=c?so(c,t):null,n=e.getAttribute("method")||Mm,a=kv(e.getAttribute("enctype"))||$m,o=new FormData(e)}else if(z7(e)||G7(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?so(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Mm,a=kv(e.getAttribute("formenctype"))||kv(c.getAttribute("enctype"))||$m,o=new FormData(c,e),!Y7()){let{name:d,type:p,value:h}=e;if(p==="image"){let g=d?`${d}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else d&&o.append(d,h)}}else{if(ey(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Mm,r=null,a=$m,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 FT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X7(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&&so(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Z7(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 J7(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 e8(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let s=await Z7(o,n);return s.links?s.links():[]}return[]}));return a8(r.flat(1).filter(J7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function aw(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 t8(e,t,{includeHydrateFallback:n}={}){return n8(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 n8(e){return[...new Set(e)]}function r8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function a8(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(r8(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function dI(){let e=x.useContext(Bl);return FT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function o8(){let e=x.useContext(gp);return FT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var BT=x.createContext(void 0);BT.displayName="FrameworkContext";function fI(){let e=x.useContext(BT);return FT(e,"You must render this element inside a <HydratedRouter> element"),e}function i8(e,t){let n=x.useContext(BT),[r,a]=x.useState(!1),[o,s]=x.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=x.useRef(null);x.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let E=A=>{A.forEach(D=>{s(D.isIntersecting)})},_=new IntersectionObserver(E,{threshold:.5});return g.current&&_.observe(g.current),()=>{_.disconnect()}}},[e]),x.useEffect(()=>{if(r){let E=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(E)}}},[r]);let y=()=>{a(!0)},b=()=>{a(!1),s(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Nd(c,y),onBlur:Nd(u,b),onMouseEnter:Nd(d,y),onMouseLeave:Nd(p,b),onTouchStart:Nd(h,y)}]:[!1,g,{}]}function Nd(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function s8({page:e,...t}){let{router:n}=dI(),r=x.useMemo(()=>bs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?x.createElement(c8,{page:e,matches:r,...t}):null}function l8(e){let{manifest:t,routeModules:n}=fI(),[r,a]=x.useState([]);return x.useEffect(()=>{let o=!1;return e8(e,t,n).then(s=>{o||a(s)}),()=>{o=!0}},[e,t,n]),r}function c8({page:e,matches:t,...n}){let r=Ul(),{manifest:a,routeModules:o}=fI(),{basename:s}=dI(),{loaderData:c,matches:u}=o8(),d=x.useMemo(()=>aw(e,t,u,a,r,"data"),[e,t,u,a,r]),p=x.useMemo(()=>aw(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 D=a.routes[A.route.id];!D||!D.hasLoader||(!d.some(w=>w.route.id===A.route.id)&&A.route.id in c&&o[A.route.id]?.shouldRevalidate||D.hasClientLoader?E=!0:b.add(A.route.id))}),b.size===0)return[];let _=X7(e,s,"data");return E&&b.size>0&&_.searchParams.set("_routes",t.filter(A=>b.has(A.route.id)).map(A=>A.route.id).join(",")),[_.pathname+_.search]},[s,c,r,a,d,t,e,o]),g=x.useMemo(()=>t8(p,a),[p,a]),y=l8(p);return x.createElement(x.Fragment,null,h.map(b=>x.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),g.map(b=>x.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:E})=>x.createElement("link",{key:b,...E})))}function u8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pI&&(window.__reactRouterVersion="7.7.1")}catch{}function d8(e,t){return J$({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:v$({window:t?.window}),hydrationData:f8(),routes:e,mapRouteProperties:M7,hydrationRouteProperties:$7,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function f8(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:p8(e.errors)}),e}function p8(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 ug(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 hI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mI=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,...g},y){let{basename:b}=x.useContext(ei),E=typeof d=="string"&&hI.test(d),_,A=!1;if(typeof d=="string"&&E&&(_=d,pI))try{let j=new URL(window.location.href),T=d.startsWith("//")?new URL(j.protocol+d):new URL(d),M=so(T.pathname,b);T.origin===j.origin&&M!=null?d=M+T.search+T.hash:A=!0}catch{cr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=b7(d,{relative:a}),[w,R,O]=i8(r,g),k=y8(d,{replace:s,state:c,target:u,preventScrollReset:p,relative:a,viewTransition:h});function F(j){t&&t(j),j.defaultPrevented||k(j)}let G=x.createElement("a",{...g,...O,href:_||D,onClick:A||o?t:F,ref:u8(y,R),target:u,"data-discover":!E&&n==="render"?"true":void 0});return w&&!E?x.createElement(x.Fragment,null,G,x.createElement(s8,{page:D})):G});mI.displayName="Link";var h8=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=vp(s,{relative:d.relative}),g=Ul(),y=x.useContext(gp),{navigator:b,basename:E}=x.useContext(ei),_=y!=null&&S8(h)&&c===!0,A=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,D=g.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),w=w?w.toLowerCase():null,A=A.toLowerCase()),w&&E&&(w=so(w,E)||w);const R=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let O=D===A||!a&&D.startsWith(A)&&D.charAt(R)==="/",k=w!=null&&(w===A||!a&&w.startsWith(A)&&w.charAt(A.length)==="/"),F={isActive:O,isPending:k,isTransitioning:_},G=O?t:void 0,j;typeof r=="function"?j=r(F):j=[r,O?"active":null,k?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let T=typeof o=="function"?o(F):o;return x.createElement(mI,{...d,"aria-current":G,className:j,ref:p,style:T,to:s,viewTransition:c},typeof u=="function"?u(F):u)});h8.displayName="NavLink";var m8=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=Mm,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...g},y)=>{let b=E8(),E=T8(c,{relative:d}),_=s.toLowerCase()==="get"?"get":"post",A=typeof c=="string"&&hI.test(c),D=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let R=w.nativeEvent.submitter,O=R?.getAttribute("formmethod")||s;b(R||w.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:o,relative:d,preventScrollReset:p,viewTransition:h})};return x.createElement("form",{ref:y,method:_,action:E,onSubmit:r?u:D,...g,"data-discover":!A&&e==="render"?"true":void 0})});m8.displayName="Form";function g8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gI(e){let t=x.useContext(Bl);return Ut(t,g8(e)),t}function y8(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:s}={}){let c=E7(),u=Ul(),d=vp(e,{relative:o});return x.useCallback(p=>{if(W7(p,t)){p.preventDefault();let h=n!==void 0?n:Rs(u)===Rs(d);c(e,{replace:h,state:r,preventScrollReset:a,relative:o,viewTransition:s})}},[u,c,d,n,r,t,e,a,o,s])}var v8=0,b8=()=>`__${String(++v8)}__`;function E8(){let{router:e}=gI("useSubmit"),{basename:t}=x.useContext(ei),n=N7();return x.useCallback(async(r,a={})=>{let{action:o,method:s,encType:c,formData:u,body:d}=K7(r,t);if(a.navigate===!1){let p=a.fetcherKey||b8();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 T8(e,{relative:t}={}){let{basename:n}=x.useContext(ei),r=x.useContext(Co);Ut(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...vp(e||".",{relative:t})},s=Ul();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:Yo([n,o.pathname])),Rs(o)}function S8(e,{relative:t}={}){let n=x.useContext(LT);Ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gI("useViewTransitionState"),a=vp(e,{relative:t});if(!n.isTransitioning)return!1;let o=so(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=so(n.nextLocation.pathname,r)||n.nextLocation.pathname;return cg(a.pathname,s)!=null||cg(a.pathname,o)!=null}var bp=GO();const Es=VO(bp);function _8(e){return x.createElement(B7,{flushSync:bp.flushSync,...e})}const C8="modulepreload",A8=function(e){return"/"+e},ow={},V=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=A8(d),d in ow)return;ow[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":C8,p||(g.as="script"),g.crossOrigin="",g.href=d,u&&g.setAttribute("nonce",u),document.head.appendChild(g),p)return new Promise((y,b)=>{g.addEventListener("load",y),g.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)})},Bf={black:"#000",white:"#fff"},xc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Dc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},kc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ld={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},x8={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 Dl(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 Qo="$$material";function fg(){return fg=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},fg.apply(null,arguments)}function w8(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 D8(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 k8=(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(D8(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=w8(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})(),Or="-ms-",pg="-moz-",an="-webkit-",yI="comm",UT="rule",jT="decl",R8="@import",vI="@keyframes",O8="@layer",I8=Math.abs,ty=String.fromCharCode,N8=Object.assign;function L8(e,t){return wr(e,0)^45?(((t<<2^wr(e,0))<<2^wr(e,1))<<2^wr(e,2))<<2^wr(e,3):0}function bI(e){return e.trim()}function P8(e,t){return(e=t.exec(e))?e[0]:e}function on(e,t,n){return e.replace(t,n)}function Qb(e,t){return e.indexOf(t)}function wr(e,t){return e.charCodeAt(t)|0}function Uf(e,t,n){return e.slice(t,n)}function Ho(e){return e.length}function HT(e){return e.length}function sm(e,t){return t.push(e),e}function M8(e,t){return e.map(t).join("")}var ny=1,iu=1,EI=0,pa=0,lr=0,bu="";function ry(e,t,n,r,a,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ny,column:iu,length:s,return:""}}function Pd(e,t){return N8(ry("",null,null,"",null,null,0),e,{length:-e.length},t)}function $8(){return lr}function F8(){return lr=pa>0?wr(bu,--pa):0,iu--,lr===10&&(iu=1,ny--),lr}function Ia(){return lr=pa<EI?wr(bu,pa++):0,iu++,lr===10&&(iu=1,ny++),lr}function Ko(){return wr(bu,pa)}function Fm(){return pa}function Ep(e,t){return Uf(bu,e,t)}function jf(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 TI(e){return ny=iu=1,EI=Ho(bu=e),pa=0,[]}function SI(e){return bu="",e}function Bm(e){return bI(Ep(pa-1,Kb(e===91?e+2:e===40?e+1:e)))}function B8(e){for(;(lr=Ko())&&lr<33;)Ia();return jf(e)>2||jf(lr)>3?"":" "}function U8(e,t){for(;--t&&Ia()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return Ep(e,Fm()+(t<6&&Ko()==32&&Ia()==32))}function Kb(e){for(;Ia();)switch(lr){case e:return pa;case 34:case 39:e!==34&&e!==39&&Kb(lr);break;case 40:e===41&&Kb(e);break;case 92:Ia();break}return pa}function j8(e,t){for(;Ia()&&e+lr!==57;)if(e+lr===84&&Ko()===47)break;return"/*"+Ep(t,pa-1)+"*"+ty(e===47?e:Ia())}function H8(e){for(;!jf(Ko());)Ia();return Ep(e,pa)}function z8(e){return SI(Um("",null,null,null,[""],e=TI(e),0,[0],e))}function Um(e,t,n,r,a,o,s,c,u){for(var d=0,p=0,h=s,g=0,y=0,b=0,E=1,_=1,A=1,D=0,w="",R=a,O=o,k=r,F=w;_;)switch(b=D,D=Ia()){case 40:if(b!=108&&wr(F,h-1)==58){Qb(F+=on(Bm(D),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:F+=Bm(D);break;case 9:case 10:case 13:case 32:F+=B8(b);break;case 92:F+=U8(Fm()-1,7);continue;case 47:switch(Ko()){case 42:case 47:sm(V8(j8(Ia(),Fm()),t,n),u);break;default:F+="/"}break;case 123*E:c[d++]=Ho(F)*A;case 125*E:case 59:case 0:switch(D){case 0:case 125:_=0;case 59+p:A==-1&&(F=on(F,/\f/g,"")),y>0&&Ho(F)-h&&sm(y>32?sw(F+";",r,n,h-1):sw(on(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(sm(k=iw(F,t,n,d,p,a,c,w,R=[],O=[],h),o),D===123)if(p===0)Um(F,t,k,k,R,o,h,c,O);else switch(g===99&&wr(F,3)===110?100:g){case 100:case 108:case 109:case 115:Um(e,k,k,r&&sm(iw(e,k,k,0,0,a,c,w,a,R=[],h),O),a,O,h,c,r?R:O);break;default:Um(F,k,k,k,[""],O,0,c,O)}}d=p=y=0,E=A=1,w=F="",h=s;break;case 58:h=1+Ho(F),y=b;default:if(E<1){if(D==123)--E;else if(D==125&&E++==0&&F8()==125)continue}switch(F+=ty(D),D*E){case 38:A=p>0?1:(F+="\f",-1);break;case 44:c[d++]=(Ho(F)-1)*A,A=1;break;case 64:Ko()===45&&(F+=Bm(Ia())),g=Ko(),p=h=Ho(w=F+=H8(Fm())),D++;break;case 45:b===45&&Ho(F)==2&&(E=0)}}return o}function iw(e,t,n,r,a,o,s,c,u,d,p){for(var h=a-1,g=a===0?o:[""],y=HT(g),b=0,E=0,_=0;b<r;++b)for(var A=0,D=Uf(e,h+1,h=I8(E=s[b])),w=e;A<y;++A)(w=bI(E>0?g[A]+" "+D:on(D,/&\f/g,g[A])))&&(u[_++]=w);return ry(e,t,n,a===0?UT:c,u,d,p)}function V8(e,t,n){return ry(e,t,n,yI,ty($8()),Uf(e,2,-2),0)}function sw(e,t,n,r){return ry(e,t,n,jT,Uf(e,0,r),Uf(e,r+1,-1),r)}function Kc(e,t){for(var n="",r=HT(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function G8(e,t,n,r){switch(e.type){case O8:if(e.children.length)break;case R8:case jT:return e.return=e.return||e.value;case yI:return"";case vI:return e.return=e.value+"{"+Kc(e.children,r)+"}";case UT:e.value=e.props.join(",")}return Ho(n=Kc(e.children,r))?e.return=e.value+"{"+n+"}":""}function q8(e){var t=HT(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 W8(e){return function(t){t.root||(t=t.return)&&e(t)}}function _I(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Y8=function(t,n,r){for(var a=0,o=0;a=o,o=Ko(),a===38&&o===12&&(n[r]=1),!jf(o);)Ia();return Ep(t,pa)},Q8=function(t,n){var r=-1,a=44;do switch(jf(a)){case 0:a===38&&Ko()===12&&(n[r]=1),t[r]+=Y8(pa-1,n,r);break;case 2:t[r]+=Bm(a);break;case 4:if(a===44){t[++r]=Ko()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ty(a)}while(a=Ia());return t},K8=function(t,n){return SI(Q8(TI(t),n))},lw=new WeakMap,X8=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&&!lw.get(r))&&!a){lw.set(t,!0);for(var o=[],s=K8(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]}}},Z8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function CI(e,t){switch(L8(e,t)){case 5103:return an+"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 an+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+pg+e+Or+e+e;case 6828:case 4268:return an+e+Or+e+e;case 6165:return an+e+Or+"flex-"+e+e;case 5187:return an+e+on(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+Or+"flex-$1$2")+e;case 5443:return an+e+Or+"flex-item-"+on(e,/flex-|-self/,"")+e;case 4675:return an+e+Or+"flex-line-pack"+on(e,/align-content|flex-|-self/,"")+e;case 5548:return an+e+Or+on(e,"shrink","negative")+e;case 5292:return an+e+Or+on(e,"basis","preferred-size")+e;case 6060:return an+"box-"+on(e,"-grow","")+an+e+Or+on(e,"grow","positive")+e;case 4554:return an+on(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return on(on(on(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return on(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return on(on(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+Or+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+an+e+e;case 4095:case 3583:case 4068:case 2532:return on(e,/(.+)-inline(.+)/,an+"$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(Ho(e)-1-t>6)switch(wr(e,t+1)){case 109:if(wr(e,t+4)!==45)break;case 102:return on(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+pg+(wr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qb(e,"stretch")?CI(on(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wr(e,t+1)!==115)break;case 6444:switch(wr(e,Ho(e)-3-(~Qb(e,"!important")&&10))){case 107:return on(e,":",":"+an)+e;case 101:return on(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+an+(wr(e,14)===45?"inline-":"")+"box$3$1"+an+"$2$3$1"+Or+"$2box$3")+e}break;case 5936:switch(wr(e,t+11)){case 114:return an+e+Or+on(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+Or+on(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+Or+on(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return an+e+Or+e+e}return e}var J8=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case jT:t.return=CI(t.value,t.length);break;case vI:return Kc([Pd(t,{value:on(t.value,"@","@"+an)})],a);case UT:if(t.length)return M8(t.props,function(o){switch(P8(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kc([Pd(t,{props:[on(o,/:(read-\w+)/,":"+pg+"$1")]})],a);case"::placeholder":return Kc([Pd(t,{props:[on(o,/:(plac\w+)/,":"+an+"input-$1")]}),Pd(t,{props:[on(o,/:(plac\w+)/,":"+pg+"$1")]}),Pd(t,{props:[on(o,/:(plac\w+)/,Or+"input-$1")]})],a)}return""})}},e9=[J8],t9=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 _=E.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||e9,o={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var _=E.getAttribute("data-emotion").split(" "),A=1;A<_.length;A++)o[_[A]]=!0;c.push(E)});var u,d=[X8,Z8];{var p,h=[G8,W8(function(E){p.insert(E)})],g=q8(d.concat(a,h)),y=function(_){return Kc(z8(_),g)};u=function(_,A,D,w){p=D,y(_?_+"{"+A.styles+"}":A.styles),w&&(b.inserted[A.name]=!0)}}var b={key:n,sheet:new k8({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},Rv={exports:{}},sn={};/** @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 cw;function n9(){if(cw)return sn;cw=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,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function w(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case u:case d:case r:case o:case a:case h:return O;default:switch(O=O&&O.$$typeof,O){case c:case p:case b:case y:case s:return O;default:return k}}case n:return k}}}function R(O){return w(O)===d}return sn.AsyncMode=u,sn.ConcurrentMode=d,sn.ContextConsumer=c,sn.ContextProvider=s,sn.Element=t,sn.ForwardRef=p,sn.Fragment=r,sn.Lazy=b,sn.Memo=y,sn.Portal=n,sn.Profiler=o,sn.StrictMode=a,sn.Suspense=h,sn.isAsyncMode=function(O){return R(O)||w(O)===u},sn.isConcurrentMode=R,sn.isContextConsumer=function(O){return w(O)===c},sn.isContextProvider=function(O){return w(O)===s},sn.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},sn.isForwardRef=function(O){return w(O)===p},sn.isFragment=function(O){return w(O)===r},sn.isLazy=function(O){return w(O)===b},sn.isMemo=function(O){return w(O)===y},sn.isPortal=function(O){return w(O)===n},sn.isProfiler=function(O){return w(O)===o},sn.isStrictMode=function(O){return w(O)===a},sn.isSuspense=function(O){return w(O)===h},sn.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===d||O===o||O===a||O===h||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===b||O.$$typeof===y||O.$$typeof===s||O.$$typeof===c||O.$$typeof===p||O.$$typeof===_||O.$$typeof===A||O.$$typeof===D||O.$$typeof===E)},sn.typeOf=w,sn}var uw;function r9(){return uw||(uw=1,Rv.exports=n9()),Rv.exports}var Ov,dw;function a9(){if(dw)return Ov;dw=1;var e=r9(),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,g=Object.prototype;function y(b,E,_){if(typeof E!="string"){if(g){var A=h(E);A&&A!==g&&y(b,A,_)}var D=u(E);d&&(D=D.concat(d(E)));for(var w=s(b),R=s(E),O=0;O<D.length;++O){var k=D[O];if(!n[k]&&!(_&&_[k])&&!(R&&R[k])&&!(w&&w[k])){var F=p(E,k);try{c(b,k,F)}catch{}}}}return b}return Ov=y,Ov}a9();var o9=!0;function AI(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var zT=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||o9===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},VT=function(t,n,r){zT(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 i9(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 s9={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},l9=/[A-Z]|^ms/g,c9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xI=function(t){return t.charCodeAt(1)===45},fw=function(t){return t!=null&&typeof t!="boolean"},Iv=_I(function(e){return xI(e)?e:e.replace(l9,"-$&").toLowerCase()}),pw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(c9,function(r,a,o){return zo={name:a,styles:o,next:zo},a})}return s9[t]!==1&&!xI(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hf(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 zo={name:a.name,styles:a.styles,next:zo},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)zo={name:s.name,styles:s.styles,next:zo},s=s.next;var c=o.styles+";";return c}return u9(e,t,n)}case"function":{if(e!==void 0){var u=zo,d=n(e);return zo=u,Hf(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function u9(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Hf(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]+"}":fw(c)&&(r+=Iv(o)+":"+pw(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++)fw(s[u])&&(r+=Iv(o)+":"+pw(o,s[u])+";");else{var d=Hf(e,t,s);switch(o){case"animation":case"animationName":{r+=Iv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var hw=/label:\s*([^\s;{]+)\s*(;|$)/g,zo;function Tp(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="";zo=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Hf(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Hf(n,t,e[c]),r){var u=o;a+=u[c]}hw.lastIndex=0;for(var d="",p;(p=hw.exec(a))!==null;)d+="-"+p[1];var h=i9(a)+d;return{name:h,styles:a,next:zo}}var d9=function(t){return t()},wI=lg.useInsertionEffect?lg.useInsertionEffect:!1,DI=wI||d9,mw=wI||x.useLayoutEffect,kI=x.createContext(typeof HTMLElement<"u"?t9({key:"css"}):null);kI.Provider;var GT=function(t){return x.forwardRef(function(n,r){var a=x.useContext(kI);return t(n,a,r)})},Eu=x.createContext({}),qT={}.hasOwnProperty,Xb="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f9=function(t,n){var r={};for(var a in n)qT.call(n,a)&&(r[a]=n[a]);return r[Xb]=t,r},p9=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return zT(n,r,a),DI(function(){return VT(n,r,a)}),null},h9=GT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[Xb],o=[r],s="";typeof e.className=="string"?s=AI(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var c=Tp(o,void 0,x.useContext(Eu));s+=t.key+"-"+c.name;var u={};for(var d in e)qT.call(e,d)&&d!=="css"&&d!==Xb&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),x.createElement(x.Fragment,null,x.createElement(p9,{cache:t,serialized:c,isStringTag:typeof a=="string"}),x.createElement(a,u))}),m9=h9,gw=function(t,n){var r=arguments;if(n==null||!qT.call(n,"css"))return x.createElement.apply(void 0,r);var a=r.length,o=new Array(a);o[0]=m9,o[1]=f9(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={}))})(gw||(gw={}));var g9=GT(function(e,t){var n=e.styles,r=Tp([n],void 0,x.useContext(Eu)),a=x.useRef();return mw(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]),mw(function(){var o=a.current,s=o[0],c=o[1];if(c){o[1]=!1;return}if(r.next!==void 0&&VT(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 Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tp(t)}function ti(){var e=Sp.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 y9=/^((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|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)-.*))$/,v9=_I(function(e){return y9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),b9=v9,E9=function(t){return t!=="theme"},yw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?b9:E9},vw=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},T9=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return zT(n,r,a),DI(function(){return VT(n,r,a)}),null},S9=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=vw(t,n,r),u=c||yw(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 g=p[0];h.push(g[0]);for(var y=p.length,b=1;b<y;b++)h.push(p[b],g[b])}var E=GT(function(_,A,D){var w=d&&_.as||a,R="",O=[],k=_;if(_.theme==null){k={};for(var F in _)k[F]=_[F];k.theme=x.useContext(Eu)}typeof _.className=="string"?R=AI(A.registered,O,_.className):_.className!=null&&(R=_.className+" ");var G=Tp(h.concat(O),A.registered,k);R+=A.key+"-"+G.name,s!==void 0&&(R+=" "+s);var j=d&&c===void 0?yw(w):u,T={};for(var M in _)d&&M==="as"||j(M)&&(T[M]=_[M]);return T.className=R,D&&(T.ref=D),x.createElement(x.Fragment,null,x.createElement(T9,{cache:A,serialized:G,isStringTag:typeof w=="string"}),x.createElement(w,T))});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(_,A){var D=e(_,fg({},n,A,{shouldForwardProp:vw(E,A,!0)}));return D.apply(void 0,h)},E}},_9=["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"],hg=S9.bind(null);_9.forEach(function(e){hg[e]=hg(e)});function C9(e){return e==null||Object.keys(e).length===0}function RI(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(C9(a)?n:a):t;return P.jsx(g9,{styles:r})}function OI(e,t){return hg(e,t)}function A9(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const bw=[];function xs(e){return bw[0]=e,Tp(bw)}var Nv={exports:{}},yn={};/**
|
|
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 Ew;function x9(){if(Ew)return yn;Ew=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"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case e:switch(E=E.type,E){case n:case a:case r:case u:case d:case g: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 _}}case t:return _}}}return yn.ContextConsumer=o,yn.ContextProvider=s,yn.Element=e,yn.ForwardRef=c,yn.Fragment=n,yn.Lazy=h,yn.Memo=p,yn.Portal=t,yn.Profiler=a,yn.StrictMode=r,yn.Suspense=u,yn.SuspenseList=d,yn.isContextConsumer=function(E){return b(E)===o},yn.isContextProvider=function(E){return b(E)===s},yn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},yn.isForwardRef=function(E){return b(E)===c},yn.isFragment=function(E){return b(E)===n},yn.isLazy=function(E){return b(E)===h},yn.isMemo=function(E){return b(E)===p},yn.isPortal=function(E){return b(E)===t},yn.isProfiler=function(E){return b(E)===a},yn.isStrictMode=function(E){return b(E)===r},yn.isSuspense=function(E){return b(E)===u},yn.isSuspenseList=function(E){return b(E)===d},yn.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===y||E.getModuleId!==void 0)},yn.typeOf=b,yn}var Tw;function w9(){return Tw||(Tw=1,Nv.exports=x9()),Nv.exports}var II=w9();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 NI(e){if(x.isValidElement(e)||II.isValidElementType(e)||!qo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=NI(e[n])}),t}function Qr(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])||II.isValidElementType(t[a])?r[a]=t[a]:qo(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&qo(e[a])?r[a]=Qr(e[a],t[a],n):n.clone?r[a]=qo(t[a])?NI(t[a]):t[a]:r[a]=t[a]}),r}const D9=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 k9(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=D9(t),s=Object.keys(o);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+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 Sw(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 R9(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function O9(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 I9(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 N9={borderRadius:4};function mf(e,t){return t?Qr(e,t,{clone:!1}):e}const ay={xs:0,sm:600,md:900,lg:1200,xl:1536},_w={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ay[e]}px)`},L9={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ay[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Eo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||_w;return t.reduce((s,c,u)=>(s[o.up(o.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const o=r.breakpoints||_w;return Object.keys(t).reduce((s,c)=>{if(R9(o.keys,c)){const u=O9(r.containerQueries?r:L9,c);u&&(s[u]=n(t[c],c))}else if(Object.keys(o.values||ay).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 LI(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function Zb(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function P9(e,...t){const n=LI(e),r=[n,...t].reduce((a,o)=>Qr(a,o),{});return Zb(Object.keys(n),r)}function M9(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 Lv({values:e,breakpoints:t,base:n}){const r=n||M9(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(Dl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function oy(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 mg(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=oy(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=oy(u,r)||{};return Eo(s,c,h=>{let g=mg(d,a,h);return h===g&&typeof h=="string"&&(g=mg(d,a,`${t}${h==="default"?"":tn(h)}`,h)),n===!1?g:{[n]:g}})};return o.propTypes={},o.filterProps=[t],o}function $9(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const F9={m:"margin",p:"padding"},B9={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},U9=$9(e=>{if(e.length>2)if(Cw[e])e=Cw[e];else return[e];const[t,n]=e.split(""),r=F9[t],a=B9[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),WT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YT=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WT,...YT];function _p(e,t,n,r){const a=oy(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 iy(e){return _p(e,"spacing",8)}function kl(e,t){return typeof t=="string"||t==null?t:e(t)}function j9(e,t){return n=>e.reduce((r,a)=>(r[a]=kl(t,n),r),{})}function H9(e,t,n,r){if(!t.includes(n))return null;const a=U9(n),o=j9(a,r),s=e[n];return Eo(e,s,o)}function PI(e,t){const n=iy(e.theme);return Object.keys(e).map(r=>H9(e,t,r,n)).reduce(mf,{})}function Gn(e){return PI(e,WT)}Gn.propTypes={};Gn.filterProps=WT;function qn(e){return PI(e,YT)}qn.propTypes={};qn.filterProps=YT;function QT(e=8,t=iy({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 sy(...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]?mf(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Ja(e){return typeof e!="number"?e:`${e}px solid`}function uo(e,t){return tr({prop:e,themeKey:"borders",transform:t})}const z9=uo("border",Ja),V9=uo("borderTop",Ja),G9=uo("borderRight",Ja),q9=uo("borderBottom",Ja),W9=uo("borderLeft",Ja),Y9=uo("borderColor"),Q9=uo("borderTopColor"),K9=uo("borderRightColor"),X9=uo("borderBottomColor"),Z9=uo("borderLeftColor"),J9=uo("outline",Ja),eF=uo("outlineColor"),ly=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_p(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:kl(t,r)});return Eo(e,e.borderRadius,n)}return null};ly.propTypes={};ly.filterProps=["borderRadius"];sy(z9,V9,G9,q9,W9,Y9,Q9,K9,X9,Z9,ly,J9,eF);const cy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_p(e.theme,"spacing",8),n=r=>({gap:kl(t,r)});return Eo(e,e.gap,n)}return null};cy.propTypes={};cy.filterProps=["gap"];const uy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_p(e.theme,"spacing",8),n=r=>({columnGap:kl(t,r)});return Eo(e,e.columnGap,n)}return null};uy.propTypes={};uy.filterProps=["columnGap"];const dy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_p(e.theme,"spacing",8),n=r=>({rowGap:kl(t,r)});return Eo(e,e.rowGap,n)}return null};dy.propTypes={};dy.filterProps=["rowGap"];const tF=tr({prop:"gridColumn"}),nF=tr({prop:"gridRow"}),rF=tr({prop:"gridAutoFlow"}),aF=tr({prop:"gridAutoColumns"}),oF=tr({prop:"gridAutoRows"}),iF=tr({prop:"gridTemplateColumns"}),sF=tr({prop:"gridTemplateRows"}),lF=tr({prop:"gridTemplateAreas"}),cF=tr({prop:"gridArea"});sy(cy,uy,dy,tF,nF,rF,aF,oF,iF,sF,lF,cF);function Xc(e,t){return t==="grey"?t:e}const uF=tr({prop:"color",themeKey:"palette",transform:Xc}),dF=tr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xc}),fF=tr({prop:"backgroundColor",themeKey:"palette",transform:Xc});sy(uF,dF,fF);function ka(e){return e<=1&&e!==0?`${e*100}%`:e}const pF=tr({prop:"width",transform:ka}),KT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ay[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ka(n)}};return Eo(e,e.maxWidth,t)}return null};KT.filterProps=["maxWidth"];const hF=tr({prop:"minWidth",transform:ka}),mF=tr({prop:"height",transform:ka}),gF=tr({prop:"maxHeight",transform:ka}),yF=tr({prop:"minHeight",transform:ka});tr({prop:"size",cssProperty:"width",transform:ka});tr({prop:"size",cssProperty:"height",transform:ka});const vF=tr({prop:"boxSizing"});sy(pF,KT,hF,mF,gF,yF,vF);const Cp={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:ly},color:{themeKey:"palette",transform:Xc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xc},backgroundColor:{themeKey:"palette",transform:Xc},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:cy},rowGap:{style:dy},columnGap:{style:uy},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:KT},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 bF(...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 EF(e,t){return typeof e=="function"?e(t):e}function TF(){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 g=oy(a,d)||{};return h?h(s):Eo(s,r,b=>{let E=mg(g,p,b);return b===E&&typeof b=="string"&&(E=mg(g,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??Cp;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=LI(a.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const b=EF(d[y],a);if(b!=null)if(typeof b=="object")if(s[y])g=mf(g,e(y,b,a,s));else{const E=Eo({theme:a},b,_=>({[y]:_}));bF(E,b)?g[y]=t({sx:b,theme:a,nested:!0}):g=mf(g,E)}else g=mf(g,e(y,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":Sw(a,Zb(h,g))}:Sw(a,Zb(h,g))}return Array.isArray(r)?r.map(c):c(r)}return t}const Os=TF();Os.filterProps=["sx"];function SF(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 fy(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=k9(n),u=QT(a);let d=Qr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...N9,...o}},s);return d=I9(d),d.applyStyles=SF,d=t.reduce((p,h)=>Qr(p,h),d),d.unstable_sxConfig={...Cp,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Os({sx:h,theme:this})},d}function _F(e){return Object.keys(e).length===0}function XT(e=null){const t=x.useContext(Eu);return!t||_F(t)?e:t}const CF=fy();function Ap(e=CF){return XT(e)}function Pv(e){const t=xs(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ZT({styles:e,themeId:t,defaultTheme:n={}}){const r=Ap(n),a=t&&r[t]||r;let o=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(o)?o=o.map(s=>Pv(typeof s=="function"?s(a):s)):o=Pv(o)),P.jsx(RI,{styles:o})}const AF=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Cp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function JT(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=AF(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}}const Aw=e=>e,xF=()=>{let e=Aw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Aw}}},eS=xF();function MI(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=MI(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=MI(e))&&(r&&(r+=" "),r+=t);return r}function $I(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,o=OI("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Os);return x.forwardRef(function(u,d){const p=Ap(n),{className:h,component:g="div",...y}=JT(u);return P.jsx(o,{as:g,ref:d,className:An(h,a?a(r):r),theme:t&&p[t]||p,...y})})}const wF={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 ma(e,t,n="Mui"){const r=wF[t];return r?`${n}-${r}`:`${eS.generate(e)}-${t}`}function Zr(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=ma(e,a,n)}),r}const DF=Zr("MuiBox",["root"]),kF=$I({defaultClassName:DF.root,generateClassName:eS.generate});function FI(e){const{variants:t,...n}=e,r={variants:t,style:xs(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=xs(a.style))}),r}const RF=fy();function jm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function pl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OF(e){return e?(t,n)=>n[e]:null}function IF(e,t,n){e.theme=LF(e.theme)?n:e.theme[t]||e.theme}function Hm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Hm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?pl(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?pl(xs(s),n):s}return BI(e,r.variants,[a],n)}return r?.isProcessed?n?pl(xs(r.style),n):r.style:n?pl(xs(r),n):r}function BI(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?pl(xs(s.style(a)),r):s.style(a))):n.push(r?pl(xs(s.style),r):s.style)}return n}function UI(e={}){const{themeId:t,defaultTheme:n=RF,rootShouldForwardProp:r=jm,slotShouldForwardProp:a=jm}=e;function o(c){IF(c,t,n)}return(c,u={})=>{A9(c,k=>k.filter(F=>F!==Os));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=OF(MF(p)),...b}=u,E=d&&d.startsWith("Mui")||p?"components":"custom",_=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,A=g||!1;let D=jm;p==="Root"||p==="root"?D=r:p?D=a:PF(c)&&(D=void 0);const w=OI(c,{shouldForwardProp:D,label:NF(),...b}),R=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(G){return Hm(G,k,G.theme.modularCssLayers?E:void 0)};if(qo(k)){const F=FI(k);return function(j){return F.variants?Hm(j,F,j.theme.modularCssLayers?E:void 0):j.theme.modularCssLayers?pl(F.style,E):F.style}}return k},O=(...k)=>{const F=[],G=k.map(R),j=[];if(F.push(o),d&&y&&j.push(function(B){const X=B.theme.components?.[d]?.styleOverrides;if(!X)return null;const z={};for(const Z in X)z[Z]=Hm(B,X[Z],B.theme.modularCssLayers?"theme":void 0);return y(B,z)}),d&&!_&&j.push(function(B){const X=B.theme?.components?.[d]?.variants;return X?BI(B,X,[],B.theme.modularCssLayers?"theme":void 0):null}),A||j.push(Os),Array.isArray(G[0])){const U=G.shift(),B=new Array(F.length).fill(""),Y=new Array(j.length).fill("");let X;X=[...B,...U,...Y],X.raw=[...B,...U.raw,...Y],F.unshift(X)}const T=[...F,...G,...j],M=w(...T);return c.muiName&&(M.muiName=c.muiName),M};return w.withConfig&&(O.withConfig=w.withConfig),O}}function NF(e,t){return void 0}function LF(e){for(const t in e)return!1;return!0}function PF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function MF(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $F=UI();function zf(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]=zf(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 FF(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zf(t.components[n].defaultProps,r)}function BF({props:e,name:t,defaultTheme:n,themeId:r}){let a=Ap(n);return r&&(a=a[r]||a),FF({theme:a,name:t,props:e})}const Rl=typeof window<"u"?x.useLayoutEffect:x.useEffect;function UF(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function tS(e,t=0,n=1){return UF(e,t,n)}function jF(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 Is(e){if(e.type)return e;if(e.charAt(0)==="#")return Is(jF(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Dl(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(Dl(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const HF=e=>{const t=Is(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},of=(e,t)=>{try{return HF(e)}catch{return e}};function py(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 jI(e){e=Is(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])),py({type:c,values:u})}function Jb(e){e=Is(e);let t=e.type==="hsl"||e.type==="hsla"?Is(jI(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 zF(e,t){const n=Jb(e),r=Jb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jn(e,t){return e=Is(e),t=tS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,py(e)}function lm(e,t,n){try{return Jn(e,t)}catch{return e}}function nS(e,t){if(e=Is(e),t=tS(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 py(e)}function Tn(e,t,n){try{return nS(e,t)}catch{return e}}function rS(e,t){if(e=Is(e),t=tS(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 py(e)}function Sn(e,t,n){try{return rS(e,t)}catch{return e}}function VF(e,t=.15){return Jb(e)>.5?nS(e,t):rS(e,t)}function cm(e,t,n){try{return VF(e,t)}catch{return e}}const HI=x.createContext(null);function aS(){return x.useContext(HI)}const GF=typeof Symbol=="function"&&Symbol.for,qF=GF?Symbol.for("mui.nested"):"__THEME_NESTED__";function WF(e,t){return typeof t=="function"?t(e):{...e,...t}}function YF(e){const{children:t,theme:n}=e,r=aS(),a=x.useMemo(()=>{const o=r===null?{...n}:WF(r,n);return o!=null&&(o[qF]=r!==null),o},[n,r]);return P.jsx(HI.Provider,{value:a,children:t})}const zI=x.createContext();function QF({value:e,...t}){return P.jsx(zI.Provider,{value:e??!0,...t})}const VI=()=>x.useContext(zI)??!1,GI=x.createContext(void 0);function KF({value:e,children:t}){return P.jsx(GI.Provider,{value:e,children:t})}function XF(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?zf(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?zf(a,r,t.components.mergeClassNameAndStyle):r}function ZF({props:e,name:t}){const n=x.useContext(GI);return XF({props:e,name:t,theme:{components:n}})}let xw=0;function JF(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(xw+=1,n(`mui-${xw}`))},[t]),r}const eB={...lg},ww=eB.useId;function hy(e){if(ww!==void 0){const t=ww();return e??t}return JF(e)}function tB(e){const t=XT(),n=hy()||"",{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};`,Rl(()=>{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(ZT,{styles:a}):null}const Dw={};function kw(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 qI(e){const{children:t,theme:n,themeId:r}=e,a=XT(Dw),o=aS()||Dw,s=kw(r,a,n),c=kw(r,o,n,!0),u=(r?s[r]:s).direction==="rtl",d=tB(s);return P.jsx(YF,{theme:c,children:P.jsx(Eu.Provider,{value:s,children:P.jsx(QF,{value:u,children:P.jsxs(KF,{value:r?s[r].components:s.components,children:[d,t]})})})})}const Rw={theme:void 0};function WI(e){let t,n;return function(a){let o=t;return(o===void 0||a.theme!==n)&&(Rw.theme=a.theme,o=FI(e(Rw)),t=o,n=a.theme),o}}const oS="mode",iS="color-scheme",nB="data-color-scheme";function rB(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:a=oS,colorSchemeStorageKey:o=iS,attribute:s=nB,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let d="",p=s;if(s==="class"&&(p=".%s"),s==="data"&&(p="[data-%s]"),p.startsWith(".")){const g=p.substring(1);d+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
|
|
78
|
-
${c}.classList.add('${g}'.replace('%s', colorScheme));`}const h=p.match(/\[([^\]]+)\]/);if(h){const[g,y]=h[1].split("=");y||(d+=`${c}.removeAttribute('${g}'.replace('%s', light));
|
|
79
|
-
${c}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
|
|
80
|
-
${c}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.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 aB(){}const oB=({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 aB;const r=a=>{const o=a.newValue;a.key===e&&n(o)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Mv(){}function Ow(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function YI(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 iB(e){return YI(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function sB(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:a=[],modeStorageKey:o=oS,colorSchemeStorageKey:s=iS,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=oB,noSsr:d=!1}=e,p=a.join(","),h=a.length>1,g=x.useMemo(()=>u?.({key:o,storageWindow:c}),[u,o,c]),y=x.useMemo(()=>u?.({key:`${s}-light`,storageWindow:c}),[u,s,c]),b=x.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:c}),[u,s,c]),[E,_]=x.useState(()=>{const G=g?.get(t)||t,j=y?.get(n)||n,T=b?.get(r)||r;return{mode:G,systemMode:Ow(G),lightColorScheme:j,darkColorScheme:T}}),[A,D]=x.useState(d||!h);x.useEffect(()=>{D(!0)},[]);const w=iB(E),R=x.useCallback(G=>{_(j=>{if(G===j.mode)return j;const T=G??t;return g?.set(T),{...j,mode:T,systemMode:Ow(T)}})},[g,t]),O=x.useCallback(G=>{G?typeof G=="string"?G&&!p.includes(G)?console.error(`\`${G}\` does not exist in \`theme.colorSchemes\`.`):_(j=>{const T={...j};return YI(j,M=>{M==="light"&&(y?.set(G),T.lightColorScheme=G),M==="dark"&&(b?.set(G),T.darkColorScheme=G)}),T}):_(j=>{const T={...j},M=G.light===null?n:G.light,U=G.dark===null?r:G.dark;return M&&(p.includes(M)?(T.lightColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),U&&(p.includes(U)?(T.darkColorScheme=U,b?.set(U)):console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`)),T}):_(j=>(y?.set(n),b?.set(r),{...j,lightColorScheme:n,darkColorScheme:r}))},[p,y,b,n,r]),k=x.useCallback(G=>{E.mode==="system"&&_(j=>{const T=G?.matches?"dark":"light";return j.systemMode===T?j:{...j,systemMode:T}})},[E.mode]),F=x.useRef(k);return F.current=k,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const G=(...T)=>F.current(...T),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(G),G(j),()=>{j.removeListener(G)}},[h]),x.useEffect(()=>{if(h){const G=g?.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&R(M||t)})||Mv,j=y?.subscribe(M=>{(!M||p.match(M))&&O({light:M})})||Mv,T=b?.subscribe(M=>{(!M||p.match(M))&&O({dark:M})})||Mv;return()=>{G(),j(),T()}}},[O,R,p,t,c,h,g,y,b]),{...E,mode:A?E.mode:void 0,systemMode:A?E.systemMode:void 0,colorScheme:A?w:void 0,setMode:R,setColorScheme:O}}const lB="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function cB(e){const{themeId:t,theme:n={},modeStorageKey:r=oS,colorSchemeStorageKey:a=iS,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={},g={};function y(A){const{children:D,theme:w,modeStorageKey:R=r,colorSchemeStorageKey:O=a,disableTransitionOnChange:k=o,storageManager:F,storageWindow:G=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:U=!1,defaultMode:B="system",forceThemeRerender:Y=!1,noSsr:X}=A,z=x.useRef(!1),Z=aS(),J=x.useContext(d),oe=!!J&&!M,I=x.useMemo(()=>w||(typeof n=="function"?n():n),[w]),re=I[t],ee=re||I,{colorSchemes:L=h,components:te=g,cssVarPrefix:be}=ee,de=Object.keys(L).filter(ce=>!!L[ce]).join(","),xe=x.useMemo(()=>de.split(","),[de]),ge=typeof s=="string"?s:s.light,Oe=typeof s=="string"?s:s.dark,Ue=L[ge]&&L[Oe]?B:L[ee.defaultColorScheme]?.palette?.mode||ee.palette?.mode,{mode:Ie,setMode:Ye,systemMode:Ve,lightColorScheme:ke,darkColorScheme:Rt,colorScheme:Et,setColorScheme:je}=sB({supportedColorSchemes:xe,defaultLightColorScheme:ge,defaultDarkColorScheme:Oe,modeStorageKey:R,colorSchemeStorageKey:O,defaultMode:Ue,storageManager:F,storageWindow:G,noSsr:X});let St=Ie,ot=Et;oe&&(St=J.mode,ot=J.colorScheme);let Ze=ot||ee.defaultColorScheme;ee.vars&&!Y&&(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(We=>{Be[We]&&typeof Be[We]=="object"?me[We]={...me[We],...Be[We]}:me[We]=Be[We]})}return c?c(me):me},[ee,Ze,te,L,be]),Pe=ee.colorSchemeSelector;Rl(()=>{if(ot&&T&&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("."))T.classList.remove(...xe.map(Be=>me.substring(1).replace("%s",Be))),T.classList.add(me.substring(1).replace("%s",ot));else{const Be=me.replace("%s",ot).match(/\[([^\]]+)\]/);if(Be){const[We,Qe]=Be[1].split("=");Qe||xe.forEach(gt=>{T.removeAttribute(We.replace(ot,gt))}),T.setAttribute(We,Qe?Qe.replace(/"|'/g,""):"")}else T.setAttribute(me,ot)}}},[ot,Pe,T,xe]),x.useEffect(()=>{let ce;if(k&&z.current&&j){const me=j.createElement("style");me.appendChild(j.createTextNode(lB)),j.head.appendChild(me),window.getComputedStyle(j.body),ce=setTimeout(()=>{j.head.removeChild(me)},1)}return()=>{clearTimeout(ce)}},[ot,k,j]),x.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);const Ot=x.useMemo(()=>({allColorSchemes:xe,colorScheme:ot,darkColorScheme:Rt,lightColorScheme:ke,mode:St,setColorScheme:je,setMode:Ye,systemMode:Ve}),[xe,ot,Rt,ke,St,je,Ye,Ve,Ge.colorSchemeSelector]);let Dn=!0;(U||ee.cssVariables===!1||oe&&Z?.cssVarPrefix===be)&&(Dn=!1);const bt=P.jsxs(x.Fragment,{children:[P.jsx(qI,{themeId:re?t:void 0,theme:Ge,children:D}),Dn&&P.jsx(RI,{styles:Ge.generateStyleSheets?.()||[]})]});return oe?bt:P.jsx(d.Provider,{value:Ot,children:bt})}const b=typeof s=="string"?s:s.light,E=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:p,getInitColorSchemeScript:A=>rB({colorSchemeStorageKey:a,defaultLightColorScheme:b,defaultDarkColorScheme:E,modeStorageKey:r,...A})}}function QI(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 Iw=(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])})},uB=(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)},dB=(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 $v(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return uB(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=dB(c,u);Object.assign(a,{[p]:h}),Iw(o,c,`var(${p})`,d),Iw(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function fB(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=$v(u,t);let g=h;const y={},{[c]:b,...E}=o;if(Object.entries(E||{}).forEach(([w,R])=>{const{vars:O,css:k,varsWithDefaults:F}=$v(R,t);g=Qr(g,F),y[w]={css:k,vars:O}}),b){const{css:w,vars:R,varsWithDefaults:O}=$v(b,t);g=Qr(g,O),y[c]={css:w,vars:R}}function _(w,R){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: ${o[w]?.palette?.mode||w})`]:{":root":R}};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={...d};return Object.entries(y).forEach(([,{vars:R}])=>{w=Qr(w,R)}),w},generateStyleSheets:()=>{const w=[],R=e.defaultColorScheme||"light";function O(G,j){Object.keys(j).length&&w.push(typeof G=="string"?{[G]:{...j}}:G)}O(n(void 0,{...p}),p);const{[R]:k,...F}=y;if(k){const{css:G}=k,j=o[R]?.palette?.mode,T=!r&&j?{colorScheme:j,...G}:{...G};O(n(R,{...T}),T)}return Object.entries(F).forEach(([G,{css:j}])=>{const T=o[G]?.palette?.mode,M=!r&&T?{colorScheme:T,...j}:{...j};O(n(G,{...M}),M)}),w}}}function pB(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 hB=fy(),mB=$F("div",{name:"MuiStack",slot:"Root"});function gB(e){return BF({props:e,name:"MuiStack",defaultTheme:hB})}function yB(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 vB=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],bB=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Eo({theme:t},Lv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=iy(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=Lv({values:e.direction,base:a}),s=Lv({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,d,p)=>{if(!o[u]){const g=d>0?o[p[d-1]]:"column";o[u]=g}}),n=Qr(n,Eo({theme:t},s,(u,d)=>e.useFlexGap?{gap:kl(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${vB(d?o[d]:e.direction)}`]:kl(r,u)}}))}return n=P9(t.breakpoints,n),n};function sS(e={}){const{createStyledComponent:t=mB,useThemeProps:n=gB,componentName:r="MuiStack"}=e,a=()=>Pa({root:["root"]},u=>ma(r,u),{}),o=t(bB);return x.forwardRef(function(u,d){const p=n(u),h=JT(p),{component:g="div",direction:y="column",spacing:b=0,divider:E,children:_,className:A,useFlexGap:D=!1,...w}=h,R={direction:y,spacing:b,useFlexGap:D},O=a();return P.jsx(o,{as:g,ownerState:R,ref:d,className:An(O.root,A),...w,children:E?yB(_,E):_})})}const EB=sS();function KI(){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:Bf.white,default:Bf.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 TB=KI();function XI(){return{text:{primary:Bf.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:Bf.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 Nw=XI();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=rS(e.main,a):t==="dark"&&(e.dark=nS(e.main,o)))}function SB(e="light"){return e==="dark"?{main:Dc[200],light:Dc[50],dark:Dc[400]}:{main:Dc[700],light:Dc[400],dark:Dc[800]}}function _B(e="light"){return e==="dark"?{main:wc[200],light:wc[50],dark:wc[400]}:{main:wc[500],light:wc[300],dark:wc[700]}}function CB(e="light"){return e==="dark"?{main:xc[500],light:xc[300],dark:xc[700]}:{main:xc[700],light:xc[400],dark:xc[800]}}function AB(e="light"){return e==="dark"?{main:kc[400],light:kc[300],dark:kc[700]}:{main:kc[700],light:kc[500],dark:kc[900]}}function xB(e="light"){return e==="dark"?{main:Rc[400],light:Rc[300],dark:Rc[700]}:{main:Rc[800],light:Rc[500],dark:Rc[900]}}function wB(e="light"){return e==="dark"?{main:Ld[400],light:Ld[300],dark:Ld[700]}:{main:"#ed6c02",light:Ld[500],dark:Ld[900]}}function lS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,o=e.primary||SB(t),s=e.secondary||_B(t),c=e.error||CB(t),u=e.info||AB(t),d=e.success||xB(t),p=e.warning||wB(t);function h(E){return zF(E,Nw.text.primary)>=n?Nw.text.primary:TB.text.primary}const g=({color:E,name:_,mainShade:A=500,lightShade:D=300,darkShade:w=700})=>{if(E={...E},!E.main&&E[A]&&(E.main=E[A]),!E.hasOwnProperty("main"))throw new Error(Dl(11,_?` (${_})`:"",A));if(typeof E.main!="string")throw new Error(Dl(12,_?` (${_})`:"",JSON.stringify(E.main)));return Lw(E,"light",D,r),Lw(E,"dark",w,r),E.contrastText||(E.contrastText=h(E.main)),E};let y;return t==="light"?y=KI():t==="dark"&&(y=XI()),Qr({common:{...Bf},mode:t,primary:g({color:o,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:x8,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},a)}function DB(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 kB(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function RB(e){return Math.round(e*1e5)/1e5}const Pw={textTransform:"uppercase"},Mw='"Roboto", "Helvetica", "Arial", sans-serif';function ZI(e,t){const{fontFamily:n=Mw,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,g=r/14,y=p||(_=>`${_/u*g}rem`),b=(_,A,D,w,R)=>({fontFamily:n,fontWeight:_,fontSize:y(A),lineHeight:D,...n===Mw?{letterSpacing:`${RB(w/A)}em`}:{},...R,...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,Pw),caption:b(o,12,1.66,.4),overline:b(o,12,2.66,1,Pw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qr({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:c,...E},h,{clone:!1})}const OB=.2,IB=.14,NB=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${OB})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${IB})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NB})`].join(",")}const LB=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],PB={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)"},MB={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $w(e){return`${Math.round(e)}ms`}function $B(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function FB(e){const t={...PB,...e.easing},n={...MB,...e.duration};return{getAutoHeightDuration:$B,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:$w(s)} ${c} ${typeof u=="string"?u:$w(u)}`).join(",")},...e,easing:t,duration:n}}const BB={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function UB(e){return qo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function JI(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];!UB(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';
|
|
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 eE(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Dl(20));const p=lS(o),h=fy(e);let g=Qr(h,{mixins:kB(h.breakpoints,r),palette:p,shadows:LB.slice(),typography:ZI(p,c),transitions:FB(s),zIndex:{...BB}});return g=Qr(g,d),g=t.reduce((y,b)=>Qr(y,b),g),g.unstable_sxConfig={...Cp,...d?.unstable_sxConfig},g.unstable_sx=function(b){return Os({sx:b,theme:this})},g.toRuntimeSource=JI,g}function tE(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 jB=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=tE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function e3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function t3(e){return e==="dark"?jB:[]}function HB(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=lS(t);return{palette:o,opacity:{...e3(o.mode),...n},overlays:r||t3(o.mode),...a}}function zB(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 VB=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],GB=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 VB(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 qB(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Se(e,t,n){!e[t]&&n&&(e[t]=n)}function sf(e){return typeof e!="string"||!e.startsWith("hsl")?e:jI(e)}function Si(e,t){`${t}Channel`in e||(e[`${t}Channel`]=of(sf(e[t])))}function WB(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{}},YB=(e="mui")=>QI(e);function Fv(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=HB({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...s}=eE({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...e3(a),...t?.opacity},overlays:t?.overlays||t3(a)},s}function QB(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=zB,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=YB(o),{[h]:y,light:b,dark:E,..._}=n,A={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Dl(21,h));const w=Fv(A,D,d,h);b&&!A.light&&Fv(A,b,void 0,"light"),E&&!A.dark&&Fv(A,E,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:A,font:{...DB(w.typography),...w.font},spacing:WB(d.spacing)};Object.keys(R.colorSchemes).forEach(j=>{const T=R.colorSchemes[j].palette,M=U=>{const B=U.split("-"),Y=B[1],X=B[2];return g(U,T[Y][X])};if(T.mode==="light"&&(Se(T.common,"background","#fff"),Se(T.common,"onBackground","#000")),T.mode==="dark"&&(Se(T.common,"background","#000"),Se(T.common,"onBackground","#fff")),qB(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Se(T.Alert,"errorColor",Tn(T.error.light,.6)),Se(T.Alert,"infoColor",Tn(T.info.light,.6)),Se(T.Alert,"successColor",Tn(T.success.light,.6)),Se(T.Alert,"warningColor",Tn(T.warning.light,.6)),Se(T.Alert,"errorFilledBg",M("palette-error-main")),Se(T.Alert,"infoFilledBg",M("palette-info-main")),Se(T.Alert,"successFilledBg",M("palette-success-main")),Se(T.Alert,"warningFilledBg",M("palette-warning-main")),Se(T.Alert,"errorFilledColor",Lo(()=>T.getContrastText(T.error.main))),Se(T.Alert,"infoFilledColor",Lo(()=>T.getContrastText(T.info.main))),Se(T.Alert,"successFilledColor",Lo(()=>T.getContrastText(T.success.main))),Se(T.Alert,"warningFilledColor",Lo(()=>T.getContrastText(T.warning.main))),Se(T.Alert,"errorStandardBg",Sn(T.error.light,.9)),Se(T.Alert,"infoStandardBg",Sn(T.info.light,.9)),Se(T.Alert,"successStandardBg",Sn(T.success.light,.9)),Se(T.Alert,"warningStandardBg",Sn(T.warning.light,.9)),Se(T.Alert,"errorIconColor",M("palette-error-main")),Se(T.Alert,"infoIconColor",M("palette-info-main")),Se(T.Alert,"successIconColor",M("palette-success-main")),Se(T.Alert,"warningIconColor",M("palette-warning-main")),Se(T.AppBar,"defaultBg",M("palette-grey-100")),Se(T.Avatar,"defaultBg",M("palette-grey-400")),Se(T.Button,"inheritContainedBg",M("palette-grey-300")),Se(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Se(T.Chip,"defaultBorder",M("palette-grey-400")),Se(T.Chip,"defaultAvatarColor",M("palette-grey-700")),Se(T.Chip,"defaultIconColor",M("palette-grey-700")),Se(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Se(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Se(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Se(T.LinearProgress,"primaryBg",Sn(T.primary.main,.62)),Se(T.LinearProgress,"secondaryBg",Sn(T.secondary.main,.62)),Se(T.LinearProgress,"errorBg",Sn(T.error.main,.62)),Se(T.LinearProgress,"infoBg",Sn(T.info.main,.62)),Se(T.LinearProgress,"successBg",Sn(T.success.main,.62)),Se(T.LinearProgress,"warningBg",Sn(T.warning.main,.62)),Se(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Se(T.Slider,"primaryTrack",Sn(T.primary.main,.62)),Se(T.Slider,"secondaryTrack",Sn(T.secondary.main,.62)),Se(T.Slider,"errorTrack",Sn(T.error.main,.62)),Se(T.Slider,"infoTrack",Sn(T.info.main,.62)),Se(T.Slider,"successTrack",Sn(T.success.main,.62)),Se(T.Slider,"warningTrack",Sn(T.warning.main,.62));const U=cm(T.background.default,.8);Se(T.SnackbarContent,"bg",U),Se(T.SnackbarContent,"color",Lo(()=>T.getContrastText(U))),Se(T.SpeedDialAction,"fabHoverBg",cm(T.background.paper,.15)),Se(T.StepConnector,"border",M("palette-grey-400")),Se(T.StepContent,"border",M("palette-grey-400")),Se(T.Switch,"defaultColor",M("palette-common-white")),Se(T.Switch,"defaultDisabledColor",M("palette-grey-100")),Se(T.Switch,"primaryDisabledColor",Sn(T.primary.main,.62)),Se(T.Switch,"secondaryDisabledColor",Sn(T.secondary.main,.62)),Se(T.Switch,"errorDisabledColor",Sn(T.error.main,.62)),Se(T.Switch,"infoDisabledColor",Sn(T.info.main,.62)),Se(T.Switch,"successDisabledColor",Sn(T.success.main,.62)),Se(T.Switch,"warningDisabledColor",Sn(T.warning.main,.62)),Se(T.TableCell,"border",Sn(lm(T.divider,1),.88)),Se(T.Tooltip,"bg",lm(T.grey[700],.92))}if(T.mode==="dark"){Se(T.Alert,"errorColor",Sn(T.error.light,.6)),Se(T.Alert,"infoColor",Sn(T.info.light,.6)),Se(T.Alert,"successColor",Sn(T.success.light,.6)),Se(T.Alert,"warningColor",Sn(T.warning.light,.6)),Se(T.Alert,"errorFilledBg",M("palette-error-dark")),Se(T.Alert,"infoFilledBg",M("palette-info-dark")),Se(T.Alert,"successFilledBg",M("palette-success-dark")),Se(T.Alert,"warningFilledBg",M("palette-warning-dark")),Se(T.Alert,"errorFilledColor",Lo(()=>T.getContrastText(T.error.dark))),Se(T.Alert,"infoFilledColor",Lo(()=>T.getContrastText(T.info.dark))),Se(T.Alert,"successFilledColor",Lo(()=>T.getContrastText(T.success.dark))),Se(T.Alert,"warningFilledColor",Lo(()=>T.getContrastText(T.warning.dark))),Se(T.Alert,"errorStandardBg",Tn(T.error.light,.9)),Se(T.Alert,"infoStandardBg",Tn(T.info.light,.9)),Se(T.Alert,"successStandardBg",Tn(T.success.light,.9)),Se(T.Alert,"warningStandardBg",Tn(T.warning.light,.9)),Se(T.Alert,"errorIconColor",M("palette-error-main")),Se(T.Alert,"infoIconColor",M("palette-info-main")),Se(T.Alert,"successIconColor",M("palette-success-main")),Se(T.Alert,"warningIconColor",M("palette-warning-main")),Se(T.AppBar,"defaultBg",M("palette-grey-900")),Se(T.AppBar,"darkBg",M("palette-background-paper")),Se(T.AppBar,"darkColor",M("palette-text-primary")),Se(T.Avatar,"defaultBg",M("palette-grey-600")),Se(T.Button,"inheritContainedBg",M("palette-grey-800")),Se(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),Se(T.Chip,"defaultBorder",M("palette-grey-700")),Se(T.Chip,"defaultAvatarColor",M("palette-grey-300")),Se(T.Chip,"defaultIconColor",M("palette-grey-300")),Se(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Se(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Se(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Se(T.LinearProgress,"primaryBg",Tn(T.primary.main,.5)),Se(T.LinearProgress,"secondaryBg",Tn(T.secondary.main,.5)),Se(T.LinearProgress,"errorBg",Tn(T.error.main,.5)),Se(T.LinearProgress,"infoBg",Tn(T.info.main,.5)),Se(T.LinearProgress,"successBg",Tn(T.success.main,.5)),Se(T.LinearProgress,"warningBg",Tn(T.warning.main,.5)),Se(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Se(T.Slider,"primaryTrack",Tn(T.primary.main,.5)),Se(T.Slider,"secondaryTrack",Tn(T.secondary.main,.5)),Se(T.Slider,"errorTrack",Tn(T.error.main,.5)),Se(T.Slider,"infoTrack",Tn(T.info.main,.5)),Se(T.Slider,"successTrack",Tn(T.success.main,.5)),Se(T.Slider,"warningTrack",Tn(T.warning.main,.5));const U=cm(T.background.default,.98);Se(T.SnackbarContent,"bg",U),Se(T.SnackbarContent,"color",Lo(()=>T.getContrastText(U))),Se(T.SpeedDialAction,"fabHoverBg",cm(T.background.paper,.15)),Se(T.StepConnector,"border",M("palette-grey-600")),Se(T.StepContent,"border",M("palette-grey-600")),Se(T.Switch,"defaultColor",M("palette-grey-300")),Se(T.Switch,"defaultDisabledColor",M("palette-grey-600")),Se(T.Switch,"primaryDisabledColor",Tn(T.primary.main,.55)),Se(T.Switch,"secondaryDisabledColor",Tn(T.secondary.main,.55)),Se(T.Switch,"errorDisabledColor",Tn(T.error.main,.55)),Se(T.Switch,"infoDisabledColor",Tn(T.info.main,.55)),Se(T.Switch,"successDisabledColor",Tn(T.success.main,.55)),Se(T.Switch,"warningDisabledColor",Tn(T.warning.main,.55)),Se(T.TableCell,"border",Tn(lm(T.divider,1),.68)),Se(T.Tooltip,"bg",lm(T.grey[700],.92))}Si(T.background,"default"),Si(T.background,"paper"),Si(T.common,"background"),Si(T.common,"onBackground"),Si(T,"divider"),Object.keys(T).forEach(U=>{const B=T[U];U!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&Se(T[U],"mainChannel",of(sf(B.main))),B.light&&Se(T[U],"lightChannel",of(sf(B.light))),B.dark&&Se(T[U],"darkChannel",of(sf(B.dark))),B.contrastText&&Se(T[U],"contrastTextChannel",of(sf(B.contrastText))),U==="text"&&(Si(T[U],"primary"),Si(T[U],"secondary")),U==="action"&&(B.active&&Si(T[U],"active"),B.selected&&Si(T[U],"selected")))})}),R=t.reduce((j,T)=>Qr(j,T),R);const O={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:s,getSelector:GB(R)},{vars:k,generateThemeVars:F,generateStyleSheets:G}=fB(R,O);return R.vars=k,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([j,T])=>{R[j]=T}),R.generateThemeVars=F,R.generateStyleSheets=G,R.generateSpacing=function(){return QT(d.spacing,iy(this))},R.getColorSchemeSelector=pB(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Cp,...d?.unstable_sxConfig},R.unstable_sx=function(T){return Os({sx:T,theme:this})},R.toRuntimeSource=JI,R}function Fw(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:lS({...n===!0?{}:n.palette,mode:t})})}function my(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 eE(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=eE({...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},Fw(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Fw(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),QB({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const cS=my();function uS(){const e=Ap(cS);return e[Qo]||e}function KB(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const n3=e=>KB(e)&&e!=="classes",xt=UI({themeId:Qo,defaultTheme:cS,rootShouldForwardProp:n3});function XB({theme:e,...t}){const n=Qo in e?e[Qo]:void 0;return P.jsx(qI,{...t,themeId:n?Qo:void 0,theme:n||e})}const um={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ZB}=cB({themeId:Qo,theme:()=>my({cssVariables:!0}),colorSchemeStorageKey:um.colorSchemeStorageKey,modeStorageKey:um.modeStorageKey,defaultColorScheme:{light:um.defaultLightColorScheme,dark:um.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:ZI(e.palette,e.typography)};return t.unstable_sx=function(r){return Os({sx:r,theme:this})},t}}),JB=ZB;function eU({theme:e,...t}){const n=x.useMemo(()=>{if(typeof e=="function")return e;const r=Qo in e?e[Qo]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?P.jsx(XB,{theme:n,...t}):P.jsx(JB,{theme:e,...t})}function tU(e){return P.jsx(ZT,{...e,defaultTheme:cS,themeId:Qo})}function r3(e){return function(n){return P.jsx(tU,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function nU(){return JT}const To=WI;function Jr(e){return ZF(e)}function rU(e){return ma("MuiSvgIcon",e)}Zr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aU=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${tn(t)}`,`fontSize${tn(n)}`]};return Pa(a,rU,r)},oU=xt("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)}`]]}})(To(({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}}]}))),nE=x.forwardRef(function(t,n){const r=Jr({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:g="0 0 24 24",...y}=r,b=x.isValidElement(a)&&a.type==="svg",E={...r,color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:b},_={};p||(_.viewBox=g);const A=aU(E);return P.jsxs(oU,{as:c,className:An(A.root,o),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,..._,...y,...b&&a.props,ownerState:E,children:[b?a.props.children:a,h?P.jsx("title",{children:h}):null]})});nE.muiName="SvgIcon";function a3(e,t){function n(r,a){return P.jsx(nE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=nE.muiName,x.memo(x.forwardRef(n))}function Bw(e){return e&&e.ownerDocument||document}function Uw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function iU(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 Zc(e){const t=x.useRef(e);return Rl(()=>{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 o3(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 rE(e,t){return rE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rE(e,t)}function i3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rE(e,t)}const jw={disabled:!1},gg=Tt.createContext(null);var sU=function(t){return t.scrollTop},lf="unmounted",ol="exited",il="entering",zc="entered",aE="exiting",Fi=(function(e){i3(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=ol,o.appearStatus=il):u=zc:r.unmountOnExit||r.mountOnEnter?u=lf:u=ol,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===lf?{status:ol}: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!==il&&s!==zc&&(o=il):(s===il||s===zc)&&(o=aE)}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===il){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this);s&&sU(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ol&&this.setState({status:lf})},n.performEnter=function(a){var o=this,s=this.props.enter,c=this.context?this.context.isMounting:a,u=this.props.nodeRef?[c]:[Es.findDOMNode(this),c],d=u[0],p=u[1],h=this.getTimeouts(),g=c?h.appear:h.enter;if(!a&&!s||jw.disabled){this.safeSetState({status:zc},function(){o.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:il},function(){o.props.onEntering(d,p),o.onTransitionEnd(g,function(){o.safeSetState({status:zc},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:Es.findDOMNode(this);if(!o||jw.disabled){this.safeSetState({status:ol},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:aE},function(){a.props.onExiting(c),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ol},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:Es.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===lf)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=o3(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(gg.Provider,{value:null},typeof s=="function"?s(a,c):Tt.cloneElement(Tt.Children.only(s),c))},t})(Tt.Component);Fi.contextType=gg;Fi.propTypes={};function Oc(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Oc,onEntering:Oc,onEntered:Oc,onExit:Oc,onExiting:Oc,onExited:Oc};Fi.UNMOUNTED=lf;Fi.EXITED=ol;Fi.ENTERING=il;Fi.ENTERED=zc;Fi.EXITING=aE;function lU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dS(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 cU(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 hl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function uU(e,t){return dS(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:hl(n,"appear",e),enter:hl(n,"enter",e),exit:hl(n,"exit",e)})})}function dU(e,t,n){var r=dS(e.children),a=cU(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:hl(s,"exit",e),enter:hl(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:hl(s,"exit",e),enter:hl(s,"enter",e)}))}}),a}var fU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pU={component:"div",childFactory:function(t){return t}},fS=(function(e){i3(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=o.handleExited.bind(lU(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?uU(a,c):dU(a,s,c),firstRender:!1}},n.handleExited=function(a,o){var s=dS(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(c){var u=fg({},c.children);return delete u[a.key],{children:u}}))},n.render=function(){var a=this.props,o=a.component,s=a.childFactory,c=o3(a,["component","childFactory"]),u=this.state.contextValue,d=fU(this.state.children).map(s);return delete c.appear,delete c.enter,delete c.exit,o===null?Tt.createElement(gg.Provider,{value:u},d):Tt.createElement(gg.Provider,{value:u},Tt.createElement(o,c,d))},t})(Tt.Component);fS.propTypes={};fS.defaultProps=pU;const Hw={};function s3(e,t){const n=x.useRef(Hw);return n.current===Hw&&(n.current=e(t)),n}const hU=[];function mU(e){x.useEffect(e,hU)}class gy{static create(){return new gy}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 qc(){const e=s3(gy.create).current;return mU(e.disposeEffect),e}const gU=e=>e.scrollTop;function zw(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 yU(e){return ma("MuiPaper",e)}Zr("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 vU=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Pa(o,yU,a)},bU=xt("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}`]]}})(To(({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)"}}]}))),EU=x.forwardRef(function(t,n){const r=Jr({props:t,name:"MuiPaper"}),a=uS(),{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},g=vU(h);return P.jsx(bU,{as:s,ownerState:h,className:An(g.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(${Jn("#fff",tE(c))}, ${Jn("#fff",tE(c))})`}},...p.style}})});function TU(e){return typeof e=="string"}function l3(e,t,n){return e===void 0||TU(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function c3(e,t,n){return typeof e=="function"?e(t,n):e}function SU(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 Vw(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 u3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const y=An(n?.className,o,a?.className,r?.className),b={...n?.style,...a?.style,...r?.style},E={...n,...a,...r};return y.length>0&&(E.className=y),Object.keys(b).length>0&&(E.style=b),{props:E,internalRef:void 0}}const s=SU({...a,...r}),c=Vw(r),u=Vw(a),d=t(s),p=An(d?.className,n?.className,o,a?.className,r?.className),h={...d?.style,...n?.style,...a?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function dm(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},...g}=o,y=p[e]||r,b=c3(h[e],a),{props:{component:E,..._},internalRef:A}=u3({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Ni(A,b?.ref,t.ref),w=e==="root"?E||d:E,R=l3(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,..._,...w&&!c&&{as:w},...w&&c&&{component:w},ref:D},a);return[y,R]}function yg(e){try{return e.matches(":focus-visible")}catch{}return!1}class vg{static create(){return new vg}static use(){const t=s3(vg.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=CU(),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 _U(){return vg.use()}function CU(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function AU(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),g=An(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={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:g,style:y,children:P.jsx("span",{className:b})})}const Ka=Zr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oE=550,xU=80,wU=ti`
|
|
112
|
-
0% {
|
|
113
|
-
transform: scale(0);
|
|
114
|
-
opacity: 0.1;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
100% {
|
|
118
|
-
transform: scale(1);
|
|
119
|
-
opacity: 0.3;
|
|
120
|
-
}
|
|
121
|
-
`,DU=ti`
|
|
122
|
-
0% {
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
100% {
|
|
127
|
-
opacity: 0;
|
|
128
|
-
}
|
|
129
|
-
`,kU=ti`
|
|
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
|
-
`,RU=xt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OU=xt(AU,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
-
opacity: 0;
|
|
143
|
-
position: absolute;
|
|
144
|
-
|
|
145
|
-
&.${Ka.rippleVisible} {
|
|
146
|
-
opacity: 0.3;
|
|
147
|
-
transform: scale(1);
|
|
148
|
-
animation-name: ${wU};
|
|
149
|
-
animation-duration: ${oE}ms;
|
|
150
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&.${Ka.ripplePulsate} {
|
|
154
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& .${Ka.child} {
|
|
158
|
-
opacity: 1;
|
|
159
|
-
display: block;
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 100%;
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
background-color: currentColor;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
& .${Ka.childLeaving} {
|
|
167
|
-
opacity: 0;
|
|
168
|
-
animation-name: ${DU};
|
|
169
|
-
animation-duration: ${oE}ms;
|
|
170
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
& .${Ka.childPulsate} {
|
|
174
|
-
position: absolute;
|
|
175
|
-
/* @noflip */
|
|
176
|
-
left: 0px;
|
|
177
|
-
top: 0;
|
|
178
|
-
animation-name: ${kU};
|
|
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
|
-
`,IU=x.forwardRef(function(t,n){const r=Jr({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 g=x.useRef(!1),y=qc(),b=x.useRef(null),E=x.useRef(null),_=x.useCallback(R=>{const{pulsate:O,rippleX:k,rippleY:F,rippleSize:G,cb:j}=R;d(T=>[...T,P.jsx(OU,{classes:{ripple:An(o.ripple,Ka.ripple),rippleVisible:An(o.rippleVisible,Ka.rippleVisible),ripplePulsate:An(o.ripplePulsate,Ka.ripplePulsate),child:An(o.child,Ka.child),childLeaving:An(o.childLeaving,Ka.childLeaving),childPulsate:An(o.childPulsate,Ka.childPulsate)},timeout:oE,pulsate:O,rippleX:k,rippleY:F,rippleSize:G},p.current)]),p.current+=1,h.current=j},[o]),A=x.useCallback((R={},O={},k=()=>{})=>{const{pulsate:F=!1,center:G=a||O.pulsate,fakeElement:j=!1}=O;if(R?.type==="mousedown"&&g.current){g.current=!1;return}R?.type==="touchstart"&&(g.current=!0);const T=j?null:E.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,B,Y;if(G||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)U=Math.round(M.width/2),B=Math.round(M.height/2);else{const{clientX:X,clientY:z}=R.touches&&R.touches.length>0?R.touches[0]:R;U=Math.round(X-M.left),B=Math.round(z-M.top)}if(G)Y=Math.sqrt((2*M.width**2+M.height**2)/3),Y%2===0&&(Y+=1);else{const X=Math.max(Math.abs((T?T.clientWidth:0)-U),U)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-B),B)*2+2;Y=Math.sqrt(X**2+z**2)}R?.touches?b.current===null&&(b.current=()=>{_({pulsate:F,rippleX:U,rippleY:B,rippleSize:Y,cb:k})},y.start(xU,()=>{b.current&&(b.current(),b.current=null)})):_({pulsate:F,rippleX:U,rippleY:B,rippleSize:Y,cb:k})},[a,_,y]),D=x.useCallback(()=>{A({},{pulsate:!0})},[A]),w=x.useCallback((R,O)=>{if(y.clear(),R?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{w(R,O)});return}b.current=null,d(k=>k.length>0?k.slice(1):k),h.current=O},[y]);return x.useImperativeHandle(n,()=>({pulsate:D,start:A,stop:w}),[D,A,w]),P.jsx(RU,{className:An(Ka.root,o.root,s),ref:E,...c,children:P.jsx(fS,{component:null,exit:!0,children:u})})});function NU(e){return ma("MuiButtonBase",e)}const LU=Zr("MuiButtonBase",["root","disabled","focusVisible"]),PU=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=Pa({root:["root",t&&"disabled",n&&"focusVisible"]},NU,a);return n&&r&&(s.root+=` ${r}`),s},MU=xt("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"},[`&.${LU.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),d3=x.forwardRef(function(t,n){const r=Jr({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:g=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:E,onClick:_,onContextMenu:A,onDragLeave:D,onFocus:w,onFocusVisible:R,onKeyDown:O,onKeyUp:k,onMouseDown:F,onMouseLeave:G,onMouseUp:j,onTouchEnd:T,onTouchMove:M,onTouchStart:U,tabIndex:B=0,TouchRippleProps:Y,touchRippleRef:X,type:z,...Z}=r,J=x.useRef(null),oe=_U(),I=Ni(oe.ref,X),[re,ee]=x.useState(!1);d&&re&&ee(!1),x.useImperativeHandle(a,()=>({focusVisible:()=>{ee(!0),J.current.focus()}}),[]);const L=oe.shouldMount&&!p&&!d;x.useEffect(()=>{re&&g&&!p&&oe.pulsate()},[p,g,re,oe]);const te=_i(oe,"start",F,h),be=_i(oe,"stop",A,h),de=_i(oe,"stop",D,h),xe=_i(oe,"stop",j,h),ge=_i(oe,"stop",Pe=>{re&&Pe.preventDefault(),G&&G(Pe)},h),Oe=_i(oe,"start",U,h),Ue=_i(oe,"stop",T,h),Ie=_i(oe,"stop",M,h),Ye=_i(oe,"stop",Pe=>{yg(Pe.target)||ee(!1),E&&E(Pe)},!1),Ve=Zc(Pe=>{J.current||(J.current=Pe.currentTarget),yg(Pe.target)&&(ee(!0),R&&R(Pe)),w&&w(Pe)}),ke=()=>{const Pe=J.current;return u&&u!=="button"&&!(Pe.tagName==="A"&&Pe.href)},Rt=Zc(Pe=>{g&&!Pe.repeat&&re&&Pe.key===" "&&oe.stop(Pe,()=>{oe.start(Pe)}),Pe.target===Pe.currentTarget&&ke()&&Pe.key===" "&&Pe.preventDefault(),O&&O(Pe),Pe.target===Pe.currentTarget&&ke()&&Pe.key==="Enter"&&!d&&(Pe.preventDefault(),_&&_(Pe))}),Et=Zc(Pe=>{g&&Pe.key===" "&&re&&!Pe.defaultPrevented&&oe.stop(Pe,()=>{oe.pulsate(Pe)}),k&&k(Pe),_&&Pe.target===Pe.currentTarget&&ke()&&Pe.key===" "&&!Pe.defaultPrevented&&_(Pe)});let je=u;je==="button"&&(Z.href||Z.to)&&(je=b);const St={};je==="button"?(St.type=z===void 0?"button":z,St.disabled=d):(!Z.href&&!Z.to&&(St.role="button"),d&&(St["aria-disabled"]=d));const ot=Ni(n,J),Ze={...r,centerRipple:o,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:B,focusVisible:re},Ge=PU(Ze);return P.jsxs(MU,{as:je,className:An(Ge.root,c),ownerState:Ze,onBlur:Ye,onClick:_,onContextMenu:be,onFocus:Ve,onKeyDown:Rt,onKeyUp:Et,onMouseDown:te,onMouseLeave:ge,onMouseUp:xe,onDragLeave:de,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:Oe,ref:ot,tabIndex:d?-1:B,type:z,...St,...Z,children:[s,L?P.jsx(IU,{ref:I,center:o,...Y}):null]})});function _i(e,t,n,r=!1){return Zc(a=>(n&&n(a),r||e[t](a),!0))}function $U(e){return typeof e.main=="string"}function FU(e,t=[]){if(!$U(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Vf(e=[]){return([,t])=>t&&FU(t,e)}function BU(e){return ma("MuiCircularProgress",e)}Zr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fs=44,iE=ti`
|
|
185
|
-
0% {
|
|
186
|
-
transform: rotate(0deg);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
100% {
|
|
190
|
-
transform: rotate(360deg);
|
|
191
|
-
}
|
|
192
|
-
`,sE=ti`
|
|
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
|
-
`,UU=typeof iE!="string"?Sp`
|
|
208
|
-
animation: ${iE} 1.4s linear infinite;
|
|
209
|
-
`:null,jU=typeof sE!="string"?Sp`
|
|
210
|
-
animation: ${sE} 1.4s ease-in-out infinite;
|
|
211
|
-
`:null,HU=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,BU,t)},zU=xt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tn(n.color)}`]]}})(To(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:UU||{animation:`${iE} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),VU=xt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),GU=xt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tn(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(To(({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:jU||{animation:`${sE} 1.4s ease-in-out infinite`}}]}))),pS=x.forwardRef(function(t,n){const r=Jr({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",...g}=r,y={...r,color:o,disableShrink:s,size:c,thickness:d,value:p,variant:h},b=HU(y),E={},_={},A={};if(h==="determinate"){const D=2*Math.PI*((fs-d)/2);E.strokeDasharray=D.toFixed(3),A["aria-valuenow"]=Math.round(p),E.strokeDashoffset=`${((100-p)/100*D).toFixed(3)}px`,_.transform="rotate(-90deg)"}return P.jsx(zU,{className:An(b.root,a),style:{width:c,height:c,..._,...u},ownerState:y,ref:n,role:"progressbar",...A,...g,children:P.jsx(VU,{className:b.svg,ownerState:y,viewBox:`${fs/2} ${fs/2} ${fs} ${fs}`,children:P.jsx(GU,{className:b.circle,style:E,ownerState:y,cx:fs,cy:fs,r:(fs-d)/2,fill:"none",strokeWidth:d})})})});function qU(e){return ma("MuiIconButton",e)}const Gw=Zr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),WU=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,qU,t)},YU=xt(d3,{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)}`]]}})(To(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.action.active,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}}]})),To(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn((e.vars||e).palette[t].main,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)}}],[`&.${Gw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Gw.loading}`]:{color:"transparent"}}))),QU=xt("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"}}]})),KU=x.forwardRef(function(t,n){const r=Jr({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:g=null,loadingIndicator:y,...b}=r,E=hy(h),_=y??P.jsx(pS,{"aria-labelledby":E,color:"inherit",size:16}),A={...r,edge:a,color:c,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:_,size:p},D=WU(A);return P.jsxs(YU,{id:g?E:h,className:An(D.root,s),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...b,ownerState:A,children:[typeof g=="boolean"&&P.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:P.jsx(QU,{className:D.loadingIndicator,ownerState:A,children:g&&_})}),o]})});function XU(e){return ma("MuiTypography",e)}const Nge=Zr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ZU={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JU=nU(),ej=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,XU,s)},tj=xt("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]}})(To(({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(Vf()).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}}]}))),qw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hS=x.forwardRef(function(t,n){const{color:r,...a}=Jr({props:t,name:"MuiTypography"}),o=!ZU[r],s=JU({...a,...o&&{color:r}}),{align:c="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:b=qw,...E}=s,_={...s,align:c,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:g,variant:y,variantMapping:b},A=d||(g?"p":b[y]||qw[y])||"span",D=ej(_);return P.jsx(tj,{as:A,ref:n,className:An(D.root,u),...E,ownerState:_,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...E.style}})});var ca="top",lo="bottom",co="right",ua="left",mS="auto",xp=[ca,lo,co,ua],su="start",Gf="end",nj="clippingParents",f3="viewport",Md="popper",rj="reference",Ww=xp.reduce(function(e,t){return e.concat([t+"-"+su,t+"-"+Gf])},[]),p3=[].concat(xp,[mS]).reduce(function(e,t){return e.concat([t,t+"-"+su,t+"-"+Gf])},[]),aj="beforeRead",oj="read",ij="afterRead",sj="beforeMain",lj="main",cj="afterMain",uj="beforeWrite",dj="write",fj="afterWrite",pj=[aj,oj,ij,sj,lj,cj,uj,dj,fj];function Zo(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 Ol(e){var t=La(e).Element;return e instanceof t||e instanceof Element}function oo(e){var t=La(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gS(e){if(typeof ShadowRoot>"u")return!1;var t=La(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hj(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];!oo(o)||!Zo(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 mj(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},{});!oo(a)||!Zo(a)||(Object.assign(a.style,c),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const gj={name:"applyStyles",enabled:!0,phase:"write",fn:hj,effect:mj,requires:["computeStyles"]};function Xo(e){return e.split("-")[0]}var Tl=Math.max,bg=Math.min,lu=Math.round;function lE(){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 h3(){return!/^((?!chrome|android).)*safari/i.test(lE())}function cu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&oo(e)&&(a=e.offsetWidth>0&&lu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&lu(r.height)/e.offsetHeight||1);var s=Ol(e)?La(e):window,c=s.visualViewport,u=!h3()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/a,p=(r.top+(u&&c?c.offsetTop:0))/o,h=r.width/a,g=r.height/o;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function yS(e){var t=cu(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 m3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gS(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 yj(e){return["table","td","th"].indexOf(Zo(e))>=0}function Ms(e){return((Ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function yy(e){return Zo(e)==="html"?e:e.assignedSlot||e.parentNode||(gS(e)?e.host:null)||Ms(e)}function Yw(e){return!oo(e)||Li(e).position==="fixed"?null:e.offsetParent}function vj(e){var t=/firefox/i.test(lE()),n=/Trident/i.test(lE());if(n&&oo(e)){var r=Li(e);if(r.position==="fixed")return null}var a=yy(e);for(gS(a)&&(a=a.host);oo(a)&&["html","body"].indexOf(Zo(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 wp(e){for(var t=La(e),n=Yw(e);n&&yj(n)&&Li(n).position==="static";)n=Yw(n);return n&&(Zo(n)==="html"||Zo(n)==="body"&&Li(n).position==="static")?t:n||vj(e)||t}function vS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gf(e,t,n){return Tl(e,bg(t,n))}function bj(e,t,n){var r=gf(e,t,n);return r>n?n:r}function g3(){return{top:0,right:0,bottom:0,left:0}}function y3(e){return Object.assign({},g3(),e)}function v3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ej=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,y3(typeof t!="number"?t:v3(t,xp))};function Tj(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Xo(n.placement),u=vS(c),d=[ua,co].indexOf(c)>=0,p=d?"height":"width";if(!(!o||!s)){var h=Ej(a.padding,n),g=yS(o),y=u==="y"?ca:ua,b=u==="y"?lo:co,E=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],_=s[u]-n.rects.reference[u],A=wp(o),D=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,w=E/2-_/2,R=h[y],O=D-g[p]-h[b],k=D/2-g[p]/2+w,F=gf(R,k,O),G=u;n.modifiersData[r]=(t={},t[G]=F,t.centerOffset=F-k,t)}}function Sj(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)||m3(t.elements.popper,a)&&(t.elements.arrow=a))}const _j={name:"arrow",enabled:!0,phase:"main",fn:Tj,effect:Sj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(e){return e.split("-")[1]}var Cj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Aj(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:lu(n*a)/a||0,y:lu(r*a)/a||0}}function Qw(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,g=s.x,y=g===void 0?0:g,b=s.y,E=b===void 0?0:b,_=typeof p=="function"?p({x:y,y:E}):{x:y,y:E};y=_.x,E=_.y;var A=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),w=ua,R=ca,O=window;if(d){var k=wp(n),F="clientHeight",G="clientWidth";if(k===La(n)&&(k=Ms(n),Li(k).position!=="static"&&c==="absolute"&&(F="scrollHeight",G="scrollWidth")),k=k,a===ca||(a===ua||a===co)&&o===Gf){R=lo;var j=h&&k===O&&O.visualViewport?O.visualViewport.height:k[F];E-=j-r.height,E*=u?1:-1}if(a===ua||(a===ca||a===lo)&&o===Gf){w=co;var T=h&&k===O&&O.visualViewport?O.visualViewport.width:k[G];y-=T-r.width,y*=u?1:-1}}var M=Object.assign({position:c},d&&Cj),U=p===!0?Aj({x:y,y:E},La(n)):{x:y,y:E};if(y=U.x,E=U.y,u){var B;return Object.assign({},M,(B={},B[R]=D?"0":"",B[w]=A?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+E+"px)":"translate3d("+y+"px, "+E+"px, 0)",B))}return Object.assign({},M,(t={},t[R]=D?E+"px":"",t[w]=A?y+"px":"",t.transform="",t))}function xj(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:Xo(t.placement),variation:uu(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,Qw(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,Qw(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 wj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var fm={passive:!0};function Dj(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,fm)}),c&&u.addEventListener("resize",n.update,fm),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",n.update,fm)}),c&&u.removeEventListener("resize",n.update,fm)}}const kj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dj,data:{}};var Rj={left:"right",right:"left",bottom:"top",top:"bottom"};function zm(e){return e.replace(/left|right|bottom|top/g,function(t){return Rj[t]})}var Oj={start:"end",end:"start"};function Kw(e){return e.replace(/start|end/g,function(t){return Oj[t]})}function bS(e){var t=La(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ES(e){return cu(Ms(e)).left+bS(e).scrollLeft}function Ij(e,t){var n=La(e),r=Ms(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,c=0,u=0;if(a){o=a.width,s=a.height;var d=h3();(d||!d&&t==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:c+ES(e),y:u}}function Nj(e){var t,n=Ms(e),r=bS(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Tl(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Tl(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-r.scrollLeft+ES(e),u=-r.scrollTop;return Li(a||n).direction==="rtl"&&(c+=Tl(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:c,y:u}}function TS(e){var t=Li(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function b3(e){return["html","body","#document"].indexOf(Zo(e))>=0?e.ownerDocument.body:oo(e)&&TS(e)?e:b3(yy(e))}function yf(e,t){var n;t===void 0&&(t=[]);var r=b3(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=La(r),s=a?[o].concat(o.visualViewport||[],TS(r)?r:[]):r,c=t.concat(s);return a?c:c.concat(yf(yy(s)))}function cE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lj(e,t){var n=cu(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 Xw(e,t,n){return t===f3?cE(Ij(e,n)):Ol(t)?Lj(t,n):cE(Nj(Ms(e)))}function Pj(e){var t=yf(yy(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0,r=n&&oo(e)?wp(e):e;return Ol(r)?t.filter(function(a){return Ol(a)&&m3(a,r)&&Zo(a)!=="body"}):[]}function Mj(e,t,n,r){var a=t==="clippingParents"?Pj(e):[].concat(t),o=[].concat(a,[n]),s=o[0],c=o.reduce(function(u,d){var p=Xw(e,d,r);return u.top=Tl(p.top,u.top),u.right=bg(p.right,u.right),u.bottom=bg(p.bottom,u.bottom),u.left=Tl(p.left,u.left),u},Xw(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 E3(e){var t=e.reference,n=e.element,r=e.placement,a=r?Xo(r):null,o=r?uu(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(a){case ca:u={x:s,y:t.y-n.height};break;case lo:u={x:s,y:t.y+t.height};break;case co:u={x:t.x+t.width,y:c};break;case ua:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=a?vS(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case su:u[d]=u[d]-(t[p]/2-n[p]/2);break;case Gf: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?nj:c,d=n.rootBoundary,p=d===void 0?f3:d,h=n.elementContext,g=h===void 0?Md:h,y=n.altBoundary,b=y===void 0?!1:y,E=n.padding,_=E===void 0?0:E,A=y3(typeof _!="number"?_:v3(_,xp)),D=g===Md?rj:Md,w=e.rects.popper,R=e.elements[b?D:g],O=Mj(Ol(R)?R:R.contextElement||Ms(e.elements.popper),u,p,s),k=cu(e.elements.reference),F=E3({reference:k,element:w,placement:a}),G=cE(Object.assign({},w,F)),j=g===Md?G:k,T={top:O.top-j.top+A.top,bottom:j.bottom-O.bottom+A.bottom,left:O.left-j.left+A.left,right:j.right-O.right+A.right},M=e.modifiersData.offset;if(g===Md&&M){var U=M[a];Object.keys(T).forEach(function(B){var Y=[co,lo].indexOf(B)>=0?1:-1,X=[ca,lo].indexOf(B)>=0?"y":"x";T[B]+=U[X]*Y})}return T}function $j(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?p3:u,p=uu(r),h=p?c?Ww:Ww.filter(function(b){return uu(b)===p}):xp,g=h.filter(function(b){return d.indexOf(b)>=0});g.length===0&&(g=h);var y=g.reduce(function(b,E){return b[E]=qf(e,{placement:E,boundary:a,rootBoundary:o,padding:s})[Xo(E)],b},{});return Object.keys(y).sort(function(b,E){return y[b]-y[E]})}function Fj(e){if(Xo(e)===mS)return[];var t=zm(e);return[Kw(e),t,Kw(t)]}function Bj(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,g=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,E=n.allowedAutoPlacements,_=t.options.placement,A=Xo(_),D=A===_,w=u||(D||!b?[zm(_)]:Fj(_)),R=[_].concat(w).reduce(function(te,be){return te.concat(Xo(be)===mS?$j(t,{placement:be,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:E}):be)},[]),O=t.rects.reference,k=t.rects.popper,F=new Map,G=!0,j=R[0],T=0;T<R.length;T++){var M=R[T],U=Xo(M),B=uu(M)===su,Y=[ca,lo].indexOf(U)>=0,X=Y?"width":"height",z=qf(t,{placement:M,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Z=Y?B?co:ua:B?lo:ca;O[X]>k[X]&&(Z=zm(Z));var J=zm(Z),oe=[];if(o&&oe.push(z[U]<=0),c&&oe.push(z[Z]<=0,z[J]<=0),oe.every(function(te){return te})){j=M,G=!1;break}F.set(M,oe)}if(G)for(var I=b?3:1,re=function(be){var de=R.find(function(xe){var ge=F.get(xe);if(ge)return ge.slice(0,be).every(function(Oe){return Oe})});if(de)return j=de,"break"},ee=I;ee>0;ee--){var L=re(ee);if(L==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const Uj={name:"flip",enabled:!0,phase:"main",fn:Bj,requiresIfExists:["offset"],data:{_skip:!1}};function Zw(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 Jw(e){return[ca,co,lo,ua].some(function(t){return e[t]>=0})}function jj(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=Zw(s,r),d=Zw(c,a,o),p=Jw(u),h=Jw(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 Hj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function zj(e,t,n){var r=Xo(e),a=[ua,ca].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,[ua,co].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function Vj(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=p3.reduce(function(p,h){return p[h]=zj(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 Gj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vj};function qj(e){var t=e.state,n=e.name;t.modifiersData[n]=E3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wj={name:"popperOffsets",enabled:!0,phase:"read",fn:qj,data:{}};function Yj(e){return e==="x"?"y":"x"}function Qj(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,g=n.tether,y=g===void 0?!0:g,b=n.tetherOffset,E=b===void 0?0:b,_=qf(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),A=Xo(t.placement),D=uu(t.placement),w=!D,R=vS(A),O=Yj(R),k=t.modifiersData.popperOffsets,F=t.rects.reference,G=t.rects.popper,j=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(k){if(o){var B,Y=R==="y"?ca:ua,X=R==="y"?lo:co,z=R==="y"?"height":"width",Z=k[R],J=Z+_[Y],oe=Z-_[X],I=y?-G[z]/2:0,re=D===su?F[z]:G[z],ee=D===su?-G[z]:-F[z],L=t.elements.arrow,te=y&&L?yS(L):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g3(),de=be[Y],xe=be[X],ge=gf(0,F[z],te[z]),Oe=w?F[z]/2-I-ge-de-T.mainAxis:re-ge-de-T.mainAxis,Ue=w?-F[z]/2+I+ge+xe+T.mainAxis:ee+ge+xe+T.mainAxis,Ie=t.elements.arrow&&wp(t.elements.arrow),Ye=Ie?R==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,Ve=(B=M?.[R])!=null?B:0,ke=Z+Oe-Ve-Ye,Rt=Z+Ue-Ve,Et=gf(y?bg(J,ke):J,Z,y?Tl(oe,Rt):oe);k[R]=Et,U[R]=Et-Z}if(c){var je,St=R==="x"?ca:ua,ot=R==="x"?lo:co,Ze=k[O],Ge=O==="y"?"height":"width",Pe=Ze+_[St],Ot=Ze-_[ot],Dn=[ca,ua].indexOf(A)!==-1,bt=(je=M?.[O])!=null?je:0,ce=Dn?Pe:Ze-F[Ge]-G[Ge]-bt+T.altAxis,me=Dn?Ze+F[Ge]+G[Ge]-bt-T.altAxis:Ot,Be=y&&Dn?bj(ce,Ze,me):gf(y?ce:Pe,Ze,y?me:Ot);k[O]=Be,U[O]=Be-Ze}t.modifiersData[r]=U}}const Kj={name:"preventOverflow",enabled:!0,phase:"main",fn:Qj,requiresIfExists:["offset"]};function Xj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zj(e){return e===La(e)||!oo(e)?bS(e):Xj(e)}function Jj(e){var t=e.getBoundingClientRect(),n=lu(t.width)/e.offsetWidth||1,r=lu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function eH(e,t,n){n===void 0&&(n=!1);var r=oo(t),a=oo(t)&&Jj(t),o=Ms(t),s=cu(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Zo(t)!=="body"||TS(o))&&(c=Zj(t)),oo(t)?(u=cu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=ES(o))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function tH(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 nH(e){var t=tH(e);return pj.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function rH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aH(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 eD={placement:"bottom",modifiers:[],strategy:"absolute"};function tD(){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 oH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?eD:a;return function(c,u,d){d===void 0&&(d=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},eD,o),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(A){var D=typeof A=="function"?A(p.options):A;E(),p.options=Object.assign({},o,p.options,D),p.scrollParents={reference:Ol(c)?yf(c):c.contextElement?yf(c.contextElement):[],popper:yf(u)};var w=nH(aH([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(R){return R.enabled}),b(),y.update()},forceUpdate:function(){if(!g){var A=p.elements,D=A.reference,w=A.popper;if(tD(D,w)){p.rects={reference:eH(D,wp(w),p.options.strategy==="fixed"),popper:yS(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var R=0;R<p.orderedModifiers.length;R++){if(p.reset===!0){p.reset=!1,R=-1;continue}var O=p.orderedModifiers[R],k=O.fn,F=O.options,G=F===void 0?{}:F,j=O.name;typeof k=="function"&&(p=k({state:p,options:G,name:j,instance:y})||p)}}}},update:rH(function(){return new Promise(function(_){y.forceUpdate(),_(p)})}),destroy:function(){E(),g=!0}};if(!tD(c,u))return y;y.setOptions(d).then(function(_){!g&&d.onFirstUpdate&&d.onFirstUpdate(_)});function b(){p.orderedModifiers.forEach(function(_){var A=_.name,D=_.options,w=D===void 0?{}:D,R=_.effect;if(typeof R=="function"){var O=R({state:p,name:A,instance:y,options:w}),k=function(){};h.push(O||k)}})}function E(){h.forEach(function(_){return _()}),h=[]}return y}}var iH=[kj,Wj,wj,gj,Gj,Uj,Kj,_j,Hj],sH=oH({defaultModifiers:iH});function lH(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:c3(n,r),{props:c,internalRef:u}=u3({...o,externalSlotProps:s}),d=Ni(u,s?.ref,e.additionalProps?.ref);return l3(t,{...c,ref:d},r)}function SS(e){return parseInt(x.version,10)>=19?e?.props?.ref||null:e?.ref||null}function cH(e){return typeof e=="function"?e():e}const uH=x.forwardRef(function(t,n){const{children:r,container:a,disablePortal:o=!1}=t,[s,c]=x.useState(null),u=Ni(x.isValidElement(r)?SS(r):null,n);if(Rl(()=>{o||c(cH(a)||document.body)},[a,o]),Rl(()=>{if(s&&!o)return Uw(n,s),()=>{Uw(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const d={ref:u};return x.cloneElement(r,d)}return r}return s&&bp.createPortal(r,s)});function dH(e){return ma("MuiPopper",e)}Zr("MuiPopper",["root"]);function fH(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 uE(e){return typeof e=="function"?e():e}function pH(e){return e.nodeType!==void 0}const hH=e=>{const{classes:t}=e;return Pa({root:["root"]},dH,t)},mH={},gH=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:g={},slots:y={},TransitionProps:b,ownerState:E,..._}=t,A=x.useRef(null),D=Ni(A,n),w=x.useRef(null),R=Ni(w,h),O=x.useRef(R);Rl(()=>{O.current=R},[R]),x.useImperativeHandle(h,()=>w.current,[]);const k=fH(d,o),[F,G]=x.useState(k),[j,T]=x.useState(uE(r));x.useEffect(()=>{w.current&&w.current.forceUpdate()}),x.useEffect(()=>{r&&T(uE(r))},[r]),Rl(()=>{if(!j||!u)return;const X=J=>{G(J.placement)};let z=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{X(J)}}];c!=null&&(z=z.concat(c)),p&&p.modifiers!=null&&(z=z.concat(p.modifiers));const Z=sH(j,A.current,{placement:k,...p,modifiers:z});return O.current(Z),()=>{Z.destroy(),O.current(null)}},[j,s,c,u,p,k]);const M={placement:F};b!==null&&(M.TransitionProps=b);const U=hH(t),B=y.root??"div",Y=lH({elementType:B,externalSlotProps:g.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:U.root});return P.jsx(B,{...Y,children:typeof a=="function"?a(M):a})}),yH=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:g=mH,popperRef:y,style:b,transition:E=!1,slotProps:_={},slots:A={},...D}=t,[w,R]=x.useState(!0),O=()=>{R(!1)},k=()=>{R(!0)};if(!u&&!p&&(!E||w))return null;let F;if(o)F=o;else if(r){const T=uE(r);F=T&&pH(T)?Bw(T).body:Bw(null).body}const G=!p&&u&&(!E||w)?"none":void 0,j=E?{in:p,onEnter:O,onExited:k}:void 0;return P.jsx(uH,{disablePortal:c,container:F,children:P.jsx(gH,{anchorEl:r,direction:s,disablePortal:c,modifiers:d,ref:n,open:E?!w:p,placement:h,popperOptions:g,popperRef:y,slotProps:_,slots:A,...D,style:{position:"fixed",top:0,left:0,display:G,...b},TransitionProps:j,children:a})})}),vH=xt(yH,{name:"MuiPopper",slot:"Root"})({}),T3=x.forwardRef(function(t,n){const r=VI(),a=Jr({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:E,popperRef:_,transition:A,slots:D,slotProps:w,...R}=a,O=D?.root??c?.Root,k={anchorEl:o,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:E,popperRef:_,transition:A,...R};return P.jsx(vH,{as:s,direction:r?"rtl":"ltr",slots:{root:O},slotProps:w??u,...k,ref:n})}),bH=Zr("MuiBox",["root"]),EH=my(),Sl=$I({themeId:Qo,defaultTheme:EH,defaultClassName:bH.root,generateClassName:eS.generate});function TH(e){return ma("MuiButton",e)}const tl=Zr("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"]),SH=x.createContext({}),_H=x.createContext(void 0),CH=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,TH,u);return{...u,...p}},S3=[{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}}}],AH=xt(d3,{shouldForwardProp:e=>n3(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]}})(To(({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"},[`&.${tl.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]},[`&.${tl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${tl.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)",[`&.${tl.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(Vf()).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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Jn(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.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[r].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.text.primary,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"},[`&.${tl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tl.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}),[`&.${tl.loading}`]:{color:"transparent"}}}]}})),xH=xt("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}},...S3]})),wH=xt("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}},...S3]})),DH=xt("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}}]})),nD=xt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),kH=x.forwardRef(function(t,n){const r=x.useContext(SH),a=x.useContext(_H),o=zf(r,t),s=Jr({props:o,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:E,fullWidth:_=!1,id:A,loading:D=null,loadingIndicator:w,loadingPosition:R="center",size:O="medium",startIcon:k,type:F,variant:G="text",...j}=s,T=hy(A),M=w??P.jsx(pS,{"aria-labelledby":T,color:"inherit",size:16}),U={...s,color:u,component:d,disabled:h,disableElevation:g,disableFocusRipple:y,fullWidth:_,loading:D,loadingIndicator:M,loadingPosition:R,size:O,type:F,variant:G},B=CH(U),Y=(k||D&&R==="start")&&P.jsx(xH,{className:B.startIcon,ownerState:U,children:k||P.jsx(nD,{className:B.loadingIconPlaceholder,ownerState:U})}),X=(b||D&&R==="end")&&P.jsx(wH,{className:B.endIcon,ownerState:U,children:b||P.jsx(nD,{className:B.loadingIconPlaceholder,ownerState:U})}),z=a||"",Z=typeof D=="boolean"?P.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:D&&P.jsx(DH,{className:B.loadingIndicator,ownerState:U,children:M})}):null;return P.jsxs(AH,{ownerState:U,className:An(r.className,B.root,p,z),component:d,disabled:h||D,focusRipple:!y,focusVisibleClassName:An(B.focusVisible,E),ref:n,type:F,id:D?T:A,...j,classes:B,children:[Y,R!=="end"&&Z,c,R==="end"&&Z,X]})});function RH(e){return ma("MuiCard",e)}Zr("MuiCard",["root"]);const OH=e=>{const{classes:t}=e;return Pa({root:["root"]},RH,t)},IH=xt(EU,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),_3=x.forwardRef(function(t,n){const r=Jr({props:t,name:"MuiCard"}),{className:a,raised:o=!1,...s}=r,c={...r,raised:o},u=OH(c);return P.jsx(IH,{className:An(u.root,a),elevation:o?8:void 0,ref:n,ownerState:c,...s})});function NH(e){return ma("MuiCardContent",e)}Zr("MuiCardContent",["root"]);const LH=e=>{const{classes:t}=e;return Pa({root:["root"]},NH,t)},PH=xt("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),C3=x.forwardRef(function(t,n){const r=Jr({props:t,name:"MuiCardContent"}),{className:a,component:o="div",...s}=r,c={...r,component:o},u=LH(c);return P.jsx(PH,{as:o,className:An(u.root,a),ownerState:c,ref:n,...s})});function MH(e){return ma("MuiCardMedia",e)}Zr("MuiCardMedia",["root","media","img"]);const $H=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Pa({root:["root",n&&"media",r&&"img"]},MH,t)},FH=xt("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"}}]}),BH=["video","audio","picture","iframe","img"],UH=["picture","img"],jH=x.forwardRef(function(t,n){const r=Jr({props:t,name:"MuiCardMedia"}),{children:a,className:o,component:s="div",image:c,src:u,style:d,...p}=r,h=BH.includes(s),g=!h&&c?{backgroundImage:`url("${c}")`,...d}:d,y={...r,component:s,isMediaComponent:h,isImageComponent:UH.includes(s)},b=$H(y);return P.jsx(FH,{className:An(b.root,o),as:s,role:!h&&c?"img":void 0,ref:n,style:g,ownerState:y,src:h?c||u:void 0,...p,children:a})}),dE=typeof r3({})=="function",HH=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),zH=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}}),A3=(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:HH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...zH(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const a=e.components?.MuiCssBaseline?.styleOverrides;return a&&(r=[r,a]),r},Vm="mui-ecs",VH=e=>{const t=A3(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Vm})`]={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(.${Vm}))`]:{colorScheme:a.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Vm}))`]:{colorScheme:a.palette?.mode}}}),t},GH=r3(dE?({theme:e,enableColorScheme:t})=>A3(e,t):({theme:e})=>VH(e));function qH(e){const t=Jr({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(x.Fragment,{children:[dE&&P.jsx(GH,{enableColorScheme:r}),!dE&&!r&&P.jsx("span",{className:Vm,style:{display:"none"}}),n]})}function fE(e){return`scale(${e}, ${e**2})`}const WH={entering:{opacity:1,transform:fE(1)},entered:{opacity:1,transform:"none"}},Bv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pE=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:g,onExiting:y,style:b,timeout:E="auto",TransitionComponent:_=Fi,...A}=t,D=qc(),w=x.useRef(),R=uS(),O=x.useRef(null),k=Ni(O,SS(o),n),F=X=>z=>{if(X){const Z=O.current;z===void 0?X(Z):X(Z,z)}},G=F(p),j=F((X,z)=>{gU(X);const{duration:Z,delay:J,easing:oe}=zw({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=R.transitions.getAutoHeightDuration(X.clientHeight),w.current=I):I=Z,X.style.transition=[R.transitions.create("opacity",{duration:I,delay:J}),R.transitions.create("transform",{duration:Bv?I:I*.666,delay:J,easing:oe})].join(","),u&&u(X,z)}),T=F(d),M=F(y),U=F(X=>{const{duration:z,delay:Z,easing:J}=zw({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=R.transitions.getAutoHeightDuration(X.clientHeight),w.current=oe):oe=z,X.style.transition=[R.transitions.create("opacity",{duration:oe,delay:Z}),R.transitions.create("transform",{duration:Bv?oe:oe*.666,delay:Bv?Z:Z||oe*.333,easing:J})].join(","),X.style.opacity=0,X.style.transform=fE(.75),h&&h(X)}),B=F(g),Y=X=>{E==="auto"&&D.start(w.current||0,X),r&&r(O.current,X)};return P.jsx(_,{appear:a,in:c,nodeRef:O,onEnter:j,onEntered:T,onEntering:G,onExit:U,onExited:B,onExiting:M,addEndListener:Y,timeout:E==="auto"?null:E,...A,children:(X,{ownerState:z,...Z})=>x.cloneElement(o,{style:{opacity:0,transform:fE(.75),visibility:X==="exited"&&!c?"hidden":void 0,...WH[X],...b,...o.props.style},ref:k,...Z})})});pE&&(pE.muiSupportAuto=!0);function YH(e){return ma("MuiTooltip",e)}const Qn=Zr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function QH(e){return Math.round(e*1e5)/1e5}const KH=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,YH,t)},XH=xt(T3,{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]}})(To(({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"}}}]}))),ZH=xt("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])}`]]}})(To(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Jn(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:`${QH(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"}}}]}))),JH=xt("span",{name:"MuiTooltip",slot:"Arrow"})(To(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Jn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let pm=!1;const rD=new gy;let $d={x:0,y:0};function hm(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ez=x.forwardRef(function(t,n){const r=Jr({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:g=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:E=0,enterTouchDelay:_=700,followCursor:A=!1,id:D,leaveDelay:w=0,leaveTouchDelay:R=1500,onClose:O,onOpen:k,open:F,placement:G="bottom",PopperComponent:j,PopperProps:T={},slotProps:M={},slots:U={},title:B,TransitionComponent:Y,TransitionProps:X,...z}=r,Z=x.isValidElement(o)?o:P.jsx("span",{children:o}),J=uS(),oe=VI(),[I,re]=x.useState(),[ee,L]=x.useState(null),te=x.useRef(!1),be=g||A,de=qc(),xe=qc(),ge=qc(),Oe=qc(),[Ue,Ie]=iU({controlled:F,default:!1,name:"Tooltip",state:"open"});let Ye=Ue;const Ve=hy(D),ke=x.useRef(),Rt=Zc(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),Oe.clear()});x.useEffect(()=>Rt,[Rt]);const Et=ft=>{rD.clear(),pm=!0,Ie(!0),k&&!Ye&&k(ft)},je=Zc(ft=>{rD.start(800+w,()=>{pm=!1}),Ie(!1),O&&Ye&&O(ft),de.start(J.transitions.duration.shortest,()=>{te.current=!1})}),St=ft=>{te.current&&ft.type!=="touchstart"||(I&&I.removeAttribute("title"),xe.clear(),ge.clear(),b||pm&&E?xe.start(pm?E:b,()=>{Et(ft)}):Et(ft))},ot=ft=>{xe.clear(),ge.start(w,()=>{je(ft)})},[,Ze]=x.useState(!1),Ge=ft=>{yg(ft.target)||(Ze(!1),ot(ft))},Pe=ft=>{I||re(ft.currentTarget),yg(ft.target)&&(Ze(!0),St(ft))},Ot=ft=>{te.current=!0;const K=Z.props;K.onTouchStart&&K.onTouchStart(ft)},Dn=ft=>{Ot(ft),ge.clear(),de.clear(),Rt(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(_,()=>{document.body.style.WebkitUserSelect=ke.current,St(ft)})},bt=ft=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(ft),Rt(),ge.start(R,()=>{je(ft)})};x.useEffect(()=>{if(!Ye)return;function ft(K){K.key==="Escape"&&je(K)}return document.addEventListener("keydown",ft),()=>{document.removeEventListener("keydown",ft)}},[je,Ye]);const ce=Ni(SS(Z),re,n);!B&&B!==0&&(Ye=!1);const me=x.useRef(),Be=ft=>{const K=Z.props;K.onMouseMove&&K.onMouseMove(ft),$d={x:ft.clientX,y:ft.clientY},me.current&&me.current.update()},We={},Qe=typeof B=="string";d?(We.title=!Ye&&Qe&&!h?B:null,We["aria-describedby"]=Ye?Ve:null):(We["aria-label"]=Qe?B:null,We["aria-labelledby"]=Ye&&!Qe?Ve:null);const gt={...We,...z,...Z.props,className:An(z.className,Z.props.className),onTouchStart:Ot,ref:ce,...A?{onMouseMove:Be}:{}},ln={};y||(gt.onTouchStart=Dn,gt.onTouchEnd=bt),h||(gt.onMouseOver=hm(St,gt.onMouseOver),gt.onMouseLeave=hm(ot,gt.onMouseLeave),be||(ln.onMouseOver=St,ln.onMouseLeave=ot)),p||(gt.onFocus=hm(Pe,gt.onFocus),gt.onBlur=hm(Ge,gt.onBlur),be||(ln.onFocus=Pe,ln.onBlur=Ge));const Qt={...r,isRtl:oe,arrow:a,disableInteractive:be,placement:G,PopperComponentProp:j,touch:te.current},qe=typeof M.popper=="function"?M.popper(Qt):M.popper,Ee=x.useMemo(()=>{let ft=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return T.popperOptions?.modifiers&&(ft=ft.concat(T.popperOptions.modifiers)),qe?.popperOptions?.modifiers&&(ft=ft.concat(qe.popperOptions.modifiers)),{...T.popperOptions,...qe?.popperOptions,modifiers:ft}},[ee,T.popperOptions,qe?.popperOptions]),Te=KH(Qt),ut=typeof M.transition=="function"?M.transition(Qt):M.transition,nt={slots:{popper:c.Popper,transition:c.Transition??Y,tooltip:c.Tooltip,arrow:c.Arrow,...U},slotProps:{arrow:M.arrow??u.arrow,popper:{...T,...qe??u.popper},tooltip:M.tooltip??u.tooltip,transition:{...X,...ut??u.transition}}},[Fn,jr]=dm("popper",{elementType:XH,externalForwardedProps:nt,ownerState:Qt,className:An(Te.popper,T?.className)}),[_r,mr]=dm("transition",{elementType:pE,externalForwardedProps:nt,ownerState:Qt}),[gr,Ma]=dm("tooltip",{elementType:ZH,className:Te.tooltip,externalForwardedProps:nt,ownerState:Qt}),[In,Hr]=dm("arrow",{elementType:JH,className:Te.arrow,externalForwardedProps:nt,ownerState:Qt,ref:L});return P.jsxs(x.Fragment,{children:[x.cloneElement(Z,gt),P.jsx(Fn,{as:j??T3,placement:G,anchorEl:A?{getBoundingClientRect:()=>({top:$d.y,left:$d.x,right:$d.x,bottom:$d.y,width:0,height:0})}:I,popperRef:me,open:I?Ye:!1,id:Ve,transition:!0,...ln,...jr,popperOptions:Ee,children:({TransitionProps:ft})=>P.jsx(_r,{timeout:J.transitions.duration.shorter,...ft,...mr,children:P.jsxs(gr,{...Ma,children:[B,a?P.jsx(In,{...Hr}):null]})})})]})}),aD=sS({createStyledComponent:xt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Jr({props:e,name:"MuiStack"})});function tz({error:e,context:t}){const n=e.data?.message||"Unknown Error";return P.jsxs(P.Fragment,{children:[t&&P.jsx(hS,{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 x3(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=x3(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=x3(e))&&(r&&(r+=" "),r+=t);return r}const fn=WI,oD=e=>e,nz=()=>{let e=oD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=oD}}},rz=nz(),az={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=az[t];return r?`${n}-${r}`:`${rz.generate(e)}-${t}`}function Nt(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Ht(e,a,n)}),r}function oz(e){return Ht("MuiSvgIcon",e)}Nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function Wf(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]=Wf(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 iz=x.createContext(void 0);function sz(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?Wf(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?Wf(a,r,t.components.mergeClassNameAndStyle):r}function lz({props:e,name:t}){const n=x.useContext(iz);return sz({props:e,name:t,theme:{components:n}})}function Yt(e){return lz(e)}const Yf={black:"#000",white:"#fff"},cz={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"},Ic={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Nc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fd={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Lc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Pc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var Uv={exports:{}},vn={};/**
|
|
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 iD;function uz(){if(iD)return vn;iD=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"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case e:switch(E=E.type,E){case n:case a:case r:case u:case d:case g: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 _}}case t:return _}}}return vn.ContextConsumer=o,vn.ContextProvider=s,vn.Element=e,vn.ForwardRef=c,vn.Fragment=n,vn.Lazy=h,vn.Memo=p,vn.Portal=t,vn.Profiler=a,vn.StrictMode=r,vn.Suspense=u,vn.SuspenseList=d,vn.isContextConsumer=function(E){return b(E)===o},vn.isContextProvider=function(E){return b(E)===s},vn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},vn.isForwardRef=function(E){return b(E)===c},vn.isFragment=function(E){return b(E)===n},vn.isLazy=function(E){return b(E)===h},vn.isMemo=function(E){return b(E)===p},vn.isPortal=function(E){return b(E)===t},vn.isProfiler=function(E){return b(E)===a},vn.isStrictMode=function(E){return b(E)===r},vn.isSuspense=function(E){return b(E)===u},vn.isSuspenseList=function(E){return b(E)===d},vn.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===y||E.getModuleId!==void 0)},vn.typeOf=b,vn}var sD;function dz(){return sD||(sD=1,Uv.exports=uz()),Uv.exports}var w3=dz();function Wo(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 D3(e){if(x.isValidElement(e)||w3.isValidElementType(e)||!Wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=D3(e[n])}),t}function $r(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Wo(e)&&Wo(t)&&Object.keys(t).forEach(a=>{x.isValidElement(t[a])||w3.isValidElementType(t[a])?r[a]=t[a]:Wo(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Wo(e[a])?r[a]=$r(e[a],t[a],n):n.clone?r[a]=Wo(t[a])?D3(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 fz(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function _S(e,t=0,n=1){return fz(e,t,n)}function pz(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(pz(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 hz=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 hz(e)}catch{return e}};function vy(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 k3(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])),vy({type:c,values:u})}function hE(e){e=Ns(e);let t=e.type==="hsl"||e.type==="hsla"?Ns(k3(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 mz(e,t){const n=hE(e),r=hE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nr(e,t){return e=Ns(e),t=_S(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vy(e)}function mm(e,t,n){try{return Nr(e,t)}catch{return e}}function CS(e,t){if(e=Ns(e),t=_S(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 vy(e)}function _n(e,t,n){try{return CS(e,t)}catch{return e}}function AS(e,t){if(e=Ns(e),t=_S(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 vy(e)}function Cn(e,t,n){try{return AS(e,t)}catch{return e}}function mE(e,t=.15){return hE(e)>.5?CS(e,t):AS(e,t)}function gm(e,t,n){try{return mE(e,t)}catch{return e}}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:Yf.white,default:Yf.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 gz=R3();function O3(){return{text:{primary:Yf.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:Yf.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 lD=O3();function cD(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=AS(e.main,a):t==="dark"&&(e.dark=CS(e.main,o)))}function yz(e="light"){return e==="dark"?{main:Lc[200],light:Lc[50],dark:Lc[400]}:{main:Lc[700],light:Lc[400],dark:Lc[800]}}function vz(e="light"){return e==="dark"?{main:Ic[200],light:Ic[50],dark:Ic[400]}:{main:Ic[500],light:Ic[300],dark:Ic[700]}}function bz(e="light"){return e==="dark"?{main:Nc[500],light:Nc[300],dark:Nc[700]}:{main:Nc[700],light:Nc[400],dark:Nc[800]}}function Ez(e="light"){return e==="dark"?{main:Pc[400],light:Pc[300],dark:Pc[700]}:{main:Pc[700],light:Pc[500],dark:Pc[900]}}function Tz(e="light"){return e==="dark"?{main:Mc[400],light:Mc[300],dark:Mc[700]}:{main:Mc[800],light:Mc[500],dark:Mc[900]}}function Sz(e="light"){return e==="dark"?{main:Fd[400],light:Fd[300],dark:Fd[700]}:{main:"#ed6c02",light:Fd[500],dark:Fd[900]}}function xS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,o=e.primary||yz(t),s=e.secondary||vz(t),c=e.error||bz(t),u=e.info||Ez(t),d=e.success||Tz(t),p=e.warning||Sz(t);function h(b){return mz(b,lD.text.primary)>=n?lD.text.primary:gz.text.primary}const g=({color:b,name:E,mainShade:_=500,lightShade:A=300,darkShade:D=700})=>{if(b={...b},!b.main&&b[_]&&(b.main=b[_]),!b.hasOwnProperty("main"))throw new Error(Pi(11,E?` (${E})`:"",_));if(typeof b.main!="string")throw new Error(Pi(12,E?` (${E})`:"",JSON.stringify(b.main)));return cD(b,"light",A,r),cD(b,"dark",D,r),b.contrastText||(b.contrastText=h(b.main)),b};let y;return t==="light"?y=R3():t==="dark"&&(y=O3()),$r({common:{...Yf},mode:t,primary:g({color:o,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:cz,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},a)}function _z(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Cz(e){return Math.round(e*1e5)/1e5}const uD={textTransform:"uppercase"},dD='"Roboto", "Helvetica", "Arial", sans-serif';function Az(e,t){const{fontFamily:n=dD,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,g=r/14,y=p||(_=>`${_/u*g}rem`),b=(_,A,D,w,R)=>({fontFamily:n,fontWeight:_,fontSize:y(A),lineHeight:D,...n===dD?{letterSpacing:`${Cz(w/A)}em`}:{},...R,...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,uD),caption:b(o,12,1.66,.4),overline:b(o,12,2.66,1,uD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $r({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:c,...E},h,{clone:!1})}function Pn(...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 xz=["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)],wz={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)"},I3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fD(e){return`${Math.round(e)}ms`}function Dz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function kz(e){const t={...wz,...e.easing},n={...I3,...e.duration};return{getAutoHeightDuration:Dz,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:fD(o)} ${s} ${typeof c=="string"?c:fD(c)}`).join(",")},...e,easing:t,duration:n}}const Rz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Oz(e){return Wo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function N3(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];!Oz(c)||s.startsWith("unstable_")?delete r[s]:Wo(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 Iz=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 Nz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=Iz(t),s=Object.keys(o);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+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 Lz={borderRadius:4};function pD(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 Pz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Mz(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 $z(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 by={xs:0,sm:600,md:900,lg:1200,xl:1536},hD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${by[e]}px)`},Fz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:by[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||hD;return t.reduce((o,s,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||hD;return Object.keys(t).reduce((o,s)=>{if(Pz(a.keys,s)){const c=Mz(r.containerQueries?r:Fz,s);c&&(o[c]=n(t[s],s))}else if(Object.keys(a.values||by).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 Bz(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function mD(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function rt(e){if(typeof e!="string")throw new Error(Pi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ey(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 Eg(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Ey(e,n)||r,t&&(a=t(a,r,e)),a}function nr(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=Ey(u,r)||{};return Mi(s,c,p=>{let h=Eg(d,a,p);return p===h&&typeof p=="string"&&(h=Eg(d,a,`${t}${p==="default"?"":rt(p)}`,p)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function vf(e,t){return t?$r(e,t,{clone:!1}):e}function Uz(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jz={m:"margin",p:"padding"},Hz={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zz=Uz(e=>{if(e.length>2)if(gD[e])e=gD[e];else return[e];const[t,n]=e.split(""),r=jz[t],a=Hz[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),wS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wS,...DS];function Dp(e,t,n,r){const a=Ey(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 kS(e){return Dp(e,"spacing",8)}function kp(e,t){return typeof t=="string"||t==null?t:e(t)}function Vz(e,t){return n=>e.reduce((r,a)=>(r[a]=kp(t,n),r),{})}function Gz(e,t,n,r){if(!t.includes(n))return null;const a=zz(n),o=Vz(a,r),s=e[n];return Mi(e,s,o)}function L3(e,t){const n=kS(e.theme);return Object.keys(e).map(r=>Gz(e,t,r,n)).reduce(vf,{})}function Wn(e){return L3(e,wS)}Wn.propTypes={};Wn.filterProps=wS;function Yn(e){return L3(e,DS)}Yn.propTypes={};Yn.filterProps=DS;function qz(e=8,t=kS({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 Ty(...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 Ra(e){return e<=1&&e!==0?`${e*100}%`:e}const Wz=nr({prop:"width",transform:Ra}),RS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||by[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ra(n)}};return Mi(e,e.maxWidth,t)}return null};RS.filterProps=["maxWidth"];const Yz=nr({prop:"minWidth",transform:Ra}),Qz=nr({prop:"height",transform:Ra}),Kz=nr({prop:"maxHeight",transform:Ra}),Xz=nr({prop:"minHeight",transform:Ra});nr({prop:"size",cssProperty:"width",transform:Ra});nr({prop:"size",cssProperty:"height",transform:Ra});const Zz=nr({prop:"boxSizing"});Ty(Wz,RS,Yz,Qz,Kz,Xz,Zz);const Sy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({gap:kp(t,r)});return Mi(e,e.gap,n)}return null};Sy.propTypes={};Sy.filterProps=["gap"];const _y=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({columnGap:kp(t,r)});return Mi(e,e.columnGap,n)}return null};_y.propTypes={};_y.filterProps=["columnGap"];const Cy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({rowGap:kp(t,r)});return Mi(e,e.rowGap,n)}return null};Cy.propTypes={};Cy.filterProps=["rowGap"];const Jz=nr({prop:"gridColumn"}),eV=nr({prop:"gridRow"}),tV=nr({prop:"gridAutoFlow"}),nV=nr({prop:"gridAutoColumns"}),rV=nr({prop:"gridAutoRows"}),aV=nr({prop:"gridTemplateColumns"}),oV=nr({prop:"gridTemplateRows"}),iV=nr({prop:"gridTemplateAreas"}),sV=nr({prop:"gridArea"});Ty(Sy,_y,Cy,Jz,eV,tV,nV,rV,aV,oV,iV,sV);function Jc(e,t){return t==="grey"?t:e}const lV=nr({prop:"color",themeKey:"palette",transform:Jc}),cV=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jc}),uV=nr({prop:"backgroundColor",themeKey:"palette",transform:Jc});Ty(lV,cV,uV);function eo(e){return typeof e!="number"?e:`${e}px solid`}function fo(e,t){return nr({prop:e,themeKey:"borders",transform:t})}const dV=fo("border",eo),fV=fo("borderTop",eo),pV=fo("borderRight",eo),hV=fo("borderBottom",eo),mV=fo("borderLeft",eo),gV=fo("borderColor"),yV=fo("borderTopColor"),vV=fo("borderRightColor"),bV=fo("borderBottomColor"),EV=fo("borderLeftColor"),TV=fo("outline",eo),SV=fo("outlineColor"),Ay=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:kp(t,r)});return Mi(e,e.borderRadius,n)}return null};Ay.propTypes={};Ay.filterProps=["borderRadius"];Ty(dV,fV,pV,hV,mV,gV,yV,vV,bV,EV,Ay,TV,SV);const Rp={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ay},color:{themeKey:"palette",transform:Jc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jc},backgroundColor:{themeKey:"palette",transform:Jc},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:Sy},rowGap:{style:Cy},columnGap:{style:_y},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ra},maxWidth:{style:RS},minWidth:{transform:Ra},height:{transform:Ra},maxHeight:{transform:Ra},minHeight:{transform:Ra},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 _V(...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 CV(e,t){return typeof e=="function"?e(t):e}function AV(){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 g=Ey(a,d)||{};return h?h(s):Mi(s,r,y=>{let b=Eg(g,p,y);return y===b&&typeof y=="string"&&(b=Eg(g,p,`${n}${y==="default"?"":rt(y)}`,y)),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??Rp;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=Bz(a.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const b=CV(d[y],a);if(b!=null)if(typeof b=="object")if(s[y])g=vf(g,e(y,b,a,s));else{const E=Mi({theme:a},b,_=>({[y]:_}));_V(E,b)?g[y]=t({sx:b,theme:a,nested:!0}):g=vf(g,E)}else g=vf(g,e(y,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":pD(a,mD(h,g))}:pD(a,mD(h,g))}return Array.isArray(r)?r.map(c):c(r)}return t}const du=AV();du.filterProps=["sx"];function xV(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 OS(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=Nz(n),u=qz(a);let d=$r({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Lz,...o}},s);return d=$z(d),d.applyStyles=xV,d=t.reduce((p,h)=>$r(p,h),d),d.unstable_sxConfig={...Rp,...s?.unstable_sxConfig},d.unstable_sx=function(p){return du({sx:p,theme:this})},d}function gE(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pi(20));const p=xS(o),h=OS(e);let g=$r(h,{mixins:_z(h.breakpoints,r),palette:p,shadows:xz.slice(),typography:Az(p,c),transitions:kz(s),zIndex:{...Rz}});return g=$r(g,d),g=t.reduce((y,b)=>$r(y,b),g),g.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},g.unstable_sx=function(y){return du({sx:y,theme:this})},g.toRuntimeSource=N3,g}function yE(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 wV=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=yE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function P3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function M3(e){return e==="dark"?wV:[]}function DV(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=xS(t);return{palette:o,opacity:{...P3(o.mode),...n},overlays:r||M3(o.mode),...a}}function kV(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 RV=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OV=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 RV(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 IV(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 yD=(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])})},NV=(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)},LV=(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 jv(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return NV(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=LV(c,u);Object.assign(a,{[p]:h}),yD(o,c,`var(${p})`,d),yD(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function PV(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=jv(u,t);let g=h;const y={},{[c]:b,...E}=o;if(Object.entries(E||{}).forEach(([A,D])=>{const{vars:w,css:R,varsWithDefaults:O}=jv(D,t);g=$r(g,O),y[A]={css:R,vars:w}}),b){const{css:A,vars:D,varsWithDefaults:w}=jv(b,t);g=$r(g,w),y[c]={css:A,vars:D}}function _(A,D){let w=a;if(a==="class"&&(w=".%s"),a==="data"&&(w="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(w=`[${a}="%s"]`),A){if(w==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${o[A]?.palette?.mode||A})`]:{":root":D}};if(w)return e.defaultColorScheme===A?`:root, ${w.replace("%s",String(A))}`:w.replace("%s",String(A))}return":root"}return{vars:g,generateThemeVars:()=>{let A={...d};return Object.entries(y).forEach(([,{vars:D}])=>{A=$r(A,D)}),A},generateStyleSheets:()=>{const A=[],D=e.defaultColorScheme||"light";function w(k,F){Object.keys(F).length&&A.push(typeof k=="string"?{[k]:{...F}}:k)}w(n(void 0,{...p}),p);const{[D]:R,...O}=y;if(R){const{css:k}=R,F=o[D]?.palette?.mode,G=!r&&F?{colorScheme:F,...k}:{...k};w(n(D,{...G}),G)}return Object.entries(O).forEach(([k,{css:F}])=>{const G=o[k]?.palette?.mode,j=!r&&G?{colorScheme:G,...F}:{...F};w(n(k,{...j}),j)}),A}}}function MV(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 $V(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function uf(e){return typeof e!="string"||!e.startsWith("hsl")?e:k3(e)}function Ci(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cf(uf(e[t])))}function FV(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Po=e=>{try{return e()}catch{}},BV=(e="mui")=>QI(e);function Hv(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=DV({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...s}=gE({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...P3(a),...t?.opacity},overlays:t?.overlays||M3(a)},s}function UV(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=kV,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=BV(o),{[h]:y,light:b,dark:E,..._}=n,A={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Pi(21,h));const w=Hv(A,D,d,h);b&&!A.light&&Hv(A,b,void 0,"light"),E&&!A.dark&&Hv(A,E,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:A,font:{...IV(w.typography),...w.font},spacing:FV(d.spacing)};Object.keys(R.colorSchemes).forEach(j=>{const T=R.colorSchemes[j].palette,M=U=>{const B=U.split("-"),Y=B[1],X=B[2];return g(U,T[Y][X])};if(T.mode==="light"&&(_e(T.common,"background","#fff"),_e(T.common,"onBackground","#000")),T.mode==="dark"&&(_e(T.common,"background","#000"),_e(T.common,"onBackground","#fff")),$V(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){_e(T.Alert,"errorColor",_n(T.error.light,.6)),_e(T.Alert,"infoColor",_n(T.info.light,.6)),_e(T.Alert,"successColor",_n(T.success.light,.6)),_e(T.Alert,"warningColor",_n(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-main")),_e(T.Alert,"infoFilledBg",M("palette-info-main")),_e(T.Alert,"successFilledBg",M("palette-success-main")),_e(T.Alert,"warningFilledBg",M("palette-warning-main")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.main))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.main))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.main))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.main))),_e(T.Alert,"errorStandardBg",Cn(T.error.light,.9)),_e(T.Alert,"infoStandardBg",Cn(T.info.light,.9)),_e(T.Alert,"successStandardBg",Cn(T.success.light,.9)),_e(T.Alert,"warningStandardBg",Cn(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-100")),_e(T.Avatar,"defaultBg",M("palette-grey-400")),_e(T.Button,"inheritContainedBg",M("palette-grey-300")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(T.Chip,"defaultBorder",M("palette-grey-400")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(T.Chip,"defaultIconColor",M("palette-grey-700")),_e(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(T.LinearProgress,"primaryBg",Cn(T.primary.main,.62)),_e(T.LinearProgress,"secondaryBg",Cn(T.secondary.main,.62)),_e(T.LinearProgress,"errorBg",Cn(T.error.main,.62)),_e(T.LinearProgress,"infoBg",Cn(T.info.main,.62)),_e(T.LinearProgress,"successBg",Cn(T.success.main,.62)),_e(T.LinearProgress,"warningBg",Cn(T.warning.main,.62)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(T.Slider,"primaryTrack",Cn(T.primary.main,.62)),_e(T.Slider,"secondaryTrack",Cn(T.secondary.main,.62)),_e(T.Slider,"errorTrack",Cn(T.error.main,.62)),_e(T.Slider,"infoTrack",Cn(T.info.main,.62)),_e(T.Slider,"successTrack",Cn(T.success.main,.62)),_e(T.Slider,"warningTrack",Cn(T.warning.main,.62));const U=gm(T.background.default,.8);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-400")),_e(T.StepContent,"border",M("palette-grey-400")),_e(T.Switch,"defaultColor",M("palette-common-white")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(T.Switch,"primaryDisabledColor",Cn(T.primary.main,.62)),_e(T.Switch,"secondaryDisabledColor",Cn(T.secondary.main,.62)),_e(T.Switch,"errorDisabledColor",Cn(T.error.main,.62)),_e(T.Switch,"infoDisabledColor",Cn(T.info.main,.62)),_e(T.Switch,"successDisabledColor",Cn(T.success.main,.62)),_e(T.Switch,"warningDisabledColor",Cn(T.warning.main,.62)),_e(T.TableCell,"border",Cn(mm(T.divider,1),.88)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}if(T.mode==="dark"){_e(T.Alert,"errorColor",Cn(T.error.light,.6)),_e(T.Alert,"infoColor",Cn(T.info.light,.6)),_e(T.Alert,"successColor",Cn(T.success.light,.6)),_e(T.Alert,"warningColor",Cn(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-dark")),_e(T.Alert,"infoFilledBg",M("palette-info-dark")),_e(T.Alert,"successFilledBg",M("palette-success-dark")),_e(T.Alert,"warningFilledBg",M("palette-warning-dark")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.dark))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.dark))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.dark))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.dark))),_e(T.Alert,"errorStandardBg",_n(T.error.light,.9)),_e(T.Alert,"infoStandardBg",_n(T.info.light,.9)),_e(T.Alert,"successStandardBg",_n(T.success.light,.9)),_e(T.Alert,"warningStandardBg",_n(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-900")),_e(T.AppBar,"darkBg",M("palette-background-paper")),_e(T.AppBar,"darkColor",M("palette-text-primary")),_e(T.Avatar,"defaultBg",M("palette-grey-600")),_e(T.Button,"inheritContainedBg",M("palette-grey-800")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(T.Chip,"defaultBorder",M("palette-grey-700")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(T.Chip,"defaultIconColor",M("palette-grey-300")),_e(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(T.LinearProgress,"primaryBg",_n(T.primary.main,.5)),_e(T.LinearProgress,"secondaryBg",_n(T.secondary.main,.5)),_e(T.LinearProgress,"errorBg",_n(T.error.main,.5)),_e(T.LinearProgress,"infoBg",_n(T.info.main,.5)),_e(T.LinearProgress,"successBg",_n(T.success.main,.5)),_e(T.LinearProgress,"warningBg",_n(T.warning.main,.5)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(T.Slider,"primaryTrack",_n(T.primary.main,.5)),_e(T.Slider,"secondaryTrack",_n(T.secondary.main,.5)),_e(T.Slider,"errorTrack",_n(T.error.main,.5)),_e(T.Slider,"infoTrack",_n(T.info.main,.5)),_e(T.Slider,"successTrack",_n(T.success.main,.5)),_e(T.Slider,"warningTrack",_n(T.warning.main,.5));const U=gm(T.background.default,.98);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-600")),_e(T.StepContent,"border",M("palette-grey-600")),_e(T.Switch,"defaultColor",M("palette-grey-300")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(T.Switch,"primaryDisabledColor",_n(T.primary.main,.55)),_e(T.Switch,"secondaryDisabledColor",_n(T.secondary.main,.55)),_e(T.Switch,"errorDisabledColor",_n(T.error.main,.55)),_e(T.Switch,"infoDisabledColor",_n(T.info.main,.55)),_e(T.Switch,"successDisabledColor",_n(T.success.main,.55)),_e(T.Switch,"warningDisabledColor",_n(T.warning.main,.55)),_e(T.TableCell,"border",_n(mm(T.divider,1),.68)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}Ci(T.background,"default"),Ci(T.background,"paper"),Ci(T.common,"background"),Ci(T.common,"onBackground"),Ci(T,"divider"),Object.keys(T).forEach(U=>{const B=T[U];U!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&_e(T[U],"mainChannel",cf(uf(B.main))),B.light&&_e(T[U],"lightChannel",cf(uf(B.light))),B.dark&&_e(T[U],"darkChannel",cf(uf(B.dark))),B.contrastText&&_e(T[U],"contrastTextChannel",cf(uf(B.contrastText))),U==="text"&&(Ci(T[U],"primary"),Ci(T[U],"secondary")),U==="action"&&(B.active&&Ci(T[U],"active"),B.selected&&Ci(T[U],"selected")))})}),R=t.reduce((j,T)=>$r(j,T),R);const O={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:s,getSelector:OV(R)},{vars:k,generateThemeVars:F,generateStyleSheets:G}=PV(R,O);return R.vars=k,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([j,T])=>{R[j]=T}),R.generateThemeVars=F,R.generateStyleSheets=G,R.generateSpacing=function(){return QT(d.spacing,kS(this))},R.getColorSchemeSelector=MV(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},R.unstable_sx=function(j){return du({sx:j,theme:this})},R.toRuntimeSource=N3,R}function vD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xS({...n===!0?{}:n.palette,mode:t})})}function jV(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 gE(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=gE({...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},vD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},vD(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),UV({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const xy=jV(),wy="$$material";function $3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ea=e=>$3(e)&&e!=="classes";function HV(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 zV={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 VV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var GV=/[A-Z]|^ms/g,qV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F3=function(e){return e.charCodeAt(1)===45},bD=function(e){return e!=null&&typeof e!="boolean"},zv=VV(function(e){return F3(e)?e:e.replace(GV,"-$&").toLowerCase()}),ED=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(qV,function(n,r,a){return Ts={name:r,styles:a,next:Ts},r})}return zV[e]!==1&&!F3(e)&&typeof t=="number"&&t!==0?t+"px":t};function Tg(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 Ts={name:a.name,styles:a.styles,next:Ts},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ts={name:s.name,styles:s.styles,next:Ts},s=s.next;var c=o.styles+";";return c}return WV(e,t,n)}}var u=n;return u}function WV(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Tg(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var c=s;bD(c)&&(r+=zv(o)+":"+ED(o,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)bD(s[u])&&(r+=zv(o)+":"+ED(o,s[u])+";");else{var d=Tg(e,t,s);switch(o){case"animation":case"animationName":{r+=zv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var TD=/label:\s*([^\s;{]+)\s*(;|$)/g,Ts;function YV(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="";Ts=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Tg(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Tg(n,t,e[c]),r){var u=o;a+=u[c]}TD.lastIndex=0;for(var d="",p;(p=TD.exec(a))!==null;)d+="-"+p[1];var h=HV(a)+d;return{name:h,styles:a,next:Ts}}function QV(e,t){return hg(e,t)}function KV(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const SD=[];function _l(e){return SD[0]=e,YV(SD)}function XV(e){const{variants:t,...n}=e,r={variants:t,style:_l(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=_l(a.style))}),r}const ZV=OS();function ws(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ml(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function JV(e){return e?(t,n)=>n[e]:null}function eG(e,t,n){e.theme=nG(e.theme)?n:e.theme[t]||e.theme}function Gm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Gm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?ml(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?ml(_l(s),n):s}return B3(e,r.variants,[a],n)}return r?.isProcessed?n?ml(_l(r.style),n):r.style:n?ml(_l(r),n):r}function B3(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?ml(_l(s.style(a)),r):s.style(a))):n.push(r?ml(_l(s.style),r):s.style)}return n}function tG(e={}){const{themeId:t,defaultTheme:n=ZV,rootShouldForwardProp:r=ws,slotShouldForwardProp:a=ws}=e;function o(s){eG(s,t,n)}return(s,c={})=>{KV(s,O=>O.filter(k=>k!==du));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=JV(aG(d)),...y}=c,b=u&&u.startsWith("Mui")||d?"components":"custom",E=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,_=h||!1;let A=ws;d==="Root"||d==="root"?A=r:d?A=a:rG(s)&&(A=void 0);const D=QV(s,{shouldForwardProp:A,label:void 0,...y}),w=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(k){return Gm(k,O,k.theme.modularCssLayers?b:void 0)};if(Wo(O)){const k=XV(O);return function(F){return k.variants?Gm(F,k,F.theme.modularCssLayers?b:void 0):F.theme.modularCssLayers?ml(k.style,b):k.style}}return O},R=(...O)=>{const k=[],F=O.map(w),G=[];if(k.push(o),u&&g&&G.push(function(M){const U=M.theme.components?.[u]?.styleOverrides;if(!U)return null;const B={};for(const Y in U)B[Y]=Gm(M,U[Y],M.theme.modularCssLayers?"theme":void 0);return g(M,B)}),u&&!E&&G.push(function(M){const U=M.theme?.components?.[u]?.variants;return U?B3(M,U,[],M.theme.modularCssLayers?"theme":void 0):null}),_||G.push(du),Array.isArray(F[0])){const M=F.shift(),U=new Array(k.length).fill(""),B=new Array(G.length).fill("");let Y;Y=[...U,...M,...B],Y.raw=[...U,...M.raw,...B],k.unshift(Y)}const j=[...k,...F,...G],T=D(...j);return s.muiName&&(T.muiName=s.muiName),T};return D.withConfig&&(R.withConfig=D.withConfig),R}}function nG(e){for(const t in e)return!1;return!0}function rG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function aG(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ze=tG({themeId:wy,defaultTheme:xy,rootShouldForwardProp:ea});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 oG=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${rt(t)}`,`fontSize${rt(n)}`]};return zt(a,oz,r)},iG=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${rt(n.color)}`],t[`fontSize${rt(n.fontSize)}`]]}})(fn(({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}}]}))),vE=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",...g}=n,y=x.isValidElement(r)&&r.type==="svg",b={...n,color:o,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},E={};d||(E.viewBox=h);const _=oG(b);return P.jsxs(iG,{as:s,className:mt(_.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...E,...g,...y&&r.props,ownerState:b,children:[y?r.props.children:r,p?P.jsx("title",{children:p}):null]})});vE.muiName="SvgIcon";function wn(e,t){function n(r,a){return P.jsx(vE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=vE.muiName,x.memo(x.forwardRef(n))}const Lge=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 bE({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(Sl,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[P.jsx(pS,{size:t,color:n,thickness:r}),e&&P.jsx(hS,{variant:s,color:"text.secondary",children:e})]});return a?P.jsx(Sl,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const Dy=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},Pge=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=xt(_3)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),lG=xt(C3)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),U3=xt(jH)({padding:"0"}),Mge=xt("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});xt("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const $ge=xt("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Fge=xt("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Bge=xt("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)"}});xt("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});xt("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const cG=xt("div")({height:"100%"});xt("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const j3=xt("div")({height:"75vh",width:"100%",overflowY:"auto"});xt("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Uge=xt(_3)({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)"}}),jge=xt(C3)({padding:"0","&:last-child":{paddingBottom:"0"}}),Hge=xt("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),zge=xt("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});var Tu=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(){}},Il=typeof window>"u"||"Deno"in globalThis;function qr(){}function uG(e,t){return typeof e=="function"?e(t):e}function EE(e){return typeof e=="number"&&e>=0&&e!==1/0}function H3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ds(e,t){return typeof e=="function"?e(t):e}function Xa(e,t){return typeof e=="function"?e(t):e}function _D(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==IS(s,t.options))return!1}else if(!Qf(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 CD(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Nl(t.options.mutationKey)!==Nl(o))return!1}else if(!Qf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function IS(e,t){return(t?.queryKeyHashFn||Nl)(e)}function Nl(e){return JSON.stringify(e,(t,n)=>TE(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Qf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qf(e[n],t[n])):!1}function z3(e,t){if(e===t)return e;const n=AD(e)&&AD(t);if(n||TE(e)&&TE(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),s=o.length,c=n?[]:{},u=new Set(r);let d=0;for(let p=0;p<s;p++){const h=n?p:o[p];(!n&&u.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(c[h]=void 0,d++):(c[h]=z3(e[h],t[h]),c[h]===e[h]&&e[h]!==void 0&&d++)}return a===s&&d===a?e:c}return t}function Sg(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 AD(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function TE(e){if(!xD(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xD(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xD(e){return Object.prototype.toString.call(e)==="[object Object]"}function dG(e){return new Promise(t=>{setTimeout(t,e)})}function SE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?z3(e,t):t}function fG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var NS=Symbol();function V3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===NS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function G3(e,t){return typeof e=="function"?e(...t):!!e}var hG=class extends Tu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},LS=new hG,mG=class extends Tu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&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.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},_g=new mG;function _E(){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}function gG(e){return Math.min(1e3*2**e,3e4)}function q3(e){return(e??"online")==="online"?_g.isOnline():!0}var W3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Vv(e){return e instanceof W3}function Y3(e){let t=!1,n=0,r=!1,a;const o=_E(),s=E=>{r||(g(new W3(E)),e.abort?.())},c=()=>{t=!0},u=()=>{t=!1},d=()=>LS.isFocused()&&(e.networkMode==="always"||_g.isOnline())&&e.canRun(),p=()=>q3(e.networkMode)&&e.canRun(),h=E=>{r||(r=!0,e.onSuccess?.(E),a?.(),o.resolve(E))},g=E=>{r||(r=!0,e.onError?.(E),a?.(),o.reject(E))},y=()=>new Promise(E=>{a=_=>{(r||d())&&E(_)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),b=()=>{if(r)return;let E;const _=n===0?e.initialPromise:void 0;try{E=_??e.fn()}catch(A){E=Promise.reject(A)}Promise.resolve(E).then(h).catch(A=>{if(r)return;const D=e.retry??(Il?0:3),w=e.retryDelay??gG,R=typeof w=="function"?w(n,A):w,O=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,A);if(t||!O){g(A);return}n++,e.onFail?.(n,A),dG(R).then(()=>d()?void 0:y()).then(()=>{t?g(A):b()})})};return{promise:o,cancel:s,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),o)}}var yG=e=>setTimeout(e,0);function vG(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=yG;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 pr=vG(),Q3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EE(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Il?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},bG=class extends Q3{#t;#e;#n;#r;#a;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=EG(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=SE(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.#a?.promise;return this.#a?.cancel(e),t?t.then(qr).catch(qr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Xa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===NS||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:!H3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.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"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=V3(this.options,t),p=(()=>{const h={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(u,p,this):u(p)},s=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta});const c=u=>{Vv(u)&&u.silent||this.#o({type:"error",error:u}),Vv(u)||(this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this)),this.scheduleGc()};return this.#a=Y3({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{if(u===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(d){c(d);return}this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),this.scheduleGc()},onError:c,onFail:(u,d)=>{this.#o({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#a.start()}#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,...K3(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...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}};case"error":const r=e.error;return Vv(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function K3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function EG(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 TG=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??IS(r,t);let o=this.get(a);return o||(o=new bG({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>_D(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>_D(e,n)):t}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},SG=class extends Q3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||X3(),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.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=Y3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.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),pr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function X3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _G=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new SG({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ym(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=ym(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>CD(t,n))}findAll(e={}){return this.getAll().filter(t=>CD(e,t))}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return pr.batch(()=>Promise.all(e.map(t=>t.continue().catch(qr))))}};function ym(e){return e.options.scope?.id}function wD(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)})},g=V3(t.options,t.fetchOptions),y=async(b,E,_)=>{if(p)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const D=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return h(k),k})(),w=await g(D),{maxPages:R}=t.options,O=_?pG:fG;return{pages:O(b.pages,w,R),pageParams:O(b.pageParams,E,R)}};if(a&&o.length){const b=a==="backward",E=b?CG:DD,_={pages:o,pageParams:s},A=E(r,_);c=await y(_,A,b)}else{const b=e??o.length;do{const E=u===0?s[0]??r.initialPageParam:DD(r,c);if(u>0&&E==null)break;c=await y(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 DD(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 CG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var AG=class{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new TG,this.#e=e.mutationCache||new _G,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=LS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=_g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.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.#t.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.#t.get(r.queryHash)?.state.data,s=uG(t,o);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return pr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;pr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return pr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pr.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(qr).catch(qr)}invalidateQueries(e,t={}){return pr.batch(()=>(this.#t.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=pr.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(qr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(qr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.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(qr).catch(qr)}fetchInfiniteQuery(e){return e.behavior=wD(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qr).catch(qr)}ensureInfiniteQueryData(e){return e.behavior=wD(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _g.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Qf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Qf(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=IS(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===NS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},xG=class extends Tu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=_E(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#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.#e.addObserver(this),kD(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CE(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CE(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Sg(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&RD(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||Ds(this.options.staleTime,this.#e)!==Ds(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return DG(this,n)&&(this.#r=n,this.#i=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qr)),t}#g(){this.#E();const e=Ds(this.options.staleTime,this.#e);if(Il||this.#r.isStale||!EE(e))return;const n=H3(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#T(),this.#l=e,!(Il||Xa(this.options.enabled,this.#e)===!1||!EE(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#E(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,g;if(t._optimisticResults){const G=this.hasListeners(),j=!G&&kD(e,t),T=G&&RD(e,n,t,r);(j||T)&&(p={...p,...K3(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:E}=p;g=p.data;let _=!1;if(t.placeholderData!==void 0&&g===void 0&&E==="pending"){let G;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(G=a.data,_=!0):G=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,G!==void 0&&(E="success",g=SE(a?.data,G,t),h=!0)}if(t.select&&g!==void 0&&!_)if(a&&g===o?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=SE(a?.data,g,t),this.#f=g,this.#o=null}catch(G){this.#o=G}this.#o&&(y=this.#o,g=this.#f,b=Date.now(),E="error");const A=p.fetchStatus==="fetching",D=E==="pending",w=E==="error",R=D&&A,O=g!==void 0,F={status:E,fetchStatus:p.fetchStatus,isPending:D,isSuccess:E==="success",isError:w,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,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&&!D,isLoadingError:w&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:PS(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Xa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},j=()=>{const M=this.#s=F.promise=_E();G(M)},T=this.#s;switch(T.status){case"pending":e.queryHash===n.queryHash&&G(T);break;case"fulfilled":(F.status==="error"||F.data!==T.value)&&j();break;case"rejected":(F.status!=="error"||F.error!==T.reason)&&j();break}}return F}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#p=this.#e),Sg(t,e))return;this.#r=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.#r).some(s=>{const c=s;return this.#r[c]!==e[c]&&o.has(c)})};this.#_({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){pr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function wG(e,t){return Xa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kD(e,t){return wG(e,t)||e.state.data!==void 0&&CE(e,t,t.refetchOnMount)}function CE(e,t,n){if(Xa(t.enabled,e)!==!1&&Ds(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&PS(e,t)}return!1}function RD(e,t,n,r){return(e!==t||Xa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&PS(e,n)}function PS(e,t){return Xa(t.enabled,e)!==!1&&e.isStaleByTime(Ds(t.staleTime,e))}function DG(e,t){return!Sg(e.getCurrentResult(),t)}var kG=class extends Tu{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Sg(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Nl(n.mutationKey)!==Nl(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.#a(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??X3();this.#e={...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){pr.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Z3=x.createContext(void 0),J3=e=>{const t=x.useContext(Z3);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RG=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(Z3.Provider,{value:e,children:t})),eN=x.createContext(!1),OG=()=>x.useContext(eN);eN.Provider;function IG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var NG=x.createContext(IG()),LG=()=>x.useContext(NG),PG=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},MG=e=>{x.useEffect(()=>{e.clearReset()},[e])},$G=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||G3(n,[e.error,r])),FG=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},BG=(e,t)=>e.isLoading&&e.isFetching&&!t,UG=(e,t)=>e?.suspense&&t.isPending,OD=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jG(e,t,n){const r=OG(),a=LG(),o=J3(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",FG(s),PG(s,a),MG(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 g=p?u.subscribe(pr.batchCalls(h)):qr;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),x.useEffect(()=>{u.setOptions(s)},[s,u]),UG(s,d))throw OD(s,u,a);if($G({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&&!Il&&BG(d,r)&&(c?OD(s,u,a):o.getQueryCache().get(s.queryHash)?.promise)?.catch(qr).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function HG(e,t){return jG(e,xG,t)}function zG(e,t){const n=J3(t),[r]=x.useState(()=>new kG(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const a=x.useSyncExternalStore(x.useCallback(s=>r.subscribe(pr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=x.useCallback((s,c)=>{r.mutate(s,c).catch(qr)},[r]);if(a.error&&G3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const tN=[{id:"abap",name:"ABAP",import:()=>V(()=>import("./index.es308-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>V(()=>import("./index.es309-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>V(()=>import("./index.es310-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>V(()=>import("./index.es311-B4I7CPCs.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>V(()=>import("./index.es312-D6Wb5Qbz.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>V(()=>import("./index.es313-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>V(()=>import("./index.es314-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>V(()=>import("./index.es315-De-j80TX.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>V(()=>import("./index.es316-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>V(()=>import("./index.es317-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>V(()=>import("./index.es318-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>V(()=>import("./index.es319-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>V(()=>import("./index.es320-BOD1ZJZT.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>V(()=>import("./index.es321-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>V(()=>import("./index.es322-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>V(()=>import("./index.es323-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>V(()=>import("./index.es324-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>V(()=>import("./index.es325-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>V(()=>import("./index.es326-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>V(()=>import("./index.es327-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>V(()=>import("./index.es328-CVyYL2Cb.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>V(()=>import("./index.es329-C73tSnxx.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>V(()=>import("./index.es330-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>V(()=>import("./index.es331-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>V(()=>import("./index.es332-pdJPCQ16.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>V(()=>import("./index.es333-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>V(()=>import("./index.es334-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>V(()=>import("./index.es335-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>V(()=>import("./index.es336-BW2O-pnR.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>V(()=>import("./index.es337-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>V(()=>import("./index.es338-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>V(()=>import("./index.es339-BaWHmQaH.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>V(()=>import("./index.es340-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>V(()=>import("./index.es341-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>V(()=>import("./index.es342-D2Lnssjt.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>V(()=>import("./index.es343-YbS6hTnA.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>V(()=>import("./index.es344-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>V(()=>import("./index.es345-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>V(()=>import("./index.es346-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>V(()=>import("./index.es347-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>V(()=>import("./index.es348-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>V(()=>import("./index.es349-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>V(()=>import("./index.es350-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>V(()=>import("./index.es351-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>V(()=>import("./index.es352-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>V(()=>import("./index.es353-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>V(()=>import("./index.es354-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>V(()=>import("./index.es355-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>V(()=>import("./index.es356-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>V(()=>import("./index.es357-CoBUMGfg.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>V(()=>import("./index.es358-DbSm3pvF.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>V(()=>import("./index.es359-DMGMoOZB.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>V(()=>import("./index.es360-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>V(()=>import("./index.es361-BHceIWHs.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:()=>V(()=>import("./index.es362-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>V(()=>import("./index.es363-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>V(()=>import("./index.es364-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>V(()=>import("./index.es365-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>V(()=>import("./index.es366-PXx-OsXN.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>V(()=>import("./index.es367-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>V(()=>import("./index.es368-Cr9RaTtA.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>V(()=>import("./index.es369-C0mtzGRN.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>V(()=>import("./index.es370-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>V(()=>import("./index.es371-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>V(()=>import("./index.es372-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>V(()=>import("./index.es373--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>V(()=>import("./index.es374-Drv5n-HJ.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>V(()=>import("./index.es375-U_De2V6q.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>V(()=>import("./index.es376-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>V(()=>import("./index.es377-B3MRYiit.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>V(()=>import("./index.es378-DoTPPeUr.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>V(()=>import("./index.es379-BPm5p9Tu.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>V(()=>import("./index.es380-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>V(()=>import("./index.es381-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>V(()=>import("./index.es382-DKIqkYbM.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>V(()=>import("./index.es383-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>V(()=>import("./index.es384-DXiKOUzH.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>V(()=>import("./index.es385-CLF2pcju.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>V(()=>import("./index.es386-Bh-sEjq4.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>V(()=>import("./index.es387-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>V(()=>import("./index.es388-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>V(()=>import("./index.es389-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>V(()=>import("./index.es390-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>V(()=>import("./index.es391-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>V(()=>import("./index.es392-CRHao7mg.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>V(()=>import("./index.es393-Cm6sEy7_.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>V(()=>import("./index.es394-B8ZpxCSt.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>V(()=>import("./index.es395-DkWbmmH5.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>V(()=>import("./index.es396-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>V(()=>import("./index.es397-CKDseQYx.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>V(()=>import("./index.es398-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>V(()=>import("./index.es399-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>V(()=>import("./index.es400-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>V(()=>import("./index.es401-CtFcnffO.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>V(()=>import("./index.es402-CxdH5hVg.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>V(()=>import("./index.es403-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>V(()=>import("./index.es404-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>V(()=>import("./index.es405-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>V(()=>import("./index.es406-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>V(()=>import("./index.es407-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>V(()=>import("./index.es408-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>V(()=>import("./index.es409-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>V(()=>import("./index.es410-DUOnTx6Y.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>V(()=>import("./index.es411-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>V(()=>import("./index.es412-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>V(()=>import("./index.es413-o0g0o7a9.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>V(()=>import("./index.es414-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>V(()=>import("./index.es415-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>V(()=>import("./index.es416-Dy45-wq4.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>V(()=>import("./index.es417-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>V(()=>import("./index.es418-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>V(()=>import("./index.es419-DltXKq7x.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>V(()=>import("./index.es420-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>V(()=>import("./index.es421-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>V(()=>import("./index.es422-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>V(()=>import("./index.es423-CYo8sXPV.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>V(()=>import("./index.es424-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>V(()=>import("./index.es425-8kqvQzEa.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>V(()=>import("./index.es426-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>V(()=>import("./index.es427-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>V(()=>import("./index.es428-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>V(()=>import("./index.es429-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>V(()=>import("./index.es430-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>V(()=>import("./index.es431-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>V(()=>import("./index.es432-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>V(()=>import("./index.es433-D_41FSTK.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>V(()=>import("./index.es434-DeV3Y_jn.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>V(()=>import("./index.es435-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>V(()=>import("./index.es436-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>V(()=>import("./index.es437-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>V(()=>import("./index.es438-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>V(()=>import("./index.es439-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>V(()=>import("./index.es440-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>V(()=>import("./index.es441-Cj1Yw83T.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>V(()=>import("./index.es442-BAhAeZbN.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>V(()=>import("./index.es443-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>V(()=>import("./index.es444-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>V(()=>import("./index.es445-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>V(()=>import("./index.es446-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>V(()=>import("./index.es447-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>V(()=>import("./index.es448-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>V(()=>import("./index.es449-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>V(()=>import("./index.es450-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>V(()=>import("./index.es451-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>V(()=>import("./index.es452-CPGmraR2.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>V(()=>import("./index.es453-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>V(()=>import("./index.es454-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>V(()=>import("./index.es455-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>V(()=>import("./index.es456-BdFu7nX3.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>V(()=>import("./index.es457-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>V(()=>import("./index.es458-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>V(()=>import("./index.es459-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>V(()=>import("./index.es460-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>V(()=>import("./index.es461-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>V(()=>import("./index.es462-D6GNpC-z.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>V(()=>import("./index.es463-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>V(()=>import("./index.es464-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>V(()=>import("./index.es465-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>V(()=>import("./index.es466-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>V(()=>import("./index.es467-ClH_GnCa.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:()=>V(()=>import("./index.es468-Di3zYFeC.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:()=>V(()=>import("./index.es469-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>V(()=>import("./index.es470-DgLPjbVB.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>V(()=>import("./index.es471-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>V(()=>import("./index.es472-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>V(()=>import("./index.es473-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>V(()=>import("./index.es474-B824aOrb.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>V(()=>import("./index.es475-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>V(()=>import("./index.es476-BlPAYHhB.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>V(()=>import("./index.es477-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>V(()=>import("./index.es478-BBy72e0U.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>V(()=>import("./index.es479-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>V(()=>import("./index.es480-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>V(()=>import("./index.es481-Df-VYnz4.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>V(()=>import("./index.es482-DNcoqtdL.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>V(()=>import("./index.es483-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>V(()=>import("./index.es484-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>V(()=>import("./index.es485-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>V(()=>import("./index.es486-D8LYNoLQ.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>V(()=>import("./index.es487-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>V(()=>import("./index.es488-BUMxLwvA.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>V(()=>import("./index.es489-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>V(()=>import("./index.es490-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>V(()=>import("./index.es491-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>V(()=>import("./index.es492-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>V(()=>import("./index.es493-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>V(()=>import("./index.es494-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>V(()=>import("./index.es495-D-qd6FpS.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>V(()=>import("./index.es496-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>V(()=>import("./index.es497-LaARGtc9.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>V(()=>import("./index.es498-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>V(()=>import("./index.es499-DUJgu_Bk.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>V(()=>import("./index.es500-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>V(()=>import("./index.es501-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>V(()=>import("./index.es502-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>V(()=>import("./index.es503-BJ9VRCwz.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:()=>V(()=>import("./index.es504-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>V(()=>import("./index.es505-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>V(()=>import("./index.es506-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>V(()=>import("./index.es507-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>V(()=>import("./index.es508-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>V(()=>import("./index.es509-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>V(()=>import("./index.es510-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>V(()=>import("./index.es511-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>V(()=>import("./index.es512-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>V(()=>import("./index.es513-DcdvkC6C.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>V(()=>import("./index.es514-BR9aJ-oz.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>V(()=>import("./index.es515-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>V(()=>import("./index.es516-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>V(()=>import("./index.es517-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>V(()=>import("./index.es518-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>V(()=>import("./index.es519-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>V(()=>import("./index.es520-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>V(()=>import("./index.es521-B5F1bSbk.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>V(()=>import("./index.es522-DMB2cdTG.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>V(()=>import("./index.es523-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>V(()=>import("./index.es524-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>V(()=>import("./index.es525-BVz_zdnA.js"),[])}],VG=Object.fromEntries(tN.map(e=>[e.id,e.import])),GG=Object.fromEntries(tN.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),qG={...VG,...GG},WG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>V(()=>import("./index.es526-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>V(()=>import("./index.es527-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>V(()=>import("./index.es528-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>V(()=>import("./index.es529-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>V(()=>import("./index.es530-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>V(()=>import("./index.es531-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>V(()=>import("./index.es532-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>V(()=>import("./index.es533-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>V(()=>import("./index.es534-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>V(()=>import("./index.es535-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>V(()=>import("./index.es536-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>V(()=>import("./index.es537-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>V(()=>import("./index.es538-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>V(()=>import("./index.es539-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>V(()=>import("./index.es540-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>V(()=>import("./index.es541-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>V(()=>import("./index.es542-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>V(()=>import("./index.es543-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>V(()=>import("./index.es544-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>V(()=>import("./index.es545-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>V(()=>import("./index.es546-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>V(()=>import("./index.es547-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>V(()=>import("./index.es548-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>V(()=>import("./index.es549-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>V(()=>import("./index.es550-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>V(()=>import("./index.es551-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>V(()=>import("./index.es552-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>V(()=>import("./index.es553-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>V(()=>import("./index.es554-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>V(()=>import("./index.es555-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>V(()=>import("./index.es556-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>V(()=>import("./index.es557-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>V(()=>import("./index.es558-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>V(()=>import("./index.es559-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>V(()=>import("./index.es560-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>V(()=>import("./index.es561-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>V(()=>import("./index.es562-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>V(()=>import("./index.es563-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>V(()=>import("./index.es564-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>V(()=>import("./index.es565-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>V(()=>import("./index.es566-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>V(()=>import("./index.es567-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>V(()=>import("./index.es568-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>V(()=>import("./index.es569-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>V(()=>import("./index.es570-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>V(()=>import("./index.es571-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>V(()=>import("./index.es572-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>V(()=>import("./index.es573-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>V(()=>import("./index.es574-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>V(()=>import("./index.es575-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>V(()=>import("./index.es576-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>V(()=>import("./index.es577-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>V(()=>import("./index.es578-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>V(()=>import("./index.es579-CVO1_9PV.js"),[])}],YG=Object.fromEntries(WG.map(e=>[e.id,e.import]));let Ii=class extends Error{constructor(t){super(t),this.name="ShikiError"}},MS=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function QG(){return 2147483648}function KG(){return typeof performance<"u"?performance.now():Date.now()}const XG=(e,t)=>e+(t-e%t)%t;async function ZG(e){let t,n;const r={};function a(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function o(y,b,E){r.HEAPU8.copyWithin(y,b,b+E)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(y){const b=r.HEAPU8.length;y=y>>>0;const E=QG();if(y>E)return!1;for(let _=1;_<=4;_*=2){let A=b*(1+.2/_);A=Math.min(A,y+100663296);const D=Math.min(E,XG(Math.max(y,A),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,b,E=1024){const _=b+E;let A=b;for(;y[A]&&!(A>=_);)++A;if(A-b>16&&y.buffer&&u)return u.decode(y.subarray(b,A));let D="";for(;b<A;){let w=y[b++];if(!(w&128)){D+=String.fromCharCode(w);continue}const R=y[b++]&63;if((w&224)===192){D+=String.fromCharCode((w&31)<<6|R);continue}const O=y[b++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|O:w=(w&7)<<18|R<<12|O<<6|y[b++]&63,w<65536)D+=String.fromCharCode(w);else{const k=w-65536;D+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return D}function p(y,b){return y?d(r.HEAPU8,y,b):""}const h={emscripten_get_now:KG,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const y=await e({env:h,wasi_snapshot_preview1:h});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await g(),r}var JG=Object.defineProperty,eq=(e,t,n)=>t in e?JG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fr=(e,t,n)=>(eq(e,typeof t!="symbol"?t+"":t,n),n);let Tr=null;function tq(e){throw new MS(e.UTF8ToString(e.getLastOnigError()))}let nN=class rN{constructor(t){fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16Value"),fr(this,"utf8Value"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16");const n=t.length,r=rN._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,g=!1;if(p>=55296&&p<=56319&&d+1<n){const y=t.charCodeAt(d+1);y>=56320&&y<=57343&&(h=(p-55296<<10)+65536|y-56320,g=!0)}a&&(o[d]=u,g&&(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),g&&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 Fo=class{constructor(t){if(fr(this,"id",++Fo.LAST_ID),fr(this,"_onigBinding"),fr(this,"content"),fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16"),fr(this,"ptr"),!Tr)throw new MS("Must invoke loadWasm first.");this._onigBinding=Tr,this.content=t;const n=new nN(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Fo._sharedPtrInUse?(Fo._sharedPtr||(Fo._sharedPtr=Tr.omalloc(1e4)),Fo._sharedPtrInUse=!0,Tr.HEAPU8.set(n.utf8Value,Fo._sharedPtr),this.ptr=Fo._sharedPtr):this.ptr=n.createString(Tr)}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===Fo._sharedPtr?Fo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Op=Fo;fr(Op,"LAST_ID",0);fr(Op,"_sharedPtr",0);fr(Op,"_sharedPtrInUse",!1);let nq=class{constructor(t){if(fr(this,"_onigBinding"),fr(this,"_ptr"),!Tr)throw new MS("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new nN(t[c]);n[c]=d.createString(Tr),r[c]=d.utf8Length}const a=Tr.omalloc(4*t.length);Tr.HEAPU32.set(n,a/4);const o=Tr.omalloc(4*t.length);Tr.HEAPU32.set(r,o/4);const s=Tr.createOnigScanner(a,o,t.length);for(let c=0,u=t.length;c<u;c++)Tr.ofree(n[c]);Tr.ofree(o),Tr.ofree(a),s===0&&tq(Tr),this._onigBinding=Tr,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 Op(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 g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}};function rq(e){return typeof e.instantiator=="function"}function aq(e){return typeof e.default=="function"}function oq(e){return typeof e.data<"u"}function iq(e){return typeof Response<"u"&&e instanceof Response}function sq(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 vm;function lq(e){if(vm)return vm;async function t(){Tr=await ZG(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),rq(r)?r=await r.instantiator(n):aq(r)?r=await r.default(n):(oq(r)&&(r=r.data),iq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await cq(r)(n):r=await uq(r)(n):sq(r)?r=await Gv(r)(n):r instanceof WebAssembly.Module?r=await Gv(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Gv(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return vm=t(),vm}function Gv(e){return t=>WebAssembly.instantiate(e,t)}function cq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function uq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let dq;function fq(){return dq}async function aN(e){return e&&await lq(e),{createScanner(t){return new nq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Op(t)}}}function pq(e){return $S(e)}function $S(e){return Array.isArray(e)?hq(e):e instanceof RegExp?e:typeof e=="object"?mq(e):e}function hq(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=$S(e[n]);return t}function mq(e){let t={};for(let n in e)t[n]=$S(e[n]);return t}function oN(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function iN(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?iN(e.substring(0,e.length-1)):e.substr(~t+1)}var qv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bm=class{static hasCaptures(t){return t===null?!1:(qv.lastIndex=0,qv.test(t))}static replaceCaptures(t,n,r){return t.replace(qv,(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 sN(e,t){return e<t?-1:e>t?1:0}function lN(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=sN(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ID(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 cN(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var uN=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}},Cg=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(vq(t),n)}static createFromParsedTheme(t,n){return Eq(t,n)}_cachedMatchRoot=new uN(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=>gq(t.parent,a.parentScopes));return r?new dN(r.fontStyle,r.foreground,r.background):null}},Wv=class qm{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new qm(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new qm(n,t[r]);return n}push(t){return new qm(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 gq(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&&!yq(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function yq(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var dN=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function vq(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 g=0,y=h.length;g<y;g++)switch(h[g]){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"&&ID(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&ID(s.settings.background)&&(p=s.settings.background);for(let h=0,g=c.length;h<g;h++){let y=c[h].trim().split(" "),b=y[y.length-1],E=null;y.length>1&&(E=y.slice(0,y.length-1),E.reverse()),n[r++]=new bq(b,E,a,u,d,p)}}return n}var bq=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 Eq(e,t){e.sort((u,d)=>{let p=sN(u.scope,d.scope);return p!==0||(p=lN(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 Tq(t),s=new dN(n,o.getId(r),o.getId(a)),c=new _q(new AE(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 Cg(o,s,c)}var Tq=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)}},Sq=Object.freeze([]),AE=class fN{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||Sq,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new fN(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)}},_q=class xE{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(xE._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 xE(this._mainRule.clone(),AE.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(lN(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 AE(t,n,r,a,o))}},fu=class Ya{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ya.getLanguageId(t),r=Ya.getTokenType(t),a=Ya.getFontStyle(t),o=Ya.getForeground(t),s=Ya.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=Ya.getLanguageId(t),d=Ya.getTokenType(t),p=Ya.containsBalancedBrackets(t)?1:0,h=Ya.getFontStyle(t),g=Ya.getForeground(t),y=Ya.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),s!==0&&(g=s),c!==0&&(y=c),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Ag(e,t){const n=[],r=Cq(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(ND(a)){const u=[];do u.push(a),a=r.next();while(ND(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 ND(e){return!!e&&!!e.match(/[\w\.:]+/)}function Cq(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 pN(e){typeof e.dispose=="function"&&e.dispose()}var Kf=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Aq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},xq=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))}},wq=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Kf(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new xq;for(const r of t)Dq(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Kf){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 Dq(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 Kf?Wm({baseGrammar:o,selfGrammar:a},r):wE(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 Kf(c))}function wE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];xg([r],t,n)}}function Wm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xg(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?oN({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&xg(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const s=hN(o);switch(s.kind){case 0:Wm({...t,selfGrammar:t.baseGrammar},n);break;case 1:Wm(t,n);break;case 2:wE(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?wE(s.ruleName,u,n):Wm(u,n)}else s.kind===4?n.add(new Aq(s.scopeName,s.ruleName)):n.add(new Kf(s.scopeName));break}}}var kq=class{kind=0},Rq=class{kind=1},Oq=class{constructor(t){this.ruleName=t}kind=2},Iq=class{constructor(t){this.scopeName=t}kind=3},Nq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function hN(e){if(e==="$base")return new kq;if(e==="$self")return new Rq;const t=e.indexOf("#");if(t===-1)return new Iq(e);if(t===0)return new Oq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Nq(n,r)}}var Lq=/\\(\d+)/,LD=/\\(\d+)/g,Pq=-1,mN=-2,Ip=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=bm.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=bm.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${iN(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:bm.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bm.replaceCaptures(this._contentName,t,n)}},Mq=class extends Ip{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!")}},$q=class extends Ip{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new Xf(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 Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PD=class extends Ip{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 Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},DE=class extends Ip{_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 Xf(o,this.id),this.beginCaptures=s,this._end=new Xf(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 Zf;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}},wg=class extends Ip{_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 Xf(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Xf(c,mN),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 Zf;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 Zf,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},gN=class Ir{static createCaptureRule(t,n,r,a,o){return t.registerRule(s=>new Mq(n,s,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new $q(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ir._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=oN({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new PD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ir._compilePatterns(o,n,r))}return t.while?new wg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ir._compileCaptures(t.whileCaptures||t.captures,n,r),Ir._compilePatterns(t.patterns,n,r)):new DE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ir._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ir._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=Ir.getCompiledRuleId(t[s],n,r)),a[c]=Ir.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=hN(c.include);switch(d.kind){case 0:case 1:u=Ir.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Ir.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let b=y.repository[g];b&&(u=Ir.getCompiledRuleId(b,n,y.repository))}else u=Ir.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Ir.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof PD||d instanceof DE||d instanceof wg)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(u)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Xf=class yN{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=Lq.test(this.source):this.hasBackReferences=!1}clone(){return new yN(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 LD.lastIndex=0,this.source.replace(LD,(a,o)=>cN(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}},Zf=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 MD(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 MD(t,a,this._items.map(o=>o.ruleId))}},MD=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}},Yv=class{constructor(t,n){this.languageId=t,this.tokenType=n}},Fq=class kE{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Yv(t,8),this._embeddedLanguagesMatcher=new Bq(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?kE._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Yv(0,0);_getBasicScopeAttributes=new uN(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Yv(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(kE.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/},Bq=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])=>cN(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])}},$D=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function vN(e,t,n,r,a,o,s,c){const u=t.content.length;let d=!1,p=-1;if(s){const y=Uq(e,t,n,r,a,o);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new $D(a,!0);g()}return new $D(a,!1);function g(){const y=jq(e,t,n,r,a,p);if(!y){o.produce(a,u),d=!0;return}const b=y.captureIndices,E=y.matchedRuleId,_=b&&b.length>0?b[0].end>r:!1;if(E===Pq){const A=a.getRule(e);o.produce(a,b[0].start),a=a.withContentNameScopesList(a.nameScopesList),df(e,t,n,a,o,A.endCaptures,b),o.produce(a,b[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!_&&D.getEnterPos()===r){a=D,o.produce(a,u),d=!0;return}}else{const A=e.getRule(E);o.produce(a,b[0].start);const D=a,w=A.getName(t.content,b),R=a.contentNameScopesList.pushAttributed(w,e);if(a=a.push(E,r,p,b[0].end===u,null,R,R),A instanceof DE){const O=A;df(e,t,n,a,o,O.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const k=O.getContentName(t.content,b),F=R.pushAttributed(k,e);if(a=a.withContentNameScopesList(F),O.endHasBackReferences&&(a=a.withEndRule(O.getEndWithResolvedBackReferences(t.content,b))),!_&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(A instanceof wg){const O=A;df(e,t,n,a,o,O.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const k=O.getContentName(t.content,b),F=R.pushAttributed(k,e);if(a=a.withContentNameScopesList(F),O.whileHasBackReferences&&(a=a.withEndRule(O.getWhileWithResolvedBackReferences(t.content,b))),!_&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(df(e,t,n,a,o,A.captures,b),o.produce(a,b[0].end),a=a.pop(),!_){a=a.safePop(),o.produce(a,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function Uq(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 wg&&c.push({rule:d,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:d,findOptions:p}=Vq(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==mN){a=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(u.stack,h.captureIndices[0].start),df(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 jq(e,t,n,r,a,o){const s=Hq(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return s;const u=zq(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 Hq(e,t,n,r,a,o){const s=a.getRule(e),{ruleScanner:c,findOptions:u}=bN(s,e,a.endRule,n,r===o),d=c.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function zq(e,t,n,r,a,o,s){let c=Number.MAX_VALUE,u=null,d,p=0;const h=o.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const b=e[g];if(!b.matcher(h))continue;const E=t.getRule(b.ruleId),{ruleScanner:_,findOptions:A}=bN(E,t,null,r,a===s),D=_.findNextMatchSync(n,a,A);if(!D)continue;const w=D.captureIndices[0].start;if(!(w>=c)&&(c=w,u=D.captureIndices,d=D.ruleId,p=b.priority,c===a))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function bN(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Vq(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function df(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 g=o[h];if(g===null)continue;const y=s[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.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,y.start):a.produce(r,y.start),g.retokenizeCapturedWithRuleId){const E=g.getName(c,s),_=r.contentNameScopesList.pushAttributed(E,e),A=g.getContentName(c,s),D=_.pushAttributed(A,e),w=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,_,D),R=e.createOnigString(c.substring(0,y.end));vN(e,R,n&&y.start===0,y.start,w,a,!1,0),pN(R);continue}const b=g.getName(c,s);if(b!==null){const E=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new Gq(E,y.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var Gq=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function qq(e,t,n,r,a,o,s,c){return new Yq(e,t,n,r,a,o,s,c)}function FD(e,t,n,r,a){const o=Ag(t,Dg),s=gN.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 Dg(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(Wq(t[a],r))return n=a+1,!0;return!1})}function Wq(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 Yq=class{constructor(t,n,r,a,o,s,c,u){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Fq(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=BD(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const p=Ag(d,Dg);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)FD(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&&FD(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]=BD(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=gN.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===RE.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),g=fu.set(0,p.languageId,p.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),y=this.getRule(this._rootId).getName(null,null);let b;y?b=bf.createRootAndLookUpScopeName(y,g,this):b=bf.createRoot("unknown",g),n=new RE(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 Kq(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),d=vN(this,s,o,0,n,u,!0,a);return pN(s),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function BD(e,t){return e=pq(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 bf=class Bo{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=Wv.push(a,o.scopeNames),r=new Bo(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Bo(null,new Wv(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Wv(null,t),s=r.themeProvider.themeMatch(o),c=Bo.mergeAttributes(n,a,s);return new Bo(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Bo.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),fu.set(t,n.languageId,n.tokenType,null,a,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Bo._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Bo._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=Bo.mergeAttributes(t.tokenAttributes,a,s);return new Bo(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}},RE=class sl{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 sl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:sl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?bf.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(){sl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,s,c){return new sl(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 sl(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=bf.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new sl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,bf.fromExtension(r,n.contentNameScopesList))}},Qq=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ag(r,Dg).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ag(r,Dg).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}},Kq=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=fu.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=fu.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}},Xq=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,qq(t,s,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},Zq=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Xq(Cg.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Cg.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 Qq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const s=new wq(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)}},OE=RE.NULL;const EN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Np=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Np.prototype.normal={};Np.prototype.property={};Np.prototype.space=void 0;function TN(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Np(n,r,t)}function Jf(e){return e.toLowerCase()}let ga=class{constructor(t,n){this.attribute=n,this.property=t}};ga.prototype.attribute="";ga.prototype.booleanish=!1;ga.prototype.boolean=!1;ga.prototype.commaOrSpaceSeparated=!1;ga.prototype.commaSeparated=!1;ga.prototype.defined=!1;ga.prototype.mustUseProperty=!1;ga.prototype.number=!1;ga.prototype.overloadedBoolean=!1;ga.prototype.property="";ga.prototype.spaceSeparated=!1;ga.prototype.space=void 0;let Jq=0;const kt=jl(),ir=jl(),IE=jl(),$e=jl(),Rn=jl(),eu=jl(),xa=jl();function jl(){return 2**++Jq}const NE=Object.freeze(Object.defineProperty({__proto__:null,boolean:kt,booleanish:ir,commaOrSpaceSeparated:xa,commaSeparated:eu,number:$e,overloadedBoolean:IE,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),Qv=Object.keys(NE);let FS=class extends ga{constructor(t,n,r,a){let o=-1;if(super(t,n),UD(this,"space",a),typeof r=="number")for(;++o<Qv.length;){const s=Qv[o];UD(this,Qv[o],(r&NE[s])===NE[s])}}};FS.prototype.defined=!0;function UD(e,t,n){n&&(e[t]=n)}function Su(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new FS(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Jf(r)]=r,n[Jf(o.attribute)]=r}return new Np(t,n,e.space)}const SN=Su({properties:{ariaActiveDescendant:null,ariaAtomic:ir,ariaAutoComplete:null,ariaBusy:ir,ariaChecked:ir,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:ir,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:ir,ariaFlowTo:Rn,ariaGrabbed:ir,ariaHasPopup:null,ariaHidden:ir,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:$e,ariaLive:null,ariaModal:ir,ariaMultiLine:ir,ariaMultiSelectable:ir,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:ir,ariaReadOnly:ir,ariaRelevant:null,ariaRequired:ir,ariaRoleDescription:Rn,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:ir,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 _N(e,t){return t in e?e[t]:t}function CN(e,t){return _N(e,t.toLowerCase())}const eW=Su({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eu,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:kt,allowPaymentRequest:kt,allowUserMedia:kt,alt:null,as:null,async:kt,autoCapitalize:null,autoComplete:Rn,autoFocus:kt,autoPlay:kt,blocking:Rn,capture:null,charSet:null,checked:kt,cite:null,className:Rn,cols:$e,colSpan:null,content:null,contentEditable:ir,controls:kt,controlsList:Rn,coords:$e|eu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kt,defer:kt,dir:null,dirName:null,disabled:kt,download:IE,draggable:ir,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kt,formTarget:null,headers:Rn,height:$e,hidden:IE,high:$e,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:kt,inputMode:null,integrity:null,is:null,isMap:kt,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:kt,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:kt,muted:kt,name:null,nonce:null,noModule:kt,noValidate:kt,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:kt,optimum:$e,pattern:null,ping:Rn,placeholder:null,playsInline:kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kt,referrerPolicy:null,rel:Rn,required:kt,reversed:kt,rows:$e,rowSpan:$e,sandbox:Rn,scope:null,scoped:kt,seamless:kt,selected:kt,shadowRootClonable:kt,shadowRootDelegatesFocus:kt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ir,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:kt,useMap:null,value:ir,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:kt,declare:kt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:kt,noHref:kt,noShade:kt,noWrap:kt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ir,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:kt,disableRemotePlayback:kt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:CN}),tW=Su({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:xa,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:kt,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:eu,g2:eu,glyphName:eu,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:xa,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: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:$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:xa,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:xa,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:xa,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:_N}),AN=Su({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()}}),xN=Su({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CN}),wN=Su({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_u=TN([SN,eW,AN,xN,wN],"html"),Bi=TN([SN,tW,AN,xN,wN],"svg"),jD={}.hasOwnProperty;function ky(e,t){const n=t||{};function r(a,...o){let s=r.invalid;const c=r.handlers;if(a&&jD.call(a,e)){const u=String(a[e]);s=jD.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 nW=/["&'<>`]/g,rW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,oW=/[|\\{}()[\]^$+*?.]/g,HD=new WeakMap;function iW(e,t){if(e=e.replace(t.subset?sW(t.subset):nW,r),t.subset||t.escapeOnly)return e;return e.replace(rW,n).replace(aW,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 sW(e){let t=HD.get(e);return t||(t=lW(e),HD.set(e,t)),t}function lW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(oW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const cW=/[\dA-Fa-f]/;function uW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!cW.test(String.fromCharCode(t))?r:r+";"}const dW=/\d/;function fW(e,t,n){const r="&#"+String(e);return n&&t&&!dW.test(String.fromCharCode(t))?r:r+";"}const pW=["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"],Kv={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:"€"},hW=["cent","copy","divide","gt","lt","not","para","times"],DN={}.hasOwnProperty,LE={};let Em;for(Em in Kv)DN.call(Kv,Em)&&(LE[Kv[Em]]=Em);const mW=/[^\dA-Za-z]/;function gW(e,t,n,r){const a=String.fromCharCode(e);if(DN.call(LE,a)){const o=LE[a],s="&"+o;return n&&pW.includes(o)&&!hW.includes(o)&&(!r||t&&t!==61&&mW.test(String.fromCharCode(t)))?s:s+";"}return""}function yW(e,t,n){let r=uW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=gW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=fW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function tu(e,t){return iW(e,Object.assign({format:yW},t))}const vW=/^>|^->|<!--|-->|--!>|<!-$/g,bW=[">"],EW=["<",">"];function TW(e,t,n,r){return r.settings.bogusComments?"<?"+tu(e.value,Object.assign({},r.settings.characterReferences,{subset:bW}))+">":"<!--"+e.value.replace(vW,a)+"-->";function a(o){return tu(o,Object.assign({},r.settings.characterReferences,{subset:EW}))}}function SW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function kg(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 PE(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 Ry(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function ME(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Oy(e){return e.join(" ").trim()}const _W=/[ \t\n\f\r]/g;function Lp(e){return typeof e=="object"?e.type==="text"?zD(e.value):!1:zD(e)}function zD(e){return e.replace(_W,"")===""}const hr=RN(1),kN=RN(-1),CW=[];function RN(e){return t;function t(n,r,a){const o=n?n.children:CW;let s=(r||0)+e,c=o[s];if(!a)for(;c&&Lp(c);)s+=e,c=o[s];return c}}const AW={}.hasOwnProperty;function ON(e){return t;function t(n,r,a){return AW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const BS=ON({body:wW,caption:Xv,colgroup:Xv,dd:OW,dt:RW,head:Xv,html:xW,li:kW,optgroup:IW,option:NW,p:DW,rp:VD,rt:VD,tbody:PW,td:GD,tfoot:MW,th:GD,thead:LW,tr:$W});function Xv(e,t,n){const r=hr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Lp(r.value.charAt(0)))}function xW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function wW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function DW(e,t,n){const r=hr(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 kW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function RW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function OW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function VD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function IW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function NW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function LW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function PW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function MW(e,t,n){return!hr(n,t)}function $W(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function GD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const FW=ON({body:jW,colgroup:HW,head:UW,html:BW,tbody:zW});function BW(e){const t=hr(e,-1);return!t||t.type!=="comment"}function UW(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 jW(e){const t=hr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Lp(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function HW(e,t,n){const r=kN(n,t),a=hr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function zW(e,t,n){const r=kN(n,t),a=hr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const VW=/[A-Z]/g,qD=/-[a-z]/g,GW=/^data[-\w.:]+$/i;function Pp(e,t){const n=Jf(t);let r=t,a=ga;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(qD,WW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!qD.test(o)){let s=o.replace(VW,qW);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=FS}return new a(r,t)}function qW(e){return"-"+e.toLowerCase()}function WW(e){return e.charAt(1).toUpperCase()}const Tm={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 YW(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=QW(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(s=!1),(d||!o||!FW(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||!BS(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function QW(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=KW(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 KW(e,t,n){const r=Pp(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=tu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Tm.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ry:Oy)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=tu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tm.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&kg(n,s)>kg(n,e.alternative)&&(s=e.alternative),c=s+tu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tm.single:Tm.double)[a][o],attribute:!0}))+s),u+(c&&"="+c))}const XW=["<","&"];function IN(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:tu(e.value,Object.assign({},r.settings.characterReferences,{subset:XW}))}function ZW(e,t,n,r){return r.settings.allowDangerousHtml?e.value:IN(e,t,n,r)}function JW(e,t,n,r){return r.all(e)}const eY=ky("type",{invalid:tY,unknown:nY,handlers:{comment:TW,doctype:SW,element:YW,raw:ZW,root:JW,text:IN}});function tY(e){throw new Error("Expected node, not `"+e+"`")}function nY(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const rY={},aY={},oY=[];function iY(e,t){const n=rY,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:sY,all:lY,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||EN,characterReferences:n.characterReferences||aY,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Bi:_u,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sY(e,t,n){return eY(e,t,n,this)}function lY(e){const t=[],n=e&&e.children||oY;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function cY(e){return Array.isArray(e)?e:[e]}function Iy(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 US(e){return!e||["plaintext","txt","text","plain"].includes(e)}function NN(e){return e==="ansi"||US(e)}function jS(e){return e==="none"}function LN(e){return jS(e)}function PN(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 uY(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?uY(a,o):a})):e}async function MN(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Rg(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 gl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function $N(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 fY(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function pY(e){const t=Iy(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 Wr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const FN=new WeakMap;function Ny(e,t){FN.set(e,t)}function ep(e){return FN.get(e)}let Ly=class BN{_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 BN(Object.fromEntries(cY(n).map(r=>[r,OE])),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 WD(this._stacks[this.theme])}getScopes(t=this.theme){return WD(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function WD(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 hY(e,t){if(!(e instanceof Ly))throw new Wr("Invalid grammar state");return e.getInternalStack(t)}function mY(){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 Wr(`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 Wr(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>c.length)throw new Wr(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=pY(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));gY(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 Wr(`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,g,y){const b=a[p];let E="",_=-1,A=-1;if(h===0&&(_=0),g===0&&(A=0),g===Number.POSITIVE_INFINITY&&(A=b.children.length),_===-1||A===-1)for(let w=0;w<b.children.length;w++)E+=UN(b.children[w]),_===-1&&E.length===h&&(_=w+1),A===-1&&E.length===g&&(A=w+1);if(_===-1)throw new Wr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(A===-1)throw new Wr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=b.children.slice(_,A);if(!y.alwaysWrap&&D.length===b.children.length)c(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const w={type:"element",tagName:"span",properties:{},children:D};c(w,y,"wrapper"),b.children.splice(_,D.length,w)}}function s(p,h){a[p]=c(a[p],h,"line")}function c(p,h,g){const y=h.properties||{},b=h.transform||(E=>E);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&PN(p,h.properties.class),p=b(p,g)||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:g}=p;if(h.line===g.line)o(h.line,h.character,g.character,p);else if(h.line<g.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)u.unshift(()=>s(y,p));o(g.line,0,g.character,p)}}u.forEach(p=>p())}}}function gY(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Wr(`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 Wr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function UN(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(UN).join(""):""}const yY=[mY()];function Og(e){return[...e.transformers||[],...yY]}var yl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Zv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function vY(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 YD(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 bY(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)Zv[a]&&t.push({type:"setDecoration",value:Zv[a]});else if(a<=29){const o=Zv[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:yl[a-30]}});else if(a===38){const[o,s]=YD(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:yl[a-40]}});else if(a===48){const[o,s]=YD(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:yl[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:yl[a-100+8]}})}return t}function EY(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=vY(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=bY(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 TY={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 SY(e=TY){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<yl.length;d++)r.push(t(yl[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 _Y(e,t,n){const r=Rg(e,n),a=Iy(t),o=SY(Object.fromEntries(yl.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=EY();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=gl(d,r),p=gl(p,r),u.decorations.has("dim")&&(d=CY(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 CY(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 HS(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(US(r)||jS(a))return Iy(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:o,colorMap:s}=e.setTheme(a);if(r==="ansi")return _Y(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 xY(t,c,o,s,n)}function AY(...e){if(e.length===2)return ep(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(US(a)||jS(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 Ly(Ig(n,u,s,c,r).stateStack,u.name,s.name)}function xY(e,t,n,r,a){const o=Ig(e,t,n,r,a),s=new Ly(Ig(e,t,n,r,a).stateStack,t.name,n.name);return Ny(o.tokens,s),o.tokens}function Ig(e,t,n,r,a){const o=Rg(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=a,u=Iy(e);let d=a.grammarState?hY(a.grammarState,n.name)??OE:a.grammarContextCode!=null?Ig(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:OE,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[b,E]=u[g];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let _,A,D;a.includeExplanation&&(_=t.tokenizeLine(b,d),A=_.tokens,D=0);const w=t.tokenizeLine2(b,d,c),R=w.tokens.length/2;for(let O=0;O<R;O++){const k=w.tokens[2*O],F=O+1<R?w.tokens[2*O+2]:b.length;if(k===F)continue;const G=w.tokens[2*O+1],j=gl(r[fu.getForeground(G)],o),T=fu.getFontStyle(G),M={content:b.substring(k,F),offset:E+k,color:j,fontStyle:T};if(a.includeExplanation){const U=[];if(a.includeExplanation!=="scopeName")for(const Y of n.settings){let X;switch(typeof Y.scope){case"string":X=Y.scope.split(/,/).map(z=>z.trim());break;case"object":X=Y.scope;break;default:continue}U.push({settings:Y,selectors:X.map(z=>z.split(/ /))})}M.explanation=[];let B=0;for(;k+B<F;){const Y=A[D],X=b.substring(Y.startIndex,Y.endIndex);B+=X.length,M.explanation.push({content:X,scopes:a.includeExplanation==="scopeName"?wY(Y.scopes):DY(U,Y.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=w.ruleStack}return{tokens:h,stateStack:d}}function wY(e){return e.map(t=>({scopeName:t}))}function DY(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:RY(e,o,t.slice(0,r))}}return n}function QD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function kY(e,t,n){if(!QD(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)QD(e[r],n[a])&&(r-=1),a-=1;return r===-1}function RY(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const s of a)if(kY(s,t,n)){r.push(o);break}return r}function jN(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=HS(e,t,{...n,theme:u.theme}),p=ep(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),o=OY(...a.map(u=>u.tokens)),s=o[0].map((u,d)=>u.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),o.forEach((y,b)=>{const{content:E,explanation:_,offset:A,...D}=y[d][h];g.variants[r[b].color]=D}),g})),c=a[0].state?new Ly(Object.fromEntries(a.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),a[0].state.lang):void 0;return c&&Ny(s,c),s}function OY(...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 Ng(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(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,A)=>_.color===d?-1:A.color===d?1:0);if(h.length===0)throw new Ii("`themes` option must not be empty");const g=jN(e,t,n);if(u=ep(g),d&&!h.find(_=>_.color===d))throw new Ii(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(_=>e.getTheme(_.theme)),b=h.map(_=>_.color);o=g.map(_=>_.map(A=>IY(A,b,p,d))),u&&Ny(o,u);const E=h.map(_=>Rg(_.theme,n));a=h.map((_,A)=>(A===0&&d?"":`${p+_.color}:`)+(gl(y[A].fg,E[A])||"inherit")).join(";"),r=h.map((_,A)=>(A===0&&d?"":`${p+_.color}-bg:`)+(gl(y[A].bg,E[A])||"inherit")).join(";"),s=`shiki-themes ${y.map(_=>_.name).join(" ")}`,c=d?void 0:[a,r].join(";")}else if("theme"in n){const d=Rg(n.theme,n);o=HS(e,t,n);const p=e.getTheme(n.theme);r=gl(p.bg,d),a=gl(p.fg,d),s=p.name,u=ep(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 IY(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(u=>$N(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 g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);c[y]=h}}}),a.htmlStyle=c,a}function Lg(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>Lg(e,a,o),codeToTokens:(a,o)=>Ng(e,a,o)}){let a=t;for(const y of Og(n))a=y.preprocess?.call(r,a,n)||a;let{tokens:o,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Ng(e,a,n);const{mergeWhitespaces:h=!0}=n;h===!0?o=LY(o):h==="never"&&(o=PY(o));const g={...r,get source(){return a}};for(const y of Og(n))o=y.tokens?.call(g,o)||o;return NY(o,{...n,fg:s,bg:c,themeName:u,rootStyle:d},g,p)}function NY(e,t,n,r=ep(e)){const a=Og(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=[],g={...n,structure:c,addClassToHast:PN,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 _={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const D of b){let w={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=fY(D.htmlStyle||$N(D));R&&(w.properties.style=R);for(const O of a)w=O?.span?.call(g,w,E+1,A,_,D)||w;c==="inline"?s.children.push(w):c==="classic"&&_.children.push(w),A+=D.content.length}if(c==="classic"){for(const D of a)_=D?.line?.call(g,_,E+1)||_;h.push(_),o.push(_)}}),c==="classic"){for(const b of a)p=b?.code?.call(g,p)||p;d.children.push(p);for(const b of a)d=b?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const b of a)y=b?.root?.call(g,y)||y;return r&&Ny(y,r),y}function LY(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 PY(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 MY(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>Lg(e,o,s),codeToTokens:(o,s)=>Ng(e,o,s)};let a=iY(Lg(e,t,n,r));for(const o of Og(n))a=o.postprocess?.call(r,a,n)||a;return a}const KD={light:"#333333",dark:"#bbbbbb"},XD={light:"#fffffe",dark:"#1e1e1e"},ZD="__shiki_resolved";function zS(e){if(e?.[ZD])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"?KD.light:KD.dark),n||(n=t.type==="light"?XD.light:XD.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,ZD,{enumerable:!1,writable:!1,value:!0}),t}async function HN(e){return Array.from(new Set((await Promise.all(e.filter(t=>!NN(t)).map(async t=>await MN(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function zN(e){return(await Promise.all(e.map(async t=>LN(t)?null:zS(await MN(t))))).filter(t=>!!t)}let $Y=class extends Zq{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=zS(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=Cg.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 Wr(`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 Wr(`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))}},FY=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}},Bd=0;function BY(e){Bd+=1,e.warnings!==!1&&Bd>=10&&Bd%10===0&&console.warn(`[Shiki] ${Bd} 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 Wr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(zS),a=new FY(e.engine,n),o=new $Y(a,r,n,e.langAlias);let s;function c(D){_();const w=o.getGrammar(typeof D=="string"?D:D.name);if(!w)throw new Wr(`Language \`${D}\` not found, you may need to load it first`);return w}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const w=o.getTheme(D);if(!w)throw new Wr(`Theme \`${D}\` not found, you may need to load it first`);return w}function d(D){_();const w=u(D);s!==D&&(o.setTheme(w),s=D);const R=o.getColorMap();return{theme:w,colorMap:R}}function p(){return _(),o.getLoadedThemes()}function h(){return _(),o.getLoadedLanguages()}function g(...D){_(),o.loadLanguages(D.flat(1))}async function y(...D){return g(await HN(D))}function b(...D){_();for(const w of D.flat(1))o.loadTheme(w)}async function E(...D){return _(),b(await zN(D))}function _(){if(t)throw new Wr("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Bd-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:E,loadThemeSync:b,dispose:A,[Symbol.dispose]:A}}async function UY(e={}){e.loadWasm;const[t,n,r]=await Promise.all([zN(e.themes||[]),HN(e.langs||[]),e.engine||aN(e.loadWasm||fq())]);return BY({...e,themes:t,langs:n,engine:r})}async function jY(e={}){const t=await UY(e);return{getLastGrammarState:(...n)=>AY(t,...n),codeToTokensBase:(n,r)=>HS(t,n,r),codeToTokensWithThemes:(n,r)=>jN(t,n,r),codeToTokens:(n,r)=>Ng(t,n,r),codeToHast:(n,r)=>Lg(t,n,r),codeToHtml:(n,r)=>MY(t,n,r),...t,getInternalContext:()=>t}}function HY(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(y){if(typeof y=="string"){if(NN(y))return[];const b=r[y];if(!b)throw new Ii(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}function d(y){if(LN(y))return"none";if(typeof y=="string"){const b=a[y];if(!b)throw new Ii(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(c.themes??[]).map(y=>d(y)),h=(c.langs??[]).map(y=>u(y)),g=await jY({engine:c.engine??o(),...c,themes:p,langs:h});return{...g,loadLanguage(...y){return g.loadLanguage(...y.map(u))},loadTheme(...y){return g.loadTheme(...y.map(d))}}}return s}const zY=HY({langs:qG,themes:YG,engine:()=>aN(V(()=>import("./index.es300-CG6Dc4jp.js"),[]))}),Jv={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"}]}}},VY={...Jv,patterns:[...Jv.patterns,{include:"#docvar"}],repository:{...Jv.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},GY={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"}]}}},VN="github-light",qY=zY({themes:[VN],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...VY},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...GY}]});async function Nye(e,t){return(await qY).codeToHtml(e,{lang:t,theme:VN})}const WY=a3(P.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),YY=a3(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),QY=x.lazy(()=>V(()=>import("./index.es23-BsVG9VR1.js"),[]));function Lye({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),[g,y]=x.useState(void 0),[b,E]=x.useState(!1),_=x.useCallback(()=>{const O=a;o(!a),O&&h.current&&setTimeout(()=>{h.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),A=x.useCallback(O=>{c(O)},[]);if(x.useEffect(()=>{if(r){d(!1);return}if(b){d(!0);return}if(s===0){d(!1);return}const O=t-20,k=s>O;s<O&&y(s+20),d(k)},[s,b,t,r]),!e)return null;const D=P.jsx(bE,{text:"Loading...",centered:!0,size:32}),w=b?a?n-40:t-40:void 0,R=g?{minHeight:`${g}px`,height:"100%"}:{height:"100%"};return P.jsx(P.Fragment,{children:P.jsxs(Sl,{ref:h,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...R},children:[P.jsx(Sl,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:u?"40px":1},children:e&&P.jsx(x.Suspense,{fallback:D,children:P.jsx(QY,{result:e,height:w,isFillElement:O=>{E(O)},onSizeChange:A})})||D}),u&&P.jsx(Sl,{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(KU,{size:"small",onClick:_,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(WY,{sx:{fontSize:30}}):P.jsx(YY,{sx:{fontSize:30}})})})]})})}function GN(e,t){return function(){return e.apply(t,arguments)}}const{toString:KY}=Object.prototype,{getPrototypeOf:VS}=Object,{iterator:Py,toStringTag:qN}=Symbol,My=(e=>t=>{const n=KY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>My(t)===e),$y=e=>t=>typeof t===e,{isArray:Cu}=Array,tp=$y("undefined");function Mp(e){return e!==null&&!tp(e)&&e.constructor!==null&&!tp(e.constructor)&&da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WN=Ao("ArrayBuffer");function XY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WN(e.buffer),t}const ZY=$y("string"),da=$y("function"),YN=$y("number"),$p=e=>e!==null&&typeof e=="object",JY=e=>e===!0||e===!1,Ym=e=>{if(My(e)!=="object")return!1;const t=VS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(qN in e)&&!(Py in e)},eQ=e=>{if(!$p(e)||Mp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tQ=Ao("Date"),nQ=Ao("File"),rQ=Ao("Blob"),aQ=Ao("FileList"),oQ=e=>$p(e)&&da(e.pipe),iQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||da(e.append)&&((t=My(e))==="formdata"||t==="object"&&da(e.toString)&&e.toString()==="[object FormData]"))},sQ=Ao("URLSearchParams"),[lQ,cQ,uQ,dQ]=["ReadableStream","Request","Response","Headers"].map(Ao),fQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Cu(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Mp(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 QN(e,t){if(Mp(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 vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,KN=e=>!tp(e)&&e!==vl;function $E(){const{caseless:e}=KN(this)&&this||{},t={},n=(r,a)=>{const o=e&&QN(t,a)||a;Ym(t[o])&&Ym(r)?t[o]=$E(t[o],r):Ym(r)?t[o]=$E({},r):Cu(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Fp(arguments[r],n);return t}const pQ=(e,t,n,{allOwnKeys:r}={})=>(Fp(t,(a,o)=>{n&&da(a)?e[o]=GN(a,n):e[o]=a},{allOwnKeys:r}),e),hQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mQ=(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)},gQ=(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&&VS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yQ=(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},vQ=e=>{if(!e)return null;if(Cu(e))return e;let t=e.length;if(!YN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&VS(Uint8Array)),EQ=(e,t)=>{const r=(e&&e[Py]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},TQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SQ=Ao("HTMLFormElement"),_Q=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),JD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CQ=Ao("RegExp"),XN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fp(n,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(r[o]=s||a)}),Object.defineProperties(e,r)},AQ=e=>{XN(e,(t,n)=>{if(da(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(da(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+"'")})}})},xQ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Cu(e)?r(e):r(String(e).split(t)),n},wQ=()=>{},DQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kQ(e){return!!(e&&da(e.append)&&e[qN]==="FormData"&&e[Py])}const RQ=e=>{const t=new Array(10),n=(r,a)=>{if($p(r)){if(t.indexOf(r)>=0)return;if(Mp(r))return r;if(!("toJSON"in r)){t[a]=r;const o=Cu(r)?[]:{};return Fp(r,(s,c)=>{const u=n(s,a+1);!tp(u)&&(o[c]=u)}),t[a]=void 0,o}}return r};return n(e,0)},OQ=Ao("AsyncFunction"),IQ=e=>e&&($p(e)||da(e))&&da(e.then)&&da(e.catch),ZN=((e,t)=>e?setImmediate:t?((n,r)=>(vl.addEventListener("message",({source:a,data:o})=>{a===vl&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),vl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",da(vl.postMessage)),NQ=typeof queueMicrotask<"u"?queueMicrotask.bind(vl):typeof process<"u"&&process.nextTick||ZN,LQ=e=>e!=null&&da(e[Py]),ye={isArray:Cu,isArrayBuffer:WN,isBuffer:Mp,isFormData:iQ,isArrayBufferView:XY,isString:ZY,isNumber:YN,isBoolean:JY,isObject:$p,isPlainObject:Ym,isEmptyObject:eQ,isReadableStream:lQ,isRequest:cQ,isResponse:uQ,isHeaders:dQ,isUndefined:tp,isDate:tQ,isFile:nQ,isBlob:rQ,isRegExp:CQ,isFunction:da,isStream:oQ,isURLSearchParams:sQ,isTypedArray:bQ,isFileList:aQ,forEach:Fp,merge:$E,extend:pQ,trim:fQ,stripBOM:hQ,inherits:mQ,toFlatObject:gQ,kindOf:My,kindOfTest:Ao,endsWith:yQ,toArray:vQ,forEachEntry:EQ,matchAll:TQ,isHTMLForm:SQ,hasOwnProperty:JD,hasOwnProp:JD,reduceDescriptors:XN,freezeMethods:AQ,toObjectSet:xQ,toCamelCase:_Q,noop:wQ,toFiniteNumber:DQ,findKey:QN,global:vl,isContextDefined:KN,isSpecCompliantForm:kQ,toJSONObject:RQ,isAsyncFn:OQ,isThenable:IQ,setImmediate:ZN,asap:NQ,isIterable:LQ};function At(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)}ye.inherits(At,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:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const JN=At.prototype,e5={};["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=>{e5[e]={value:e}});Object.defineProperties(At,e5);Object.defineProperty(JN,"isAxiosError",{value:!0});At.from=(e,t,n,r,a,o)=>{const s=Object.create(JN);return ye.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),At.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const PQ=null;function FE(e){return ye.isPlainObject(e)||ye.isArray(e)}function t5(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function ek(e,t,n){return e?e.concat(t).map(function(a,o){return a=t5(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function MQ(e){return ye.isArray(e)&&!e.some(FE)}const $Q=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function Fy(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!ye.isUndefined(_[E])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ye.isDate(b))return b.toISOString();if(ye.isBoolean(b))return b.toString();if(!u&&ye.isBlob(b))throw new At("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(b)||ye.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,E,_){let A=b;if(b&&!_&&typeof b=="object"){if(ye.endsWith(E,"{}"))E=r?E:E.slice(0,-2),b=JSON.stringify(b);else if(ye.isArray(b)&&MQ(b)||(ye.isFileList(b)||ye.endsWith(E,"[]"))&&(A=ye.toArray(b)))return E=t5(E),A.forEach(function(w,R){!(ye.isUndefined(w)||w===null)&&t.append(s===!0?ek([E],R,o):s===null?E:E+"[]",d(w))}),!1}return FE(b)?!0:(t.append(ek(_,E,o),d(b)),!1)}const h=[],g=Object.assign($Q,{defaultVisitor:p,convertValue:d,isVisitable:FE});function y(b,E){if(!ye.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(b),ye.forEach(b,function(A,D){(!(ye.isUndefined(A)||A===null)&&a.call(t,A,ye.isString(D)?D.trim():D,E,g))===!0&&y(A,E?E.concat(D):[D])}),h.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function GS(e,t){this._pairs=[],e&&Fy(e,this,t)}const n5=GS.prototype;n5.append=function(t,n){this._pairs.push([t,n])};n5.toString=function(t){const n=t?function(r){return t.call(this,r,tk)}:tk;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function FQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r5(e,t,n){if(!t)return e;const r=n&&n.encode||FQ;ye.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=ye.isURLSearchParams(t)?t.toString():new GS(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class nk{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){ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},BQ=typeof URLSearchParams<"u"?URLSearchParams:GS,UQ=typeof FormData<"u"?FormData:null,jQ=typeof Blob<"u"?Blob:null,HQ={isBrowser:!0,classes:{URLSearchParams:BQ,FormData:UQ,Blob:jQ},protocols:["http","https","file","blob","url","data"]},qS=typeof window<"u"&&typeof document<"u",BE=typeof navigator=="object"&&navigator||void 0,zQ=qS&&(!BE||["ReactNative","NativeScript","NS"].indexOf(BE.product)<0),VQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GQ=qS&&window.location.href||"http://localhost",qQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qS,hasStandardBrowserEnv:zQ,hasStandardBrowserWebWorkerEnv:VQ,navigator:BE,origin:GQ},Symbol.toStringTag,{value:"Module"})),Lr={...qQ,...HQ};function WQ(e,t){return Fy(e,new Lr.classes.URLSearchParams,{visitor:function(n,r,a,o){return Lr.isNode&&ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function YQ(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QQ(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 o5(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&&ye.isArray(a)?a.length:s,u?(ye.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!c):((!a[s]||!ye.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],o)&&ye.isArray(a[s])&&(a[s]=QQ(a[s])),!c)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(r,a)=>{t(YQ(r),a,n,0)}),n}return null}function KQ(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bp={transitional:a5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ye.isObject(t);if(o&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return a?JSON.stringify(o5(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.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 WQ(t,this.formSerializer).toString();if((c=ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Fy(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),KQ(t)):t}],transformResponse:[function(t){const n=this.transitional||Bp.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?At.from(c,At.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:Lr.classes.FormData,Blob:Lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{Bp.headers[e]={}});const XQ=ye.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"]),ZQ=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]&&XQ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},rk=Symbol("internals");function Ud(e){return e&&String(e).trim().toLowerCase()}function Qm(e){return e===!1||e==null?e:ye.isArray(e)?e.map(Qm):String(e)}function JQ(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 eK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eb(e,t,n,r,a){if(ye.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ye.isString(t)){if(ye.isString(r))return t.indexOf(r)!==-1;if(ye.isRegExp(r))return r.test(t)}}function tK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nK(e,t){const n=ye.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 fa=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,u,d){const p=Ud(u);if(!p)throw new Error("header name must be a non-empty string");const h=ye.findKey(a,p);(!h||a[h]===void 0||d===!0||d===void 0&&a[h]!==!1)&&(a[h||u]=Qm(c))}const s=(c,u)=>ye.forEach(c,(d,p)=>o(d,p,u));if(ye.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ye.isString(t)&&(t=t.trim())&&!eK(t))s(ZQ(t),n);else if(ye.isObject(t)&&ye.isIterable(t)){let c={},u,d;for(const p of t){if(!ye.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(u=c[d])?ye.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=Ud(t),t){const r=ye.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return JQ(a);if(ye.isFunction(n))return n.call(this,a,r);if(ye.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ud(t),t){const r=ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(s){if(s=Ud(s),s){const c=ye.findKey(r,s);c&&(!n||eb(r,r[c],c,n))&&(delete r[c],a=!0)}}return ye.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||eb(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return ye.forEach(this,(a,o)=>{const s=ye.findKey(r,o);if(s){n[s]=Qm(a),delete n[o];return}const c=t?tK(o):String(o).trim();c!==o&&delete n[o],n[c]=Qm(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ye.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ye.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[rk]=this[rk]={accessors:{}}).accessors,a=this.prototype;function o(s){const c=Ud(s);r[c]||(nK(a,s),r[c]=!0)}return ye.isArray(t)?t.forEach(o):o(t),this}};fa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(fa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ye.freezeMethods(fa);function tb(e,t){const n=this||Bp,r=t||n,a=fa.from(r.headers);let o=r.data;return ye.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function i5(e){return!!(e&&e.__CANCEL__)}function Au(e,t,n){At.call(this,e??"canceled",At.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(Au,At,{__CANCEL__:!0});function s5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new At("Request failed with status code "+n.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aK(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,g=0;for(;h!==a;)g+=n[h++],h=h%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-s<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function oK(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 Pg=(e,t,n=3)=>{let r=0;const a=aK(50,250);return oK(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)},ak=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ok=e=>(...t)=>ye.asap(()=>e(...t)),iK=Lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,sK=Lr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const s=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&s.push("path="+r),ye.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 lK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function l5(e,t,n){let r=!lK(t);return e&&(r||n==!1)?cK(e,t):t}const ik=e=>e instanceof fa?{...e}:e;function Ll(e,t){t=t||{};const n={};function r(d,p,h,g){return ye.isPlainObject(d)&&ye.isPlainObject(p)?ye.merge.call({caseless:g},d,p):ye.isPlainObject(p)?ye.merge({},p):ye.isArray(p)?p.slice():p}function a(d,p,h,g){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function o(d,p){if(!ye.isUndefined(p))return r(void 0,p)}function s(d,p){if(ye.isUndefined(p)){if(!ye.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(ik(d),ik(p),h,!0)};return ye.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||a,g=h(e[p],t[p],p);ye.isUndefined(g)&&h!==c||(n[p]=g)}),n}const c5=e=>{const t=Ll({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;t.headers=s=fa.from(s),t.url=r5(l5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(ye.isFormData(n)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[d,...p]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Lr.hasStandardBrowserEnv&&(r&&ye.isFunction(r)&&(r=r(t)),r||r!==!1&&iK(t.url))){const d=a&&o&&sK.read(o);d&&s.set(a,d)}return t},uK=typeof XMLHttpRequest<"u",dK=uK&&function(e){return new Promise(function(n,r){const a=c5(e);let o=a.data;const s=fa.from(a.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=a,p,h,g,y,b;function E(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(a.method.toUpperCase(),a.url,!0),_.timeout=a.timeout;function A(){if(!_)return;const w=fa.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:w,config:e,request:_};s5(function(F){n(F),E()},function(F){r(F),E()},O),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new At("Request aborted",At.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new At("Network Error",At.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||a5;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),r(new At(R,O.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,e,_)),_=null},o===void 0&&s.setContentType(null),"setRequestHeader"in _&&ye.forEach(s.toJSON(),function(R,O){_.setRequestHeader(O,R)}),ye.isUndefined(a.withCredentials)||(_.withCredentials=!!a.withCredentials),c&&c!=="json"&&(_.responseType=a.responseType),d&&([g,b]=Pg(d,!0),_.addEventListener("progress",g)),u&&_.upload&&([h,y]=Pg(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(p=w=>{_&&(r(!w||w.type?new Au(null,e,_):w),_.abort(),_=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=rK(a.url);if(D&&Lr.protocols.indexOf(D)===-1){r(new At("Unsupported protocol "+D+":",At.ERR_BAD_REQUEST,e));return}_.send(o||null)})},fK=(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 At?p:new Au(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,o(new At(`timeout ${t} of ms exceeded`,At.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=()=>ye.asap(c),u}},pK=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},hK=async function*(e,t){for await(const n of mK(e))yield*pK(n,t)},mK=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()}},sk=(e,t,n,r)=>{const a=hK(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 g=o+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},By=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u5=By&&typeof ReadableStream=="function",gK=By&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),d5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yK=u5&&d5(()=>{let e=!1;const t=new Request(Lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lk=64*1024,UE=u5&&d5(()=>ye.isReadableStream(new Response("").body)),Mg={stream:UE&&(e=>e.body)};By&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Mg[t]&&(Mg[t]=ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new At(`Response type '${t}' is not supported`,At.ERR_NOT_SUPPORT,r)})})})(new Response);const vK=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(e)||ye.isArrayBuffer(e))return e.byteLength;if(ye.isURLSearchParams(e)&&(e=e+""),ye.isString(e))return(await gK(e)).byteLength},bK=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return n??vK(t)},EK=By&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=c5(e);d=d?(d+"").toLowerCase():"text";let y=fK([a,o&&o.toAbortSignal()],s),b;const E=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let _;try{if(u&&yK&&n!=="get"&&n!=="head"&&(_=await bK(p,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(ye.isFormData(r)&&(k=O.headers.get("content-type"))&&p.setContentType(k),O.body){const[F,G]=ak(_,Pg(ok(u)));r=sk(O.body,lk,F,G)}}ye.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;b=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:A?h:void 0});let D=await fetch(b,g);const w=UE&&(d==="stream"||d==="response");if(UE&&(c||w&&E)){const O={};["status","statusText","headers"].forEach(j=>{O[j]=D[j]});const k=ye.toFiniteNumber(D.headers.get("content-length")),[F,G]=c&&ak(k,Pg(ok(c),!0))||[];D=new Response(sk(D.body,lk,F,()=>{G&&G(),E&&E()}),O)}d=d||"text";let R=await Mg[ye.findKey(Mg,d)||"text"](D,e);return!w&&E&&E(),await new Promise((O,k)=>{s5(O,k,{data:R,headers:fa.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:b})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,e,b),{cause:A.cause||A}):At.from(A,A&&A.code,e,b)}}),jE={http:PQ,xhr:dK,fetch:EK};ye.forEach(jE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ck=e=>`- ${e}`,TK=e=>ye.isFunction(e)||e===null||e===!1,f5={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!TK(n)&&(r=jE[(s=String(n)).toLowerCase()],r===void 0))throw new At(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
240
|
-
`+o.map(ck).join(`
|
|
241
|
-
`):" "+ck(o[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:jE};function nb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Au(null,e)}function uk(e){return nb(e),e.headers=fa.from(e.headers),e.data=tb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),f5.getAdapter(e.adapter||Bp.adapter)(e).then(function(r){return nb(e),r.data=tb.call(e,e.transformResponse,r),r.headers=fa.from(r.headers),r},function(r){return i5(r)||(nb(e),r&&r.response&&(r.response.data=tb.call(e,e.transformResponse,r.response),r.response.headers=fa.from(r.response.headers))),Promise.reject(r)})}const p5="1.11.0",Uy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dk={};Uy.transitional=function(t,n,r){function a(o,s){return"[Axios v"+p5+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,c)=>{if(t===!1)throw new At(a(s," has been removed"+(n?" in "+n:"")),At.ERR_DEPRECATED);return n&&!dk[s]&&(dk[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}};Uy.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function SK(e,t,n){if(typeof e!="object")throw new At("options must be an object",At.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 At("option "+o+" must be "+u,At.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new At("Unknown option "+o,At.ERR_BAD_OPTION)}}const Km={assertOptions:SK,validators:Uy},Mo=Km.validators;let Cl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nk,response:new nk}}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=Ll(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Km.assertOptions(r,{silentJSONParsing:Mo.transitional(Mo.boolean),forcedJSONParsing:Mo.transitional(Mo.boolean),clarifyTimeoutError:Mo.transitional(Mo.boolean)},!1),a!=null&&(ye.isFunction(a)?n.paramsSerializer={serialize:a}:Km.assertOptions(a,{encode:Mo.function,serialize:Mo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Km.assertOptions(n,{baseUrl:Mo.spelling("baseURL"),withXsrfToken:Mo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&ye.merge(o.common,o[n.method]);o&&ye.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=fa.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,g;if(!u){const b=[uk.bind(this),void 0];for(b.unshift(...c),b.push(...d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=c.length;let y=n;for(h=0;h<g;){const b=c[h++],E=c[h++];try{y=b(y)}catch(_){E.call(this,_);break}}try{p=uk.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Ll(this.defaults,t);const n=l5(t.baseURL,t.url,t.allowAbsoluteUrls);return r5(n,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){Cl.prototype[t]=function(n,r){return this.request(Ll(r||{},{method:t,url:n,data:(r||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,c){return this.request(Ll(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Cl.prototype[t]=n(),Cl.prototype[t+"Form"]=n(!0)});let _K=class h5{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 Au(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 h5(function(a){t=a}),cancel:t}}};function CK(e){return function(n){return e.apply(null,n)}}function AK(e){return ye.isObject(e)&&e.isAxiosError===!0}const HE={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(HE).forEach(([e,t])=>{HE[t]=e});function m5(e){const t=new Cl(e),n=GN(Cl.prototype.request,t);return ye.extend(n,Cl.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return m5(Ll(e,a))},n}const ct=m5(Bp);ct.Axios=Cl;ct.CanceledError=Au;ct.CancelToken=_K;ct.isCancel=i5;ct.VERSION=p5;ct.toFormData=Fy;ct.AxiosError=At;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=CK;ct.isAxiosError=AK;ct.mergeConfig=Ll;ct.AxiosHeaders=fa;ct.formToJSON=e=>o5(ye.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=f5.getAdapter;ct.HttpStatusCode=HE;ct.default=ct;const{Axios:$ye,AxiosError:Fye,CanceledError:Bye,isCancel:Uye,CancelToken:jye,VERSION:Hye,all:zye,Cancel:Vye,isAxiosError:Gye,spread:qye,toFormData:Wye,AxiosHeaders:Yye,HttpStatusCode:Qye,formToJSON:Kye,getAdapter:Xye,mergeConfig:Zye}=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},xK=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 xK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function zE(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>zE(e,r,n)):Object.keys(t).forEach(r=>zE(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);zE(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)}},t0e={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql"},wK=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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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}}}},Aa=function(e){const t=wK(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 DK=class extends Ui{getConnection(t,n,r){return Aa(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Aa(this.configuration).getQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Aa(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Aa(this.configuration).getTablesource(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Aa(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Aa(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Aa(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Aa(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}postQuerydata(t,n,r,a,o){return Aa(this.configuration).postQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,a){return Aa(this.configuration).postSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}postTemporarytable(t,n,r,a){return Aa(this.configuration).postTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Aa(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Aa(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const kK=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}}}},RK=function(e){const t=kK(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 OK=class extends Ui{listDatabases(t,n,r,a){return RK(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const IK=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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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}}}},fk=function(e){const t=IK(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 NK=class extends Ui{getModel(t,n,r,a,o){return fk(this.configuration).getModel(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,a){return fk(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const LK=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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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}}}},pk=function(e){const t=LK(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 PK=class extends Ui{getNotebook(t,n,r,a,o){return pk(this.configuration).getNotebook(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,a){return pk(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const MK=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 g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...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}}}},jd=function(e){const t=MK(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 $K=class extends Ui{createPackage(t,n,r){return jd(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return jd(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return jd(this.configuration).getPackage(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return jd(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return jd(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const FK=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}}}},Hd=function(e){const t=FK(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 BK=class extends Ui{createProject(t,n){return Hd(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Hd(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Hd(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Hd(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Hd(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const UK=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 g={method:"GET",...h,...u},y={},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 g.headers={...y,...E,...u.headers},{url:Jt(p),options:g}}}},jK=function(e){const t=UK(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,g=Kt["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>en(p,ct,qt,e)(y,g||b)}}};let HK=class extends Ui{executeQuery(t,n,r,a,o,s,c,u){return jK(this.configuration).executeQuery(t,n,r,a,o,s,c,u).then(d=>d(this.axios,this.basePath))}};const zK=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}}}},VK=function(e){const t=zK(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 GK=class extends Ui{listSchedules(t,n,r,a){return VK(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const qK=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}}}},rb=function(e){const t=qK(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 WK extends Ui{getWatchStatus(t){return rb(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return rb(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return rb(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}}let YK=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 g5=x.createContext(void 0),QK=(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 YK({basePath:n});return{queryResults:new HK(a,n,r),models:new NK(a,n,r),projects:new BK(a,n,r),packages:new $K(a,n,r),notebooks:new PK(a,n,r),connections:new DK(a,n,r),databases:new OK(a,n,r),schedules:new GK(a,n,r),watchMode:new WK(a,n,r)}},KK=({children:e,getAccessToken:t,baseURL:n,mutable:r=!0})=>{const a=x.useMemo(()=>QK(n,t),[n,t]),o={server:n||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,apiClients:a,mutable:r};return P.jsx(RG,{client:z_,children:P.jsx(g5.Provider,{value:o,children:e})})},WS=()=>{const e=x.useContext(g5);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};x.lazy(()=>V(()=>import("./index.es23-BsVG9VR1.js"),[]));function d0e(e){const{projectName:t,packageName:n}=Dy(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 Pr(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 jy=(function(e){if(e==null)return eX;if(typeof e=="function")return Hy(e);if(typeof e=="object")return Array.isArray(e)?XK(e):ZK(e);if(typeof e=="string")return JK(e);throw new Error("Expected function, string, or object as test")});function XK(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jy(e[n]);return Hy(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ZK(e){const t=e;return Hy(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function JK(e){return Hy(t);function t(n){return n&&n.type===e}}function Hy(e){return t;function t(n,r,a){return!!(tX(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function eX(){return!0}function tX(e){return e!==null&&typeof e=="object"&&"type"in e}const y5=[],nX=!0,$g=!1,Ef="skip";function v5(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=jy(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 y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=y5,b,E,_;if((!t||o(u,d,p[p.length-1]||void 0))&&(y=rX(n(u,p)),y[0]===$g))return y;if("children"in u&&u.children){const A=u;if(A.children&&y[0]!==Ef)for(E=(r?A.children.length:-1)+s,_=p.concat(A);E>-1&&E<A.children.length;){const D=A.children[E];if(b=c(D,E,_)(),b[0]===$g)return b;E=typeof b[1]=="number"?b[1]:E+s}}return y}}}function rX(e){return Array.isArray(e)?e:typeof e=="number"?[nX,e]:e==null?y5:[e]}function ha(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),v5(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 aX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,oX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,iX=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{ha(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],g=h.type==="text"?h.value:"",y=e?oX:aX,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),g.includes(`
|
|
243
|
-
`)&&(p.children[0]={type:"text",value:g.replace(y,"").replace(/^\n+/,"")}),!g.includes(`
|
|
244
|
-
`))){const E=[];p.children.forEach((_,A)=>{A!=0&&(A==1&&_.type==="break"||E.push(_))}),p.children=[...E]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[sX(s),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function sX(e){let t=lX[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 lX={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 cX(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 b5(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?b5(t.parentElement):null}function uX(e){var t=n=>{var r=b5(n.target);r&&(r.classList.add("active"),cX(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 to(e,t){return e.length>0?(Na(e,e.length,0,t),e):t}const hk={}.hasOwnProperty;function E5(e){const t={};let n=-1;for(;++n<e.length;)dX(t,e[n]);return t}function dX(e,t){let n;for(n in t){const r=(hk.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){hk.call(r,o)||(r[o]=[]);const s=a[o];fX(r[o],Array.isArray(s)?s:s?[s]:[])}}}function fX(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 Yr=$s(/[A-Za-z]/),Mr=$s(/[\dA-Za-z]/),pX=$s(/[#-'*+\--9=?A-Z^-~]/);function Fg(e){return e!==null&&(e<32||e===127)}const VE=$s(/\d/),hX=$s(/[\dA-Fa-f]/),mX=$s(/[!-/:-@[-`{-~]/);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 zy=$s(/\p{P}|\p{S}/u),Pl=$s(/\s/);function $s(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const gX={tokenize:SX,partial:!0},T5={tokenize:_X,partial:!0},S5={tokenize:CX,partial:!0},_5={tokenize:AX,partial:!0},yX={tokenize:xX,partial:!0},C5={name:"wwwAutolink",tokenize:EX,previous:x5},A5={name:"protocolAutolink",tokenize:TX,previous:w5},ji={name:"emailAutolink",tokenize:bX,previous:D5},ni={};function vX(){return{text:ni}}let nl=48;for(;nl<123;)ni[nl]=ji,nl++,nl===58?nl=65:nl===91&&(nl=97);ni[43]=ji;ni[45]=ji;ni[46]=ji;ni[95]=ji;ni[72]=[ji,A5];ni[104]=[ji,A5];ni[87]=[ji,C5];ni[119]=[ji,C5];function bX(e,t,n){const r=this;let a,o;return s;function s(h){return!GE(h)||!D5.call(r,r.previous)||YS(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return GE(h)?(e.consume(h),c):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(yX,p,d)(h):h===45||h===95||Mr(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&&Yr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function EX(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!x5.call(r,r.previous)||YS(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gX,e.attempt(T5,e.attempt(S5,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TX(e,t,n){const r=this;let a="",o=!1;return s;function s(h){return(h===72||h===104)&&w5.call(r,r.previous)&&!YS(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(Yr(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const g=a.toLowerCase();if(g==="http"||g==="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||Fg(h)||xn(h)||Pl(h)||zy(h)?n(h):e.attempt(T5,e.attempt(S5,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function SX(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 _X(e,t,n){let r,a,o;return s;function s(d){return d===46||d===95?e.check(_5,u,c)(d):d===null||xn(d)||Pl(d)||d!==45&&zy(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 CX(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(_5,t,o)(s):s===null||xn(s)||Pl(s)?t(s):(e.consume(s),a)}function o(s){return s===41&&r++,e.consume(s),a}}function AX(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)||Pl(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||xn(c)||Pl(c)?t(c):r(c)}function o(c){return Yr(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),r):Yr(c)?(e.consume(c),s):n(c)}}function xX(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return Mr(o)?n(o):t(o)}}function x5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xn(e)}function w5(e){return!Yr(e)}function D5(e){return!(e===47||GE(e))}function GE(e){return e===43||e===45||e===46||e===95||Mr(e)}function YS(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 bo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Up={partial:!0,tokenize:wX};function wX(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 DX={tokenize:MX,partial:!0};function kX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:NX,continuation:{tokenize:LX},exit:PX}},text:{91:{name:"gfmFootnoteCall",tokenize:IX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RX,resolveTo:OX}}}}function RX(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=bo(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 OX(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 IX(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 g=e.exit("gfmFootnoteCallString");return a.includes(bo(r.sliceSerialize(g)))?(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 NX(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=bo(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}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 g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(o)||a.push(o),Wt(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function LX(e,t,n){return e.check(Up,t,e.attempt(DX,t,n))}function PX(e){e.exit("gfmFootnoteDefinition")}function MX(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 pu(e){if(e===null||xn(e)||Pl(e))return 1;if(zy(e))return 2}function Vy(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 $X(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]],g=s.parser.constructs.insideSpan.null;g&&Na(h,h.length,0,Vy(g,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(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const b=pu(u);if(y===126)return p>1?c(y):(o.consume(y),p++,g);if(p<2&&!t)return c(y);const E=o.exit("strikethroughSequenceTemporary"),_=pu(y);return E._open=!_||_===2&&!!b,E._close=!b||b===2&&!!_,s(y)}}}let FX=class{constructor(){this.map=[]}add(t,n,r){BX(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 BX(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 UX(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 jX(){return{flow:{null:{name:"table",tokenize:HX,resolveAll:zX}}}}function HX(e,t,n){const r=this;let a=0,o=0,s;return c;function c(T){let M=r.events.length-1;for(;M>-1;){const Y=r.events[M][1].type;if(Y==="lineEnding"||Y==="linePrefix")M--;else break}const U=M>-1?r.events[M][1].type:null,B=U==="tableHead"||U==="tableRow"?k:u;return B===k&&r.parser.lazy[r.now().line]?n(T):B(T)}function u(T){return e.enter("tableHead"),e.enter("tableRow"),d(T)}function d(T){return T===124||(s=!0,o+=1),p(T)}function p(T){return T===null?n(T):dt(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y):n(T):jt(T)?Wt(e,p,"whitespace")(T):(o+=1,s&&(s=!1,a+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(T)))}function h(T){return T===null||T===124||xn(T)?(e.exit("data"),p(T)):(e.consume(T),T===92?g:h)}function g(T){return T===92||T===124?(e.consume(T),h):h(T)}function y(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),s=!1,jt(T)?Wt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):b(T))}function b(T){return T===45||T===58?_(T):T===124?(s=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),E):O(T)}function E(T){return jt(T)?Wt(e,_,"whitespace")(T):_(T)}function _(T){return T===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),A):T===45?(o+=1,A(T)):T===null||dt(T)?R(T):O(T)}function A(T){return T===45?(e.enter("tableDelimiterFiller"),D(T)):O(T)}function D(T){return T===45?(e.consume(T),D):T===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(T))}function w(T){return jt(T)?Wt(e,R,"whitespace")(T):R(T)}function R(T){return T===124?b(T):T===null||dt(T)?!s||a!==o?O(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):O(T)}function O(T){return n(T)}function k(T){return e.enter("tableRow"),F(T)}function F(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),F):T===null||dt(T)?(e.exit("tableRow"),t(T)):jt(T)?Wt(e,F,"whitespace")(T):(e.enter("data"),G(T))}function G(T){return T===null||T===124||xn(T)?(e.exit("data"),F(T)):(e.consume(T),T===92?j:G)}function j(T){return T===92||T===124?(e.consume(T),G):G(T)}}function zX(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 g=new FX;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(mk(g,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.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)},g.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=Sm(g,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=Sm(g,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=Sm(g,t,o,a,n,h)):s[1]!==0&&(h=Sm(g,t,s,a,n,h)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&mk(g,t,u,d,p),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=UX(t.events,n))}return e}function Sm(e,t,n,r,a,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Vc(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=Vc(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=Vc(t.events,n[2]),p=Vc(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 g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[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({},Vc(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function mk(e,t,n,r,a){const o=[],s=Vc(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 Vc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const VX={name:"tasklistCheck",tokenize:qX};function GX(){return{text:{91:VX}}}function qX(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:WX},t,n)(u):n(u)}}function WX(e,t,n){return Wt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function YX(e){return E5([vX(),kX(),$X(e),jX(),GX()])}function QX(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function KX(e,t,n){const r=jy((n||{}).ignore||[]),a=XX(t);let o=-1;for(;++o<a.length;)v5(e,"text",s);function s(u,d){let p=-1,h;for(;++p<d.length;){const g=d[p],y=h?h.children:void 0;if(r(g,y?y.indexOf(g):void 0,h))return;h=g}if(h)return c(u,d)}function c(u,d){const p=d[d.length-1],h=a[o][0],g=a[o][1];let y=0;const b=p.children.indexOf(u);let E=!1,_=[];h.lastIndex=0;let A=h.exec(u.value);for(;A;){const D=A.index,w={index:A.index,input:A.input,stack:[...d,u]};let R=g(...A,w);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=D+1:(y!==D&&_.push({type:"text",value:u.value.slice(y,D)}),Array.isArray(R)?_.push(...R):R&&_.push(R),y=D+A[0].length,E=!0),!h.global)break;A=h.exec(u.value)}return E?(y<u.value.length&&_.push({type:"text",value:u.value.slice(y)}),p.children.splice(b,1,..._)):_=[u],b+_.length}}function XX(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([ZX(a[0]),JX(a[1])])}return t}function ZX(e){return typeof e=="string"?new RegExp(QX(e),"g"):e}function JX(e){return typeof e=="function"?e:function(){return e}}const ab="phrasing",ob=["autolink","link","image","label"];function eZ(){return{transforms:[sZ],enter:{literalAutolink:nZ,literalAutolinkEmail:ib,literalAutolinkHttp:ib,literalAutolinkWww:ib},exit:{literalAutolink:iZ,literalAutolinkEmail:oZ,literalAutolinkHttp:rZ,literalAutolinkWww:aZ}}}function tZ(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ab,notInConstruct:ob},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ab,notInConstruct:ob},{character:":",before:"[ps]",after:"\\/",inConstruct:ab,notInConstruct:ob}]}}function nZ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ib(e){this.config.enter.autolinkProtocol.call(this,e)}function rZ(e){this.config.exit.autolinkProtocol.call(this,e)}function aZ(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 oZ(e){this.config.exit.autolinkEmail.call(this,e)}function iZ(e){this.exit(e)}function sZ(e){KX(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lZ],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,cZ]],{ignore:["link","linkReference"]})}function lZ(e,t,n,r,a){let o="";if(!k5(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!uZ(n)))return!1;const s=dZ(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 cZ(e,t,n,r){return!k5(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uZ(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 dZ(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=kg(e,"(");let o=kg(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 k5(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pl(n)||zy(n))&&(!t||n!==47)}R5.peek=EZ;function fZ(){this.buffer()}function pZ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hZ(){this.buffer()}function mZ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yZ(e){this.exit(e)}function vZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bZ(e){this.exit(e)}function EZ(){return"["}function R5(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 TZ(){return{enter:{gfmFootnoteCallString:fZ,gfmFootnoteCall:pZ,gfmFootnoteDefinitionLabelString:hZ,gfmFootnoteDefinition:mZ},exit:{gfmFootnoteCallString:gZ,gfmFootnoteCall:yZ,gfmFootnoteDefinitionLabelString:vZ,gfmFootnoteDefinition:bZ}}}function SZ(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:R5},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?O5:_Z))),d(),u}}function _Z(e,t,n){return t===0?e:O5(e,t,n)}function O5(e,t,n){return(n?"":" ")+e}const CZ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];I5.peek=kZ;function AZ(){return{canContainEols:["delete"],enter:{strikethrough:wZ},exit:{strikethrough:DZ}}}function xZ(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CZ}],handlers:{delete:I5}}}function wZ(e){this.enter({type:"delete",children:[]},e)}function DZ(e){this.exit(e)}function I5(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 kZ(){return"~"}function RZ(e){return e.length}function OZ(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||RZ,o=[],s=[],c=[],u=[];let d=0,p=-1;for(;++p<e.length;){const E=[],_=[];let A=-1;for(e[p].length>d&&(d=e[p].length);++A<e[p].length;){const D=IZ(e[p][A]);if(n.alignDelimiters!==!1){const w=a(D);_[A]=w,(u[A]===void 0||w>u[A])&&(u[A]=w)}E.push(D)}s[p]=E,c[p]=_}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)o[h]=gk(r[h]);else{const E=gk(r);for(;++h<d;)o[h]=E}h=-1;const g=[],y=[];for(;++h<d;){const E=o[h];let _="",A="";E===99?(_=":",A=":"):E===108?_=":":E===114&&(A=":");let D=n.alignDelimiters===!1?1:Math.max(1,u[h]-_.length-A.length);const w=_+"-".repeat(D)+A;n.alignDelimiters!==!1&&(D=_.length+D+A.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=w}s.splice(1,0,g),c.splice(1,0,y),p=-1;const b=[];for(;++p<s.length;){const E=s[p],_=c[p];h=-1;const A=[];for(;++h<d;){const D=E[h]||"";let w="",R="";if(n.alignDelimiters!==!1){const O=u[h]-(_[h]||0),k=o[h];k===114?w=" ".repeat(O):k===99?O%2?(w=" ".repeat(O/2+.5),R=" ".repeat(O/2-.5)):(w=" ".repeat(O/2),R=w):R=" ".repeat(O)}n.delimiterStart!==!1&&!h&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&A.push(" "),n.alignDelimiters!==!1&&A.push(w),A.push(D),n.alignDelimiters!==!1&&A.push(R),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 IZ(e){return e==null?"":String(e)}function gk(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 NZ(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()),LZ);return a(),s}function LZ(e,t,n){return">"+(n?"":" ")+e}function PZ(e,t){return yk(e,t.inConstruct,!0)&&!yk(e,t.notInConstruct,!1)}function yk(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 vk(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
247
|
-
`&&PZ(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
248
|
-
`}function MZ(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 $Z(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 FZ(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 BZ(e,t,n,r){const a=FZ(n),o=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if($Z(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(o,UZ);return h(),g}const c=n.createTracker(r),u=a.repeat(Math.max(MZ(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 UZ(e,t,n){return(n?"":" ")+e}function QS(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 jZ(e,t,n,r){const a=QS(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 HZ(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 np(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bg(e,t,n){const r=pu(e),a=pu(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}}N5.peek=zZ;function N5(e,t,n,r){const a=HZ(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=Bg(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(u=np(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=Bg(r.after.charCodeAt(0),h,a);g.inside&&(u=u.slice(0,-1)+np(h));const y=s.move(a);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function zZ(e,t,n){return n.options.emphasis||"*"}const VZ={};function KS(e,t){const n=VZ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return L5(e,r,a)}function L5(e,t,n){if(GZ(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 bk(e.children,t,n)}return Array.isArray(e)?bk(e,t,n):""}function bk(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=L5(e[a],t,n);return r.join("")}function GZ(e){return!!(e&&typeof e=="object")}function qZ(e,t){let n=!1;return ha(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$g}),!!((!e.depth||e.depth<3)&&KS(e)&&(t.options.setext||n))}function WZ(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(qZ(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...o.current(),before:`
|
|
253
|
-
`,after:`
|
|
254
|
-
`});return h(),p(),g+`
|
|
255
|
-
`+(a===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.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=np(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),c(),d}P5.peek=YZ;function P5(e){return e.value||""}function YZ(){return"<"}M5.peek=QZ;function M5(e,t,n,r){const a=QS(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 QZ(){return"!"}$5.peek=KZ;function $5(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 KZ(){return"!"}F5.peek=XZ;function F5(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 XZ(){return"`"}function B5(e,t){const n=KS(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))}U5.peek=ZZ;function U5(e,t,n,r){const a=QS(n),o=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let c,u;if(B5(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 ZZ(e,t,n){return B5(e,n)?"<":"["}j5.peek=JZ;function j5(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 JZ(){return"["}function XS(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 eJ(e){const t=XS(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 tJ(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 H5(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 nJ(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?tJ(n):XS(n);const c=e.ordered?s==="."?")":".":eJ(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),H5(n)===s&&p){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.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 rJ(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 aJ(e,t,n,r){const a=rJ(n);let o=n.bulletCurrent||XS(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,g,y){return g?(y?"":" ".repeat(s))+h:(y?o:o+" ".repeat(s-o.length))+h}}function oJ(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),a(),s}const iJ=jy(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sJ(e,t,n,r){return(e.children.some(function(a){return iJ(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lJ(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}z5.peek=cJ;function z5(e,t,n,r){const a=lJ(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=Bg(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(u=np(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=Bg(r.after.charCodeAt(0),h,a);g.inside&&(u=u.slice(0,-1)+np(h));const y=s.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function cJ(e,t,n){return n.options.strong||"*"}function uJ(e,t,n,r){return n.safe(e.value,r)}function dJ(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 fJ(e,t,n){const r=(H5(n)+(n.options.ruleSpaces?" ":"")).repeat(dJ(n));return n.options.ruleSpaces?r.slice(0,-1):r}const V5={blockquote:NZ,break:vk,code:BZ,definition:jZ,emphasis:N5,hardBreak:vk,heading:WZ,html:P5,image:M5,imageReference:$5,inlineCode:F5,link:U5,linkReference:j5,list:nJ,listItem:aJ,paragraph:oJ,root:sJ,strong:z5,text:uJ,thematicBreak:fJ};function pJ(){return{enter:{table:hJ,tableData:Ek,tableHeader:Ek,tableRow:gJ},exit:{codeText:yJ,table:mJ,tableData:sb,tableHeader:sb,tableRow:sb}}}function hJ(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 mJ(e){this.exit(e),this.data.inTable=void 0}function gJ(e){this.enter({type:"tableRow",children:[]},e)}function sb(e){this.exit(e)}function Ek(e){this.enter({type:"tableCell",children:[]},e)}function yJ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vJ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vJ(e,t){return t==="|"?t:e}function bJ(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:g,table:s,tableCell:u,tableRow:c}};function s(y,b,E,_){return d(p(y,E,_),y.align)}function c(y,b,E,_){const A=h(y,E,_),D=d([A]);return D.slice(0,D.indexOf(`
|
|
259
|
-
`))}function u(y,b,E,_){const A=E.enter("tableCell"),D=E.enter("phrasing"),w=E.containerPhrasing(y,{..._,before:o,after:o});return D(),A(),w}function d(y,b){return OZ(y,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function p(y,b,E){const _=y.children;let A=-1;const D=[],w=b.enter("table");for(;++A<_.length;)D[A]=h(_[A],b,E);return w(),D}function h(y,b,E){const _=y.children;let A=-1;const D=[],w=b.enter("tableRow");for(;++A<_.length;)D[A]=u(_[A],y,b,E);return w(),D}function g(y,b,E){let _=V5.inlineCode(y,b,E);return E.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function EJ(){return{exit:{taskListCheckValueChecked:Tk,taskListCheckValueUnchecked:Tk,paragraph:SJ}}}function TJ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_J}}}function Tk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function SJ(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 _J(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=V5.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 CJ(){return[eZ(),TZ(),AZ(),pJ(),EJ()]}function AJ(e){return{extensions:[tZ(),SZ(e),xZ(),bJ(e),TJ()]}}const xJ={};function wJ(e){const t=this,n=e||xJ,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(YX(n)),o.push(CJ()),s.push(AJ(n))}function Sk(e){if(e)throw e}function Gy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lb,_k;function DJ(){if(_k)return lb;_k=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 lb=function u(){var d,p,h,g,y,b,E=arguments[0],_=1,A=arguments.length,D=!1;for(typeof E=="boolean"&&(D=E,E=arguments[1]||{},_=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});_<A;++_)if(d=arguments[_],d!=null)for(p in d)h=c(E,p),g=c(d,p),E!==g&&(D&&g&&(o(g)||(y=a(g)))?(y?(y=!1,b=h&&a(h)?h:[]):b=h&&o(h)?h:{},s(E,{name:p,newValue:u(D,b,g)})):typeof g<"u"&&s(E,{name:p,newValue:g}));return E},lb}var kJ=DJ();const cb=Gy(kJ);function qE(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 RJ=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r});function OJ(){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?IJ(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 IJ(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 Uo={basename:NJ,dirname:LJ,extname:PJ,join:MJ,sep:"/"};function NJ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jp(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 LJ(e){if(jp(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 PJ(e){jp(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 MJ(...e){let t=-1,n;for(;++t<e.length;)jp(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$J(n)}function $J(e){jp(e);const t=e.codePointAt(0)===47;let n=FJ(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function FJ(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 jp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BJ={cwd:UJ};function UJ(){return"/"}function WE(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function jJ(e){if(typeof e=="string")e=new URL(e);else if(!WE(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 HJ(e)}function HJ(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 Tf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ck(e.position):"start"in e||"end"in e?Ck(e):"line"in e||"column"in e?YE(e):""}function YE(e){return Ak(e&&e.line)+":"+Ak(e&&e.column)}function Ck(e){return YE(e&&e.start)+"-"+YE(e&&e.end)}function Ak(e){return e&&typeof e=="number"?e:1}let Br=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=Tf(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}};Br.prototype.file="";Br.prototype.name="";Br.prototype.reason="";Br.prototype.message="";Br.prototype.stack="";Br.prototype.column=void 0;Br.prototype.line=void 0;Br.prototype.ancestors=void 0;Br.prototype.cause=void 0;Br.prototype.fatal=void 0;Br.prototype.place=void 0;Br.prototype.ruleId=void 0;Br.prototype.source=void 0;const ub=["history","path","basename","stem","extname","dirname"];let G5=class{constructor(t){let n;t?WE(t)?n={path:t}:typeof t=="string"||zJ(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":BJ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ub.length;){const o=ub[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)ub.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Uo.basename(this.path):void 0}set basename(t){fb(t,"basename"),db(t,"basename"),this.path=Uo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Uo.dirname(this.path):void 0}set dirname(t){xk(this.basename,"dirname"),this.path=Uo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Uo.extname(this.path):void 0}set extname(t){if(db(t,"extname"),xk(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=Uo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){WE(t)&&(t=jJ(t)),fb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Uo.basename(this.path,this.extname):void 0}set stem(t){fb(t,"stem"),db(t,"stem"),this.path=Uo.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 Br(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 db(e,t){if(e&&e.includes(Uo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Uo.sep+"`")}function fb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function zJ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const VJ={}.hasOwnProperty;let GJ=class q5 extends RJ{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=OJ()}copy(){const t=new q5;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(cb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(mb("data",this.frozen),this.namespace[t]=n,this):VJ.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mb("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=_m(t),r=this.parser||this.Parser;return pb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),pb("process",this.parser||this.Parser),hb("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,s){const c=_m(t),u=r.parse(c);r.run(u,c,function(p,h,g){if(p||!h||!g)return d(p);const y=h,b=r.stringify(y,g);YJ(b)?g.value=b:g.result=b,d(p,g)});function d(p,h){p||!h?s(p):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),pb("processSync",this.parser||this.Parser),hb("processSync",this.compiler||this.Compiler),this.process(t,a),Dk("processSync","process",n),r;function a(o,s){n=!0,Sk(o),r=s}}run(t,n,r){wk(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=_m(n);a.run(t,u,d);function d(p,h,g){const y=h||t;p?c(p):s?s(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),Dk("runSync","run",r),a;function o(s,c){Sk(s),a=c,r=!0}}stringify(t,n){this.freeze();const r=_m(n),a=this.compiler||this.Compiler;return hb("stringify",a),wk(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(mb("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=cb(!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,g=-1;for(;++h<r.length;)if(r[h][0]===d){g=h;break}if(g===-1)r.push([d,...p]);else if(p.length>0){let[y,...b]=p;const E=r[g][1];qE(E)&&qE(y)&&(y=cb(!0,E,y)),r[g]=[d,y,...b]}}}};const qJ=new GJ().freeze();function pb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mb(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 wk(e){if(!qE(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _m(e){return WJ(e)?e:new G5(e)}function WJ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function YJ(e){return typeof e=="string"||QJ(e)}function QJ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function W5(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 kk=document.createElement("i");function ZS(e){const t="&"+e+";";kk.innerHTML=t;const n=kk.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const KJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XJ(e){return e.replace(KJ,ZJ)}function ZJ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return W5(n.slice(a?2:1),a?16:10)}return ZS(n)||e}let JJ=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&&zd(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),zd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),zd(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);zd(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);zd(this.left,n.reverse())}}};function zd(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 Y5(e){const t={};let n=-1,r,a,o,s,c,u,d;const p=new JJ(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,eee(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 eee(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,g=-1,y=n,b=0,E=0;const _=[E];for(;y;){for(;e.get(++a)[1]!==y;);o.push(a),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),h&&s.defineSkip(y.start),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++g<c.length;)c[g][0]==="exit"&&c[g-1][0]==="enter"&&c[g][1].type===c[g-1][1].type&&c[g][1].start.line!==c[g][1].end.line&&(E=g+1,_.push(E),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(s.events=[],y?(y._tokenizer=void 0,y.previous=void 0):_.pop(),g=_.length;g--;){const A=c.slice(_[g],_[g+1]),D=o.pop();u.push([D,D+A.length-1]),e.splice(D,2,A)}for(u.reverse(),g=-1;++g<u.length;)d[b+u[g][0]]=b+u[g][1],b+=u[g][1]-u[g][0]-1;return d}function tee(e){for(;!Y5(e););return e}const nee={tokenize:ree};function ree(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 aee={tokenize:oee},Rk={tokenize:iee};function oee(e){const t=this,n=[];let r=0,a,o,s;return c;function c(w){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,u,d)(w)}return d(w)}function u(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const R=t.events.length;let O=R,k;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){k=t.events[O][1].end;break}A(r);let F=R;for(;F<t.events.length;)t.events[F][1].end={...k},F++;return Na(t.events,O+1,0,t.events.slice(R)),t.events.length=F,d(w)}return c(w)}function d(w){if(r===n.length){if(!a)return g(w);if(a.currentConstruct&&a.currentConstruct.concrete)return b(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Rk,p,h)(w)}function p(w){return a&&D(),A(r),g(w)}function h(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(w)}function g(w){return t.containerState={},e.attempt(Rk,y,b)(w)}function y(w){return r++,n.push([t.currentConstruct,t.containerState]),g(w)}function b(w){if(w===null){a&&D(),A(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),E(w)}function E(w){if(w===null){_(e.exit("chunkFlow"),!0),A(0),e.consume(w);return}return dt(w)?(e.consume(w),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(w),E)}function _(w,R){const O=t.sliceStream(w);if(R&&O.push(null),w.previous=o,o&&(o.next=w),o=w,a.defineSkip(w.start),a.write(O),t.parser.lazy[w.start.line]){let k=a.events.length;for(;k--;)if(a.events[k][1].start.offset<s&&(!a.events[k][1].end||a.events[k][1].end.offset>s))return;const F=t.events.length;let G=F,j,T;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(j){T=t.events[G][1].end;break}j=!0}for(A(r),k=F;k<t.events.length;)t.events[k][1].end={...T},k++;Na(t.events,G+1,0,t.events.slice(F)),t.events.length=k}}function A(w){let R=n.length;for(;R-- >w;){const O=n[R];t.containerState=O[1],O[0].exit.call(t,e)}n.length=w}function D(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function iee(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 see={resolve:cee,tokenize:uee},lee={partial:!0,tokenize:dee};function cee(e){return Y5(e),e}function uee(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(lee,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 dee(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 fee={tokenize:pee};function pee(e){const t=this,n=e.attempt(Up,r,e.attempt(this.parser.constructs.flowInitial,a,Wt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(see,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 hee={resolveAll:K5()},mee=Q5("string"),gee=Q5("text");function Q5(e){return{resolveAll:K5(e==="text"?yee: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 g=-1;if(h)for(;++g<h.length;){const y=h[g];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function K5(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 yee(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 X5={continuation:{tokenize:bee},exit:Eee,name:"blockQuote",tokenize:vee};function vee(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 bee(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(X5,t,n)(s)}}function Eee(e){e.exit("blockQuote")}const Xm={name:"thematicBreak",tokenize:Tee};function Tee(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 ia={continuation:{tokenize:Aee},exit:wee,name:"list",tokenize:Cee},See={partial:!0,tokenize:Dee},_ee={partial:!0,tokenize:xee};function Cee(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(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:VE(y)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Xm,n,d)(y):d(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(y)}return n(y)}function u(y){return VE(y)&&++s<10?(e.consume(y),u):(!r.interrupt||s<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Up,r.interrupt?n:p,e.attempt(See,g,h))}function p(y){return r.containerState.initialBlankLine=!0,o++,g(y)}function h(y){return jt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),g):n(y)}function g(y){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Aee(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Up,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(_ee,t,s)(c))}function s(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Wt(e,e.attempt(ia,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function xee(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 wee(e){e.exit(this.containerState.type)}function Dee(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 Z5(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),g):A===null||A===32||A===41||Fg(A)?n(A):(e.enter(r),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),E(A))}function g(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"}),y(A))}function y(A){return A===62?(e.exit("chunkString"),e.exit(c),g(A)):A===null||A===60||dt(A)?n(A):(e.consume(A),A===92?b:y)}function b(A){return A===60||A===62||A===92?(e.consume(A),y):y(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||Fg(A)?n(A):(e.consume(A),A===92?_:E)}function _(A){return A===40||A===41||A===92?(e.consume(A),E):E(A)}}function J5(e,t,n,r,a,o){const s=this;let c=0,u;return d;function d(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(o),p}function p(y){return c>999||y===null||y===91||y===93&&!u||y===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(y):y===93?(e.exit(o),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):dt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||dt(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),u||(u=!jt(y)),y===92?g:h)}function g(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function e4(e,t,n,r,a,o){let s;return c;function c(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(o),d(g))}function d(g){return g===s?(e.exit(o),u(s)):g===null?n(g):dt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Wt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===s||g===null||dt(g)?(e.exit("chunkString"),d(g)):(e.consume(g),g===92?h:p)}function h(g){return g===s||g===92?(e.consume(g),p):p(g)}}function Sf(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 kee={name:"definition",tokenize:Oee},Ree={partial:!0,tokenize:Iee};function Oee(e,t,n){const r=this;let a;return o;function o(y){return e.enter("definition"),s(y)}function s(y){return J5.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return a=bo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),u):n(y)}function u(y){return xn(y)?Sf(e,d)(y):d(y)}function d(y){return Z5(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(Ree,h,h)(y)}function h(y){return jt(y)?Wt(e,g,"whitespace")(y):g(y)}function g(y){return y===null||dt(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function Iee(e,t,n){return r;function r(c){return xn(c)?Sf(e,a)(c):n(c)}function a(c){return e4(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 gb={name:"codeIndented",tokenize:Lee},Nee={partial:!0,tokenize:Pee};function Lee(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(Nee,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 Pee(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 Ok={partial:!0,tokenize:$ee},Ik={concrete:!0,name:"codeFenced",tokenize:Mee};function Mee(e,t,n){const r=this,a={partial:!0,tokenize:O};let o=0,s=0,c;return u;function u(k){return d(k)}function d(k){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,c=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===c?(s++,e.consume(k),p):s<3?n(k):(e.exit("codeFencedFenceSequence"),jt(k)?Wt(e,h,"whitespace")(k):h(k))}function h(k){return k===null||dt(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(Ok,E,R)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||dt(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(k)):jt(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Wt(e,y,"whitespace")(k)):k===96&&k===c?n(k):(e.consume(k),g)}function y(k){return k===null||dt(k)?h(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||dt(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(k)):k===96&&k===c?n(k):(e.consume(k),b)}function E(k){return e.attempt(a,R,_)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),A}function A(k){return o>0&&jt(k)?Wt(e,D,"linePrefix",o+1)(k):D(k)}function D(k){return k===null||dt(k)?e.check(Ok,E,R)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||dt(k)?(e.exit("codeFlowValue"),D(k)):(e.consume(k),w)}function R(k){return e.exit("codeFenced"),t(k)}function O(k,F,G){let j=0;return T;function T(X){return k.enter("lineEnding"),k.consume(X),k.exit("lineEnding"),M}function M(X){return k.enter("codeFencedFence"),jt(X)?Wt(k,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):U(X)}function U(X){return X===c?(k.enter("codeFencedFenceSequence"),B(X)):G(X)}function B(X){return X===c?(j++,k.consume(X),B):j>=s?(k.exit("codeFencedFenceSequence"),jt(X)?Wt(k,Y,"whitespace")(X):Y(X)):G(X)}function Y(X){return X===null||dt(X)?(k.exit("codeFencedFence"),F(X)):G(X)}}}function $ee(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 Nk={name:"setextUnderline",resolveTo:Fee,tokenize:Bee};function Fee(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 Bee(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 Uee=["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"],Lk=["pre","script","style","textarea"],jee={concrete:!0,name:"htmlFlow",resolveTo:Vee,tokenize:Gee},Hee={partial:!0,tokenize:Wee},zee={partial:!0,tokenize:qee};function Vee(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 Gee(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),g):L===47?(e.consume(L),o=!0,E):L===63?(e.consume(L),a=3,r.interrupt?t:I):Yr(L)?(e.consume(L),s=String.fromCharCode(L),_):n(L)}function g(L){return L===45?(e.consume(L),a=2,y):L===91?(e.consume(L),a=5,c=0,b):Yr(L)?(e.consume(L),a=4,r.interrupt?t:I):n(L)}function y(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:U:b):n(L)}function E(L){return Yr(L)?(e.consume(L),s=String.fromCharCode(L),_):n(L)}function _(L){if(L===null||L===47||L===62||xn(L)){const te=L===47,be=s.toLowerCase();return!te&&!o&&Lk.includes(be)?(a=1,r.interrupt?t(L):U(L)):Uee.includes(s.toLowerCase())?(a=6,te?(e.consume(L),A):r.interrupt?t(L):U(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?D(L):w(L))}return L===45||Mr(L)?(e.consume(L),s+=String.fromCharCode(L),_):n(L)}function A(L){return L===62?(e.consume(L),r.interrupt?t:U):n(L)}function D(L){return jt(L)?(e.consume(L),D):T(L)}function w(L){return L===47?(e.consume(L),T):L===58||L===95||Yr(L)?(e.consume(L),R):jt(L)?(e.consume(L),w):T(L)}function R(L){return L===45||L===46||L===58||L===95||Mr(L)?(e.consume(L),R):O(L)}function O(L){return L===61?(e.consume(L),k):jt(L)?(e.consume(L),O):w(L)}function k(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),k):G(L)}function F(L){return L===u?(e.consume(L),u=null,j):L===null||dt(L)?n(L):(e.consume(L),F)}function G(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||xn(L)?O(L):(e.consume(L),G)}function j(L){return L===47||L===62||jt(L)?w(L):n(L)}function T(L){return L===62?(e.consume(L),M):n(L)}function M(L){return L===null||dt(L)?U(L):jt(L)?(e.consume(L),M):n(L)}function U(L){return L===45&&a===2?(e.consume(L),z):L===60&&a===1?(e.consume(L),Z):L===62&&a===4?(e.consume(L),re):L===63&&a===3?(e.consume(L),I):L===93&&a===5?(e.consume(L),oe):dt(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Hee,ee,B)(L)):L===null||dt(L)?(e.exit("htmlFlowData"),B(L)):(e.consume(L),U)}function B(L){return e.check(zee,Y,ee)(L)}function Y(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),X}function X(L){return L===null||dt(L)?B(L):(e.enter("htmlFlowData"),U(L))}function z(L){return L===45?(e.consume(L),I):U(L)}function Z(L){return L===47?(e.consume(L),s="",J):U(L)}function J(L){if(L===62){const te=s.toLowerCase();return Lk.includes(te)?(e.consume(L),re):U(L)}return Yr(L)&&s.length<8?(e.consume(L),s+=String.fromCharCode(L),J):U(L)}function oe(L){return L===93?(e.consume(L),I):U(L)}function I(L){return L===62?(e.consume(L),re):L===45&&a===2?(e.consume(L),I):U(L)}function re(L){return L===null||dt(L)?(e.exit("htmlFlowData"),ee(L)):(e.consume(L),re)}function ee(L){return e.exit("htmlFlow"),t(L)}}function qee(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 Wee(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Up,t,n)}}const Yee={name:"headingAtx",resolve:Qee,tokenize:Kee};function Qee(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 Kee(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 t4={name:"characterEscape",tokenize:Xee};function Xee(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 mX(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const n4={name:"characterReference",tokenize:Zee};function Zee(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=Mr,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=hX,p):(e.enter("characterReferenceValue"),o=7,s=VE,p(h))}function p(h){if(h===59&&a){const g=e.exit("characterReferenceValue");return s===Mr&&!ZS(r.sliceSerialize(g))?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 Jee={name:"codeText",previous:tte,resolve:ete,tokenize:nte};function ete(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 tte(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nte(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 QE={name:"attention",resolveAll:rte,tokenize:ate};function rte(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},g={...e[n][1].start};Pk(h,-u),Pk(g,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:g},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=to(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=to(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",o,t]]),d=to(d,Vy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=to(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=to(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 ate(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=pu(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=pu(u),h=!p||p===2&&a||n.includes(u),g=!a||a===2&&p||n.includes(r);return d._open=!!(o===42?h:h&&(a||!g)),d._close=!!(o===42?g:g&&(p||!h)),t(u)}}function Pk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const JS={name:"labelEnd",resolveAll:lte,resolveTo:cte,tokenize:ute},ote={tokenize:dte},ite={tokenize:fte},ste={tokenize:pte};function lte(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 cte(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=to(c,e.slice(o+1,o+r+3)),c=to(c,[["enter",p,t]]),c=to(c,Vy(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),c=to(c,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),c=to(c,e.slice(s+1)),c=to(c,[["exit",u,t]]),Na(e,o,e.length,c),e}function ute(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(g){return o?o._inactive?h(g):(s=r.parser.defined.includes(bo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(ote,p,s?p:h)(g):g===91?e.attempt(ite,p,s?d:h)(g):s?p(g):h(g)}function d(g){return e.attempt(ste,p,h)(g)}function p(g){return t(g)}function h(g){return o._balanced=!0,n(g)}}function dte(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)?Sf(e,o)(h):o(h)}function o(h){return h===41?p(h):Z5(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return xn(h)?Sf(e,u)(h):p(h)}function c(h){return n(h)}function u(h){return h===34||h===39||h===40?e4(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return xn(h)?Sf(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 fte(e,t,n){const r=this;return a;function a(c){return J5.call(r,e,o,s,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(bo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function s(c){return n(c)}}function pte(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 hte={name:"hardBreakEscape",tokenize:mte};function mte(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 gte={name:"labelStartLink",resolveAll:JS.resolveAll,tokenize:yte};function yte(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 vte={name:"autolink",tokenize:bte};function bte(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return Yr(y)?(e.consume(y),s):y===64?n(y):d(y)}function s(y){return y===43||y===45||y===46||Mr(y)?(r=1,c(y)):d(y)}function c(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||Mr(y))&&r++<32?(e.consume(y),c):(r=0,d(y))}function u(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Fg(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),p):pX(y)?(e.consume(y),d):n(y)}function p(y){return Mr(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):g(y)}function g(y){if((y===45||Mr(y))&&r++<63){const b=y===45?g:h;return e.consume(y),b}return n(y)}}const Ete={name:"htmlText",tokenize:Tte};function Tte(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),O):I===63?(e.consume(I),w):Yr(I)?(e.consume(I),G):n(I)}function d(I){return I===45?(e.consume(I),p):I===91?(e.consume(I),o=0,b):Yr(I)?(e.consume(I),D):n(I)}function p(I){return I===45?(e.consume(I),y):n(I)}function h(I){return I===null?n(I):I===45?(e.consume(I),g):dt(I)?(s=h,Z(I)):(e.consume(I),h)}function g(I){return I===45?(e.consume(I),y):h(I)}function y(I){return I===62?z(I):I===45?g(I):h(I)}function b(I){const re="CDATA[";return I===re.charCodeAt(o++)?(e.consume(I),o===re.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),_):dt(I)?(s=E,Z(I)):(e.consume(I),E)}function _(I){return I===93?(e.consume(I),A):E(I)}function A(I){return I===62?z(I):I===93?(e.consume(I),A):E(I)}function D(I){return I===null||I===62?z(I):dt(I)?(s=D,Z(I)):(e.consume(I),D)}function w(I){return I===null?n(I):I===63?(e.consume(I),R):dt(I)?(s=w,Z(I)):(e.consume(I),w)}function R(I){return I===62?z(I):w(I)}function O(I){return Yr(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Mr(I)?(e.consume(I),k):F(I)}function F(I){return dt(I)?(s=F,Z(I)):jt(I)?(e.consume(I),F):z(I)}function G(I){return I===45||Mr(I)?(e.consume(I),G):I===47||I===62||xn(I)?j(I):n(I)}function j(I){return I===47?(e.consume(I),z):I===58||I===95||Yr(I)?(e.consume(I),T):dt(I)?(s=j,Z(I)):jt(I)?(e.consume(I),j):z(I)}function T(I){return I===45||I===46||I===58||I===95||Mr(I)?(e.consume(I),T):M(I)}function M(I){return I===61?(e.consume(I),U):dt(I)?(s=M,Z(I)):jt(I)?(e.consume(I),M):j(I)}function U(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),a=I,B):dt(I)?(s=U,Z(I)):jt(I)?(e.consume(I),U):(e.consume(I),Y)}function B(I){return I===a?(e.consume(I),a=void 0,X):I===null?n(I):dt(I)?(s=B,Z(I)):(e.consume(I),B)}function Y(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||xn(I)?j(I):(e.consume(I),Y)}function X(I){return I===47||I===62||xn(I)?j(I):n(I)}function z(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"),J}function J(I){return jt(I)?Wt(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const Ste={name:"labelStartImage",resolveAll:JS.resolveAll,tokenize:_te};function _te(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 yb={name:"lineEnding",tokenize:Cte};function Cte(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Wt(e,t,"linePrefix")}}const Ate={42:ia,43:ia,45:ia,48:ia,49:ia,50:ia,51:ia,52:ia,53:ia,54:ia,55:ia,56:ia,57:ia,62:X5},xte={91:kee},wte={[-2]:gb,[-1]:gb,32:gb},Dte={35:Yee,42:Xm,45:[Nk,Xm],60:jee,61:Nk,95:Xm,96:Ik,126:Ik},kte={38:n4,92:t4},Rte={[-5]:yb,[-4]:yb,[-3]:yb,33:Ste,38:n4,42:QE,60:[vte,Ete],91:gte,92:[hte,t4],93:JS,95:QE,96:Jee},Ote={null:[QE,hee]},Ite={null:[42,95]},Nte={null:[]},Lte=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ite,contentInitial:xte,disable:Nte,document:Ate,flow:Dte,flowInitial:wte,insideSpan:Ote,string:kte,text:Rte},Symbol.toStringTag,{value:"Module"}));function Pte(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(O),check:F(k),consume:D,enter:w,exit:R,interrupt:F(k,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:h};let p=t.tokenize.call(d,u);return t.resolveAll&&o.push(t),d;function h(M){return s=to(s,M),_(),s[s.length-1]!==null?[]:(G(t,0),d.events=Vy(o,d.events,d),d.events)}function g(M,U){return $te(y(M),U)}function y(M){return Mte(s,M)}function b(){const{_bufferIndex:M,_index:U,line:B,column:Y,offset:X}=r;return{_bufferIndex:M,_index:U,line:B,column:Y,offset:X}}function E(M){a[M.line]=M.column,T()}function _(){let M;for(;r._index<s.length;){const U=s[r._index];if(typeof U=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<U.length;)A(U.charCodeAt(r._bufferIndex));else A(U)}}function A(M){p=p(M)}function D(M){dt(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,T()):M!==-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=M}function w(M,U){const B=U||{};return B.type=M,B.start=b(),d.events.push(["enter",B,d]),c.push(B),B}function R(M){const U=c.pop();return U.end=b(),d.events.push(["exit",U,d]),U}function O(M,U){G(M,U.from)}function k(M,U){U.restore()}function F(M,U){return B;function B(Y,X,z){let Z,J,oe,I;return Array.isArray(Y)?ee(Y):"tokenize"in Y?ee([Y]):re(Y);function re(de){return xe;function xe(ge){const Oe=ge!==null&&de[ge],Ue=ge!==null&&de.null,Ie=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return ee(Ie)(ge)}}function ee(de){return Z=de,J=0,de.length===0?z:L(de[J])}function L(de){return xe;function xe(ge){return I=j(),oe=de,de.partial||(d.currentConstruct=de),de.name&&d.parser.constructs.disable.null.includes(de.name)?be():de.tokenize.call(U?Object.assign(Object.create(d),U):d,u,te,be)(ge)}}function te(de){return M(oe,I),X}function be(de){return I.restore(),++J<Z.length?L(Z[J]):z}}}function G(M,U){M.resolveAll&&!o.includes(M)&&o.push(M),M.resolve&&Na(d.events,U,d.events.length-U,M.resolve(d.events.slice(U),d)),M.resolveTo&&(d.events=M.resolveTo(d.events,d))}function j(){const M=b(),U=d.previous,B=d.currentConstruct,Y=d.events.length,X=Array.from(c);return{from:Y,restore:z};function z(){r=M,d.previous=U,d.currentConstruct=B,d.events.length=Y,c=X,T()}}function T(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Mte(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 $te(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 Fte(e){const t={constructs:E5([Lte,...(e||{}).extensions||[]]),content:n(nee),defined:[],document:n(aee),flow:n(fee),lazy:{},string:n(mee),text:n(gee)};return t;function n(r){return a;function a(o){return Pte(t,r,o)}}}const Mk=/[\0\t\n\r]/g;function Bte(){let e=1,t="",n=!0,r;return a;function a(o,s,c){const u=[];let d,p,h,g,y;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(Mk.lastIndex=h,d=Mk.exec(o),g=d&&d.index!==void 0?d.index:o.length,y=o.charCodeAt(g),!d){t=o.slice(h);break}if(y===10&&h===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<g&&(u.push(o.slice(h,g)),e+=g-h),y){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=g+1}return c&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const r4={}.hasOwnProperty;function Ute(e,t,n){return typeof t!="string"&&(n=t,t=void 0),jte(n)(tee(Fte(n).document().write(Bte()(e,t,!0))))}function jte(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ot),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(Rt),blockQuote:o(Ue),characterEscape:j,characterReference:j,codeFenced:o(Ie),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ie,s),codeText:o(Ye,s),codeTextData:j,data:j,codeFlowValue:j,definition:o(Ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ke),hardBreakEscape:o(Et),hardBreakTrailing:o(Et),htmlFlow:o(je,s),htmlFlowData:j,htmlText:o(je,s),htmlTextData:j,image:o(St),label:s,link:o(ot),listItem:o(Ge),listItemValue:g,listOrdered:o(Ze,h),listUnordered:o(Ze),paragraph:o(Pe),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Rt),strong:o(Ot),thematicBreak:o(bt)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:Oe,autolinkProtocol:ge,blockQuote:u(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:de,characterReference:xe,codeFenced:u(_),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:b,codeFlowValue:T,codeIndented:u(A),codeText:u(X),codeTextData:T,data:T,definition:u(),definitionDestinationString:R,definitionLabelString:D,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(U),hardBreakTrailing:u(U),htmlFlow:u(B),htmlFlowData:T,htmlText:u(Y),htmlTextData:T,image:u(Z),label:oe,labelText:J,lineEnding:M,link:u(z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:te,resourceDestinationString:I,resourceTitleString:re,resource:ee,setextHeading:u(G),setextHeadingLineSequence:F,setextHeadingText:k,strong:u(),thematicBreak:u()}};a4(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},We=[];let Qe=-1;for(;++Qe<ce.length;)if(ce[Qe][1].type==="listOrdered"||ce[Qe][1].type==="listUnordered")if(ce[Qe][0]==="enter")We.push(Qe);else{const gt=We.pop();Qe=a(ce,gt,Qe)}for(Qe=-1;++Qe<ce.length;){const gt=t[ce[Qe][0]];r4.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]||$k).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 We=me-1,Qe=-1,gt=!1,ln,Qt,qe,Ee;for(;++We<=Be;){const Te=ce[We];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Qe++:Qe--,Ee=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(ln&&!Ee&&!Qe&&!qe&&(qe=We),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(ln){let ut=We;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}qe&&(!Qt||qe<Qt)&&(ln._spread=!0),ln.end=Object.assign({},Qt?ce[Qt][1].start:Te[1].end),ce.splice(Qt||We,0,["exit",ln,Te[2]]),We++,Be++}if(Te[1].type==="listItemPrefix"){const ut={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};ln=ut,ce.splice(We,0,["enter",ut,Te[2]]),We++,Be++,qe=void 0,Ee=!0}}}return ce[me][1]._spread=gt,Be}function o(ce,me){return Be;function Be(We){c.call(this,ce(We),We),me&&me.call(this,We)}}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(),We=this.tokenStack.pop();if(We)We[0].type!==ce.type&&(me?me.call(this,ce,We[0]):(We[1]||$k).call(this,ce,We[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Tf({start:ce.start,end:ce.end})+"): it’s not open");Be.position.end=ps(ce.end)}function p(){return KS(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(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 y(){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 _(){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 D(ce){const me=this.resume(),Be=this.stack[this.stack.length-1];Be.label=me,Be.identifier=bo(this.sliceSerialize(ce)).toLowerCase()}function w(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.title=ce}function R(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.url=ce}function O(ce){const me=this.stack[this.stack.length-1];if(!me.depth){const Be=this.sliceSerialize(ce).length;me.depth=Be}}function k(){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 G(){this.data.setextHeadingSlurpLineEnding=void 0}function j(ce){const me=this.stack[this.stack.length-1].children;let Be=me[me.length-1];(!Be||Be.type!=="text")&&(Be=Dn(),Be.position={start:ps(ce.start),end:void 0},me.push(Be)),this.stack.push(Be)}function T(ce){const me=this.stack.pop();me.value+=this.sliceSerialize(ce),me.position.end=ps(ce.end)}function M(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)&&(j.call(this,ce),T.call(this,ce))}function U(){this.data.atHardBreak=!0}function B(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}function Y(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}function X(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.value=ce}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 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 J(ce){const me=this.sliceSerialize(ce),Be=this.stack[this.stack.length-2];Be.label=XJ(me),Be.identifier=bo(me).toLowerCase()}function oe(){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 We=ce.children;Be.children=We}else Be.alt=me}function I(){const ce=this.resume(),me=this.stack[this.stack.length-1];me.url=ce}function re(){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=bo(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 We;Be?(We=W5(me,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):We=ZS(me);const Qe=this.stack[this.stack.length-1];Qe.value+=We}function xe(ce){const me=this.stack.pop();me.position.end=ps(ce.end)}function ge(ce){T.call(this,ce);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ce)}function Oe(ce){T.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 ke(){return{type:"emphasis",children:[]}}function Rt(){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 ot(){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 Ot(){return{type:"strong",children:[]}}function Dn(){return{type:"text",value:""}}function bt(){return{type:"thematicBreak"}}}function ps(e){return{line:e.line,column:e.column,offset:e.offset}}function a4(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?a4(e,r):Hte(e,r)}}function Hte(e,t){let n;for(n in t)if(r4.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 $k(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Tf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Tf({start:t.start,end:t.end})+") is still open")}function zte(e){const t=this;t.parser=n;function n(r){return Ute(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const o4=-1,qy=0,_f=1,Ug=2,e_=3,t_=4,n_=5,r_=6,i4=7,s4=8,Fk=typeof self=="object"?self:globalThis,Vte=(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 qy:case o4:return n(s,a);case _f:{const c=n([],a);for(const u of s)c.push(r(u));return c}case Ug:{const c=n({},a);for(const[u,d]of s)c[r(u)]=r(d);return c}case e_:return n(new Date(s),a);case t_:{const{source:c,flags:u}=s;return n(new RegExp(c,u),a)}case n_:{const c=n(new Map,a);for(const[u,d]of s)c.set(r(u),r(d));return c}case r_:{const c=n(new Set,a);for(const u of s)c.add(r(u));return c}case i4:{const{name:c,message:u}=s;return n(new Fk[c](u),a)}case s4: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 Fk[o](s),a)};return r},Bk=e=>Vte(new Map,e)(0),$c="",{toString:Gte}={},{keys:qte}=Object,Vd=e=>{const t=typeof e;if(t!=="object"||!e)return[qy,t];const n=Gte.call(e).slice(8,-1);switch(n){case"Array":return[_f,$c];case"Object":return[Ug,$c];case"Date":return[e_,$c];case"RegExp":return[t_,$c];case"Map":return[n_,$c];case"Set":return[r_,$c];case"DataView":return[_f,n]}return n.includes("Array")?[_f,n]:n.includes("Error")?[i4,n]:[Ug,n]},Cm=([e,t])=>e===qy&&(t==="function"||t==="symbol"),Wte=(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]=Vd(s);switch(c){case qy:{let p=s;switch(u){case"bigint":c=s4,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return a([o4],s)}return a([c,p],s)}case _f:{if(u){let g=s;return u==="DataView"?g=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(g=new Uint8Array(s)),a([u,[...g]],s)}const p=[],h=a([c,p],s);for(const g of s)p.push(o(g));return h}case Ug:{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 g of qte(s))(e||!Cm(Vd(s[g])))&&p.push([o(g),o(s[g])]);return h}case e_:return a([c,s.toISOString()],s);case t_:{const{source:p,flags:h}=s;return a([c,{source:p,flags:h}],s)}case n_:{const p=[],h=a([c,p],s);for(const[g,y]of s)(e||!(Cm(Vd(g))||Cm(Vd(y))))&&p.push([o(g),o(y)]);return h}case r_:{const p=[],h=a([c,p],s);for(const g of s)(e||!Cm(Vd(g)))&&p.push(o(g));return h}}const{message:d}=s;return a([c,{name:u,message:d}],s)};return o},Uk=(e,{json:t,lossy:n}={})=>{const r=[];return Wte(!(t||n),!!t,new Map,r)(e),r},Ml=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?Bk(Uk(e,t)):structuredClone(e)):(e,t)=>Bk(Uk(e,t));function xu(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Mr(e.charCodeAt(n+1))&&Mr(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 Yte(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 Qte(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Kte(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Yte,r=e.options.footnoteBackLabel||Qte,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(),g=xu(h.toLowerCase());let y=0;const b=[],E=e.footnoteCounts.get(h);for(;E!==void 0&&++y<=E;){b.length>0&&b.push({type:"text",value:" "});let D=typeof n=="string"?n:n(u,y);typeof D=="string"&&(D={type:"text",value:D}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const _=p[p.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const D=_.children[_.children.length-1];D&&D.type==="text"?D.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...b)}else p.push(...b);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+g},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:{...Ml(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 Xte(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 Zte(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
264
|
-
`}]}function Jte(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 ene(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tne(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nne(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=xu(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 rne(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 ane(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function l4(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 one(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return l4(e,t);const a={src:xu(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 ine(e,t){const n={src:xu(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 sne(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 lne(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return l4(e,t);const a={href:xu(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 cne(e,t){const n={href:xu(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 une(e,t,n){const r=e.all(t),a=n?dne(n):c4(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 dne(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=c4(n[r])}return t}function c4(e){return e.spread??e.children.length>1}function fne(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 pne(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hne(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function mne(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Wy=u4("end"),ri=u4("start");function u4(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 gne(e){const t=ri(e),n=Wy(e);if(t&&n)return{start:t,end:n}}function yne(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=ri(t.children[1]),u=Wy(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 vne(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={},g=o?o[c]:void 0;g&&(h.align=g);let y={type:"element",tagName:a,properties:h,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function bne(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ene(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(jk(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(jk(t.slice(a),a>0,!1)),o.join("")}function jk(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 Tne(e,t){const n={type:"text",value:Ene(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sne(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const _ne={blockquote:Xte,break:Zte,code:Jte,delete:ene,emphasis:tne,footnoteReference:nne,heading:rne,html:ane,imageReference:one,image:ine,inlineCode:sne,linkReference:lne,link:cne,listItem:une,list:fne,paragraph:pne,root:hne,strong:mne,table:yne,tableCell:bne,tableRow:vne,text:Tne,thematicBreak:Sne,toml:Am,yaml:Am,definition:Am,footnoteDefinition:Am};function Am(){}const KE={}.hasOwnProperty,Cne={};function Ane(e,t){const n=t||Cne,r=new Map,a=new Map,o=new Map,s={..._ne,...n.handlers},c={all:d,applyData:wne,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:s,one:u,options:n,patch:xne,wrap:kne};return ha(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:a,g=String(p.identifier).toUpperCase();h.has(g)||h.set(g,p)}}),c;function u(p,h){const g=p.type,y=c.handlers[g];if(KE.call(c.handlers,g)&&y)return y(c,p,h);if(c.options.passThrough&&c.options.passThrough.includes(g)){if("children"in p){const{children:b,...E}=p,_=Ml(E);return _.children=c.all(p),_}return Ml(p)}return(c.options.unknownHandler||Dne)(c,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const b=c.one(g[y],p);if(b){if(y&&g[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Hk(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=Hk(E.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function xne(e,t){e.position&&(t.position=gne(e))}function wne(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,Ml(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Dne(e,t){const n=t.data||{},r="value"in t&&!(KE.call(n,"hProperties")||KE.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 kne(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 Hk(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zk(e,t){const n=Ane(e,t),r=n.one(e,void 0),a=Kte(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 Rne(e,t){return e&&"run"in e?async function(n,r){const a=zk(n,{file:r,...t});await e.run(a,r)}:function(n,r){return zk(n,{file:r,...e||t})}}var Fc={},vb,Vk;function One(){if(Vk)return vb;Vk=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="",g="comment",y="declaration";vb=function(E,_){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];_=_||{};var A=1,D=1;function w(B){var Y=B.match(t);Y&&(A+=Y.length);var X=B.lastIndexOf(u);D=~X?B.length-X:D+B.length}function R(){var B={line:A,column:D};return function(Y){return Y.position=new O(B),G(),Y}}function O(B){this.start=B,this.end={line:A,column:D},this.source=_.source}O.prototype.content=E;function k(B){var Y=new Error(_.source+":"+A+":"+D+": "+B);if(Y.reason=B,Y.filename=_.source,Y.line=A,Y.column=D,Y.source=E,!_.silent)throw Y}function F(B){var Y=B.exec(E);if(Y){var X=Y[0];return w(X),E=E.slice(X.length),Y}}function G(){F(n)}function j(B){var Y;for(B=B||[];Y=T();)Y!==!1&&B.push(Y);return B}function T(){var B=R();if(!(d!=E.charAt(0)||p!=E.charAt(1))){for(var Y=2;h!=E.charAt(Y)&&(p!=E.charAt(Y)||d!=E.charAt(Y+1));)++Y;if(Y+=2,h===E.charAt(Y-1))return k("End of comment missing");var X=E.slice(2,Y-2);return D+=2,w(X),E=E.slice(Y),D+=2,B({type:g,comment:X})}}function M(){var B=R(),Y=F(r);if(Y){if(T(),!F(a))return k("property missing ':'");var X=F(o),z=B({type:y,property:b(Y[0].replace(e,h)),value:X?b(X[0].replace(e,h)):h});return F(s),z}}function U(){var B=[];j(B);for(var Y;Y=M();)Y!==!1&&(B.push(Y),j(B));return B}return G(),U()};function b(E){return E?E.replace(c,h):h}return vb}var Gk;function Ine(){if(Gk)return Fc;Gk=1;var e=Fc&&Fc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.default=n;var t=e(One());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 Fc}var Gd={},qk;function Nne(){if(qk)return Gd;qk=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.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 Gd.camelCase=u,Gd}var qd,Wk;function Lne(){if(Wk)return qd;Wk=1;var e=qd&&qd.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Ine()),n=Nne();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 Pne=Lne();const Mne=Gy(Pne),$ne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bne={};function Yk(e,t){return(Bne.jsx?Fne:$ne).test(e)}const Une={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"},a_={}.hasOwnProperty,jne=new Map,Hne=/[A-Z]/g,zne=new Set(["table","tbody","thead","tfoot","tr"]),Vne=new Set(["td","th"]),d4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gne(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=Jne(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=Zne(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:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=f4(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function f4(e,t,n){if(t.type==="element")return qne(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wne(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qne(e,t,n);if(t.type==="mdxjsEsm")return Yne(e,t);if(t.type==="root")return Kne(e,t,n);if(t.type==="text")return Xne(e,t)}function qne(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=h4(e,t.tagName,!1),s=ere(e,t);let c=i_(e,t);return zne.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Lp(u):!0})),p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Wne(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)}rp(e,t.position)}function Yne(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rp(e,t.position)}function Qne(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:h4(e,t.name,!0),s=tre(e,t),c=i_(e,t);return p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Kne(e,t,n){const r={};return o_(r,i_(e,t)),e.create(t,e.Fragment,r,n)}function Xne(e,t){return t.value}function p4(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function o_(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zne(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 Jne(e,t){return n;function n(r,a,o,s){const c=Array.isArray(o.children),u=ri(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 ere(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&a_.call(t.properties,a)){const o=nre(e,a,t.properties[a]);if(o){const[s,c]=o;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&Vne.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 tre(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 rp(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 rp(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function i_(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:jne;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=f4(e,o,s);c!==void 0&&n.push(c)}return n}function nre(e,t,n){const r=Pp(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ry(n):Oy(n)),r.property==="style"){let a=typeof n=="object"?n:rre(e,String(n));return e.stylePropertyNameCase==="css"&&(a=are(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Une[r.property]||r.property:r.attribute,n]}}function rre(e,t){try{return Mne(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Br("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=d4+"#cannot-parse-style-attribute",a}}function h4(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=Yk(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=Yk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return a_.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);rp(e)}function rp(e,t){const n=new Br("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=d4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function are(e){const t={};let n;for(n in e)a_.call(e,n)&&(t[ore(n)]=e[n]);return t}function ore(e){let t=e.replace(Hne,ire);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ire(e){return"-"+e.toLowerCase()}const bb={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"]},sre="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qk=[],Kk={allowDangerousHtml:!0},lre=/^(https?|ircs?|mailto|xmpp)$/i,cre=[{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 ure(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,s=e.disallowedElements,c=e.rehypePlugins||Qk,u=e.remarkPlugins||Qk,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kk}:Kk,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||dre,y=qJ().use(zte).use(u).use(Rne,d).use(c),b=new G5;typeof r=="string"&&(b.value=r);for(const D of cre)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+sre+D.id,void 0);const E=y.parse(b);let _=y.runSync(E,b);return a&&(_={type:"element",tagName:"div",properties:{className:a},children:_.type==="root"?_.children:[_]}),ha(_,A),Gne(_,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function A(D,w,R){if(D.type==="raw"&&R&&typeof w=="number")return p?R.children.splice(w,1):R.children[w]={type:"text",value:D.value},w;if(D.type==="element"){let O;for(O in bb)if(Object.hasOwn(bb,O)&&Object.hasOwn(D.properties,O)){const k=D.properties[O],F=bb[O];(F===null||F.includes(D.tagName))&&(D.properties[O]=g(String(k||""),O,D))}}if(D.type==="element"){let O=t?!t.includes(D.tagName):s?s.includes(D.tagName):!1;if(!O&&n&&typeof w=="number"&&(O=!n(D,w,R)),O&&R&&typeof w=="number")return h&&D.children?R.children.splice(w,1,...D.children):R.children.splice(w,1),w}}}function dre(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||lre.test(e.slice(0,t))?e:""}const fre=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]),$n="�";var H;(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"})(H||(H={}));const oa={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function m4(e){return e>=55296&&e<=57343}function pre(e){return e>=56320&&e<=57343}function hre(e,t){return(e-55296)*1024+9216+t}function g4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function y4(e){return e>=64976&&e<=65007||fre.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 mre=65536;let gre=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=mre,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(pre(n))return this.pos++,this._addGap(),hre(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,H.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,H.EOF;const r=this.html.charCodeAt(n);return r===H.CARRIAGE_RETURN?H.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,H.EOF;let t=this.html.charCodeAt(this.pos);return t===H.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,H.LINE_FEED):t===H.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,m4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===H.LINE_FEED||t===H.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){g4(t)?this._err(ve.controlCharacterInInputStream):y4(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 v4(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 yre=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 vre(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yre.get(e))!==null&&t!==void 0?t:e}var Sr;(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"})(Sr||(Sr={}));const bre=32;var Ss;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ss||(Ss={}));function XE(e){return e>=Sr.ZERO&&e<=Sr.NINE}function Ere(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_F||e>=Sr.LOWER_A&&e<=Sr.LOWER_F}function Tre(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_Z||e>=Sr.LOWER_A&&e<=Sr.LOWER_Z||XE(e)}function Sre(e){return e===Sr.EQUALS||Tre(e)}var Er;(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"})(Er||(Er={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));let _re=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Er.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=Er.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Er.EntityStart:return t.charCodeAt(n)===Sr.NUM?(this.state=Er.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Er.NamedEntity,this.stateNamedEntity(t,n));case Er.NumericStart:return this.stateNumericStart(t,n);case Er.NumericDecimal:return this.stateNumericDecimal(t,n);case Er.NumericHex:return this.stateNumericHex(t,n);case Er.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bre)===Sr.LOWER_X?(this.state=Er.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Er.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(XE(a)||Ere(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(XE(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===Sr.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(vre(this.result),this.consumed),this.errors&&(t!==Sr.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&Ss.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Cre(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(o===0||Sre(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&Ss.VALUE_LENGTH)>>14,o!==0){if(s===Sr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ki.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]&Ss.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]&~Ss.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Er.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Er.NumericDecimal:return this.emitNumericEntity(0,2);case Er.NumericHex:return this.emitNumericEntity(0,3);case Er.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Er.EntityStart:return 0}}};function Cre(e,t,n,r){const a=(t&Ss.BRANCH_LENGTH)>>7,o=t&Ss.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 Al;(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"})(Al||(Al={}));var no;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(no||(no={}));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 C;(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"})(C||(C={}));const Are=new Map([[le.A,C.A],[le.ADDRESS,C.ADDRESS],[le.ANNOTATION_XML,C.ANNOTATION_XML],[le.APPLET,C.APPLET],[le.AREA,C.AREA],[le.ARTICLE,C.ARTICLE],[le.ASIDE,C.ASIDE],[le.B,C.B],[le.BASE,C.BASE],[le.BASEFONT,C.BASEFONT],[le.BGSOUND,C.BGSOUND],[le.BIG,C.BIG],[le.BLOCKQUOTE,C.BLOCKQUOTE],[le.BODY,C.BODY],[le.BR,C.BR],[le.BUTTON,C.BUTTON],[le.CAPTION,C.CAPTION],[le.CENTER,C.CENTER],[le.CODE,C.CODE],[le.COL,C.COL],[le.COLGROUP,C.COLGROUP],[le.DD,C.DD],[le.DESC,C.DESC],[le.DETAILS,C.DETAILS],[le.DIALOG,C.DIALOG],[le.DIR,C.DIR],[le.DIV,C.DIV],[le.DL,C.DL],[le.DT,C.DT],[le.EM,C.EM],[le.EMBED,C.EMBED],[le.FIELDSET,C.FIELDSET],[le.FIGCAPTION,C.FIGCAPTION],[le.FIGURE,C.FIGURE],[le.FONT,C.FONT],[le.FOOTER,C.FOOTER],[le.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[le.FORM,C.FORM],[le.FRAME,C.FRAME],[le.FRAMESET,C.FRAMESET],[le.H1,C.H1],[le.H2,C.H2],[le.H3,C.H3],[le.H4,C.H4],[le.H5,C.H5],[le.H6,C.H6],[le.HEAD,C.HEAD],[le.HEADER,C.HEADER],[le.HGROUP,C.HGROUP],[le.HR,C.HR],[le.HTML,C.HTML],[le.I,C.I],[le.IMG,C.IMG],[le.IMAGE,C.IMAGE],[le.INPUT,C.INPUT],[le.IFRAME,C.IFRAME],[le.KEYGEN,C.KEYGEN],[le.LABEL,C.LABEL],[le.LI,C.LI],[le.LINK,C.LINK],[le.LISTING,C.LISTING],[le.MAIN,C.MAIN],[le.MALIGNMARK,C.MALIGNMARK],[le.MARQUEE,C.MARQUEE],[le.MATH,C.MATH],[le.MENU,C.MENU],[le.META,C.META],[le.MGLYPH,C.MGLYPH],[le.MI,C.MI],[le.MO,C.MO],[le.MN,C.MN],[le.MS,C.MS],[le.MTEXT,C.MTEXT],[le.NAV,C.NAV],[le.NOBR,C.NOBR],[le.NOFRAMES,C.NOFRAMES],[le.NOEMBED,C.NOEMBED],[le.NOSCRIPT,C.NOSCRIPT],[le.OBJECT,C.OBJECT],[le.OL,C.OL],[le.OPTGROUP,C.OPTGROUP],[le.OPTION,C.OPTION],[le.P,C.P],[le.PARAM,C.PARAM],[le.PLAINTEXT,C.PLAINTEXT],[le.PRE,C.PRE],[le.RB,C.RB],[le.RP,C.RP],[le.RT,C.RT],[le.RTC,C.RTC],[le.RUBY,C.RUBY],[le.S,C.S],[le.SCRIPT,C.SCRIPT],[le.SEARCH,C.SEARCH],[le.SECTION,C.SECTION],[le.SELECT,C.SELECT],[le.SOURCE,C.SOURCE],[le.SMALL,C.SMALL],[le.SPAN,C.SPAN],[le.STRIKE,C.STRIKE],[le.STRONG,C.STRONG],[le.STYLE,C.STYLE],[le.SUB,C.SUB],[le.SUMMARY,C.SUMMARY],[le.SUP,C.SUP],[le.TABLE,C.TABLE],[le.TBODY,C.TBODY],[le.TEMPLATE,C.TEMPLATE],[le.TEXTAREA,C.TEXTAREA],[le.TFOOT,C.TFOOT],[le.TD,C.TD],[le.TH,C.TH],[le.THEAD,C.THEAD],[le.TITLE,C.TITLE],[le.TR,C.TR],[le.TRACK,C.TRACK],[le.TT,C.TT],[le.U,C.U],[le.UL,C.UL],[le.SVG,C.SVG],[le.VAR,C.VAR],[le.WBR,C.WBR],[le.XMP,C.XMP]]);function wu(e){var t;return(t=Are.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const Le=C,xre={[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},ZE=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 wre=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 q;(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"})(q||(q={}));const er={DATA:q.DATA,RCDATA:q.RCDATA,RAWTEXT:q.RAWTEXT,SCRIPT_DATA:q.SCRIPT_DATA,PLAINTEXT:q.PLAINTEXT,CDATA_SECTION:q.CDATA_SECTION};function Dre(e){return e>=H.DIGIT_0&&e<=H.DIGIT_9}function ff(e){return e>=H.LATIN_CAPITAL_A&&e<=H.LATIN_CAPITAL_Z}function kre(e){return e>=H.LATIN_SMALL_A&&e<=H.LATIN_SMALL_Z}function ys(e){return kre(e)||ff(e)}function Xk(e){return ys(e)||Dre(e)}function xm(e){return e+32}function b4(e){return e===H.SPACE||e===H.LINE_FEED||e===H.TABULATION||e===H.FORM_FEED}function Zk(e){return b4(e)||e===H.SOLIDUS||e===H.GREATER_THAN_SIGN}function Rre(e){return e===H.NULL?ve.nullCharacterReference:e>1114111?ve.characterReferenceOutsideUnicodeRange:m4(e)?ve.surrogateCharacterReference:y4(e)?ve.noncharacterCharacterReference:g4(e)||e===H.CARRIAGE_RETURN?ve.controlCharacterReference:null}let Ore=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=q.DATA,this.returnState=q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new gre(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _re(wre,(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=Rre(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:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:C.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(v4(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=wu(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=b4(t)?$t.WHITESPACE_CHARACTER:t===H.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=q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ki.Attribute:ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case q.DATA:{this._stateData(t);break}case q.RCDATA:{this._stateRcdata(t);break}case q.RAWTEXT:{this._stateRawtext(t);break}case q.SCRIPT_DATA:{this._stateScriptData(t);break}case q.PLAINTEXT:{this._statePlaintext(t);break}case q.TAG_OPEN:{this._stateTagOpen(t);break}case q.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case q.TAG_NAME:{this._stateTagName(t);break}case q.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case q.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case q.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case q.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case q.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case q.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case q.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case q.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case q.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case q.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case q.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case q.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case q.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case q.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case q.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case q.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case q.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case q.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case q.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case q.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case q.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case q.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case q.BOGUS_COMMENT:{this._stateBogusComment(t);break}case q.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case q.COMMENT_START:{this._stateCommentStart(t);break}case q.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case q.COMMENT:{this._stateComment(t);break}case q.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case q.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case q.COMMENT_END:{this._stateCommentEnd(t);break}case q.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case q.DOCTYPE:{this._stateDoctype(t);break}case q.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case q.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case q.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case q.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case q.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case q.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case q.CDATA_SECTION:{this._stateCdataSection(t);break}case q.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case q.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case q.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case q.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.TAG_OPEN;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitCodePoint(t);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case H.AMPERSAND:{this._startCharacterReference();break}case H.LESS_THAN_SIGN:{this.state=q.RCDATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.RAWTEXT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ys(t))this._createStartTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.EXCLAMATION_MARK:{this.state=q.MARKUP_DECLARATION_OPEN;break}case H.SOLIDUS:{this.state=q.END_TAG_OPEN;break}case H.QUESTION_MARK:{this._err(ve.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t);break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=q.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ys(t))this._createEndTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.GREATER_THAN_SIGN:{this._err(ve.missingEndTagName),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.tagName+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateRcdataLessThanSign(t){t===H.SOLIDUS?this.state=q.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ys(t)?(this.state=q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=q.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 H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=q.BEFORE_ATTRIBUTE_NAME,!1;case H.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=q.SELF_CLOSING_START_TAG,!1;case H.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===H.SOLIDUS?this.state=q.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ys(t)?(this.state=q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case H.SOLIDUS:{this.state=q.SCRIPT_DATA_END_TAG_OPEN;break}case H.EXCLAMATION_MARK:{this.state=q.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=q.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===H.SOLIDUS?this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ys(t)?(this._emitChars("<"),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===H.SOLIDUS?(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._err(ve.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this._leaveAttrName(),this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._leaveAttrName(),this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:{this._err(ve.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.name+=$n;break}default:this.currentAttr.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.EQUALS_SIGN:{this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{this.state=q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this.state=q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingAttributeValue),this.state=q.DATA,this.emitCurrentTagToken();break}default:this.state=q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case H.APOSTROPHE:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:case H.EQUALS_SIGN:case H.GRAVE_ACCENT:{this._err(ve.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this._leaveAttrValue(),this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBetweenAttributes),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case H.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.unexpectedSolidusInTag),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(oa.DASH_DASH,!0)?(this._createCommentToken(oa.DASH_DASH.length+1),this.state=q.COMMENT_START):this._consumeSequenceIfMatch(oa.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(oa.DOCTYPE.length+1),this.state=q.DOCTYPE):this._consumeSequenceIfMatch(oa.CDATA_START,!0)?this.inForeignNode?this.state=q.CDATA_SECTION:(this._err(ve.cdataInHtmlContent),this._createCommentToken(oa.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ve.incorrectlyOpenedComment),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_START_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END_DASH;break}case H.LESS_THAN_SIGN:{n.data+="<",this.state=q.COMMENT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}case H.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 H.EXCLAMATION_MARK:{n.data+="!",this.state=q.COMMENT_LESS_THAN_SIGN_BANG;break}case H.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=q.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=q.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==H.GREATER_THAN_SIGN&&t!==H.EOF&&this._err(ve.nestedComment),this.state=q.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EXCLAMATION_MARK:{this.state=q.COMMENT_END_BANG;break}case H.HYPHEN_MINUS:{n.data+="-";break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{n.data+="--!",this.state=q.COMMENT_END_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.incorrectlyClosedComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=q.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case H.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=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ff(t))this._createDoctypeToken(String.fromCharCode(xm(t))),this.state=q.DOCTYPE_NAME;else switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.NULL:{this._err(ve.unexpectedNullCharacter),this._createDoctypeToken($n),this.state=q.DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.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=q.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.AFTER_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.name+=$n;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(oa.PUBLIC,!1)?this.state=q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(oa.SYSTEM,!1)?this.state=q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ve.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.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 H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.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 H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.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 H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.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 H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.NULL:{this._err(ve.unexpectedNullCharacter);break}case H.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case H.RIGHT_SQUARE_BRACKET:{this.state=q.CDATA_SECTION_BRACKET;break}case H.EOF:{this._err(ve.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===H.RIGHT_SQUARE_BRACKET?this.state=q.CDATA_SECTION_END:(this._emitChars("]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA;break}case H.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=q.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(H.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Xk(this.preprocessor.peek(1))?q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Xk(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===H.SEMICOLON&&this._err(ve.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const E4=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),Jk=new Set([...E4,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),jg=new Set([C.APPLET,C.CAPTION,C.HTML,C.MARQUEE,C.OBJECT,C.TABLE,C.TD,C.TEMPLATE,C.TH]),Ire=new Set([...jg,C.OL,C.UL]),Nre=new Set([...jg,C.BUTTON]),eR=new Set([C.ANNOTATION_XML,C.MI,C.MN,C.MO,C.MS,C.MTEXT]),tR=new Set([C.DESC,C.FOREIGN_OBJECT,C.TITLE]),Lre=new Set([C.TR,C.TEMPLATE,C.HTML]),Pre=new Set([C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML]),Mre=new Set([C.TABLE,C.TEMPLATE,C.HTML]),$re=new Set([C.TD,C.TH]);let Fre=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=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.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(ZE,Re.HTML)}popUntilTableCellPopped(){this.popUntilPopped($re,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(Mre,Re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Pre,Re.HTML)}clearBackToTableRowContext(){this.clearBackTo(Lre,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]===C.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]===C.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(tR.has(a))return!1;break}case Re.MATHML:{if(eR.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,jg)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ire)}hasInButtonScope(t){return this.hasInDynamicScope(t,Nre)}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(ZE.has(n))return!0;if(jg.has(n))return!1;break}case Re.SVG:{if(tR.has(n))return!1;break}case Re.MATHML:{if(eR.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 C.TABLE:case C.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 C.TBODY:case C.THEAD:case C.TFOOT:return!0;case C.TABLE:case C.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 C.OPTION:case C.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&E4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Jk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Jk.has(this.currentTagId);)this.pop()}};var Vo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vo||(Vo={}));const nR={type:Vo.Marker};let Bre=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===Vo.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(nR)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Vo.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Vo.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(nR);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Vo.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Vo.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Vo.Element&&n.element===t)}};const vs={createDocument(){return{nodeName:"#document",mode:no.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}}},T4="html",Ure="about:legacy-compat",jre="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S4=["+//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//"],Hre=[...S4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zre=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Vre=[..._4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function rR(e,t){return t.some(n=>e.startsWith(n))}function Gre(e){return e.name===T4&&e.publicId===null&&(e.systemId===null||e.systemId===Ure)}function qre(e){if(e.name!==T4)return no.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jre)return no.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zre.has(n))return no.QUIRKS;let r=t===null?Hre:S4;if(rR(n,r))return no.QUIRKS;if(r=t===null?_4:Vre,rR(n,r))return no.LIMITED_QUIRKS}return no.NO_QUIRKS}const aR={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wre="definitionurl",Yre="definitionURL",Qre=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])),Kre=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}]]),Xre=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])),Zre=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Jre(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:n})=>n===Al.COLOR||n===Al.SIZE||n===Al.FACE)||Zre.has(t)}function C4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Wre){e.attrs[t].name=Yre;break}}function A4(e){for(let t=0;t<e.attrs.length;t++){const n=Qre.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function s_(e){for(let t=0;t<e.attrs.length;t++){const n=Kre.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 eae(e){const t=Xre.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=wu(e.tagName))}function tae(e,t){return t===Re.MATHML&&(e===C.MI||e===C.MO||e===C.MN||e===C.MS||e===C.MTEXT)}function nae(e,t,n){if(t===Re.MATHML&&e===C.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Al.ENCODING){const a=n[r].value.toLowerCase();return a===aR.TEXT_HTML||a===aR.APPLICATION_XML}}return t===Re.SVG&&(e===C.FOREIGN_OBJECT||e===C.DESC||e===C.TITLE)}function rae(e,t,n,r){return(!r||r===Re.HTML)&&nae(e,t,n)||(!r||r===Re.MATHML)&&tae(e,t)}const aae="hidden",oae=8,iae=3;var W;(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"})(W||(W={}));const sae={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},x4=new Set([C.TABLE,C.TBODY,C.TFOOT,C.THEAD,C.TR]),oR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vs,onParseError:null};class iR{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=W.INITIAL,this.originalInsertionMode=W.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={...oR,...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 Ore(this.options,this),this.activeFormattingElements=new Bre(this.treeAdapter),this.fragmentContextID=r?wu(this.treeAdapter.getTagName(r)):C.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Fre(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={...oR,...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===C.TEMPLATE&&o.tmplInsertionModeStack.unshift(W.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:sae,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=W.TEXT}switchToPlaintextParsing(){this.insertionMode=W.TEXT,this.originalInsertionMode=W.IN_BODY,this.tokenizer.state=er.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 C.TITLE:case C.TEXTAREA:{this.tokenizer.state=er.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=er.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=er.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=er.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,C.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===C.SVG&&this.treeAdapter.getTagName(n)===le.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.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 rae(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vo.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=W.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=W.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=W.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=W.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=W.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=W.IN_TABLE;return}case C.BODY:{this.insertionMode=W.IN_BODY;return}case C.FRAMESET:{this.insertionMode=W.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?W.AFTER_HEAD:W.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=W.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=W.IN_HEAD;return}break}}this.insertionMode=W.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=W.IN_SELECT_IN_TABLE;return}}this.insertionMode=W.IN_SELECT}_isElementCausesFosterParenting(t){return x4.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 C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Re.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.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 xre[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$oe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:{D4(this,t);break}case W.TEXT:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{L4(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Moe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.TEXT:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){JE(this,t);return}switch(this.insertionMode){case W.INITIAL:case W.BEFORE_HTML:case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_TEMPLATE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{JE(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.AFTER_BODY:{hae(this,t);break}case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{mae(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case W.INITIAL:{gae(this,t);break}case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:{this._err(t,ve.misplacedDoctype);break}case W.IN_TABLE_TEXT:{Yd(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)?Foe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{yae(this,t);break}case W.BEFORE_HEAD:{bae(this,t);break}case W.IN_HEAD:{xo(this,t);break}case W.IN_HEAD_NO_SCRIPT:{Sae(this,t);break}case W.AFTER_HEAD:{Cae(this,t);break}case W.IN_BODY:{Ur(this,t);break}case W.IN_TABLE:{hu(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Eoe(this,t);break}case W.IN_COLUMN_GROUP:{u_(this,t);break}case W.IN_TABLE_BODY:{Ky(this,t);break}case W.IN_ROW:{Xy(this,t);break}case W.IN_CELL:{_oe(this,t);break}case W.IN_SELECT:{$4(this,t);break}case W.IN_SELECT_IN_TABLE:{Aoe(this,t);break}case W.IN_TEMPLATE:{woe(this,t);break}case W.AFTER_BODY:{koe(this,t);break}case W.IN_FRAMESET:{Roe(this,t);break}case W.AFTER_FRAMESET:{Ioe(this,t);break}case W.AFTER_AFTER_BODY:{Loe(this,t);break}case W.AFTER_AFTER_FRAMESET:{Poe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Boe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{vae(this,t);break}case W.BEFORE_HEAD:{Eae(this,t);break}case W.IN_HEAD:{Tae(this,t);break}case W.IN_HEAD_NO_SCRIPT:{_ae(this,t);break}case W.AFTER_HEAD:{Aae(this,t);break}case W.IN_BODY:{Qy(this,t);break}case W.TEXT:{uoe(this,t);break}case W.IN_TABLE:{ap(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Toe(this,t);break}case W.IN_COLUMN_GROUP:{Soe(this,t);break}case W.IN_TABLE_BODY:{eT(this,t);break}case W.IN_ROW:{M4(this,t);break}case W.IN_CELL:{Coe(this,t);break}case W.IN_SELECT:{F4(this,t);break}case W.IN_SELECT_IN_TABLE:{xoe(this,t);break}case W.IN_TEMPLATE:{Doe(this,t);break}case W.AFTER_BODY:{U4(this,t);break}case W.IN_FRAMESET:{Ooe(this,t);break}case W.AFTER_FRAMESET:{Noe(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onEof(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{I4(this,t);break}case W.TEXT:{doe(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_TEMPLATE:{B4(this,t);break}case W.AFTER_BODY:case W.IN_FRAMESET:case W.AFTER_FRAMESET:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{c_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===H.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 W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.TEXT:case W.IN_COLUMN_GROUP:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{this._insertCharacters(t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:case W.AFTER_BODY:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{w4(this,t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{N4(this,t);break}}}}function lae(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):O4(e,t),n}function cae(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 uae(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>=iae;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=dae(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function dae(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 fae(e,t,n){const r=e.treeAdapter.getTagName(t),a=wu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===C.TEMPLATE&&o===Re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function pae(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 l_(e,t){for(let n=0;n<oae;n++){const r=lae(e,t);if(!r)break;const a=cae(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=uae(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&fae(e,s,o),pae(e,a,r)}}function JE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hae(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mae(e,t){e._appendCommentNode(t,e.document)}function c_(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 gae(e,t){e._setDocumentType(t);const n=t.forceQuirks?no.QUIRKS:qre(t);Gre(t)||e._err(t,ve.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=W.BEFORE_HTML}function Wd(e,t){e._err(t,ve.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,no.QUIRKS),e.insertionMode=W.BEFORE_HTML,e._processToken(t)}function yae(e,t){t.tagID===C.HTML?(e._insertElement(t,Re.HTML),e.insertionMode=W.BEFORE_HEAD):Cf(e,t)}function vae(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&Cf(e,t)}function Cf(e,t){e._insertFakeRootElement(),e.insertionMode=W.BEFORE_HEAD,e._processToken(t)}function bae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.HEAD:{e._insertElement(t,Re.HTML),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD;break}default:Af(e,t)}}function Eae(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?Af(e,t):e._err(t,ve.endTagWithoutMatchingOpenElement)}function Af(e,t){e._insertFakeElement(le.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD,e._processToken(t)}function xo(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,er.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,er.RAWTEXT):(e._insertElement(t,Re.HTML),e.insertionMode=W.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,er.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,er.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=W.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(W.IN_TEMPLATE);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:xf(e,t)}}function Tae(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=W.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{xf(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Hl(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,ve.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ve.endTagWithoutMatchingOpenElement)}function xf(e,t){e.openElements.pop(),e.insertionMode=W.AFTER_HEAD,e._processToken(t)}function Sae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{xo(e,t);break}case C.NOSCRIPT:{e._err(t,ve.nestedNoscriptInHead);break}default:wf(e,t)}}function _ae(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=W.IN_HEAD;break}case C.BR:{wf(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function wf(e,t){const n=t.type===$t.EOF?ve.openElementsLeftAfterEof:ve.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=W.IN_HEAD,e._processToken(t)}function Cae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BODY:{e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,ve.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),xo(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:Df(e,t)}}function Aae(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{Df(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Df(e,t){e._insertFakeElement(le.BODY,C.BODY),e.insertionMode=W.IN_BODY,Yy(e,t)}function Yy(e,t){switch(t.type){case $t.CHARACTER:{D4(e,t);break}case $t.WHITESPACE_CHARACTER:{w4(e,t);break}case $t.COMMENT:{JE(e,t);break}case $t.START_TAG:{Ur(e,t);break}case $t.END_TAG:{Qy(e,t);break}case $t.EOF:{I4(e,t);break}}}function w4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function D4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function wae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Dae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET)}function kae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Rae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ZE.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Re.HTML)}function Oae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Iae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),n||(e.formElement=e.openElements.current))}function Nae(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===C.LI&&a===C.LI||(n===C.DD||n===C.DT)&&(a===C.DD||a===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==C.ADDRESS&&a!==C.DIV&&a!==C.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Lae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.tokenizer.state=er.PLAINTEXT}function Pae(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1}function Mae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(le.A);n&&(l_(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 $ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(l_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Uae(e,t){e.treeAdapter.getDocumentMode(e.document)!==no.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_TABLE}function k4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function R4(e){const t=v4(e,Al.TYPE);return t!=null&&t.toLowerCase()===aae}function jae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),R4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Hae(e,t){e._appendElement(t,Re.HTML),t.ackSelfClosing=!0}function zae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vae(e,t){t.tagName=le.IMG,t.tagID=C.IMG,k4(e,t)}function Gae(e,t){e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=er.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=W.TEXT}function qae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function Wae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function sR(e,t){e._switchToTextParsing(t,er.RAWTEXT)}function Yae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===W.IN_TABLE||e.insertionMode===W.IN_CAPTION||e.insertionMode===W.IN_TABLE_BODY||e.insertionMode===W.IN_ROW||e.insertionMode===W.IN_CELL?W.IN_SELECT_IN_TABLE:W.IN_SELECT}function Qae(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Kae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Re.HTML)}function Xae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,Re.HTML)}function Zae(e,t){e._reconstructActiveFormattingElements(),C4(t),s_(t),t.selfClosing?e._appendElement(t,Re.MATHML):e._insertElement(t,Re.MATHML),t.ackSelfClosing=!0}function Jae(e,t){e._reconstructActiveFormattingElements(),A4(t),s_(t),t.selfClosing?e._appendElement(t,Re.SVG):e._insertElement(t,Re.SVG),t.ackSelfClosing=!0}function lR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Ur(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{$ae(e,t);break}case C.A:{Mae(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Rae(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{kae(e,t);break}case C.LI:case C.DD:case C.DT:{Nae(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{k4(e,t);break}case C.HR:{zae(e,t);break}case C.RB:case C.RTC:{Kae(e,t);break}case C.RT:case C.RP:{Xae(e,t);break}case C.PRE:case C.LISTING:{Oae(e,t);break}case C.XMP:{qae(e,t);break}case C.SVG:{Jae(e,t);break}case C.HTML:{xae(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{xo(e,t);break}case C.BODY:{wae(e,t);break}case C.FORM:{Iae(e,t);break}case C.NOBR:{Fae(e,t);break}case C.MATH:{Zae(e,t);break}case C.TABLE:{Uae(e,t);break}case C.INPUT:{jae(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{Hae(e,t);break}case C.IMAGE:{Vae(e,t);break}case C.BUTTON:{Pae(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Bae(e,t);break}case C.IFRAME:{Wae(e,t);break}case C.SELECT:{Yae(e,t);break}case C.OPTION:case C.OPTGROUP:{Qae(e,t);break}case C.NOEMBED:case C.NOFRAMES:{sR(e,t);break}case C.FRAMESET:{Dae(e,t);break}case C.TEXTAREA:{Gae(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?sR(e,t):lR(e,t);break}case C.PLAINTEXT:{Lae(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:lR(e,t)}}function eoe(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function toe(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,U4(e,t))}function noe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function roe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function aoe(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(le.P,C.P),e._closePElement()}function ooe(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function ioe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function soe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function loe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function coe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(le.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function O4(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!==C.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 Qy(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{l_(e,t);break}case C.P:{aoe(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{noe(e,t);break}case C.LI:{ooe(e);break}case C.DD:case C.DT:{ioe(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{soe(e);break}case C.BR:{coe(e);break}case C.BODY:{eoe(e,t);break}case C.HTML:{toe(e,t);break}case C.FORM:{roe(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{loe(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:O4(e,t)}}function I4(e,t){e.tmplInsertionModeStack.length>0?B4(e,t):c_(e,t)}function uoe(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function doe(e,t){e._err(t,ve.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Eb(e,t){if(e.openElements.currentTagId!==void 0&&x4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=W.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{L4(e,t);break}case $t.WHITESPACE_CHARACTER:{N4(e,t);break}}else Hp(e,t)}function foe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CAPTION}function poe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_COLUMN_GROUP}function hoe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.COLGROUP,C.COLGROUP),e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t)}function moe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_TABLE_BODY}function goe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.TBODY,C.TBODY),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t)}function yoe(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function voe(e,t){R4(t)?e._appendElement(t,Re.HTML):Hp(e,t),t.ackSelfClosing=!0}function boe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hu(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{goe(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}case C.COL:{hoe(e,t);break}case C.FORM:{boe(e,t);break}case C.TABLE:{yoe(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{moe(e,t);break}case C.INPUT:{voe(e,t);break}case C.CAPTION:{foe(e,t);break}case C.COLGROUP:{poe(e,t);break}default:Hp(e,t)}}function ap(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Hp(e,t)}}function Hp(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Yy(e,t),e.fosterParentingEnabled=n}function N4(e,t){e.pendingCharacterTokens.push(t)}function L4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hp(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const P4=new Set([C.CAPTION,C.COL,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]);function Eoe(e,t){const n=t.tagID;P4.has(n)?e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,hu(e,t)):Ur(e,t)}function Toe(e,t){const n=t.tagID;switch(n){case C.CAPTION:case C.TABLE:{e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,n===C.TABLE&&ap(e,t));break}case C.BODY:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Qy(e,t)}}function u_(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.COL:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TEMPLATE:{xo(e,t);break}default:Hg(e,t)}}function Soe(e,t){switch(t.tagID){case C.COLGROUP:{e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TEMPLATE:{Hl(e,t);break}case C.COL:break;default:Hg(e,t)}}function Hg(e,t){e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE,e._processToken(t))}function Ky(e,t){switch(t.tagID){case C.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_ROW;break}case C.TH:case C.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(le.TR,C.TR),e.insertionMode=W.IN_ROW,Xy(e,t);break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,hu(e,t));break}default:hu(e,t)}}function eT(e,t){const n=t.tagID;switch(t.tagID){case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,ap(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:case C.TR:break;default:ap(e,t)}}function Xy(e,t){switch(t.tagID){case C.TH:case C.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CELL,e.activeFormattingElements.insertMarker();break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t));break}default:hu(e,t)}}function M4(e,t){switch(t.tagID){case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY);break}case C.TABLE:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.TBODY:case C.TFOOT:case C.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(C.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:break;default:ap(e,t)}}function _oe(e,t){const n=t.tagID;P4.has(n)?(e.openElements.hasInTableScope(C.TD)||e.openElements.hasInTableScope(C.TH))&&(e._closeTableCell(),Xy(e,t)):Ur(e,t)}function Coe(e,t){const n=t.tagID;switch(n){case C.TD:case C.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_ROW);break}case C.TABLE:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),M4(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:break;default:Qy(e,t)}}function $4(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.OPTGROUP:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.HR:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.INPUT:case C.KEYGEN:case C.TEXTAREA:case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),t.tagID!==C.SELECT&&e._processStartTag(t));break}case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}}}function F4(e,t){switch(t.tagID){case C.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}}}function Aoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):$4(e,t)}function xoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):F4(e,t)}function woe(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{xo(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=W.IN_TABLE,e.insertionMode=W.IN_TABLE,hu(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=W.IN_COLUMN_GROUP,e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=W.IN_TABLE_BODY,e.insertionMode=W.IN_TABLE_BODY,Ky(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=W.IN_ROW,e.insertionMode=W.IN_ROW,Xy(e,t);break}default:e.tmplInsertionModeStack[0]=W.IN_BODY,e.insertionMode=W.IN_BODY,Ur(e,t)}}function Doe(e,t){t.tagID===C.TEMPLATE&&Hl(e,t)}function B4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c_(e,t)}function koe(e,t){t.tagID===C.HTML?Ur(e,t):zg(e,t)}function U4(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=W.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.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 zg(e,t)}function zg(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Roe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.FRAMESET:{e._insertElement(t,Re.HTML);break}case C.FRAME:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{xo(e,t);break}}}function Ooe(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=W.AFTER_FRAMESET))}function Ioe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Noe(e,t){t.tagID===C.HTML&&(e.insertionMode=W.AFTER_AFTER_FRAMESET)}function Loe(e,t){t.tagID===C.HTML?Ur(e,t):Zm(e,t)}function Zm(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Poe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Moe(e,t){t.chars=$n,e._insertCharacters(t)}function $oe(e,t){e._insertCharacters(t),e.framesetOk=!1}function j4(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 Foe(e,t){if(Jre(t))j4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Re.MATHML?C4(t):r===Re.SVG&&(eae(t),A4(t)),s_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Boe(e,t){if(t.tagID===C.P||t.tagID===C.BR){j4(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 bl={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/"},cR=/[#.]/g;function Uoe(e,t){const n=e||"",r={};let a=0,o,s;for(;a<n.length;){cR.lastIndex=a;const c=cR.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 H4(e,t,n){const r=n?Voe(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=Uoe(o,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,joe(s))c.unshift(s);else for(const[h,g]of Object.entries(s))Hoe(e,u.properties,h,g)}for(const d of c)tT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function joe(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 Hoe(e,t,n,r){const a=Pp(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=ME(r):a.commaSeparated?o=PE(r):a.commaOrSpaceSeparated?o=ME(PE(r).join(" ")):o=uR(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?zoe(r):String(r);if(Array.isArray(o)){const s=[];for(const c of o)s.push(uR(a,a.property,c));o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function tT(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)tT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?tT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function uR(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Jf(n)===Jf(t)))return!0}return n}function zoe(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Voe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Goe=["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"],qoe=H4(_u,"div"),Woe=H4(Bi,"g",Goe);function Yoe(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=dR(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=dR(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 dR(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 z4={}.hasOwnProperty,Qoe=Object.prototype;function Koe(e,t){const n=t||{};return d_({file:n.file||void 0,location:!1,schema:n.space==="svg"?Bi:_u,verbose:n.verbose||!1},e)}function d_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Jm(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:V4(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),s=Yoe(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"},Jm(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Jm(e,r,n),n}default:return n=Xoe(e,t),n}}function V4(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=d_(e,t[n]);r.push(a)}return r}function Xoe(e,t){const n=e.schema;e.schema=t.namespaceURI===bl.svg?Bi:_u;let r=-1;const a={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;z4.call(Qoe,c)||(a[c]=s.value)}const o=(e.schema.space==="svg"?Woe:qoe)(t.tagName,a,V4(e,t.childNodes));if(Jm(e,t,o),o.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&Wc(c.startTag),d=c&&c.endTag&&Wc(c.endTag),p=d_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),o.content=p}return e.schema=n,o}function Jm(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Zoe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Zoe(e,t,n){const r=Wc(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)z4.call(n.attrs,s)&&(o[Pp(e.schema,s).property]=Wc(n.attrs[s]));n.startTag;const c=Wc(n.startTag),u=n.endTag?Wc(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=o,t.data={position:d}}}return r}function Wc(e){const t=fR({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fR({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fR(e){return e.line&&e.column?e:void 0}let zp=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};zp.prototype.property={};zp.prototype.normal={};zp.prototype.space=null;function G4(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 zp(n,r,t)}function nT(e){return e.toLowerCase()}let po=class{constructor(t,n){this.property=t,this.attribute=n}};po.prototype.space=null;po.prototype.boolean=!1;po.prototype.booleanish=!1;po.prototype.overloadedBoolean=!1;po.prototype.number=!1;po.prototype.commaSeparated=!1;po.prototype.spaceSeparated=!1;po.prototype.commaOrSpaceSeparated=!1;po.prototype.mustUseProperty=!1;po.prototype.defined=!1;let Joe=0;const Ct=zl(),sr=zl(),q4=zl(),Fe=zl(),On=zl(),nu=zl(),wa=zl();function zl(){return 2**++Joe}const rT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ct,booleanish:sr,commaOrSpaceSeparated:wa,commaSeparated:nu,number:Fe,overloadedBoolean:q4,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),Tb=Object.keys(rT);let f_=class extends po{constructor(t,n,r,a){let o=-1;if(super(t,n),pR(this,"space",a),typeof r=="number")for(;++o<Tb.length;){const s=Tb[o];pR(this,Tb[o],(r&rT[s])===rT[s])}}};f_.prototype.defined=!0;function pR(e,t,n){n&&(e[t]=n)}const eie={}.hasOwnProperty;function Du(e){const t={},n={};let r;for(r in e.properties)if(eie.call(e.properties,r)){const a=e.properties[r],o=new f_(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[nT(r)]=r,n[nT(o.attribute)]=r}return new zp(t,n,e.space)}const W4=Du({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}}),Y4=Du({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Q4(e,t){return t in e?e[t]:t}function K4(e,t){return Q4(e,t.toLowerCase())}const X4=Du({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:K4,properties:{xmlns:null,xmlnsXLink:null}}),Z4=Du({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:On,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:Fe,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:On,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:sr,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),tie=Du({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:K4,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nu,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Ct,allowPaymentRequest:Ct,allowUserMedia:Ct,alt:null,as:null,async:Ct,autoCapitalize:null,autoComplete:On,autoFocus:Ct,autoPlay:Ct,blocking:On,capture:null,charSet:null,checked:Ct,cite:null,className:On,cols:Fe,colSpan:null,content:null,contentEditable:sr,controls:Ct,controlsList:On,coords:Fe|nu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ct,defer:Ct,dir:null,dirName:null,disabled:Ct,download:q4,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ct,formTarget:null,headers:On,height:Fe,hidden:Ct,high:Fe,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:Ct,inputMode:null,integrity:null,is:null,isMap:Ct,itemId:null,itemProp:On,itemRef:On,itemScope:Ct,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ct,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Ct,muted:Ct,name:null,nonce:null,noModule:Ct,noValidate:Ct,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:Ct,optimum:Fe,pattern:null,ping:On,placeholder:null,playsInline:Ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ct,referrerPolicy:null,rel:On,required:Ct,reversed:Ct,rows:Fe,rowSpan:Fe,sandbox:On,scope:null,scoped:Ct,seamless:Ct,selected:Ct,shadowRootClonable:Ct,shadowRootDelegatesFocus:Ct,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:sr,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:Ct,useMap:null,value:sr,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:Ct,declare:Ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Ct,noHref:Ct,noShade:Ct,noWrap:Ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:sr,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:Ct,disableRemotePlayback:Ct,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),nie=Du({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:Q4,properties:{about:wa,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:Ct,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:nu,g2:nu,glyphName:nu,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:wa,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:wa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wa,rev:wa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wa,requiredFeatures:wa,requiredFonts:wa,requiredFormats:wa,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:wa,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:wa,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:wa,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}}),rie=G4([Y4,W4,X4,Z4,tie],"html"),J4=G4([Y4,W4,X4,Z4,nie],"svg"),aie=/^data[-\w.:]+$/i,hR=/-[a-z]/g,oie=/[A-Z]/g;function iie(e,t){const n=nT(t);let r=t,a=po;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aie.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hR,lie);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hR.test(o)){let s=o.replace(oie,sie);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=f_}return new a(r,t)}function sie(e){return"-"+e.toLowerCase()}function lie(e){return e.charAt(1).toUpperCase()}const cie={},uie={}.hasOwnProperty,eL=ky("type",{handlers:{root:fie,element:yie,text:mie,comment:gie,doctype:hie}});function die(e,t){const n=(t||cie).space;return eL(e,n==="svg"?J4:rie)}function fie(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function pie(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function hie(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ku(e,t),t}function mie(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ku(e,t),t}function gie(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ku(e,t),t}function yie(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=J4);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&uie.call(e.properties,o)){const u=vie(r,o,e.properties[o]);u&&a.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:bl[s],childNodes:[],parentNode:null};return c.childNodes=p_(e.children,c,r),ku(e,c),e.tagName==="template"&&e.content&&(c.content=pie(e.content,r)),c}function vie(e,t,n){const r=iie(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?Ry(n):Oy(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=bl[r.space]}return a}function p_(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=eL(e[r],n);o.parentNode=t,a.push(o)}return a}function ku(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 bie=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Eie=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),mR={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tL(e,t){const n=Rie(e),r=ky("type",{handlers:{root:Tie,element:Sie,text:_ie,comment:rL,doctype:Cie,raw:xie},unknown:wie}),a={parser:n?new iR(mR):iR.getFragmentParser(void 0,mR),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),Ru(a,ri());const o=n?a.parser.document:a.parser.getFragment(),s=Koe(o,{file:a.options.file});return a.stitches&&ha(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 nL(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Tie(e,t){nL(e.children,t)}function Sie(e,t){Die(e,t),nL(e.children,t),kie(e,t)}function _ie(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Cie(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Aie(e,t){t.stitches=!0;const n=Oie(e);if("children"in e&&"children"in n){const r=tL({type:"root",children:e.children},t.options);n.children=r.children}rL({type:"comment",value:{stitch:n}},t)}function rL(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function xie(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,aL(t,ri(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(bie,"<$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 wie(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Aie(n,t);else{let r="";throw Eie.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 Ru(e,t){aL(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=er.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 aL(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 Die(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,ri(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:bl.html;a===bl.html&&n==="svg"&&(a=bl.svg);const o=die({...e,children:[]},{space:a===bl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Vp(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function kie(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&EN.includes(n)||t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,Wy(e));const r={type:$t.END_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Vp(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===er.RCDATA||t.parser.tokenizer.state===er.RAWTEXT||t.parser.tokenizer.state===er.SCRIPT_DATA)&&(t.parser.tokenizer.state=er.DATA)}function Rie(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Vp(e){const t=ri(e)||{line:void 0,column:void 0,offset:void 0},n=Wy(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 Oie(e){return"children"in e?Ml({...e,children:[]}):Ml(e)}function Iie(e){return function(t,n){return tL(t,{...e,file:n})}}var Nie=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Lie=e=>e;const Pie=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:g={},urlTransform:y}=e,b=Pr(e,Nie),E=Tt.useRef(null);x.useImperativeHandle(t,()=>Ne({},e,{mdp:E}),[E,e]);var _=(n||"")+" "+(r||"");uX(E);var A=[...b.rehypePlugins||[]],D={allowElement:(O,k,F)=>b.allowElement?b.allowElement(O,k,F):/^[A-Za-z0-9]+$/.test(O.tagName)};c||A.push(Iie);var w=[iX,...b.remarkPlugins||[],wJ],R=Ne({},g,h);return P.jsx("div",Ne({ref:E,onScroll:u,onMouseOver:d},R,{className:_,style:o,children:P.jsx(ure,Ne({},D,b,{skipHtml:!c,urlTransform:y||Lie,rehypePlugins:p?p("rehype",A):A,remarkPlugins:p?p("remark",w):w,children:a||""}))}))});var eg={},aT={};function Mie(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 gR(e){if(e.length===0)return eg;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];Mie(a,t)}return t}function $ie(e){if(e.length===0)return aT;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var wm={},yR={type:"String",optional:!0};function Fie(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 Bie(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 vR(e){for(var t=Bie(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],s=t[o];s&&(n[o]=Fie(s))}return n}var mu=function(){return mu=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},mu.apply(this,arguments)},Uie={},oT={wildcard:!0};function jie(e){return e?typeof e=="boolean"?oT:e:Uie}function Hie(e,t){return function(n,r){return t(e(n),e(r))}}function zie(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 bR(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Bc(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=mu({},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 Dm(e,t){return t?e?e.concat(t):t:e}function ER(e,t){if(!t)return e;if(!e)return t;for(var n=mu({},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 xl=zie(Bc({baseSyntax:Ai,modules:Dm,tag:bR(oT,Bc({wildcard:Ai})),ids:Ai,classNames:Ai,namespace:bR(oT,Bc({wildcard:Ai})),combinators:Dm,attributes:Bc({operators:Dm,caseSensitivityModifiers:Dm,unknownCaseSensitivityModifiers:Ai}),pseudoClasses:Bc({unknown:Ai,definitions:ER}),pseudoElements:Bc({unknown:Ai,notation:Ai,definitions:Hie(function(e){return Array.isArray(e)?{NoArgument:e}:e},ER)})})),oL={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},iL=xl(oL,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),iT=xl(iL,{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"]}}}),sL=xl(iT,{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"]}}}),Vg={"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"]}}}},lL=mu(mu({},sL),{modules:Object.entries(Vg).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),Vie=xl(lL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),sT={css1:oL,css2:iL,css3:iT,"selectors-3":iT,"selectors-4":sL,latest:lL,progressive:Vie};function Gie(){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=sT[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,g=p;h<g.length;h++){var y=g[h];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(a)||e.pseudoClasses[y].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 _=E[b];e.pseudoElements[_]||(e.pseudoElements[_]=[]),e.pseudoElements[_].includes(a)||e.pseudoElements[_].push(a)}else for(var A=0,D=Object.values(s);A<D.length;A++)for(var p=D[A],w=0,R=p;w<R.length;w++){var O=R[w];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(a)||e.pseudoElements[O].push(a)}}}for(var k=0,F=Object.entries(Vg);k<F.length;k++){var G=F[k],j=G[0],T=G[1];if(T.pseudoClasses&&typeof T.pseudoClasses=="object"){var s=T.pseudoClasses.definitions;if(s)for(var M=0,U=Object.values(s);M<U.length;M++)for(var p=U[M],B=0,Y=p;B<Y.length;B++){var X=Y[B];e.pseudoClasses[X]||(e.pseudoClasses[X]=[]),e.pseudoClasses[X].includes(j)||e.pseudoClasses[X].push(j)}}if(T.pseudoElements&&typeof T.pseudoElements=="object"){var s=T.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var z=0,Z=s;z<Z.length;z++){var J=Z[z];e.pseudoElements[J]||(e.pseudoElements[J]=[]),e.pseudoElements[J].includes(j)||e.pseudoElements[J].push(j)}else for(var oe=0,I=Object.values(s);oe<I.length;oe++)for(var p=I[oe],re=0,ee=p;re<ee.length;re++){var L=ee[re];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(j)||e.pseudoElements[L].push(j)}}}return e}var TR=Gie();function Qd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function SR(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Kd(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var qie={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Wie={'"':!0,"'":!0},Sb={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Yie=6,_b="css-selector-parser parse error: ";function Qie(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:sT[n];if(c.baseSyntax&&(c=xl(sT[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=Vg[p];h&&(c=xl(h,c))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=Vg[b];h&&(c=xl(h,c))}var E=c.tag?[!0,!!jie(c.tag).wildcard]:[!1,!1],_=E[0],A=E[1],D=!!c.ids,w=!!c.classNames,R=!!c.namespace,O=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(R&&!_)throw new Error("".concat(_b,"Namespaces cannot be enabled while tags are disabled."));var k=!!r,F=c.combinators?gR(c.combinators):eg,G=c.attributes?[!0,c.attributes.operators?gR(c.attributes.operators):eg,c.attributes.caseSensitivityModifiers?$ie(c.attributes.caseSensitivityModifiers):aT,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,eg,aT,!1],j=G[0],T=G[1],M=G[2],U=G[3],B=U||Object.keys(M).length>0,Y=c.pseudoClasses?[!0,c.pseudoClasses.definitions?vR(c.pseudoClasses.definitions):wm,c.pseudoClasses.unknown==="accept"]:[!1,wm,!1],X=Y[0],z=Y[1],Z=Y[2],J=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?vR(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):wm,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,wm,!1],oe=J[0],I=J[1],re=J[2],ee=J[3],L=J[4],te="",be=te.length,de=0,xe="",ge=function(Ee){return xe===Ee},Oe=function(){return ge("*")||Qd(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(_b).concat(Ee," Pos: ").concat(Te,"."));throw ut.position=Te,ut.name="ParserError",ut}function ke(Ee,Te){if(!Ee)return Ve(Te)}var Rt=function(){ke(de<be,"Unexpected end of input.")},Et=function(){return de>=be},je=function(Ee){ke(de<be,'Expected "'.concat(Ee,'" but end of input reached.')),ke(xe===Ee,'Expected "'.concat(Ee,'" but "').concat(xe,'" found.')),de++,xe=te.charAt(de)};function St(Ee){var Te=ot(Ee,de);if(Te)return de+=Te.length,xe=te.charAt(de),Te}function ot(Ee,Te){var ut=te.charAt(Te),nt=Ee[ut];if(nt){var Fn=ot(nt.chars,Te+1);if(Fn)return Fn;if(nt.self)return nt.self}}function Ze(){for(var Ee=Ye(),Te=1;Kd(xe)&&Te<Yie;)Ee+=Ye(),Te++;return Dn(),String.fromCharCode(parseInt(Ee,16))}function Ge(Ee){var Te="";for(je(Ee);de<be;){if(ge(Ee))return Ie(),Te;ge("\\")?(Ie(),ge(Ee)?(Te+=Ee,Ie()):xe===`
|
|
274
|
-
`||xe==="\f"?Ie():xe==="\r"?(Ie(),ge(`
|
|
275
|
-
`)&&Ie()):Kd(xe)?Te+=Ze():(Te+=xe,Ie())):(Te+=xe,Ie())}return Te}function Pe(){if(!Qd(xe))return null;for(var Ee="";ge("-");)Ee+=xe,Ie();for(Ee==="-"&&!SR(xe)&&!ge("\\")&&Ve("Identifiers cannot consist of a single hyphen."),o&&Ee.length>=2&&Ve("Identifiers cannot start with two hyphens with strict mode on."),Sb[xe]&&Ve("Identifiers cannot start with hyphens followed by digits.");de<be;)if(SR(xe))Ee+=Ye();else if(ge("\\"))Ie(),Rt(),Kd(xe)?Ee+=Ze():Ee+=Ye();else break;return Ee}function Ot(){for(var Ee="";de<be&&!ge(")");)if(ge("\\")){if(Ie(),Et()&&!o)return(Ee+"\\").trim();Rt(),Kd(xe)?Ee+=Ze():Ee+=Ye()}else Ee+=Ye();return Ee.trim()}function Dn(){if(xe===" "||xe===" "||xe==="\f"||xe===`
|
|
276
|
-
`){Ie();return}xe==="\r"&&Ie(),xe===`
|
|
277
|
-
`&&Ie()}function bt(){for(;qie[xe];)Ie()}function ce(Ee){Ee===void 0&&(Ee=!1),bt();for(var Te=[qe(Ee)];ge(",");)Ie(),bt(),Te.push(qe(Ee));return{type:"Selector",rules:Te}}function me(){je("["),bt();var Ee;if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=Pe();ke(Te,"Expected attribute name."),Ee={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(ge("*")){ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled."),Ie(),je("|");var ut=Pe();ke(ut,"Expected attribute name."),Ee={type:"Attribute",name:ut,namespace:{type:"WildcardNamespace"}}}else{var nt=Pe();if(ke(nt,"Expected attribute name."),Ee={type:"Attribute",name:nt},ge("|")){var Fn=de;if(Ie(),Qd(xe)){ke(R,"Namespaces are not enabled.");var jr=Pe();ke(jr,"Expected attribute name."),Ee={type:"Attribute",name:jr,namespace:{type:"NamespaceName",name:nt}}}else Ue(Fn)}}if(ke(Ee.name,"Expected attribute name."),bt(),Et()&&!o)return Ee;if(ge("]"))Ie();else{if(Ee.operator=St(T),ke(Ee.operator,"Expected a valid attribute selector operator."),bt(),Rt(),Wie[xe])Ee.value={type:"String",value:Ge(xe)};else if(k&&ge("$")){Ie();var _r=Pe();ke(_r,"Expected substitute name."),Ee.value={type:"Substitution",name:_r}}else{var mr=Pe();ke(mr,"Expected attribute value."),Ee.value={type:"String",value:mr}}if(bt(),Et()&&!o)return Ee;if(!ge("]")){var gr=Pe();if(ke(gr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=gr,ke(B,"Attribute case sensitivity modifiers are not enabled."),ke(U||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),bt(),Et()&&!o)return Ee}je("]")}return Ee}function Be(){for(var Ee="";Sb[xe];)Ee+=Ye();return ke(Ee!=="","Formula parse error."),parseInt(Ee)}var We=function(){return ge("-")||ge("+")||Sb[xe]};function Qe(){if(ge("e")||ge("o")){var Ee=Pe();if(Ee==="even")return bt(),[2,0];if(Ee==="odd")return bt(),[2,1]}var Te=null,ut=1;if(ge("-")&&(Ie(),ut=-1),We()&&(ge("+")&&Ie(),Te=Be(),!ge("\\")&&!ge("n")))return[0,Te*ut];Te===null&&(Te=1),Te*=ut;var nt;if(ge("\\")?(Ie(),Kd(xe)?nt=Ze():nt=Ye()):nt=Ye(),ke(nt==="n",'Formula parse error: expected "n".'),bt(),ge("+")||ge("-")){var Fn=ge("+")?1:-1;return Ie(),bt(),[Te,Fn*Be()]}else return[Te,0]}function gt(Ee,Te,ut){var nt;if(ge("(")){if(Ie(),bt(),k&&ge("$")){Ie();var Fn=Pe();ke(Fn,"Expected substitute name."),nt={type:"Substitution",name:Fn}}else if(ut.type==="String")nt={type:"String",value:Ot()},ke(nt.value,"Expected ".concat(Te," argument value."));else if(ut.type==="Selector")nt=ce(!0);else if(ut.type==="Formula"){var jr=Qe(),_r=jr[0],mr=jr[1];if(nt={type:"Formula",a:_r,b:mr},ut.ofSelector&&(bt(),ge("o")||ge("\\"))){var gr=Pe();ke(gr==="of","Formula of selector parse error."),bt(),nt={type:"FormulaOfSelector",a:_r,b:mr,selector:qe()}}}else return Ve("Invalid ".concat(Te," signature."));if(bt(),Et()&&!o)return nt;je(")")}else ke(ut.optional,"Argument is required for ".concat(Te,' "').concat(Ee,'".'));return nt}function ln(){if(ge("*"))return ke(A,"Wildcard tag name is not enabled."),Ie(),{type:"WildcardTag"};if(Qd(xe)){ke(_,"Tag names are not enabled.");var Ee=Pe();return ke(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return Ve("Expected tag name.")}function Qt(){if(ge("*")){var Ee=de;if(Ie(),!ge("|")||(Ie(),!Oe()))return Ue(Ee),ln();ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled.");var Te=ln();return Te.namespace={type:"WildcardNamespace"},Te}else if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=ln();return Te.namespace={type:"NoNamespace"},Te}else if(Qd(xe)){var ut=Pe();if(ke(ut,"Expected tag name."),!ge("|"))return ke(_,"Tag names are not enabled."),{type:"TagName",name:ut};var Ee=de;if(Ie(),!Oe())return Ue(Ee),{type:"TagName",name:ut};ke(R,"Namespaces are not enabled.");var Te=ln();return Te.namespace={type:"NamespaceName",name:ut},Te}else return Ve("Expected tag name.")}function qe(Ee){var Te,ut;Ee===void 0&&(Ee=!1);var nt={type:"Rule",items:[]};if(Ee){var Fn=St(F);Fn&&(nt.combinator=Fn,bt())}for(;de<be;)if(Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),nt.items.push(Qt());else if(ge("|")){var jr=de;if(Ie(),Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),Ue(jr),nt.items.push(Qt());else{Ue(jr);break}}else if(ge(".")){ke(w,"Class names are not enabled."),Ie();var _r=Pe();ke(_r,"Expected class name."),nt.items.push({type:"ClassName",name:_r})}else if(ge("#")){ke(D,"IDs are not enabled."),Ie();var mr=Pe();ke(mr,"Expected ID name."),nt.items.push({type:"Id",name:mr})}else if(ge("["))ke(j,"Attributes are not enabled."),nt.items.push(me());else if(ge(":")){var gr=!1,Ma=!1;Ie(),ge(":")&&(ke(oe,"Pseudo elements are not enabled."),ke(re,"Pseudo elements double colon notation is not enabled."),gr=!0,Ie());var In=Pe();if(ke(gr||In,"Expected pseudo-class name."),ke(!gr||In,"Expected pseudo-element name."),ke(In,"Expected pseudo-class name."),!(!gr||L||Object.prototype.hasOwnProperty.call(ee,In))){var Hr=TR.pseudoElements[In],ft='Unknown pseudo-element "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}if(Ma=oe&&(gr||!gr&&I&&Object.prototype.hasOwnProperty.call(ee,In)),Ma){var K=(Te=ee[In])!==null&&Te!==void 0?Te:L&&yR,ie={type:"PseudoElement",name:In},pe=gt(In,"pseudo-element",K);pe&&(ke(pe.type!=="Formula"&&pe.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ie.argument=pe),nt.items.push(ie)}else{ke(X,"Pseudo-classes are not enabled.");var K=(ut=z[In])!==null&&ut!==void 0?ut:Z&&yR;if(!K){var Hr=TR.pseudoClasses[In],ft='Unknown pseudo-class: "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}var pe=gt(In,"pseudo-class",K),De={type:"PseudoClass",name:In};pe&&(De.argument=pe),nt.items.push(De)}}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()&&!ge(",")&&!ge(")")){var Fn=St(F);bt(),nt.nestedRule=qe(),nt.nestedRule.combinator=Fn}return nt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(_b,"Expected string input."));return te=Ee,be=te.length,de=0,xe=te.charAt(0),ce()}}const Kie=Qie({syntax:"selectors-4"});function Xie(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Kie(e)}const cL="֑-߿יִ-﷽ﹰ-ﻼ",uL="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Zie=new RegExp("^[^"+uL+"]*["+cL+"]"),Jie=new RegExp("^[^"+cL+"]*["+uL+"]");function ese(e){const t=String(e||"");return Zie.test(t)?"rtl":Jie.test(t)?"ltr":"neutral"}function dL(e){return"children"in e?fL(e):"value"in e?e.value:""}function tse(e){return e.type==="text"?e.value:"children"in e?fL(e):""}function fL(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=tse(e.children[t]);return n.join("")}function nse(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=_R(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=Cb(dL(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?Cb(String(t.properties.value)):"ltr":ha(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=Cb(d.value),s?$g:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||_R(d)))return Ef}}function Cb(e){const t=ese(e);return t==="neutral"?void 0:t}function _R(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 rse(e,t,n){const r=Pp(n,e.name),a=t.properties[r.property];let o=ase(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||ME(o).includes(s)}return!1}function ase(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?Ry:Oy)(e)}else return String(e)}const ose=[];function ise(e,t){return(t.properties.className||ose).includes(e.name)}function sse(e,t){return t.properties.id===e.name}function lse(e,t){return e.name===t.tagName}function cse(e,t){return function(n,r){let a=CR(n,"tag");const o=CR(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 use=cse(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 CR(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 dse=new Set([9,10,12,13,32]),AR=48,fse=57;function pse(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)>=AR&&e.charCodeAt(t)<=fse;)d=d*10+(e.charCodeAt(t)-AR),t++;return t===u?null:d}function c(){for(;t<e.length&&dse.has(e.charCodeAt(t));)t++}}var xR,wR;function hse(){return wR||(wR=1,xR={trueFunc:function(){return!0},falseFunc:function(){return!1}}),xR}var mse=hse();const DR=Gy(mse);function gse(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return DR.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?DR.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 kR(e){return gse(pse(e))}const yse={}.hasOwnProperty;function $l(e,t){const n=e.type==="element"&&yse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const vse=kR.default||kR,bse=ky("name",{handlers:{"any-link":Ese,blank:Tse,checked:Sse,dir:_se,disabled:pL,empty:Cse,enabled:Ase,"first-child":xse,"first-of-type":wse,has:Dse,is:hL,lang:Rse,"last-child":Ose,"last-of-type":Ise,not:Nse,"nth-child":Lse,"nth-last-child":Pse,"nth-last-of-type":Mse,"nth-of-type":$se,"only-child":Fse,"only-of-type":Bse,optional:Use,"read-only":jse,"read-write":mL,required:gL,root:Hse,scope:zse},invalid:kse,unknown:Vse});function Ese(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&$l(t,"href")}function ai(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Tse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Lp(r)}}function Sse(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&$l(t,"checked")):t.tagName==="option"?$l(t,"selected"):!1}function _se(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function pL(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")&&$l(t,"disabled")}function Cse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Ase(e,t){return!pL(e,t)}function xse(e,t,n,r,a){return ai(a,e),a.elementIndex===0}function wse(e,t,n,r,a){return ai(a,e),a.typeIndex===0}function Zy(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=vse(n.a+"n+"+n.b),e._cachedFn=t}return t}function Dse(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 h_(o,{type:"root",children:t.children}),o.results.length>0}function kse(){}function hL(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 h_(o,t),o.results[0]===t}function Rse(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&use(a.language,PE(e.argument.value)).length>0}function Ose(e,t,n,r,a){return ai(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Ise(e,t,n,r,a){return ai(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Nse(e,t,n,r,a){return!hL(e,t,n,r,a)}function Lse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function Pse(e,t,n,r,a){const o=Zy(e);return ai(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function Mse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function $se(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function Fse(e,t,n,r,a){return ai(a,e),a.elementCount===1}function Bse(e,t,n,r,a){return ai(a,e),a.typeCount===1}function Use(e,t){return!gL(e,t)}function jse(e,t,n,r,a){return!mL(e,t,n,r,a)}function mL(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!$l(t,"readOnly")&&!$l(t,"disabled"):!!a.editableOrEditingHost}function gL(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&$l(t,"required")}function Hse(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 zse(e,t,n,r,a){return a.scopeElements.includes(t)}function yL(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Vse(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Gse(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!rse(o,t,a.schema))return!1}else if(o.type==="Id"){if(!sse(o,t))return!1}else if(o.type==="ClassName"){if(!ise(o,t))return!1}else if(o.type==="PseudoClass"){if(!bse(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!lse(o,t))return!1}return!0}const qse=[];function h_(e,t){t&&vL(e,[],t,void 0,void 0,t)}function Ab(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Wse(e,t,n,r){const a=tg(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;)RR(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=tg(a,o),g=vL(e,h,n.children[s],s,n,r);o=tg(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;RR(u,n.children[s])}}function Yse(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(Gse(c,n,r,a,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Ab(o,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Ab(o,"descendant",c):c.combinator==="~"&&Ab(o,"generalSibling",c)}return o}function tg(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:qse}function RR(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 vL(e,t,n,r,a,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=nse(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=Yse(e,tg(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Wse(e,s,n,o),c(),s}function Qse(e,t,n){const r=Kse(e,t);return h_(r,t||void 0),r.results}function Kse(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Xie(e),schema:_u,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const bL=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=bL(n.children))}),t),Xse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Qse(t,r);a&&a.length>0&&ha(r,a,(o,s,c)=>{n(o,s,c)});return}ha(r,(a,o,s)=>{n(a,o,s)})}}},Zse=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Jse=(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]}},EL=(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?EL(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},OR=({value:e=""})=>{const t=Zse(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},IR=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},ele=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ha(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=Jse(s.children,o);if(u){const d=OR(u);Object.keys(d).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=IR(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=EL(s.children,o,"",n);if(c){const u=OR(c);Object.keys(u).length>0&&(a.properties=IR(a.properties,u,t))}}})}};var tle=function(e){return t=>{ha(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},nle=function(e){return t=>{ha(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 rle=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ha(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 ale={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 ole(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 ile=/[\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,sle=Object.hasOwnProperty;let lle=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=cle(t,n===!0);const o=a;for(;sle.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 cle(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(ile,"").replace(/ /g,"-"))}function TL(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 ule={},NR=new lle;function dle(e){const t=(e||ule).prefix||"";return function(n){NR.reset(),ha(n,"element",function(r){TL(r)&&!r.properties.id&&(r.properties.id=t+NR.slug(dL(r)))})}}const SL=(function(e){if(e==null)return hle;if(typeof e=="string")return ple(e);if(typeof e=="object")return fle(e);if(typeof e=="function")return m_(e);throw new Error("Expected function, string, or array as `test`")});function fle(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=SL(e[n]);return m_(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ple(e){return m_(t);function t(n){return n.tagName===e}}function m_(e){return t;function t(n,r,a){return!!(mle(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function hle(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function mle(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const LR={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},gle={};function yle(e){const t=e||gle;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,s=t.group,c=SL(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(g){ha(g,"element",function(y,b,E){if(TL(y)&&y.properties.id&&c(y,b,E))return Object.assign(y.properties,km(r,y)),u(y,b,E)})};function d(g){const y=PR(o||LR,g);return g.children[a==="prepend"?"unshift":"push"](xb(g,km(n,g),y)),[Ef]}function p(g,y,b){if(typeof y!="number"||!b)return;const E=PR(o||LR,g),_=xb(g,km(n,g),E);let A=a==="before"?[_,g]:[g,_];if(s){const D=_L(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=A,A=[D])}return b.children.splice(y,1,...A),[Ef,y+A.length]}function h(g){let y=g.children,b=[];return typeof o=="function"?(y=[],b=o(g)):o&&(b=g_(o)),g.children=[xb(g,km(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[Ef]}}function g_(e){return Ml(e)}function xb(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function PR(e,t){const n=_L(e,t);return Array.isArray(n)?n:[n]}function _L(e,t){return typeof e=="function"?e(t):g_(e)}function km(e,t){return typeof e=="function"?e(t):e?g_(e):{}}var vle=(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=[ale])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=bL(n.children);n.children.push(ole(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},ble=[dle,yle,rle];const CL=Tt.forwardRef((e,t)=>{var n,r=[tle,nle,...ble,[Xse,{rewrite:vle((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[ele,{properties:"attr"}],...e.rehypePlugins||[]];return P.jsx(Pie,Ne({},e,{rehypePlugins:r,ref:t}))});function Ele(e,t){return Ne({},e,t)}var Ou=Tt.createContext({markdown:""});function AL(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ne({},t,AL(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function xL(e,t,n,r,a){t===void 0&&(t=[]);var o=AL(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 wb;function MR(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof wb>"u"){var t=document.createElement("textarea");t.value="1",wb=!!t.firstChild}return wb}function ru(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(MR(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 g=u.nodeValue.length;a>=d&&a<=d+g&&s.setStart(p=u,a-d),o>=d&&o<=d+g&&s.setEnd(h=u,o-d),d+=g,u=u.nextSibling}a!==o&&s.deleteContents()}}if(MR(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var y=e.value;e.value=y.slice(0,a)+t+y.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Xr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=Tle(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 kf(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 wL(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 DL(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 Tle(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 Dr(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 y_(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 Sle={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},kL={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=Xr({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=Xr({text:e.text,selection:e.selection,prefix:a,suffix:o}),c=t.setSelectionRange(s);Dr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:o})}},_le={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else kL.execute(e,t)}},Cle={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ng={keyCommand:"divider"},Ale={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 xle(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var wle=(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({},(xle(r),r));return a.parent=n,Ne({},a)})),n},Dle={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=Xr({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)?Dr({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}),Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},kle={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=Xr({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")?Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Xr({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},Rle={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Ole={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=Xr({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=Xr({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},v_=(e,t,n)=>{var r=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=wL(a.text,a.selection.start),s=Array(o+1).join(`
|
|
287
|
-
`),c=DL(a.text,a.selection.end),u=Array(c+1).join(`
|
|
288
|
-
`),{modifiedText:d,insertionLength:p}=y_(a.selectedText,n);if(p<0){var h=a.selection.start,g=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
|
-
`&&(g+=1),t.setSelectionRange({start:h,end:g}),t.replaceSelection(""+d),t.setSelectionRange({start:h,end:h+d.length})}else{t.replaceSelection(""+s+d+u);var y=a.selection.start+o,b=y+d.length;t.setSelectionRange({start:y,end:b})}},Ile={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)=>{v_(e,t,"- ")}},Nle={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)=>{v_(e,t,(n,r)=>r+1+". ")}},Lle={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)=>{v_(e,t,(n,r)=>"- [ ] ")}},Ple={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"})}},Mle={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"})}},$le={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"})}},Fle={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=wL(r.text,r.selection.start),o=Array(a+1).join(`
|
|
291
|
-
`),s=DL(r.text,r.selection.end),c=Array(s+1).join(`
|
|
292
|
-
`),u=y_(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})}},Ble={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=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},RL={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Ule=RL;function Iu(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=kf({text:t.text,selection:t.selection}),s=n.setSelectionRange(o);Dr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:a})}Ne({},RL,{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 jle={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Hle=jle,zle={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Vle=zle,Gle={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},qle=Gle,Wle={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Yle=Wle,Qle={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)=>{Iu({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Kle=Qle,Xle={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=Xr({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)?Dr({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}),Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Zle={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")}},Jle=()=>[Sle,Rle,Ble,Dle,wle([Ule,Hle,Vle,qle,Yle,Kle],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ng,Ole,Fle,_le,kL,Cle,kle,Xle,ng,Ile,Nle,Lle,ng,Zle],ece=()=>[Mle,$le,Ple,ng,Ale];function Gg(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 b_=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return ru(this.textArea,t),Gg(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Gg(this.textArea)}},E_=class{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new b_(t)}getState(){return this.textArea?Gg(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ne({command:t},Gg(this.textArea)),this.textApi,n,r,a)}};function rg(e){e.stopPropagation(),e.preventDefault()}function $R(e,t){rg(e);var n=e.target,r=new b_(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=kf({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=kf({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}),ru(n,o+`
|
|
300
|
-
`+c),r.setSelectionRange({start:s.start,end:s.start+o.length})}else{var u=kf({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}),ru(n,d+`
|
|
301
|
-
`+o),r.setSelectionRange({start:u.end-o.length,end:u.end})}}}function tce(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 b_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){rg(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,G)=>{F!==d[G]&&h.push(F)});var g=h.join(`
|
|
305
|
-
`),y=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(g),end:r.selectionEnd});var E=y_(g,e.shiftKey?"":u),_=E.modifiedText;e.shiftKey&&(_=_.split(`
|
|
306
|
-
`).map(F=>F.replace(new RegExp("^"+u),"")).join(`
|
|
307
|
-
`)),c.replaceSelection(_);var A=e.shiftKey?-t:t,D=e.shiftKey?-h.length*t:h.length*t;c.setSelectionRange({start:b+A,end:b+y.length+D})}else return ru(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){rg(e);var w=`
|
|
308
|
-
- `;return s.startsWith("*")&&(w=`
|
|
309
|
-
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(w=`
|
|
310
|
-
- [ ] `),/^\d+.\s/.test(s)&&(w=`
|
|
311
|
-
`+(parseInt(s)+1)+". "),ru(r,w)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){rg(e);var R={start:r.selectionStart,end:r.selectionEnd},O=R;R=kf({text:r.value,selection:R});var k=r.value.slice(R.start,R.end);c.setSelectionRange({start:R.end,end:R.end}),ru(r,`
|
|
312
|
-
`+k),c.setSelectionRange({start:O.start,end:O.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?$R(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&$R(e,1)}var nce=["prefixCls","onChange"],rce=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function ace(e){var{prefixCls:t,onChange:n}=e,r=Pr(e,nce),a=x.useContext(Ou),{markdown:o,commands:s,fullscreen:c,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:g,autoFocusEnd:y,textareaWarp:b,dispatch:E}=a;Pr(a,rce);var _=Tt.useRef(null),A=Tt.useRef(),D=Tt.useRef({fullscreen:c,preview:u});x.useEffect(()=>{D.current={fullscreen:c,preview:u,highlightEnable:d}},[c,u,d]),x.useEffect(()=>{if(_.current&&E){var R=new E_(_.current);A.current=R,E({textarea:_.current,commandOrchestrator:R})}},[]),x.useEffect(()=>{if(y&&_.current&&b){_.current.focus();var R=_.current.value.length;_.current.setSelectionRange(R,R),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),_.current&&(_.current.scrollTop=_.current.scrollHeight)},0)}},[b]);var w=R=>{tce(R,h,g),xL(R,[...s||[],...p||[]],A.current,E,D.current)};return x.useEffect(()=>(_.current&&_.current.addEventListener("keydown",w),()=>{_.current&&_.current.removeEventListener("keydown",w)}),[]),P.jsx("textarea",Ne({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:_,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:R=>{E&&E({markdown:R.target.value}),n&&n(R)}}))}var oce=["prefixCls","className","onScroll","renderTextarea"];function ice(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,s=Pr(t,oce),{markdown:c,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=x.useContext(Ou),g=Tt.useRef(null),y=Tt.useRef(),b=Tt.createRef();x.useEffect(()=>{var _={};b.current&&(_.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(Ne({},_))},[]),x.useEffect(()=>{if(g.current&&h){var _=new E_(g.current);y.current=_,h({textarea:g.current,commandOrchestrator:_})}},[]);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:xL,useContext:{commands:d,extraCommands:p,commandOrchestrator:y.current}}),{ref:g}):P.jsx(x.Fragment,{children:P.jsx(ace,Ne({prefixCls:n},s,{style:E}))})})})}function sce(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=x.useContext(Ou);return x.useMemo(()=>P.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?P.jsx(OL,Ne({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function FR(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:s,commandOrchestrator:c,dispatch:u}=x.useContext(Ou),d=x.useRef("");function p(h,g){if(u){var y={barPopup:Ne({},o)};h.keyCommand==="preview"&&(y.preview=h.value),h.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(b=>{g===b.groupName?y.barPopup[g]=!0:b.keyCommand&&(y.barPopup[b.groupName]=!1)}):(g||h.parent)&&Object.keys(y.barPopup||{}).forEach(b=>{y.barPopup[b]=!1}),Object.keys(y).length&&u(Ne({},y)),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,g)=>{if(h.keyCommand==="divider")return P.jsx("li",Ne({},h.liProps,{className:t+"-toolbar-divider"}),g);if(!h.keyCommand)return P.jsx(x.Fragment,{},g);var y=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),_=s?.toolbar||h.render,A=_&&typeof _=="function"?_(h,!!E,p,g):null;return P.jsxs("li",Ne({},h.liProps,{className:y?"active":"",children:[A&&Tt.isValidElement(A)&&A,!A&&!h.buttonProps&&h.icon,!A&&h.buttonProps&&Tt.createElement("button",Ne({type:"button",key:g,disabled:E,"data-name":h.name},h.buttonProps,{onClick:D=>{D.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&P.jsx(sce,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),g)})})}function OL(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=x.useContext(Ou);return P.jsxs("div",{className:t+"-toolbar "+r,children:[P.jsx(FR,Ne({},e,{commands:e.commands||a||[]})),!n&&P.jsx(FR,Ne({},e,{commands:o||[]}))]})}function BR(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(OL,{prefixCls:o,overflow:a,className:s})}var lce=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,g=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY),y=a.current.height+g-a.current.dragY;y>=e.minHeight&&y<=e.maxHeight&&n&&n(a.current.height+(g-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,g,y;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),(g=r.current)==null||g.addEventListener("touchmove",s,{passive:!1}),(y=r.current)==null||y.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 g;(g=r.current)==null||g.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})},cce=["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 uce(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var dce=Tt.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:s=Jle(),commandsFilter:c,direction:u,extraCommands:d=ece(),height:p=200,enableScroll:h=!0,visibleDragbar:g=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:b="live",fullscreen:E=!1,overflow:_=!0,previewOptions:A={},textareaProps:D,maxHeight:w=1200,minHeight:R=100,autoFocus:O,autoFocusEnd:k=!1,tabSize:F=2,defaultTabEnable:G=!1,onChange:j,onStatistics:T,onHeightChange:M,hideToolbar:U,toolbarBottom:B=!1,components:Y,renderTextarea:X}=n,z=Pr(n,cce),Z=s.map(je=>c?c(je,!1):je).filter(Boolean),J=d.map(je=>c?c(je,!0):je).filter(Boolean),[oe,I]=x.useReducer(Ele,{markdown:o,preview:b,components:Y,height:p,minHeight:R,highlightEnable:y,tabSize:F,defaultTabEnable:G,scrollTop:0,scrollTopPreview:0,commands:Z,extraCommands:J,fullscreen:E,barPopup:{}}),re=x.useRef(null),ee=x.useRef(null),L=x.useRef(h);x.useImperativeHandle(t,()=>Ne({},oe,{container:re.current,dispatch:I})),x.useMemo(()=>L.current=h,[h]),x.useEffect(()=>{var je={};re.current&&(je.container=re.current||void 0),je.markdown=o||"",je.barPopup={},I&&I(Ne({},oe,je))},[]);var te=[a,"wmde-markdown-var",u?r+"-"+u:null,r,oe.preview?r+"-show-"+oe.preview:null,oe.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();x.useMemo(()=>o!==oe.markdown&&I({markdown:o||""}),[o,oe.markdown]),x.useMemo(()=>b!==oe.preview&&I({preview:b}),[b]),x.useMemo(()=>F!==oe.tabSize&&I({tabSize:F}),[F]),x.useMemo(()=>y!==oe.highlightEnable&&I({highlightEnable:y}),[y]),x.useMemo(()=>O!==oe.autoFocus&&I({autoFocus:O}),[O]),x.useMemo(()=>k!==oe.autoFocusEnd&&I({autoFocusEnd:k}),[k]),x.useMemo(()=>E!==oe.fullscreen&&I({fullscreen:E}),[E]),x.useMemo(()=>p!==oe.height&&I({height:p}),[p]),x.useMemo(()=>p!==oe.height&&M&&M(oe.height,p,oe),[p,M,oe]),x.useMemo(()=>s!==oe.commands&&I({commands:Z}),[e.commands]),x.useMemo(()=>d!==oe.extraCommands&&I({extraCommands:J}),[e.extraCommands]);var be=x.useRef(),de=x.useRef("preview"),xe=x.useRef(!1);x.useMemo(()=>{be.current=oe.textareaWarp,oe.textareaWarp&&(oe.textareaWarp.addEventListener("mouseover",()=>{de.current="text"}),oe.textareaWarp.addEventListener("mouseleave",()=>{de.current="preview"}))},[oe.textareaWarp]);var ge=(je,St)=>{if(L.current){var ot=be.current,Ze=ee.current?ee.current:void 0;if(xe.current||(de.current=St,xe.current=!0),ot&&Ze){var Ge=(ot.scrollHeight-ot.offsetHeight)/(Ze.scrollHeight-Ze.offsetHeight);je.target===ot&&de.current==="text"&&(Ze.scrollTop=ot.scrollTop/Ge),je.target===Ze&&de.current==="preview"&&(ot.scrollTop=Ze.scrollTop*Ge);var Pe=0;de.current==="text"?Pe=ot.scrollTop||0:de.current==="preview"&&(Pe=Ze.scrollTop||0),I({scrollTop:Pe})}}},Oe=r+"-preview "+(A.className||""),Ue=je=>ge(je,"preview"),Ie=x.useMemo(()=>P.jsx("div",{ref:ee,className:Oe,children:P.jsx(CL,Ne({},A,{onScroll:Ue,source:oe.markdown||""}))}),[Oe,A,oe.markdown]),Ye=Y?.preview&&Y?.preview(oe.markdown||"",oe,I);Ye&&Tt.isValidElement(Ye)&&(Ie=P.jsx("div",{className:Oe,ref:ee,onScroll:Ue,children:Ye}));var Ve=Ne({},z.style,{height:oe.height||"100%"}),ke=()=>I({barPopup:Ne({},uce(oe.barPopup))}),Rt=je=>I({height:je}),Et=je=>{if(j&&j(je.target.value,je,oe),D&&D.onChange&&D.onChange(je),oe.textarea&&oe.textarea instanceof HTMLTextAreaElement&&T){var St=new E_(oe.textarea),ot=St.getState()||{};T(Ne({},ot,{lineCount:je.target.value.split(`
|
|
313
|
-
`).length,length:je.target.value.length}))}};return P.jsx(Ou.Provider,{value:Ne({},oe,{dispatch:I}),children:P.jsxs("div",Ne({ref:re,className:te},z,{onClick:ke,style:Ve,children:[P.jsx(BR,{hideToolbar:U,toolbarBottom:B,prefixCls:r,overflow:_,placement:"top"}),P.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(oe.preview||"")&&P.jsx(ice,Ne({className:r+"-input",prefixCls:r,autoFocus:O},D,{onChange:Et,renderTextarea:Y?.textarea||X,onScroll:je=>ge(je,"text")})),/(live|preview)/.test(oe.preview||"")&&Ie]}),g&&!oe.fullscreen&&P.jsx(lce,{prefixCls:r,height:oe.height,maxHeight:w,minHeight:R,onChange:Rt}),P.jsx(BR,{hideToolbar:U,toolbarBottom:B,prefixCls:r,overflow:_,placement:"bottom"})]}))})}),fce=dce;fce.Markdown=CL;const IL=x.createContext(void 0);function pce({children:e,workbookStorage:t}){const n=x.useMemo(()=>({workbookStorage:t}),[t]);return P.jsx(IL.Provider,{value:n,children:e})}function w0e(){const e=x.useContext(IL);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const NL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},LL=(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:LL(e,n.parentId);let s=r[o],c=NL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&c!=null;)s=c,c=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ag=(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},PL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=NL(e,n);if(r==null)return t;t=r}return t},op=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),ML=(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,g=!0;for(;!p&&!d;)h&&(o.push(c),d=s.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=e.getItemMeta(c).parentId)),g&&!d&&(s.push(u),p=o.indexOf(u)!==-1,g=u!==null,!p&&g&&(u=e.getItemMeta(u).parentId));const y=d?c:u,b=e.getItemOrderedChildrenIds(y),E=o[o.indexOf(y)-1],_=s[s.indexOf(y)-1];return b.indexOf(E)<b.indexOf(_)?[t,n]:[n,t]},hce=(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]=ML(e,t,n),s=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||s.push(c);return s},mce=e=>{let t=op(e);const n=[];for(;t!=null;)n.push(t),t=ag(e,t);return n},ip=(e,t)=>t!==e.closest('*[role="treeitem"]');let UR=0;const gce=()=>(UR+=1,`mui-tree-view-${UR}`),T_=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,$L=x.createContext(null),Vl=()=>{const e=x.useContext($L);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},S_=x.createContext(()=>-1),wl=(e,t)=>e.getAvailablePlugins().has(t),yce=({props:e})=>{const{instance:t}=Vl(),{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"}:{}}}},io=({instance:e,state:t,setState:n,params:r})=>{const a=x.useRef(t.editedItemId),o=h=>a.current===h,s=h=>{n(g=>Ne({},g,{editedItemId:h})),a.current=h},c=h=>h===t.editedItemId,u=!!r.isItemEditable,d=h=>{if(h==null||!u)return!1;const g=e.getItem(h);return g?typeof r.isItemEditable=="function"?r.isItemEditable(g):!!r.isItemEditable:!1},p=(h,g)=>{if(!g)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(y=>{const b=y.items.itemMetaMap[h];return b.label!==g?Ne({},y,{items:Ne({},y.items,{itemMetaMap:Ne({},y.items.itemMetaMap,{[h]:Ne({},b,{label:g})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(h,g)};return{instance:{setEditedItemId:s,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};io.itemPlugin=yce;io.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ne({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};io.getInitialState=()=>({editedItemId:null});io.params={onItemLabelChange:!0,isItemEditable:!0};const FL=e=>Array.isArray(e)?e.length>0&&e.some(FL):!!e,vce=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Vl(),o={expandable:FL(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=()=>{wl(n,io)&&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)=>{wl(n,io)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{wl(n,io)&&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 Gr(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 bce=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}=Vl(),h=x.useContext(S_),{id:g,itemId:y,label:b,children:E,rootRef:_}=e,{rootRef:A,contentRef:D,propsEnhancers:w}=t(e),{interactions:R,status:O}=vce({itemId:y,children:E}),k=x.useRef(null),F=x.useRef(null),G=Kn(_,A,k),j=Kn(D,F),T=x.useRef(null),M=T_({itemId:y,treeId:u,id:g}),U=d.canItemBeTabbed(y)?0:-1,B={rootRefObject:k,contentRefObject:F,interactions:R},Y=ee=>L=>{if(ee.onFocus?.(L),L.defaultMuiPrevented)return;const te=!O.disabled||r;!O.focused&&te&&L.currentTarget===L.target&&d.focusItem(L,y)},X=ee=>L=>{if(ee.onBlur?.(L),L.defaultMuiPrevented)return;const te=d.getItemDOMElement(y);O.editing||L.relatedTarget&&ip(L.relatedTarget,te)&&(L.target&&L.target?.dataset?.element==="labelInput"&&ip(L.target,te)||L.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},z=ee=>L=>{ee.onKeyDown?.(L),!(L.defaultMuiPrevented||L.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(L,y)},Z=ee=>L=>{ee.onDoubleClick?.(L),!L.defaultMuiPrevented&&R.toggleItemEditing()},J=ee=>L=>{ee.onClick?.(L),n?.(L,y),!(L.defaultMuiPrevented||T.current?.contains(L.target))&&(c==="content"&&R.handleExpansion(L),s||R.handleSelection(L))},oe=ee=>L=>{ee.onMouseDown?.(L),!L.defaultMuiPrevented&&(L.shiftKey||L.ctrlKey||L.metaKey||O.disabled)&&L.preventDefault()},I=ee=>L=>{ee.onChange?.(L),!L.defaultMuiPrevented&&(o||O.disabled||R.handleCheckboxSelection(L))},re=ee=>L=>{ee.onClick?.(L),!L.defaultMuiPrevented&&c==="iconContainer"&&R.handleExpansion(L)};return{getRootProps:(ee={})=>{const L=Ne({},Gr(e),Gr(ee));let te;O.selected?te=!0:o||O.disabled?te=void 0:te=!1;const be=Ne({},L,{ref:G,role:"treeitem",tabIndex:U,id:M,"aria-expanded":O.expandable?O.expanded:void 0,"aria-selected":te,"aria-disabled":O.disabled||void 0},ee,{onFocus:Y(L),onBlur:X(L),onKeyDown:z(L)});a&&(be.style={"--TreeView-itemDepth":typeof h=="function"?h(y):h});const de=w.root?.(Ne({},B,{externalEventHandlers:L}))??{};return Ne({},be,de)},getContentProps:(ee={})=>{const L=Gr(ee),te=Ne({},L,ee,{ref:j,onClick:J(L),onMouseDown:oe(L),status:O});a&&(te.indentationAtItemLevel=!0);const be=w.content?.(Ne({},B,{externalEventHandlers:L}))??{};return Ne({},te,be)},getGroupTransitionProps:(ee={})=>{const L=Gr(ee),te=Ne({},L,{unmountOnExit:!0,component:"ul",role:"group",in:O.expanded,children:E},ee);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ee={})=>{const L=Gr(ee);return Ne({},L,ee,{onClick:re(L)})},getCheckboxProps:(ee={})=>{const L=Gr(ee);return Ne({},L,{visible:s,ref:T,checked:O.selected,disabled:o||O.disabled,tabIndex:-1},ee,{onChange:I(L)})},getLabelProps:(ee={})=>{const L=Ne({},Gr(ee)),te=Ne({},L,{children:b},ee,{onDoubleClick:Z(L)});return d.isTreeViewEditable&&(te.editable=O.editable),te},getLabelInputProps:(ee={})=>{const L=Gr(ee),te=w.labelInput?.({rootRefObject:k,contentRefObject:F,externalEventHandlers:L,interactions:R})??{};return Ne({},ee,te)},getDragAndDropOverlayProps:(ee={})=>{const L=Gr(ee),te=w.dragAndDropOverlay?.(Ne({},B,{externalEventHandlers:L}))??{};return Ne({},ee,te)},rootRef:G,status:O,publicAPI:p}},Ece=bce,Tce=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"})),Sce=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")]),_ce=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 __=qp(),_t=e=>Gp(e,__),C_=qp();_t.write=e=>Gp(e,C_);var Jy=qp();_t.onStart=e=>Gp(e,Jy);var A_=qp();_t.onFrame=e=>Gp(e,A_);var x_=qp();_t.onFinish=e=>Gp(e,x_);var au=[];_t.setTimeout=(e,t)=>{const n=_t.now()+t,r=()=>{const o=au.findIndex(s=>s.cancel==r);~o&&au.splice(o,1),Cs-=~o?1:0},a={time:n,handler:e,cancel:r};return au.splice(BL(n),0,a),Cs+=1,UL(),a};var BL=e=>~(~au.findIndex(t=>t.time>e)||~au.length);_t.cancel=e=>{Jy.delete(e),A_.delete(e),x_.delete(e),__.delete(e),C_.delete(e)};_t.sync=e=>{lT=!0,_t.batchedUpdates(e),lT=!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=()=>{Jy.delete(n),t=null},r};var w_=typeof window<"u"?window.requestAnimationFrame:(()=>{});_t.use=e=>w_=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"):HL()};var _s=-1,Cs=0,lT=!1;function Gp(e,t){lT?(t.delete(e),e(0)):(t.add(e),UL())}function UL(){_s<0&&(_s=0,_t.frameLoop!=="demand"&&w_(jL))}function Cce(){_s=-1}function jL(){~_s&&(w_(jL),_t.batchedUpdates(HL))}function HL(){const e=_s;_s=_t.now();const t=BL(_s);if(t&&(zL(au.splice(0,t),n=>n.handler()),Cs-=t),!Cs){Cce();return}Jy.flush(),__.flush(e?Math.min(64,_s-e):16.667),A_.flush(),C_.flush(),x_.flush()}function qp(){let e=new Set,t=e;return{add(n){Cs+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Cs-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Cs-=t.size,zL(t,r=>r(n)&&e.add(r)),Cs+=e.size,t=e)}}}function zL(e,t){e.forEach(n=>{try{t(n)}catch(r){_t.catch(r)}})}var Ace=Object.defineProperty,xce=(e,t)=>{for(var n in t)Ace(e,n,{get:t[n],enumerable:!0})},So={};xce(So,{assign:()=>Dce,colors:()=>ks,createStringInterpolator:()=>k_,skipAnimation:()=>GL,to:()=>VL,willAdvance:()=>R_});function cT(){}var wce=(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 Di(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 Jo(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 Rf(e,t){if(e.size){const n=Array.from(e);e.clear(),Vt(n,t)}}var pf=(e,...t)=>Rf(e,n=>n(...t)),D_=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),k_,VL,ks=null,GL=!1,R_=cT,Dce=e=>{e.to&&(VL=e.to),e.now&&(_t.now=e.now),e.colors!==void 0&&(ks=e.colors),e.skipAnimation!=null&&(GL=e.skipAnimation),e.createStringInterpolator&&(k_=e.createStringInterpolator),e.requestAnimationFrame&&_t.use(e.requestAnimationFrame),e.batchedUpdates&&(_t.batchedUpdates=e.batchedUpdates),e.willAdvance&&(R_=e.willAdvance),e.frameLoop&&(_t.frameLoop=e.frameLoop)},Of=new Set,ao=[],Db=[],qg=0,e0={get idle(){return!Of.size&&!ao.length},start(e){qg>e.priority?(Of.add(e),_t.onStart(kce)):(qL(e),_t(uT))},advance:uT,sort(e){if(qg)_t.onFrame(()=>e0.sort(e));else{const t=ao.indexOf(e);~t&&(ao.splice(t,1),WL(e))}},clear(){ao=[],Of.clear()}};function kce(){Of.forEach(qL),Of.clear(),_t(uT)}function qL(e){ao.includes(e)||WL(e)}function WL(e){ao.splice(Rce(ao,t=>t.priority>e.priority),0,e)}function uT(e){const t=Db;for(let n=0;n<ao.length;n++){const r=ao[n];qg=r.priority,r.idle||(R_(r),r.advance(e),r.idle||t.push(r))}return qg=0,Db=ao,Db.length=0,ao=t,ao.length>0}function Rce(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Oce={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},vo="[-+]?\\d*\\.?\\d+",Wg=vo+"%";function t0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ice=new RegExp("rgb"+t0(vo,vo,vo)),Nce=new RegExp("rgba"+t0(vo,vo,vo,vo)),Lce=new RegExp("hsl"+t0(vo,Wg,Wg)),Pce=new RegExp("hsla"+t0(vo,Wg,Wg,vo)),Mce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fce=/^#([0-9a-fA-F]{6})$/,Bce=/^#([0-9a-fA-F]{8})$/;function Uce(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Fce.exec(e))?parseInt(t[1]+"ff",16)>>>0:ks&&ks[e]!==void 0?ks[e]:(t=Ice.exec(e))?(Uc(t[1])<<24|Uc(t[2])<<16|Uc(t[3])<<8|255)>>>0:(t=Nce.exec(e))?(Uc(t[1])<<24|Uc(t[2])<<16|Uc(t[3])<<8|zR(t[4]))>>>0:(t=Mce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Bce.exec(e))?parseInt(t[1],16)>>>0:(t=$ce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Lce.exec(e))?(jR(HR(t[1]),Rm(t[2]),Rm(t[3]))|255)>>>0:(t=Pce.exec(e))?(jR(HR(t[1]),Rm(t[2]),Rm(t[3]))|zR(t[4]))>>>0:null}function kb(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 jR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=kb(a,r,e+1/3),s=kb(a,r,e),c=kb(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function Uc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function HR(e){return(parseFloat(e)%360+360)%360/360}function zR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Rm(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function VR(e){let t=Uce(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 sp=(e,t,n)=>{if(He.fun(e))return e;if(He.arr(e))return sp({range:e,output:t,extrapolate:n});if(He.str(e.output[0]))return k_(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=Hce(d,o);return jce(d,o[p],o[p+1],a[p],a[p+1],u,s,c,r.map)}};function jce(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 Hce(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var zce={linear:e=>e},lp=Symbol.for("FluidValue.get"),gu=Symbol.for("FluidValue.observers"),ro=e=>!!(e&&e[lp]),la=e=>e&&e[lp]?e[lp]():e,GR=e=>e[gu]||null;function Vce(e,t){e.eventObserved?e.eventObserved(t):e(t)}function cp(e,t){const n=e[gu];n&&n.forEach(r=>{Vce(r,t)})}var YL=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Gce(this,e)}},Gce=(e,t)=>QL(e,lp,t);function Nu(e,t){if(e[lp]){let n=e[gu];n||QL(e,gu,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function up(e,t){const n=e[gu];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[gu]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var QL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),og=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qce=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qR=new RegExp(`(${og.source})(%|[a-z]+)`,"i"),Wce=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,n0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,KL=e=>{const[t,n]=Yce(e);if(!t||D_())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&&n0.test(n))return KL(n);if(n)return n}return e},Yce=e=>{const t=n0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Rb,Qce=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,XL=e=>{Rb||(Rb=ks?new RegExp(`(${Object.keys(ks).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>la(o).replace(n0,KL).replace(qce,VR).replace(Rb,VR)),n=t.map(o=>o.match(og).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=>sp({...e,output:o}));return o=>{const s=!qR.test(t[0])&&t.find(u=>qR.test(u))?.replace(og,"");let c=0;return t[0].replace(og,()=>`${a[c++](o)}${s||""}`).replace(Wce,Qce)}},O_="react-spring: ",ZL=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${O_}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Kce=ZL(console.warn);function Xce(){Kce(`${O_}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Zce=ZL(console.warn);function Jce(){Zce(`${O_}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 r0(e){return He.str(e)&&(e[0]=="#"||/\d/.test(e)||!D_()&&n0.test(e)||e in(ks||{}))}var I_=D_()?x.useEffect:x.useLayoutEffect,eue=()=>{const e=x.useRef(!1);return I_(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function JL(){const e=x.useState()[1],t=eue();return()=>{t.current&&e(Math.random())}}var eP=e=>x.useEffect(e,tue),tue=[];function WR(e){const t=x.useRef(void 0);return x.useEffect(()=>{t.current=e}),t.current}var dp=Symbol.for("Animated:node"),nue=e=>!!e&&e[dp]===e,jo=e=>e&&e[dp],N_=(e,t)=>wce(e,dp,t),a0=e=>e&&e[dp]&&e[dp].getPayload(),tP=class{constructor(){N_(this,this)}getPayload(){return this.payload||[]}},o0=class nP extends tP{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 nP(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)}},Yg=class rP extends o0{constructor(t){super(0),this._string=null,this._toString=sp({output:[t,t]})}static create(t){return new rP(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=sp({output:[this.getValue(),t]})),this._value=0,super.reset()}},Qg={dependencies:null},i0=class extends tP{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Jo(this.source,(n,r)=>{nue(n)?t[r]=n.getValue(e):ro(n)?t[r]=la(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 Jo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Qg.dependencies&&ro(e)&&Qg.dependencies.add(e);const t=a0(e);t&&Vt(t,n=>this.add(n))}},rue=class aP extends i0{constructor(t){super(t)}static create(t){return new aP(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(aue)),!0)}};function aue(e){return(r0(e)?Yg:o0).create(e)}function dT(e){const t=jo(e);return t?t.constructor:He.arr(e)?rue:r0(e)?Yg:o0}var YR=(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=sue(a,b)},[a]),[c,u]=iue(r,t),d=JL(),p=()=>{const b=o.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,c.getValue(!0)):!1)===!1&&d()},h=new oue(p,u),g=x.useRef(void 0);I_(()=>(g.current=h,Vt(u,b=>Nu(b,h)),()=>{g.current&&(Vt(g.current.deps,b=>up(b,g.current)),_t.cancel(g.current.update))})),x.useEffect(p,[]),eP(()=>()=>{const b=g.current;Vt(b.deps,E=>up(E,b))});const y=t.getComponentProps(c.getValue());return x.createElement(e,{...y,ref:s})})},oue=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&_t.write(this.update)}};function iue(e,t){const n=new Set;return Qg.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new i0(e),Qg.dependencies=null,[e,n]}function sue(e,t){return e&&(He.fun(e)?e(t):e.current=t),t}var QR=Symbol.for("AnimatedComponent"),lue=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new i0(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const c=KR(s)||"Anonymous";return He.str(s)?s=o[s]||(o[s]=YR(s,a)):s=s[QR]||(s[QR]=YR(s,a)),s.displayName=`Animated(${c})`,s};return Jo(e,(s,c)=>{He.arr(e)&&(c=KR(s)),o[c]=o(s)}),{animated:o}},KR=e=>He.str(e)?e:e&&He.str(e.displayName)?e.displayName:He.fun(e)&&e.name||null;function dl(e,...t){return He.fun(e)?e(...t):e}var If=(e,t)=>e===!0||!!(t&&e&&(He.fun(e)?e(t):Oa(e).includes(t))),oP=(e,t)=>He.obj(e)?t&&e[t]:e,iP=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,cue=e=>e,L_=(e,t=cue)=>{let n=uue;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},uue=["config","onProps","onStart","onChange","onPause","onResume","onRest"],due={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 fue(e){const t={};let n=0;if(Jo(e,(r,a)=>{due[a]||(t[a]=r,n++)}),n)return t}function sP(e){const t=fue(e);if(t){const n={to:t};return Jo(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function fp(e){return e=la(e),He.arr(e)?e.map(fp):r0(e)?So.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function pue(e){for(const t in e)return!0;return!1}function fT(e){return He.fun(e)||He.arr(e)&&He.obj(e[0])}function hue(e,t){e.ref?.delete(e),t?.delete(e)}function mue(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var gue={default:{tension:170,friction:26}},pT={...gue.default,mass:1,damping:1,easing:zce.linear,clamp:!1},yue=class{constructor(){this.velocity=0,Object.assign(this,pT)}};function vue(e,t,n){n&&(n={...n},XR(n,t),t={...n,...t}),XR(e,t),Object.assign(e,t);for(const s in pT)e[s]==null&&(e[s]=pT[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 XR(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 ZR=[],bue=class{constructor(){this.changed=!1,this.values=ZR,this.toValues=null,this.fromValues=ZR,this.config=new yue,this.immediate=!1}};function lP(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((s,c)=>{let u,d,p=If(n.cancel??r?.cancel,t);if(p)y();else{He.und(n.pause)||(a.paused=If(n.pause,t));let b=r?.pause;b!==!0&&(b=a.paused||If(b,t)),u=dl(n.delay||0,t),b?(a.resumeQueue.add(g),o.pause()):(o.resume(),g())}function h(){a.resumeQueue.add(g),a.timeouts.delete(d),d.cancel(),u=d.time-_t.now()}function g(){u>0&&!So.skipAnimation?(a.delayed=!0,d=_t.setTimeout(y,u),a.pauseQueue.add(h),a.timeouts.add(d)):y()}function y(){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 P_=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ou(e.get()):t.every(n=>n.noop)?cP(e.get()):yo(e.get(),t.every(n=>n.finished)),cP=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yo=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ou=e=>({value:e,cancelled:!0,finished:!1});function uP(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=L_(t,(_,A)=>A==="onRest"?void 0:_);let p,h;const g=new Promise((_,A)=>(p=_,h=A)),y=_=>{const A=a<=(n.cancelId||0)&&ou(r)||a!==n.asyncId&&yo(r,!1);if(A)throw _.result=A,h(_),_},b=(_,A)=>{const D=new JR,w=new eO;return(async()=>{if(So.skipAnimation)throw pp(n),w.result=yo(r,!1),h(w),w;y(D);const R=He.obj(_)?{..._}:{...A,to:_};R.parentId=a,Jo(d,(k,F)=>{He.und(R[F])&&(R[F]=k)});const O=await r.start(R);return y(D),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),O})()};let E;if(So.skipAnimation)return pp(n),yo(r,!1);try{let _;He.arr(e)?_=(async A=>{for(const D of A)await b(D)})(e):_=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([_.then(p),g]),E=yo(r.get(),!0,!1)}catch(_){if(_ instanceof JR)E=_.result;else if(_ instanceof eO)E=_.result;else throw _}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 pp(e,t){Rf(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var JR=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.")}},eO=class extends Error{constructor(){super("SkipAnimationSignal")}},hT=e=>e instanceof M_,Eue=1,M_=class extends YL{constructor(){super(...arguments),this.id=Eue++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=jo(this);return e&&e.getValue()}to(...e){return So.to(this,e)}interpolate(...e){return Xce(),So.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){cp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||e0.sort(this),cp(this,{type:"priority",parent:this,priority:e})}},Fl=Symbol.for("SpringPhase"),dP=1,mT=2,gT=4,Ob=e=>(e[Fl]&dP)>0,hs=e=>(e[Fl]&mT)>0,Xd=e=>(e[Fl]&gT)>0,tO=(e,t)=>t?e[Fl]|=mT|dP:e[Fl]&=~mT,nO=(e,t)=>t?e[Fl]|=gT:e[Fl]&=~gT,Tue=class extends M_{constructor(e,t){if(super(),this.animation=new bue,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)||Xd(this)}get goal(){return la(this.animation.to)}get velocity(){const e=jo(this);return e instanceof o0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ob(this)}get isAnimating(){return hs(this)}get isPaused(){return Xd(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=a0(r.to);!s&&ro(r.to)&&(a=Oa(la(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==Yg?1:s?s[p].lastPosition:a[p];let g=r.immediate,y=h;if(!g){if(y=d.lastPosition,o.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const E=r.fromValues[p],_=d.v0!=null?d.v0:d.v0=He.arr(o.velocity)?o.velocity[p]:o.velocity;let A;const D=o.precision||(E==h?.005:Math.min(1,Math.abs(h-E)*.001));if(He.und(o.duration))if(o.decay){const w=o.decay===!0?.998:o.decay,R=Math.exp(-(1-w)*b);y=E+_/(1-w)*(1-R),g=Math.abs(d.lastPosition-y)<=D,A=_*R}else{A=d.lastVelocity==null?_:d.lastVelocity;const w=o.restVelocity||D/10,R=o.clamp?0:o.bounce,O=!He.und(R),k=E==h?d.v0>0:E<h;let F,G=!1;const j=1,T=Math.ceil(e/j);for(let M=0;M<T&&(F=Math.abs(A)>w,!(!F&&(g=Math.abs(h-y)<=D,g)));++M){O&&(G=y==h||y>h==k,G&&(A=-A*R,y=h));const U=-o.tension*1e-6*(y-h),B=-o.friction*.001*A,Y=(U+B)/o.mass;A=A+Y*j,y=y+A*j}}else{let w=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)),w=(o.progress||0)+b/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),y=E+o.easing(w)*(h-E),A=(y-d.lastPosition)/e,g=w==1}d.lastVelocity=A,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),g=!0)}s&&!s[p].done&&(g=!1),g?d.done=!0:t=!1,d.setValue(y,o.round)&&(n=!0)});const c=jo(this),u=c.getValue();if(t){const d=la(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=>P_(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),pp(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||fT(n))&&(n=void 0),r=He.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Ob(this)||(e.reverse&&([n,r]=[r,n]),r=la(r),He.und(r)?jo(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,L_(e,(s,c)=>/^on/.test(c)?oP(s,n):s)),aO(this,e,"onProps"),Jd(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 lP(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Xd(this)||(nO(this,!0),pf(o.pauseQueue),Jd(this,"onPause",yo(this,Zd(this,this.animation.to)),this))},resume:()=>{Xd(this)&&(nO(this,!1),hs(this)&&this._resume(),pf(o.resumeQueue),Jd(this,"onResume",yo(this,Zd(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const c=fP(e);if(c)return this._update(c,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ou(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(ou(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 g=!Di(h,d);g&&(c.from=h),h=la(h);const y=!Di(p,u);y&&this._focus(p);const b=fT(t.to),{config:E}=c,{decay:_,velocity:A}=E;(r||a)&&(E.velocity=0),t.config&&!b&&vue(E,dl(t.config,o),t.config!==s.config?dl(s.config,o):void 0);let D=jo(this);if(!D||He.und(p))return n(yo(this,!0));const w=He.und(t.reset)?a&&!t.default:!He.und(h)&&If(t.reset,o),R=w?h:this.get(),O=fp(p),k=He.num(O)||He.arr(O)||r0(O),F=!b&&(!k||If(s.immediate||t.immediate,o));if(y){const M=dT(p);if(M!==D.constructor)if(F)D=this._set(O);else throw Error(`Cannot animate between ${D.constructor.name} and ${M.name}, as the "to" prop suggests`)}const G=D.constructor;let j=ro(p),T=!1;if(!j){const M=w||!Ob(this)&&g;(y||M)&&(T=Di(fp(R),O),j=!T),(!Di(c.immediate,F)&&!F||!Di(E.decay,_)||!Di(E.velocity,A))&&(j=!0)}if(T&&hs(this)&&(c.changed&&!w?j=!0:j||this._stop(u)),!b&&((j||ro(u))&&(c.values=D.getPayload(),c.toValues=ro(p)?null:G==Yg?[1]:Oa(O)),c.immediate!=F&&(c.immediate=F,!F&&!w&&this._set(u)),j)){const{onRest:M}=c;Vt(_ue,B=>aO(this,t,B));const U=yo(this,Zd(this,u));pf(this._pendingCalls,U),this._pendingCalls.add(n),c.changed&&_t.batchedUpdates(()=>{c.changed=!w,M?.(U,this),w?dl(s.onRest,U):c.onStart?.(U,this)})}w&&this._set(R),b?n(uP(t.to,t,this._state,this)):j?this._start():hs(this)&&!y?this._pendingCalls.add(n):n(cP(R))}_focus(e){const t=this.animation;e!==t.to&&(GR(this)&&this._detach(),t.to=e,GR(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ro(t)&&(Nu(t,this),hT(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ro(e)&&up(e,this)}_set(e,t=!0){const n=la(e);if(!He.und(n)){const r=jo(this);if(!r||!Di(n,r.getValue())){const a=dT(n);!r||r.constructor!=a?N_(this,a.create(n)):r.setValue(n),r&&_t.batchedUpdates(()=>{this._onChange(n,t)})}}return jo(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Jd(this,"onStart",yo(this,Zd(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),dl(this.animation.onChange,e,this)),dl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;jo(this).reset(la(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hs(this)||(tO(this,!0),Xd(this)||this._resume())}_resume(){So.skipAnimation?this.finish():e0.start(this)}_stop(e,t){if(hs(this)){tO(this,!1);const n=this.animation;Vt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),cp(this,{type:"idle",parent:this});const r=t?ou(this.get()):yo(this.get(),Zd(this,e??n.to));pf(this._pendingCalls,r),n.changed&&(n.changed=!1,Jd(this,"onRest",r,this))}}};function Zd(e,t){const n=fp(t),r=fp(e.get());return Di(r,n)}function fP(e,t=e.loop,n=e.to){const r=dl(t);if(r){const a=r!==!0&&sP(r),o=(a||e).reverse,s=!a||a.reset;return hp({...e,loop:t,default:!1,pause:void 0,to:!o||fT(n)?n:void 0,from:s?e.from:void 0,reset:s,...a})}}function hp(e){const{to:t,from:n}=e=sP(e),r=new Set;return He.obj(t)&&rO(t,r),He.obj(n)&&rO(n,r),e.keys=r.size?Array.from(r):null,e}function Sue(e){const t=hp(e);return He.und(t.default)&&(t.default=L_(t)),t}function rO(e,t){Jo(e,(n,r)=>n!=null&&t.add(r))}var _ue=["onStart","onRest","onChange","onPause","onResume"];function aO(e,t,n){e.animation[n]=t[n]!==iP(t,n)?oP(t[n],e.key):void 0}function Jd(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Cue=["onStart","onChange","onRest"],Aue=1,xue=class{constructor(e,t){this.id=Aue++,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(hp(e)),this}start(e){let{queue:t}=this;return e?t=Oa(e).map(hp):this.queue=[],this._flush?this._flush(this,t):(yP(this,t),yT(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Vt(Oa(t),r=>n[r].stop(!!e))}else pp(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){Jo(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,Rf(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&&Rf(t,([c,u])=>{u.value=s,c(u,this,this._item)}),o&&(this._started=!1,Rf(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 yT(e,t){return Promise.all(t.map(n=>pP(e,n))).then(n=>P_(e,n))}async function pP(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(Cue,E=>{const _=t[E];if(He.fun(_)){const A=e._events[E];t[E]=({finished:D,cancelled:w})=>{const R=A.get(_);R?(D||(R.finished=!1),w&&(R.cancelled=!0)):A.set(_,{value:null,finished:D||!1,cancelled:w||!1})},d&&(d[E]=t[E])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,pf(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const g=(r||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),y=t.cancel===!0||iP(t,"cancel")===!0;(p||y&&h.asyncId)&&g.push(lP(++e._lastAsyncId,{props:t,state:h,actions:{pause:cT,resume:cT,start(E,_){y?(pp(h,e._lastAsyncId),_(ou(e))):(E.onRest=c,_(uP(p,E,h,e)))}}})),h.paused&&await new Promise(E=>{h.resumeQueue.add(E)});const b=P_(e,await Promise.all(g));if(s&&b.finished&&!(n&&b.noop)){const E=fP(t,s,a);if(E)return yP(e,[E]),pP(e,E,!0)}return u&&_t.batchedUpdates(()=>u(b,e,e.item)),b}function oO(e,t){const n={...e.springs};return t&&Vt(Oa(t),r=>{He.und(r.keys)&&(r=hp(r)),He.obj(r.to)||(r={...r,to:void 0}),gP(n,r,a=>mP(a))}),hP(e,n),n}function hP(e,t){Jo(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Nu(n,e))})}function mP(e,t){const n=new Tue;return n.key=e,t&&Nu(n,t),n}function gP(e,t,n){t.keys&&Vt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function yP(e,t){Vt(t,n=>{gP(e.springs,n,r=>mP(r,e))})}var wue=x.createContext({pause:!1,immediate:!1}),Due=()=>{const e=[],t=function(r){Jce();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 kue(e,t,n){const r=He.fun(t)&&t;r&&!n&&(n=[]);const a=x.useMemo(()=>r||arguments.length==3?Due():void 0,[]),o=x.useRef(0),s=JL(),c=x.useMemo(()=>({ctrls:[],queue:[],flush(A,D){const w=oO(A,D);return o.current>0&&!c.queue.length&&!Object.keys(w).some(O=>!A.springs[O])?yT(A,D):new Promise(O=>{hP(A,w),c.queue.push(()=>{O(yT(A,D))}),s()})}}),[]),u=x.useRef([...c.ctrls]),d=x.useRef([]),p=WR(e)||0;x.useMemo(()=>{Vt(u.current.slice(e,p),A=>{hue(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,D){for(let w=A;w<D;w++){const R=u.current[w]||(u.current[w]=new xue(null,c.flush)),O=r?r(w,R):t[w];O&&(d.current[w]=Sue(O))}}const g=u.current.map((A,D)=>oO(A,d.current[D])),y=x.useContext(wue),b=WR(y),E=y!==b&&pue(y);I_(()=>{o.current++,c.ctrls=u.current;const{queue:A}=c;A.length&&(c.queue=[],Vt(A,D=>D())),Vt(u.current,(D,w)=>{a?.add(D),E&&D.start({default:y});const R=d.current[w];R&&(mue(D,R.ref),D.ref?D.queue.push(R):D.start(R))})}),eP(()=>()=>{Vt(c.ctrls,A=>A.stop(!0))});const _=g.map(A=>({...A}));return a?[_,a]:_}function Rue(e,t){const n=He.fun(e),[[r],a]=kue(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var Oue=class extends M_{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=sp(...t);const n=this._get(),r=dT(n);N_(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Di(t,n)||(jo(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&iO(this._active)&&Ib(this)}_get(){const e=He.arr(this.source)?this.source.map(la):Oa(la(this.source));return this.calc(...e)}_start(){this.idle&&!iO(this._active)&&(this.idle=!1,Vt(a0(this),e=>{e.done=!1}),So.skipAnimation?(_t.batchedUpdates(()=>this.advance()),Ib(this)):e0.start(this))}_attach(){let e=1;Vt(Oa(this.source),t=>{ro(t)&&Nu(t,this),hT(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=>{ro(e)&&up(e,this)}),this._active.clear(),Ib(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,(hT(n)?n.priority:0)+1),0))}};function Iue(e){return e.idle!==!1}function iO(e){return!e.size||Array.from(e).every(Iue)}function Ib(e){e.idle||(e.idle=!0,Vt(a0(e),t=>{t.done=!0}),cp(e,{type:"idle",parent:e}))}So.assign({createStringInterpolator:XL,to:(e,t)=>new Oue(e,t)});var vP=/^--/;function Nue(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!vP.test(e)&&!(Nf.hasOwnProperty(e)&&Nf[e])?t+"px":(""+t).trim()}var sO={};function Lue(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(g=>n||e.hasAttribute(g)?g:sO[g]||(sO[g]=g.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));o!==void 0&&(e.textContent=o);for(const g in a)if(a.hasOwnProperty(g)){const y=Nue(g,a[g]);vP.test(g)?e.style.setProperty(g,y):e.style[g]=y}h.forEach((g,y)=>{e.setAttribute(g,p[y])}),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 Nf={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},Pue=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Mue=["Webkit","Ms","Moz","O"];Nf=Object.keys(Nf).reduce((e,t)=>(Mue.forEach(n=>e[Pue(n,t)]=e[t]),e),Nf);var $ue=/^(matrix|translate|scale|rotate|skew)/,Fue=/^(translate)/,Bue=/^(rotate|skew)/,Nb=(e,t)=>He.num(e)&&e!==0?e+t:e,ig=(e,t)=>He.arr(e)?e.every(n=>ig(n,t)):He.num(e)?e===t:parseFloat(e)===t,Uue=class extends i0{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=>Nb(c,"px")).join(",")})`,ig(s,0)])),Jo(r,(s,c)=>{if(c==="transform")a.push([s||""]),o.push(u=>[u,u===""]);else if($ue.test(c)){if(delete r[c],He.und(s))return;const u=Fue.test(c)?"px":Bue.test(c)?"deg":"";a.push(Oa(s)),o.push(c==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${Nb(g,u)})`,ig(g,0)]:d=>[`${c}(${d.map(p=>Nb(p,u)).join(",")})`,ig(d,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new jue(a,o)),super(r)}},jue=class extends YL{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=la(n[0]),[o,s]=this.transforms[r](He.arr(a)?a:n.map(la));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Vt(this.inputs,t=>Vt(t,n=>ro(n)&&Nu(n,this)))}observerRemoved(e){e==0&&Vt(this.inputs,t=>Vt(t,n=>ro(n)&&up(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),cp(this,e)}},Hue=["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"];So.assign({batchedUpdates:bp.unstable_batchedUpdates,createStringInterpolator:XL,colors:Oce});var zue=lue(Hue,{applyAnimatedValues:Lue,createAnimatedStyle:e=>new Uue(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Vue=zue.animated;const Gue=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"})),que=wn(P.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function Lu(){const e=Ap(xy);return e[wy]||e}const bP=e=>e.scrollTop;function yu(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 Wue(e){return Ht("MuiCollapse",e)}Nt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function vT(e,t){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vT(e,t)}function EP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vT(e,t)}const lO={disabled:!1},Kg=Tt.createContext(null);var Yue=function(e){return e.scrollTop},hf="unmounted",ll="exited",cl="entering",Gc="entered",bT="exiting",wo=(function(e){EP(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=ll,o.appearStatus=cl):u=Gc:r.unmountOnExit||r.mountOnEnter?u=hf:u=ll,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===hf?{status:ll}: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!==cl&&o!==Gc&&(a=cl):(o===cl||o===Gc)&&(a=bT)}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===cl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this);o&&Yue(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ll&&this.setState({status:hf})},n.performEnter=function(r){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:r,c=this.props.nodeRef?[s]:[Es.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!o||lO.disabled){this.safeSetState({status:Gc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:cl},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Gc},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:Es.findDOMNode(this);if(!a||lO.disabled){this.safeSetState({status:ll},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:bT},function(){r.props.onExiting(s),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:ll},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:Es.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===hf)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=Pr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(Kg.Provider,{value:null},typeof o=="function"?o(r,s):Tt.cloneElement(Tt.Children.only(o),s))},t})(Tt.Component);wo.contextType=Kg;wo.propTypes={};function jc(){}wo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jc,onEntering:jc,onEntered:jc,onExit:jc,onExiting:jc,onExited:jc};wo.UNMOUNTED=hf;wo.EXITED=ll;wo.ENTERING=cl;wo.ENTERED=Gc;wo.EXITING=bT;const cO={};function TP(e,t){const n=x.useRef(cO);return n.current===cO&&(n.current=e(t)),n}const Que=[];function Kue(e){x.useEffect(e,Que)}let Xue=class SP{static create(){return new SP}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 s0(){const e=TP(Xue.create).current;return Kue(e.disposeEffect),e}const Zue=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return zt(r,Wue,n)},Jue=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]}})(fn(({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"}}]}))),ede=ze("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),tde=ze("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mp=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:g,onExit:y,onExited:b,onExiting:E,orientation:_="vertical",style:A,timeout:D=I3.standard,TransitionComponent:w=wo,...R}=n,O={...n,orientation:_,collapsedSize:s},k=Zue(O),F=Lu(),G=s0(),j=x.useRef(null),T=x.useRef(),M=typeof s=="number"?`${s}px`:s,U=_==="horizontal",B=U?"width":"height",Y=x.useRef(null),X=Kn(t,Y),z=te=>be=>{if(te){const de=Y.current;be===void 0?te(de):te(de,be)}},Z=()=>j.current?j.current[U?"clientWidth":"clientHeight"]:0,J=z((te,be)=>{j.current&&U&&(j.current.style.position="absolute"),te.style[B]=M,p&&p(te,be)}),oe=z((te,be)=>{const de=Z();j.current&&U&&(j.current.style.position="");const{duration:xe,easing:ge}=yu({style:A,timeout:D,easing:u},{mode:"enter"});if(D==="auto"){const Oe=F.transitions.getAutoHeightDuration(de);te.style.transitionDuration=`${Oe}ms`,T.current=Oe}else te.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;te.style[B]=`${de}px`,te.style.transitionTimingFunction=ge,g&&g(te,be)}),I=z((te,be)=>{te.style[B]="auto",h&&h(te,be)}),re=z(te=>{te.style[B]=`${Z()}px`,y&&y(te)}),ee=z(b),L=z(te=>{const be=Z(),{duration:de,easing:xe}=yu({style:A,timeout:D,easing:u},{mode:"exit"});if(D==="auto"){const ge=F.transitions.getAutoHeightDuration(be);te.style.transitionDuration=`${ge}ms`,T.current=ge}else te.style.transitionDuration=typeof de=="string"?de:`${de}ms`;te.style[B]=M,te.style.transitionTimingFunction=xe,E&&E(te)});return P.jsx(w,{in:d,onEnter:J,onEntered:I,onEntering:oe,onExit:re,onExited:ee,onExiting:L,addEndListener:te=>{D==="auto"&&G.start(T.current||0,te),r&&r(Y.current,te)},nodeRef:Y,timeout:D==="auto"?null:D,...R,children:(te,{ownerState:be,...de})=>P.jsx(Jue,{as:c,className:mt(k.root,o,{entered:k.entered,exited:!d&&M==="0px"&&k.hidden}[te]),style:{[U?"minWidth":"minHeight"]:M,...A},ref:X,ownerState:{...O,state:te},...de,children:P.jsx(ede,{ownerState:{...O,state:te},className:k.wrapper,ref:j,children:P.jsx(tde,{ownerState:{...O,state:te},className:k.wrapperInner,children:a})})})})});mp&&(mp.muiSupportAuto=!0);var Lb={exports:{}},Pb,uO;function nde(){if(uO)return Pb;uO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pb=e,Pb}var Mb,dO;function rde(){if(dO)return Mb;dO=1;var e=nde();function t(){}function n(){}return n.resetWarningCache=t,Mb=function(){function r(s,c,u,d,p,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}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},Mb}var fO;function ade(){return fO||(fO=1,Lb.exports=rde()()),Lb.exports}var ode=ade();const pO=Gy(ode);function $_(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Vl();return r({children:t,itemId:n,instance:a})}$_.propTypes={children:pO.node,itemId:pO.string.isRequired};const F_=x.createContext(void 0);function Gl(){return x.useContext(F_)}function ide(e){return Ht("PrivateSwitchBase",e)}Nt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Go(e,t,n){return typeof e=="function"?e(t,n):e}function hO(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 _P(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const y=mt(n?.className,o,a?.className,r?.className),b={...n?.style,...a?.style,...r?.style},E={...n,...a,...r};return y.length>0&&(E.className=y),Object.keys(b).length>0&&(E.style=b),{props:E,internalRef:void 0}}const s=Gr({...a,...r}),c=hO(r),u=hO(a),d=t(s),p=mt(d?.className,n?.className,o,a?.className,r?.className),h={...d?.style,...n?.style,...a?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function sde(e){return typeof e=="string"}function CP(e,t,n){return e===void 0||sde(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bn(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},...g}=o,y=p[e]||r,b=Go(h[e],a),{props:{component:E,..._},internalRef:A}=_P({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Kn(A,b?.ref,t.ref),w=e==="root"?E||d:E,R=CP(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,..._,...w&&!c&&{as:w},...w&&c&&{component:w},ref:D},a);return[y,R]}function ET(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 lde(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),g=mt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={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:g,style:y,children:P.jsx("span",{className:b})})}const Za=Nt("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 B_(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 ude(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 El(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dde(e,t){return B_(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:El(n,"appear",e),enter:El(n,"enter",e),exit:El(n,"exit",e)})})}function fde(e,t,n){var r=B_(e.children),a=ude(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:El(s,"exit",e),enter:El(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:El(s,"exit",e),enter:El(s,"enter",e)}))}}),a}var pde=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hde={component:"div",childFactory:function(e){return e}},U_=(function(e){EP(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?dde(r,s):fde(r,o,s),firstRender:!1}},n.handleExited=function(r,a){var o=B_(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=Pr(r,["component","childFactory"]),c=this.state.contextValue,u=pde(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?Tt.createElement(Kg.Provider,{value:c},u):Tt.createElement(Kg.Provider,{value:c},Tt.createElement(a,s,u))},t})(Tt.Component);U_.propTypes={};U_.defaultProps=hde;const TT=550,mde=80,gde=ti`
|
|
316
|
-
0% {
|
|
317
|
-
transform: scale(0);
|
|
318
|
-
opacity: 0.1;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
100% {
|
|
322
|
-
transform: scale(1);
|
|
323
|
-
opacity: 0.3;
|
|
324
|
-
}
|
|
325
|
-
`,yde=ti`
|
|
326
|
-
0% {
|
|
327
|
-
opacity: 1;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
100% {
|
|
331
|
-
opacity: 0;
|
|
332
|
-
}
|
|
333
|
-
`,vde=ti`
|
|
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
|
-
`,bde=ze("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ede=ze(lde,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
346
|
-
opacity: 0;
|
|
347
|
-
position: absolute;
|
|
348
|
-
|
|
349
|
-
&.${Za.rippleVisible} {
|
|
350
|
-
opacity: 0.3;
|
|
351
|
-
transform: scale(1);
|
|
352
|
-
animation-name: ${gde};
|
|
353
|
-
animation-duration: ${TT}ms;
|
|
354
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
&.${Za.ripplePulsate} {
|
|
358
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
& .${Za.child} {
|
|
362
|
-
opacity: 1;
|
|
363
|
-
display: block;
|
|
364
|
-
width: 100%;
|
|
365
|
-
height: 100%;
|
|
366
|
-
border-radius: 50%;
|
|
367
|
-
background-color: currentColor;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
& .${Za.childLeaving} {
|
|
371
|
-
opacity: 0;
|
|
372
|
-
animation-name: ${yde};
|
|
373
|
-
animation-duration: ${TT}ms;
|
|
374
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
& .${Za.childPulsate} {
|
|
378
|
-
position: absolute;
|
|
379
|
-
/* @noflip */
|
|
380
|
-
left: 0px;
|
|
381
|
-
top: 0;
|
|
382
|
-
animation-name: ${vde};
|
|
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
|
-
`,Tde=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),g=s0(),y=x.useRef(null),b=x.useRef(null),E=x.useCallback(w=>{const{pulsate:R,rippleX:O,rippleY:k,rippleSize:F,cb:G}=w;u(j=>[...j,P.jsx(Ede,{classes:{ripple:mt(a.ripple,Za.ripple),rippleVisible:mt(a.rippleVisible,Za.rippleVisible),ripplePulsate:mt(a.ripplePulsate,Za.ripplePulsate),child:mt(a.child,Za.child),childLeaving:mt(a.childLeaving,Za.childLeaving),childPulsate:mt(a.childPulsate,Za.childPulsate)},timeout:TT,pulsate:R,rippleX:O,rippleY:k,rippleSize:F},d.current)]),d.current+=1,p.current=G},[a]),_=x.useCallback((w={},R={},O=()=>{})=>{const{pulsate:k=!1,center:F=r||R.pulsate,fakeElement:G=!1}=R;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const j=G?null:b.current,T=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,U,B;if(F||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(T.width/2),U=Math.round(T.height/2);else{const{clientX:Y,clientY:X}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(Y-T.left),U=Math.round(X-T.top)}if(F)B=Math.sqrt((2*T.width**2+T.height**2)/3),B%2===0&&(B+=1);else{const Y=Math.max(Math.abs((j?j.clientWidth:0)-M),M)*2+2,X=Math.max(Math.abs((j?j.clientHeight:0)-U),U)*2+2;B=Math.sqrt(Y**2+X**2)}w?.touches?y.current===null&&(y.current=()=>{E({pulsate:k,rippleX:M,rippleY:U,rippleSize:B,cb:O})},g.start(mde,()=>{y.current&&(y.current(),y.current=null)})):E({pulsate:k,rippleX:M,rippleY:U,rippleSize:B,cb:O})},[r,E,g]),A=x.useCallback(()=>{_({},{pulsate:!0})},[_]),D=x.useCallback((w,R)=>{if(g.clear(),w?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(w,R)});return}y.current=null,u(O=>O.length>0?O.slice(1):O),p.current=R},[g]);return x.useImperativeHandle(t,()=>({pulsate:A,start:_,stop:D}),[A,_,D]),P.jsx(bde,{className:mt(Za.root,a.root,o),ref:b,...s,children:P.jsx(U_,{component:null,exit:!0,children:c})})});function Sde(e){return Ht("MuiButtonBase",e)}const _de=Nt("MuiButtonBase",["root","disabled","focusVisible"]);let Cde=class ST{static create(){return new ST}static use(){const t=TP(ST.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=xde(),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 Ade(){return Cde.use()}function xde(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const Ls=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Fr(e){const t=x.useRef(e);return Ls(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function mO(e){try{return e.matches(":focus-visible")}catch{}return!1}const wde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=zt({root:["root",t&&"disabled",n&&"focusVisible"]},Sde,a);return n&&r&&(o.root+=` ${r}`),o},Dde=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"},[`&.${_de.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),l0=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:g,LinkComponent:y="a",onBlur:b,onClick:E,onContextMenu:_,onDragLeave:A,onFocus:D,onFocusVisible:w,onKeyDown:R,onKeyUp:O,onMouseDown:k,onMouseLeave:F,onMouseUp:G,onTouchEnd:j,onTouchMove:T,onTouchStart:M,tabIndex:U=0,TouchRippleProps:B,touchRippleRef:Y,type:X,...z}=n,Z=x.useRef(null),J=Ade(),oe=Kn(J.ref,Y),[I,re]=x.useState(!1);u&&I&&re(!1),x.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),Z.current.focus()}}),[]);const ee=J.shouldMount&&!d&&!u;x.useEffect(()=>{I&&h&&!d&&J.pulsate()},[d,h,I,J]);const L=xi(J,"start",k,p),te=xi(J,"stop",_,p),be=xi(J,"stop",A,p),de=xi(J,"stop",G,p),xe=xi(J,"stop",Ge=>{I&&Ge.preventDefault(),F&&F(Ge)},p),ge=xi(J,"start",M,p),Oe=xi(J,"stop",j,p),Ue=xi(J,"stop",T,p),Ie=xi(J,"stop",Ge=>{mO(Ge.target)||re(!1),b&&b(Ge)},!1),Ye=Fr(Ge=>{Z.current||(Z.current=Ge.currentTarget),mO(Ge.target)&&(re(!0),w&&w(Ge)),D&&D(Ge)}),Ve=()=>{const Ge=Z.current;return c&&c!=="button"&&!(Ge.tagName==="A"&&Ge.href)},ke=Fr(Ge=>{h&&!Ge.repeat&&I&&Ge.key===" "&&J.stop(Ge,()=>{J.start(Ge)}),Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&Ge.preventDefault(),R&&R(Ge),Ge.target===Ge.currentTarget&&Ve()&&Ge.key==="Enter"&&!u&&(Ge.preventDefault(),E&&E(Ge))}),Rt=Fr(Ge=>{h&&Ge.key===" "&&I&&!Ge.defaultPrevented&&J.stop(Ge,()=>{J.pulsate(Ge)}),O&&O(Ge),E&&Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&!Ge.defaultPrevented&&E(Ge)});let Et=c;Et==="button"&&(z.href||z.to)&&(Et=y);const je={};Et==="button"?(je.type=X===void 0?"button":X,je.disabled=u):(!z.href&&!z.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const St=Kn(t,Z),ot={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:U,focusVisible:I},Ze=wde(ot);return P.jsxs(Dde,{as:Et,className:mt(Ze.root,s),ownerState:ot,onBlur:Ie,onClick:E,onContextMenu:te,onFocus:Ye,onKeyDown:ke,onKeyUp:Rt,onMouseDown:L,onMouseLeave:xe,onMouseUp:de,onDragLeave:be,onTouchEnd:Oe,onTouchMove:Ue,onTouchStart:ge,ref:St,tabIndex:u?-1:U,type:X,...je,...z,children:[o,ee?P.jsx(Tde,{ref:oe,center:a,...B}):null]})});function xi(e,t,n,r=!1){return Fr(a=>(n&&n(a),r||e[t](a),!0))}const kde=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${rt(a)}`],input:["input"]};return zt(o,ide,t)},Rde=ze(l0,{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}}]}),Ode=ze("input",{name:"MuiSwitchBase",shouldForwardProp:ea})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ide=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:g,name:y,onBlur:b,onChange:E,onFocus:_,readOnly:A,required:D=!1,tabIndex:w,type:R,value:O,slots:k={},slotProps:F={},...G}=e,[j,T]=ET({controlled:r,default:!!o,name:"SwitchBase",state:"checked"}),M=Gl(),U=te=>{_&&_(te),M&&M.onFocus&&M.onFocus(te)},B=te=>{b&&b(te),M&&M.onBlur&&M.onBlur(te)},Y=te=>{if(te.nativeEvent.defaultPrevented)return;const be=te.target.checked;T(be),E&&E(te,be)};let X=s;M&&typeof X>"u"&&(X=M.disabled);const z=R==="checkbox"||R==="radio",Z={...e,checked:j,disabled:X,disableFocusRipple:c,edge:u},J=kde(Z),oe={slots:k,slotProps:{input:h,...F}},[I,re]=bn("root",{ref:t,elementType:Rde,className:J.root,shouldForwardComponentProp:!0,externalForwardedProps:{...oe,component:"span",...G},getSlotProps:te=>({...te,onFocus:be=>{te.onFocus?.(be),U(be)},onBlur:be=>{te.onBlur?.(be),B(be)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:X,role:void 0,tabIndex:null}}),[ee,L]=bn("input",{ref:g,elementType:Ode,className:J.input,externalForwardedProps:oe,getSlotProps:te=>({...te,onChange:be=>{te.onChange?.(be),Y(be)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:X,id:z?p:void 0,name:y,readOnly:A,required:D,tabIndex:w,type:R,...R==="checkbox"&&O===void 0?{}:{value:O}}});return P.jsxs(I,{...re,children:[P.jsx(ee,{...L}),j?a:d]})}),Nde=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"})),Lde=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"})),Pde=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 Mde(e){return Ht("MuiCheckbox",e)}const $b=Nt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function $de(e){return typeof e.main=="string"}function Fde(e,t=[]){if(!$de(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _o(e=[]){return([,t])=>t&&Fde(t,e)}function Bde(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function AP(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{Bde(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 Ude=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${rt(r)}`,`size${rt(a)}`]},s=zt(o,Mde,t);return{...t,...s}},jde=ze(Ide,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${rt(n.size)}`],n.color!=="default"&&t[`color${rt(n.color)}`]]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{[`&.${$b.checked}, &.${$b.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${$b.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Hde=P.jsx(Lde,{}),zde=P.jsx(Nde,{}),Vde=P.jsx(Pde,{}),xP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Hde,color:a="primary",icon:o=zde,indeterminate:s=!1,indeterminateIcon:c=Vde,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...b}=n,E=s?c:o,_=s?c:r,A={...n,disableRipple:p,color:a,indeterminate:s,size:d},D=Ude(A),w=y.input??u,[R,O]=bn("root",{ref:t,elementType:jde,className:mt(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...b},ownerState:A,additionalProps:{type:"checkbox",icon:x.cloneElement(E,{fontSize:E.props.fontSize??d}),checkedIcon:x.cloneElement(_,{fontSize:_.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:AP(typeof w=="function"?w(A):w,{"data-indeterminate":s})}}});return P.jsx(R,{...O,classes:D})}),Gde=["visible"],qde=ze("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Wde=ze("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>ws(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})`:Jn(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}))`:Jn(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})`:Jn(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}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Yde=ze("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>ws(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"}}]})),Qde=ze("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});ze(mp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ws(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=Pr(e,Gde);return n?P.jsx(xP,Ne({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function As(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:Go(n,r),{props:c,internalRef:u}=_P({...o,externalSlotProps:s}),d=Kn(u,s?.ref,e.additionalProps?.ref);return CP(t,{...c,ref:d},r)}const wP=wn(P.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),DP=wn(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function Kde(e){const{slots:t,slotProps:n,status:r}=e,a=Vl(),o=Ne({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??wP,collapseIcon:a.icons.slots.collapseIcon??DP}),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=As({elementType:u,externalSlotProps:p=>Ne({},Go(s[c],p),Go(n?.[c],p)),ownerState:{}});return u?P.jsx(u,Ne({},d)):null}function Xde(e){return Ht("MuiRichTreeView",e)}Nt("MuiRichTreeView",["root"]);function Zde(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Wf(t.components[n].defaultProps,r)}function Jde(e){return Object.keys(e).length===0}function efe(e=null){const t=x.useContext(Eu);return!t||Jde(t)?e:t}const tfe=OS();function nfe(e=tfe){return efe(e)}function rfe({props:e,name:t,defaultTheme:n,themeId:r}){let a=nfe(n);return a=a[r]||a,Zde({theme:a,name:t,props:e})}function afe({props:e,name:t}){return rfe({props:e,name:t,defaultTheme:xy,themeId:wy})}function kP(e){return afe}const ofe=(e,t,n)=>{e.$$publishEvent(t,n)},Yc="__TREE_VIEW_ROOT_PARENT_ID__",ife=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},sfe=["children"],RP=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},s={[Yc]:[]},c=(d,p,h)=>{const g=r?r(d):d.id;if(g==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[g]!=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: "${g}"`].join(`
|
|
390
|
-
`));const y=n?n(d):d.label;if(y==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[g]={id:g,label:y,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},o[g]=d;const b=h??Yc;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(E=>c(E,p+1,g))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=ife(s[d])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Wp=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=x.useCallback(_=>n.items.itemMetaMap[_],[n.items.itemMetaMap]),s=x.useCallback(_=>n.items.itemMap[_],[n.items.itemMap]),c=x.useCallback(()=>{const _=A=>{const D=n.items.itemMap[A],w=Pr(D,sfe),R=n.items.itemOrderedChildrenIds[A];return R&&(w.children=R.map(_)),w};return n.items.itemOrderedChildrenIds[Yc].map(_)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=x.useCallback(_=>{if(_==null)return!1;let A=e.getItemMeta(_);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(_=>{const A=e.getItemMeta(_).parentId??Yc;return n.items.itemChildrenIndexes[A][_]},[e,n.items.itemChildrenIndexes]),p=x.useCallback(_=>n.items.itemOrderedChildrenIds[_??Yc]??[],[n.items.itemOrderedChildrenIds]),h=_=>{const A=e.getItemMeta(_);return A==null?null:document.getElementById(T_({treeId:n.id.treeId,itemId:_,id:A.idAttribute}))},g=_=>t.disabledItemsFocusable?!0:!e.isItemDisabled(_),y=x.useRef(!1),b=x.useCallback(()=>{y.current=!0},[]),E=x.useCallback(()=>y.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(_=>{const A=RP({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(_.items.itemMetaMap).forEach(D=>{A.itemMetaMap[D.id]||ofe(e,"removeItem",{id:D.id})}),Ne({},_,{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 _=A=>{const D=n.items.itemMetaMap[A];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[A]?.map(_)}};return n.items.itemOrderedChildrenIds[Yc].map(_)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:b,areItemUpdatesPrevented:E},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Wp.getInitialState=e=>({items:RP({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Wp.getDefaultizedParams=({params:e})=>Ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Wp.wrapRoot=({children:e,instance:t})=>P.jsx(S_.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Wp.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const c0=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(g=>{h.set(g,!0)}),h},[n.expandedItems.value]),a=(h,g)=>{t.onExpandedItemsChange?.(h,g),n.expandedItems.setControlledValue(g)},o=x.useCallback(h=>r.has(h),[r]),s=x.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=Fr((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=Fr((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let b;y?b=[g].concat(n.expandedItems.value):b=n.expandedItems.value.filter(E=>E!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),a(h,b)}),d=(h,g)=>{const y=e.getItemMeta(g),b=e.getItemOrderedChildrenIds(y.parentId).filter(_=>e.isItemExpandable(_)&&!e.isItemExpanded(_)),E=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(_=>{t.onItemExpansionToggle(h,_,!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}}}};c0.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const lfe=[];c0.getDefaultizedParams=({params:e})=>Ne({},e,{defaultExpandedItems:e.defaultExpandedItems??lfe});c0.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const sg=e=>Array.isArray(e)?e:e!=null?[e]:[],Fb=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},u0=({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 g=h.filter(b=>!e.isItemSelected(b)),y=n.selectedItems.value.filter(b=>!h.includes(b));g.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),y.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:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const E=sg(n.selectedItems.value),_=e.isItemSelected(h);_&&(y===!1||y==null)?b=E.filter(A=>A!==h):!_&&(y===!0||y==null)?b=[h].concat(E):b=E}else y===!1||y==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,a.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(y=y.filter(A=>!a.current[A]));const b=Fb(y),E=hce(e,h,g),_=E.filter(A=>!b[A]);y=y.concat(_),s(p,y),a.current=Fb(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=mce(e);s(p,h),a.current=Fb(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=ML(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[op(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,PL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length===0?(y.push(g),a.current={[h]:!0,[g]:!0}):(a.current[h]||(a.current={}),a.current[g]?(y=y.filter(b=>b!==h),delete a.current[h]):(y.push(g),a.current[g]=!0)),s(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};u0.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const cfe=[];u0.getDefaultizedParams=({params:e})=>Ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?cfe:null)});u0.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let ufe=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)}},dfe=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(){}},ffe=class{};function pfe(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new dfe:new ufe);const[o]=x.useState(new ffe),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 hfe={registry:null},mfe=pfe(hfe),OP=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?OP(t.shadowRoot):t:null};function Kr(e){return e&&e.ownerDocument||document}const gfe=(e,t)=>{let n=sg(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=op(e)),n},j_=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const s=gfe(e,a.selectedItems.value),c=Fr(_=>{const A=typeof _=="function"?_(n.focusedItemId):_;n.focusedItemId!==A&&r(D=>Ne({},D,{focusedItemId:A}))}),u=x.useCallback(()=>!!o.current&&o.current.contains(OP(Kr(o.current))),[o]),d=x.useCallback(_=>n.focusedItemId===_&&u(),[n.focusedItemId,u]),p=_=>{const A=e.getItemMeta(_);return A&&(A.parentId==null||e.isItemExpanded(A.parentId))},h=(_,A)=>{const D=e.getItemDOMElement(A);D&&D.focus(),c(A),t.onItemFocus&&t.onItemFocus(_,A)},g=Fr((_,A)=>{p(A)&&h(_,A)}),y=Fr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const _=e.getItemDOMElement(n.focusedItemId);_&&_.blur()}c(null)}}),b=_=>_===s;mfe(e,"removeItem",({id:_})=>{n.focusedItemId===_&&h(null,s)});const E=_=>A=>{_.onFocus?.(A),!A.defaultMuiPrevented&&A.target===A.currentTarget&&h(A,s)};return{getRootProps:_=>({onFocus:E(_)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:g,removeFocusedItem:y}}};j_.getInitialState=()=>({focusedItemId:null});j_.params={onItemFocus:!0};const yfe=x.createContext(),IP=()=>x.useContext(yfe)??!1;function vfe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const NP=({instance:e,params:t,state:n})=>{const r=IP(),a=x.useRef({}),o=Fr(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(),g=_=>{const A=ag(e,_);return A===null?op(e):A};let y=null,b=g(d);const E={};for(;y==null&&!E[b];)a.current[b]===h?y=b:(E[b]=!0,b=g(b));return y},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||ip(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&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 g==="Enter":{wl(e,io)&&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 g==="ArrowDown":{const y=ag(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=LL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=ag(e,p);y&&(e.focusItem(d,y),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(g==="ArrowLeft"&&!r||g==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(d,y),d.preventDefault())}break}case g==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,op(e)),d.preventDefault();break}case g==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,PL(e)),d.preventDefault();break}case g==="*":{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&&vfe(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};NP.params={};const LP=({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}}}});LP.params={};const bfe=[Wp,c0,u0,j_,NP,LP,io];function PP(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:s}}=Vl(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),g=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,b=w=>{if(!h){d||t.focusItem(w,e);const R=r&&(w.shiftKey||w.ctrlKey||w.metaKey);c&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},E=w=>{h||(!d&&!g&&t.focusItem(w,e),r&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},_=w=>{if(o||h)return;const R=w.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:r,shouldBeSelected:w.target.checked})},A=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||h)&&w.preventDefault()},D=()=>{wl(t,io)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:y,editing:g,disableSelection:o,checkboxSelection:a,handleExpansion:b,handleSelection:E,handleCheckboxSelection:_,handleContentClick:n,preventSelection:A,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(w,R)=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(w,e))}}}const Efe=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}`}})),Tfe=ze("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>jm(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})`:Jn(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 Sfe(e){return e.action==null?null:P.jsx(Tfe,Ne({},e))}const _fe=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],MP=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:g}=e,y=Pr(e,_fe),{disabled:b,expanded:E,selected:_,focused:A,editing:D,editable:w,disableSelection:R,checkboxSelection:O,handleExpansion:k,handleSelection:F,handleCheckboxSelection:G,handleContentClick:j,preventSelection:T,expansionTrigger:M,toggleItemEditing:U}=PP(u),B=s||o||a,Y=x.useRef(null),X=J=>{T(J),p&&p(J)},z=J=>{j?.(J,u),!Y.current?.contains(J.target)&&(M==="content"&&k(J),O||F(J),d&&d(J))},Z=J=>{J.defaultMuiPrevented||U()};return P.jsxs("div",Ne({},y,{className:mt(n.root,r,E&&n.expanded,_&&n.selected,A&&n.focused,b&&n.disabled,D&&n.editing,w&&n.editable),onClick:z,onMouseDown:X,ref:t,children:[P.jsx("div",{className:n.iconContainer,children:B}),O&&P.jsx(xP,{className:n.checkbox,checked:_,onChange:G,disabled:b||R,ref:Y,tabIndex:-1}),D?P.jsx(Efe,Ne({},g,{className:n.labelInput})):P.jsx("div",Ne({className:n.label},w&&{onDoubleClick:Z},{children:c})),h&&P.jsx(Sfe,Ne({},h))]}))});function Cfe(e){return Ht("MuiTreeItem",e)}const wi=Nt("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Afe=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],xfe=["ownerState"],wfe=["ownerState"],Dfe=["ownerState"],kfe=kP(),Rfe=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"]},Cfe,t)},Ofe=ze("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ife=ze(MP,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${wi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${wi.label}`]:t.label}],shouldForwardProp:e=>ws(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})`:Jn(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}))`:Jn(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})`:Jn(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}))`:Jn(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))`}}]})),Nfe=ze(mp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Lfe=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}=Vl(),p=x.useContext(S_),h=kfe({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:E,ContentComponent:_=MP,ContentProps:A,itemId:D,id:w,label:R,onClick:O,onMouseDown:k,onBlur:F,onKeyDown:G}=h,j=Pr(h,Afe),{expanded:T,focused:M,selected:U,disabled:B,editing:Y,handleExpansion:X,handleCancelItemLabelEditing:z,handleSaveItemLabel:Z}=PP(D),{contentRef:J,rootRef:oe,propsEnhancers:I}=r(h),re=x.useRef(null),ee=x.useRef(null),L=Kn(t,oe,re),te=Kn(A?.ref,J,ee),be={expandIcon:b?.expandIcon??n.slots.expandIcon??wP,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??DP,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(g),ge=Ne({},h,{expanded:T,focused:M,selected:U,disabled:B,indentationAtItemLevel:o}),Oe=Rfe(ge),Ue=be.groupTransition??void 0,Ie=As({elementType:Ue,ownerState:{},externalSlotProps:E?.groupTransition,additionalProps:Ne({unmountOnExit:!0,in:T,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:Oe.groupTransition}),Ye=Te=>{c==="iconContainer"&&X(Te)},Ve=T?be.collapseIcon:be.expandIcon,ke=As({elementType:Ve,ownerState:{},externalSlotProps:Te=>T?Ne({},Go(n.slotProps.collapseIcon,Te),Go(E?.collapseIcon,Te)):Ne({},Go(n.slotProps.expandIcon,Te),Go(E?.expandIcon,Te)),additionalProps:{onClick:Ye}}),Rt=Pr(ke,xfe),Et=xe&&Ve?P.jsx(Ve,Ne({},Rt)):null,je=xe?void 0:be.endIcon,St=As({elementType:je,ownerState:{},externalSlotProps:Te=>xe?{}:Ne({},Go(n.slotProps.endIcon,Te),Go(E?.endIcon,Te))}),ot=Pr(St,wfe),Ze=je?P.jsx(je,Ne({},ot)):null,Ge=be.icon,Pe=As({elementType:Ge,ownerState:{},externalSlotProps:E?.icon}),Ot=Pr(Pe,Dfe),Dn=Ge?P.jsx(Ge,Ne({},Ot)):null;let bt;U?bt=!0:s||B?bt=void 0:bt=!1;function ce(Te){!M&&(!B||a)&&Te.currentTarget===Te.target&&d.focusItem(Te,D)}function me(Te){F?.(Te),!(Y||Te.relatedTarget&&ip(Te.relatedTarget,re.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&ip(Te.target,re.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const Be=Te=>{G?.(Te),Te.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Te,D)},We=T_({itemId:D,treeId:u,id:w}),Qe=d.canItemBeTabbed(D)?0:-1,gt={rootRefObject:re,contentRefObject:ee,interactions:{handleSaveItemLabel:Z,handleCancelItemLabelEditing:z}},ln=I.root?.(Ne({},gt,{externalEventHandlers:Gr(j)}))??{},Qt=I.content?.(Ne({},gt,{externalEventHandlers:Gr(A)}))??{},qe=I.dragAndDropOverlay?.(Ne({},gt,{externalEventHandlers:{}}))??{},Ee=I.labelInput?.(Ne({},gt,{externalEventHandlers:{}}))??{};return P.jsx($_,{itemId:D,children:P.jsxs(Ofe,Ne({className:mt(Oe.root,y),role:"treeitem","aria-expanded":xe?T:void 0,"aria-selected":bt,"aria-disabled":B||void 0,id:We,tabIndex:Qe},j,{ownerState:ge,onFocus:ce,onBlur:me,onKeyDown:Be,ref:L,style:o?Ne({},j.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):j.style},ln,{children:[P.jsx(Ife,Ne({as:_,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:R,itemId:D,onClick:O,onMouseDown:k,icon:Dn,expansionIcon:Et,displayIcon:Ze,ownerState:ge},A,Qt,qe.action==null?{}:{dragAndDropOverlayProps:qe},Ee.value==null?{}:{labelInputProps:Ee},{ref:te})),g&&P.jsx(Nfe,Ne({as:Ue},Ie,{children:g}))]}))})}),Pfe=["ownerState"];function Mfe({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const s=e?.item??Lfe,c=As({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),u=Pr(c,Pfe),d=x.useMemo(()=>o?P.jsx($P,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return P.jsx(s,Ne({},u,{children:d}))}function $P(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return P.jsx(x.Fragment,{children:t.map(a=>P.jsx(Mfe,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const $fe=(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}))}}]}))},Ffe=["slots","slotProps","apiRef","experimentalFeatures"],Bfe=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,s=Pr(e.props,Ffe);const c={};o.forEach(g=>{Object.assign(c,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];c[g]?u[g]=y:d[g]=y});const p=a??{},h=o.reduce((g,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:g,experimentalFeatures:p}):g,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Ufe=({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 g=h.itemPlugin({props:a,rootRef:o,contentRef:s});g?.rootRef&&(o=g.rootRef),g?.contentRef&&(s=g.contentRef),g?.propsEnhancers&&(c.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return c.forEach(b=>{const E=b[h];E!=null&&Object.assign(y,E(g))}),y},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 jfe=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 Hfe=e=>e.isPropagationStopped!==void 0,FP=()=>{const[e]=x.useState(()=>new jfe),t=x.useCallback((...r)=>{const[a,o,s={}]=r;s.defaultMuiPrevented=!1,!(Hfe(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}}};FP.params={};const BP=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};BP.params={};const H_=({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??gce()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};H_.params={id:!0};H_.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const zfe=[FP,BP,H_];function Vfe(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Gfe=({plugins:e,rootRef:t,props:n})=>{const r=[...zfe,...e],{pluginParams:a,forwardedProps:o,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=Bfe({plugins:r,props:n}),p=$fe(r,a),h=x.useRef({}).current,g=Vfe(s),y=x.useRef(null),b=Kn(y,t),E=Ufe({plugins:r,instance:h,publicAPI:g,rootRef:y}),[_,A]=x.useState(()=>{const R={};return r.forEach(O=>{O.getInitialState&&Object.assign(R,O.getInitialState(a))}),R}),D=[],w=R=>{const O=R({instance:h,params:a,slots:u,slotProps:d,experimentalFeatures:c,state:_,setState:A,rootRef:y,models:p,plugins:r});O.getRootProps&&D.push(O.getRootProps),O.publicAPI&&Object.assign(g,O.publicAPI),O.instance&&Object.assign(h,O.instance),O.contextValue&&Object.assign(E,O.contextValue)};return r.forEach(w),{getRootProps:(R={})=>{const O=Ne({role:"tree"},o,R,{ref:b});return D.forEach(k=>{Object.assign(O,k(R))}),O},rootRef:b,contextValue:E,instance:h}};function qfe(e){const{value:t,children:n}=e;return P.jsx($L.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Wfe=kP(),Yfe=e=>{const{classes:t}=e;return zt({root:["root"]},Xde,t)},Qfe=ze("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Kfe=x.forwardRef(function(e,t){const n=Wfe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Gfe({plugins:bfe,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=Yfe(n),d=s?.root??Qfe,p=As({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return P.jsx(qfe,{value:a,children:P.jsx(d,Ne({},p,{children:P.jsx($P,{slots:s,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function I0e({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return P.jsx(Kfe,{items:tpe(e,n),defaultExpandedItems:t,slots:{item:epe}})}const Xfe=Vue(mp);function Zfe(e){const t=Rue({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return P.jsx(Xfe,{style:t,...e})}function Jfe({item:e,...t}){const n=P.jsxs(Yde,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&P.jsx(Tce,{})||e.fileType==="notebook"&&P.jsx(Sce,{})||e.fileType==="model"&&P.jsx(que,{})||e.fileType=="database"&&P.jsx(Gue,{})||P.jsx(_ce,{}),P.jsx(hS,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?P.jsx(ez,{title:e.error,placement:"right",children:n}):n}const epe=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:g,status:y,publicAPI:b}=Ece({id:n,itemId:r,children:o,label:a,disabled:s,rootRef:t}),E=b.getItem(r);return y.selected=!1,y.focused=!1,P.jsx($_,{itemId:r,children:P.jsxs(qde,{...u(c),children:[P.jsxs(Wde,{...d(),...E.link&&{onClick:_=>E.link(_)},sx:{pointerEvents:!E.selectable&&"none"},children:[P.jsx(Qde,{...h(),children:P.jsx(Kde,{status:y})}),P.jsx(Jfe,{...p({item:E})})]}),o&&P.jsx(Zfe,{...g()})]})})});function tpe(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))})}),UP(n,"",t)}function UP(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:UP(a,t,n)})}),r}const z_=new AG({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});function npe(e){const{server:t}=WS(),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 HG(n,z_)}function rpe(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 zG(t,z_)}function ape({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a,resourceUri:o}){return Tt.useEffect(()=>{a&&a(t)},[t,a]),P.jsx(U3,{children:P.jsxs(EB,{spacing:2,component:"section",children:[P.jsx(ipe,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:o}),P.jsx(kF,{height:"5px"})]})})}function Bb(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function ope({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a,resourceUri:o}){const[s,c]=Tt.useState(n||Bb());Tt.useEffect(()=>{n&&c(n)},[n]);const[u,d]=Tt.useState([]),{MalloyExplorerProvider:p,QueryPanel:h,ResizableCollapsiblePanel:g,ResultPanel:y,SourcePanel:b}=r;Tt.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:E,packageName:_,versionId:A}=Dy(o),{apiClients:D}=WS(),w=rpe({mutationFn:()=>{const F=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return c({...s,query:F}),D.queryResults.executeQuery(E,_,e.modelPath,F,void 0,void 0,A)},onSuccess:F=>{if(F){const G=JSON.parse(F.data.result);c({...s,malloyResult:G})}}}),[R,O]=Tt.useState(e.sourceInfo.name);Tt.useEffect(()=>{R!==e.sourceInfo.name&&(O(e.sourceInfo.name),c(Bb()))},[e,R]);const k=Tt.useCallback(F=>{c({...s,malloyQuery:F,malloyResult:void 0})},[s]);return R!==e.sourceInfo.name?P.jsx("div",{children:"Loading..."}):P.jsx(j3,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:P.jsx(p,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:k,focusedNestViewPath:u,onFocusedNestViewPathChange:d,onDrill:F=>{console.info(F)},children:P.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[P.jsx(g,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:P.jsx(b,{onRefresh:()=>c(Bb())})}),P.jsx(g,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:P.jsx(h,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{w.mutate()}catch(F){console.error("Error running query:",F)}}})}),P.jsx(y,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:F=>c({...s,malloyQuery:F}),submittedQuery:s?.malloyQuery?{executionState:w.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:w.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function ipe(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([V(()=>import("./index-CUx2TJnu.js"),__vite__mapDeps([93,94,95])),V(()=>import("./index-B4eYfbqj.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(j3,{children:P.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):P.jsx(ope,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function spe(e,t=!0){const{modelPath:n,projectName:r,packageName:a,versionId:o}=Dy(e),{apiClients:s}=WS();return npe({queryKey:["package",r,a,n,o],queryFn:async()=>(await s.models.getModel(r,a,n,o)).data,enabled:t})}const lpe=ze(Sl)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),cpe=ze(kH)(({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 N0e({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:g}=Dy(o),y=e||u;return p&&!e?P.jsx(bE,{text:"Fetching Model..."}):d&&!e?(console.log("error",h),P.jsx(tz,{error:h,context:`ModelExplorer > ${g}`})):y?P.jsxs(sG,{variant:"outlined",children:[P.jsx(lG,{children:P.jsx(aD,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(lpe,{children:y.sourceInfos.map((b,E)=>{let _;try{_=JSON.parse(b)}catch{_={name:String(E)}}return P.jsx(cpe,{selected:s===E,onClick:()=>{c(E),a&&a(E)},children:_.name||`Source ${E+1}`},_.name||E)})})})}),P.jsx(U3,{children:P.jsxs(aD,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(ape,{sourceAndPaths:y.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:g})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:o}),P.jsx(Sl,{height:"5px"})]})})]}):P.jsx(bE,{text:"Loading..."})}const L0e=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"})),P0e=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"})),M0e=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"})),$0e=wn(P.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),F0e=wn(P.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),B0e=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"})),U0e=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"})),j0e=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"})),H0e=sS({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Yt({props:e,name:"MuiStack"})}),gO="Local";let upe=class{async listWorkspaces(t){return Promise.resolve([{name:gO,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:gO})}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 dpe(e){return Ht("MuiButton",e)}const rl=Nt("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"]),fpe=x.createContext({}),ppe=x.createContext(void 0);let yO=0;function hpe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(yO+=1,n(`mui-${yO}`))},[t]),r}const mpe={...lg},vO=mpe.useId;function Yp(e){if(vO!==void 0){const t=vO();return e??t}return hpe(e)}function gpe(e){return Ht("MuiCircularProgress",e)}Nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ms=44,_T=ti`
|
|
392
|
-
0% {
|
|
393
|
-
transform: rotate(0deg);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
100% {
|
|
397
|
-
transform: rotate(360deg);
|
|
398
|
-
}
|
|
399
|
-
`,CT=ti`
|
|
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
|
-
`,ype=typeof _T!="string"?Sp`
|
|
415
|
-
animation: ${_T} 1.4s linear infinite;
|
|
416
|
-
`:null,vpe=typeof CT!="string"?Sp`
|
|
417
|
-
animation: ${CT} 1.4s ease-in-out infinite;
|
|
418
|
-
`:null,bpe=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,o={root:["root",n,`color${rt(r)}`],svg:["svg"],circle:["circle",`circle${rt(n)}`,a&&"circleDisableShrink"]};return zt(o,gpe,t)},Epe=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${rt(n.color)}`]]}})(fn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ype||{animation:`${_T} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Tpe=ze("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Spe=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${rt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fn(({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:vpe||{animation:`${CT} 1.4s ease-in-out infinite`}}]}))),jP=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,g={...n,color:a,disableShrink:o,size:s,thickness:u,value:d,variant:p},y=bpe(g),b={},E={},_={};if(p==="determinate"){const A=2*Math.PI*((ms-u)/2);b.strokeDasharray=A.toFixed(3),_["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*A).toFixed(3)}px`,E.transform="rotate(-90deg)"}return P.jsx(Epe,{className:mt(y.root,r),style:{width:s,height:s,...E,...c},ownerState:g,ref:t,role:"progressbar",..._,...h,children:P.jsx(Tpe,{className:y.svg,ownerState:g,viewBox:`${ms/2} ${ms/2} ${ms} ${ms}`,children:P.jsx(Spe,{className:y.circle,style:b,ownerState:g,cx:ms,cy:ms,r:(ms-u)/2,fill:"none",strokeWidth:u})})})}),_pe=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}${rt(t)}`,`size${rt(a)}`,`${o}Size${rt(a)}`,`color${rt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${rt(c)}`],startIcon:["icon","startIcon",`iconSize${rt(a)}`],endIcon:["icon","endIcon",`iconSize${rt(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=zt(d,dpe,u);return{...u,...p}},HP=[{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}}}],Cpe=ze(l0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rt(n.color)}`],t[`size${rt(n.size)}`],t[`${n.variant}Size${rt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fn(({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"},[`&.${rl.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]},[`&.${rl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${rl.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)",[`&.${rl.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(_o()).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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Nr(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.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[r].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.text.primary,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"},[`&.${rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rl.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}),[`&.${rl.loading}`]:{color:"transparent"}}}]}})),Ape=ze("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${rt(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}},...HP]})),xpe=ze("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${rt(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}},...HP]})),wpe=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}}]})),bO=ze("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),V0e=x.forwardRef(function(e,t){const n=x.useContext(fpe),r=x.useContext(ppe),a=Wf(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:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:E=!1,id:_,loading:A=null,loadingIndicator:D,loadingPosition:w="center",size:R="medium",startIcon:O,type:k,variant:F="text",...G}=o,j=Yp(_),T=D??P.jsx(jP,{"aria-labelledby":j,color:"inherit",size:16}),M={...o,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:g,fullWidth:E,loading:A,loadingIndicator:T,loadingPosition:w,size:R,type:k,variant:F},U=_pe(M),B=(O||A&&w==="start")&&P.jsx(Ape,{className:U.startIcon,ownerState:M,children:O||P.jsx(bO,{className:U.loadingIconPlaceholder,ownerState:M})}),Y=(y||A&&w==="end")&&P.jsx(xpe,{className:U.endIcon,ownerState:M,children:y||P.jsx(bO,{className:U.loadingIconPlaceholder,ownerState:M})}),X=r||"",z=typeof A=="boolean"?P.jsx("span",{className:U.loadingWrapper,style:{display:"contents"},children:A&&P.jsx(wpe,{className:U.loadingIndicator,ownerState:M,children:T})}):null;return P.jsxs(Cpe,{ownerState:M,className:mt(n.className,U.root,d,X),component:u,disabled:p||A,focusRipple:!g,focusVisibleClassName:mt(U.focusVisible,b),ref:t,type:k,id:A?j:_,...G,classes:U,children:[B,w!=="end"&&z,s,w==="end"&&z,Y]})});function Dpe(e){return Ht("MuiDialog",e)}const Ub=Nt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zP=x.createContext({});function kpe(e){return Ht("MuiPaper",e)}Nt("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 Rpe=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return zt(o,kpe,a)},Ope=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}`]]}})(fn(({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)"}}]}))),d0=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPaper"}),r=Lu(),{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=Rpe(p);return P.jsx(Ope,{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(${Nr("#fff",yE(s))}, ${Nr("#fff",yE(s))})`}},...d.style}})});function Pu(e){return parseInt(x.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Ipe={entering:{opacity:1},entered:{opacity:1}},AT=x.forwardRef(function(e,t){const n=Lu(),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:g,onExited:y,onExiting:b,style:E,timeout:_=r,TransitionComponent:A=wo,...D}=e,w=x.useRef(null),R=Kn(w,Pu(s),t),O=U=>B=>{if(U){const Y=w.current;B===void 0?U(Y):U(Y,B)}},k=O(h),F=O((U,B)=>{bP(U);const Y=yu({style:E,timeout:_,easing:c},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",Y),U.style.transition=n.transitions.create("opacity",Y),d&&d(U,B)}),G=O(p),j=O(b),T=O(U=>{const B=yu({style:E,timeout:_,easing:c},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",B),U.style.transition=n.transitions.create("opacity",B),g&&g(U)}),M=O(y);return P.jsx(A,{appear:o,in:u,nodeRef:w,onEnter:F,onEntered:G,onEntering:k,onExit:T,onExited:M,onExiting:j,addEndListener:U=>{a&&a(w.current,U)},timeout:_,...D,children:(U,{ownerState:B,...Y})=>x.cloneElement(s,{style:{opacity:0,visibility:U==="exited"&&!u?"hidden":void 0,...Ipe[U],...E,...s.props.style},ref:R,...Y})})});function VP(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function $i(e){return Kr(e).defaultView||window}function Npe(e){const t=Kr(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Lf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function EO(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function Lpe(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 TO(e,t,n,r,a){const o=[t,n,...r];[].forEach.call(e.children,s=>{const c=!o.includes(s),u=!Lpe(s);c&&u&&Lf(s,a)})}function jb(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function Ppe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Npe(r)){const o=VP($i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${EO(r)+o}px`;const s=Kr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${EO(c)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Kr(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 Mpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}let $pe=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&&Lf(t.modalRef,!1);const a=Mpe(n);TO(n,t.mount,t.modalRef,a,!0);const o=jb(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=jb(this.containers,o=>o.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=Ppe(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=jb(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&&Lf(t.modalRef,n),TO(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&&Lf(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};function SO(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Fpe(e){return typeof e=="function"?e():e}function Bpe(e){return e?e.props.hasOwnProperty("in"):!1}const _O=()=>{},Om=new $pe;function Upe(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({}),g=x.useRef(null),y=x.useRef(null),b=Kn(y,p),[E,_]=x.useState(!d),A=Bpe(c);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const w=()=>Kr(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),O=()=>{Om.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Fr(()=>{const U=Fpe(t)||w().body;Om.add(R(),U),y.current&&O()}),F=()=>Om.isTopModal(R()),G=Fr(U=>{g.current=U,U&&(d&&F()?O():y.current&&Lf(y.current,D))}),j=x.useCallback(()=>{Om.remove(R(),D)},[D]);x.useEffect(()=>()=>{j()},[j]),x.useEffect(()=>{d?k():(!A||!a)&&j()},[d,j,A,a,k]);const T=U=>B=>{U.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!F())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},M=U=>B=>{U.onClick?.(B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(U={})=>{const B=Gr(e);delete B.onTransitionEnter,delete B.onTransitionExited;const Y={...B,...U};return{role:"presentation",...Y,onKeyDown:T(Y),ref:b}},getBackdropProps:(U={})=>{const B=U;return{"aria-hidden":!0,...B,onClick:M(B),open:d}},getTransitionProps:()=>{const U=()=>{_(!1),o&&o()},B=()=>{_(!0),s&&s(),a&&j()};return{onEnter:SO(U,c?.props.onEnter??_O),onExited:SO(B,c?.props.onExited??_O)}},rootRef:b,portalRef:G,isTopModal:F,exited:E,hasTransition:A}}function jpe(e){return Ht("MuiModal",e)}Nt("MuiModal",["root","hidden","backdrop"]);function CO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Hpe(e){return typeof e=="function"?e():e}const zpe=x.forwardRef(function(e,t){const{children:n,container:r,disablePortal:a=!1}=e,[o,s]=x.useState(null),c=Kn(x.isValidElement(n)?Pu(n):null,t);if(Ls(()=>{a||s(Hpe(r)||document.body)},[r,a]),Ls(()=>{if(o&&!a)return CO(t,o),()=>{CO(t,null)}},[t,o,a]),a){if(x.isValidElement(n)){const u={ref:c};return x.cloneElement(n,u)}return n}return o&&bp.createPortal(n,o)}),Vpe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Gpe(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 qpe(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 Wpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||qpe(e))}function Ype(e){const t=[],n=[];return Array.from(e.querySelectorAll(Vpe)).forEach((r,a)=>{const o=Gpe(r);o===-1||!Wpe(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 Qpe(){return!0}function Kpe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:o=Ype,isEnabled:s=Qpe,open:c}=e,u=x.useRef(!1),d=x.useRef(null),p=x.useRef(null),h=x.useRef(null),g=x.useRef(null),y=x.useRef(!1),b=x.useRef(null),E=Kn(Pu(t),b),_=x.useRef(null);x.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),x.useEffect(()=>{if(!c||!b.current)return;const w=Kr(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.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 w=Kr(b.current),R=F=>{_.current=F,!(r||!s()||F.key!=="Tab")&&w.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},O=()=>{const F=b.current;if(F===null)return;if(!w.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(w.activeElement)||r&&w.activeElement!==d.current&&w.activeElement!==p.current)return;if(w.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let G=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(G=o(b.current)),G.length>0){const j=!!(_.current?.shiftKey&&_.current?.key==="Tab"),T=G[0],M=G[G.length-1];typeof T!="string"&&typeof M!="string"&&(j?M.focus():T.focus())}else F.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",R,!0);const k=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",O),w.removeEventListener("keydown",R,!0)}},[n,r,a,s,c,o]);const A=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,g.current=w.target;const R=t.props.onFocus;R&&R(w)},D=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return P.jsxs(x.Fragment,{children:[P.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:E,onFocus:A}),P.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function Xpe(e){return Ht("MuiBackdrop",e)}Nt("MuiBackdrop",["root","invisible"]);const Zpe=e=>{const{classes:t,invisible:n}=e;return zt({root:["root",n&&"invisible"]},Xpe,t)},Jpe=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"}}]}),GP=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:g,transitionDuration:y,...b}=n,E={...n,component:o,invisible:s},_=Zpe(E),A={transition:g,root:u.Root,...h},D={...d,...p},w={component:o,slots:A,slotProps:D},[R,O]=bn("root",{elementType:Jpe,externalForwardedProps:w,className:mt(_.root,a),ownerState:E}),[k,F]=bn("transition",{elementType:AT,externalForwardedProps:w,ownerState:E});return P.jsx(k,{in:c,timeout:y,...b,...F,children:P.jsx(R,{"aria-hidden":!0,...O,classes:_,ref:t,children:r})})}),ehe=e=>{const{open:t,exited:n,classes:r}=e;return zt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jpe,r)},the=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fn(({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"}}]}))),nhe=ze(GP,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),qP=x.forwardRef(function(e,t){const n=Yt({name:"MuiModal",props:e}),{BackdropComponent:r=nhe,BackdropProps:a,classes:o,className:s,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:E=!1,disablePortal:_=!1,disableRestoreFocus:A=!1,disableScrollLock:D=!1,hideBackdrop:w=!1,keepMounted:R=!1,onClose:O,onTransitionEnter:k,onTransitionExited:F,open:G,slotProps:j={},slots:T={},theme:M,...U}=n,B={...n,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:E,disablePortal:_,disableRestoreFocus:A,disableScrollLock:D,hideBackdrop:w,keepMounted:R},{getRootProps:Y,getBackdropProps:X,getTransitionProps:z,portalRef:Z,isTopModal:J,exited:oe,hasTransition:I}=Upe({...B,rootRef:t}),re={...B,exited:oe},ee=ehe(re),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),I){const{onEnter:Oe,onExited:Ue}=z();L.onEnter=Oe,L.onExited=Ue}const te={slots:{root:h.Root,backdrop:h.Backdrop,...T},slotProps:{...g,...j}},[be,de]=bn("root",{ref:t,elementType:the,externalForwardedProps:{...te,...U,component:p},getSlotProps:Y,ownerState:re,className:mt(s,ee?.root,!re.open&&re.exited&&ee?.hidden)}),[xe,ge]=bn("backdrop",{ref:a?.ref,elementType:r,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Oe=>X({...Oe,onClick:Ue=>{Oe?.onClick&&Oe.onClick(Ue)}}),className:mt(a?.className,ee?.backdrop),ownerState:re});return!R&&!G&&(!I||oe)?null:P.jsx(zpe,{ref:Z,container:d,disablePortal:_,children:P.jsxs(be,{...de,children:[!w&&r?P.jsx(xe,{...ge}):null,P.jsx(Kpe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:A,isEnabled:J,open:G,children:x.cloneElement(u,L)})]})})}),rhe=ze(GP,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ahe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${rt(n)}`],paper:["paper",`paperScroll${rt(n)}`,`paperWidth${rt(String(r))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return zt(s,Dpe,t)},ohe=ze(qP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),ihe=ze("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${rt(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(d0,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${rt(n.scroll)}`],t[`paperWidth${rt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fn(({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)`,[`&.${Ub.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}`,[`&.${Ub.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,[`&.${Ub.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),q0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialog"}),r=Lu(),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:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:E="sm",onClick:_,onClose:A,open:D,PaperComponent:w=d0,PaperProps:R={},scroll:O="paper",slots:k={},slotProps:F={},TransitionComponent:G=AT,transitionDuration:j=a,TransitionProps:T,...M}=n,U={...n,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:E,scroll:O},B=ahe(U),Y=x.useRef(),X=Ye=>{Y.current=Ye.target===Ye.currentTarget},z=Ye=>{_&&_(Ye),Y.current&&(Y.current=null,A&&A(Ye,"backdropClick"))},Z=Yp(s),J=x.useMemo(()=>({titleId:Z}),[Z]),oe={transition:G,...k},I={transition:T,paper:R,backdrop:d,...F},re={slots:oe,slotProps:I},[ee,L]=bn("root",{elementType:ohe,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U,className:mt(B.root,h),ref:t}),[te,be]=bn("backdrop",{elementType:rhe,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U}),[de,xe]=bn("paper",{elementType:she,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U,className:mt(B.paper,R.className)}),[ge,Oe]=bn("container",{elementType:ihe,externalForwardedProps:re,ownerState:U,className:B.container}),[Ue,Ie]=bn("transition",{elementType:AT,externalForwardedProps:re,ownerState:U,additionalProps:{appear:!0,in:D,timeout:j,role:"presentation"}});return P.jsx(ee,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:j,as:u,...be}},disableEscapeKeyDown:g,onClose:A,open:D,onClick:z,...L,...M,children:P.jsx(Ue,{...Ie,children:P.jsx(ge,{onMouseDown:X,...Oe,children:P.jsx(de,{as:w,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Z,"aria-modal":c,...xe,children:P.jsx(zP.Provider,{value:J,children:p})})})})})});function lhe(e){return Ht("MuiDialogTitle",e)}const che=Nt("MuiDialogTitle",["root"]),uhe=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Rp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function dhe(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=uhe(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const c=t(...s);return Wo(c)?{...r,...c}:r}:o={...r,...t},{...a,sx:o}}function fhe(e){return P.jsx(ZT,{...e,defaultTheme:xy,themeId:wy})}function phe(e){return function(t){return P.jsx(fhe,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function hhe(){return dhe}function mhe(e){return Ht("MuiTypography",e)}Nt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ghe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},yhe=hhe(),vhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=e,c={root:["root",o,e.align!=="inherit"&&`align${rt(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return zt(c,mhe,s)},bhe=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${rt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fn(({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(_o()).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${rt(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}}]}))),AO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},WP=x.forwardRef(function(e,t){const{color:n,...r}=Yt({props:e,name:"MuiTypography"}),a=!ghe[n],o=yhe({...r,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=AO,...b}=o,E={...o,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y},_=u||(h?"p":y[g]||AO[g])||"span",A=vhe(E);return P.jsx(bhe,{as:_,ref:t,className:mt(A.root,c),...b,ownerState:E,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})}),Ehe=e=>{const{classes:t}=e;return zt({root:["root"]},lhe,t)},The=ze(WP,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),W0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogTitle"}),{className:r,id:a,...o}=n,s=n,c=Ehe(s),{titleId:u=a}=x.useContext(zP);return P.jsx(The,{component:"h2",className:mt(c.root,r),ownerState:s,ref:t,variant:"h6",id:a??u,...o})});function She(e){return Ht("MuiDialogContent",e)}Nt("MuiDialogContent",["root","dividers"]);const _he=e=>{const{classes:t,dividers:n}=e;return zt({root:["root",n&&"dividers"]},She,t)},Che=ze("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fn(({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}}}]}))),Y0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...o}=n,s={...n,dividers:a},c=_he(s);return P.jsx(Che,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function Ahe(e){return Ht("MuiDialogContentText",e)}Nt("MuiDialogContentText",["root"]);const xhe=e=>{const{classes:t}=e,n=zt({root:["root"]},Ahe,t);return{...t,...n}},whe=ze(WP,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Q0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContentText"}),{children:r,className:a,...o}=n,s=xhe(o);return P.jsx(whe,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:o,className:mt(s.root,a),...n,classes:s})});function Dhe(e){return Ht("MuiTextField",e)}Nt("MuiTextField",["root"]);var xO;const khe=ze("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ea})({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%"}),Rhe=ze("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ea})(fn(({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 Ohe(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(khe,{"aria-hidden":!0,className:r,ownerState:u,...s,children:P.jsx(Rhe,{ownerState:u,children:c?P.jsx("span",{children:a}):xO||(xO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function Mu({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 Ihe(e){return Ht("MuiInputBase",e)}const vu=Nt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Nhe(e){return Ht("MuiOutlinedInput",e)}const $o={...vu,...Nt("MuiOutlinedInput",["root","notchedOutline","input"])};function xT(e){return typeof e=="string"}function wO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(wO(e.value)&&e.value!==""||t&&wO(e.defaultValue)&&e.defaultValue!=="")}function Lhe(e){return e.startAdornment}function YP(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 Im(e){return parseInt(e,10)||0}const Phe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Mhe(e){for(const t in e)return!1;return!0}function DO(e){return Mhe(e)||e.outerHeightStyle===0&&!e.overflowing}const $he=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),g=x.useRef(null),y=x.useCallback(()=>{const D=d.current,w=g.current;if(!D||!w)return;const R=$i(D).getComputedStyle(D);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=R.width,w.value=D.value||e.placeholder||"x",w.value.slice(-1)===`
|
|
419
|
-
`&&(w.value+=" ");const O=R.boxSizing,k=Im(R.paddingBottom)+Im(R.paddingTop),F=Im(R.borderBottomWidth)+Im(R.borderTopWidth),G=w.scrollHeight;w.value="x";const j=w.scrollHeight;let T=G;a&&(T=Math.max(Number(a)*j,T)),r&&(T=Math.min(Number(r)*j,T)),T=Math.max(T,j);const M=T+(O==="border-box"?k+F:0),U=Math.abs(T-G)<=1;return{outerHeightStyle:M,overflowing:U}},[r,a,e.placeholder]),b=Fr(()=>{const D=d.current,w=y();if(!D||!w||DO(w))return!1;const R=w.outerHeightStyle;return h.current!=null&&h.current!==R}),E=x.useCallback(()=>{const D=d.current,w=y();if(!D||!w||DO(w))return;const R=w.outerHeightStyle;h.current!==R&&(h.current=R,D.style.height=`${R}px`),D.style.overflow=w.overflowing?"hidden":""},[y]),_=x.useRef(-1);Ls(()=>{const D=YP(E),w=d?.current;if(!w)return;const R=$i(w);R.addEventListener("resize",D);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{b()&&(O.unobserve(w),cancelAnimationFrame(_.current),E(),_.current=requestAnimationFrame(()=>{O.observe(w)}))}),O.observe(w)),()=>{D.clear(),cancelAnimationFrame(_.current),R.removeEventListener("resize",D),O&&O.disconnect()}},[y,E,b]),Ls(()=>{E()});const A=D=>{u||E();const w=D.target,R=w.value.length,O=w.value.endsWith(`
|
|
420
|
-
`),k=w.selectionStart===R;O&&k&&w.setSelectionRange(R,R),n&&n(D)};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:g,tabIndex:-1,style:{...Phe.shadow,...o,paddingTop:0,paddingBottom:0}})]})});var kO;const f0=(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${rt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},p0=(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]},Fhe=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:g,startAdornment:y,type:b}=e,E={root:["root",`color${rt(n)}`,r&&"disabled",a&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",g&&g!=="medium"&&`size${rt(g)}`,p&&"multiline",y&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return zt(E,Ihe,t)},h0=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:f0})(fn(({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",[`&.${vu.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%"}}]}))),m0=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:p0})(fn(({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] + .${vu.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},[`&.${vu.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"}}]}})),RO=phe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),V_=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:g,endAdornment:y,error:b,fullWidth:E=!1,id:_,inputComponent:A="input",inputProps:D={},inputRef:w,margin:R,maxRows:O,minRows:k,multiline:F=!1,name:G,onBlur:j,onChange:T,onClick:M,onFocus:U,onKeyDown:B,onKeyUp:Y,placeholder:X,readOnly:z,renderSuffix:Z,rows:J,size:oe,slotProps:I={},slots:re={},startAdornment:ee,type:L="text",value:te,...be}=n,de=D.value!=null?D.value:te,{current:xe}=x.useRef(de!=null),ge=x.useRef(),Oe=x.useCallback(Qe=>{},[]),Ue=Kn(ge,w,D.ref,Oe),[Ie,Ye]=x.useState(!1),Ve=Gl(),ke=Mu({props:n,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=Ve?Ve.focused:Ie,x.useEffect(()=>{!Ve&&h&&Ie&&(Ye(!1),j&&j())},[Ve,h,Ie,j]);const Rt=Ve&&Ve.onFilled,Et=Ve&&Ve.onEmpty,je=x.useCallback(Qe=>{Xg(Qe)?Rt&&Rt():Et&&Et()},[Rt,Et]);Ls(()=>{xe&&je({value:de})},[de,je,xe]);const St=Qe=>{U&&U(Qe),D.onFocus&&D.onFocus(Qe),Ve&&Ve.onFocus?Ve.onFocus(Qe):Ye(!0)},ot=Qe=>{j&&j(Qe),D.onBlur&&D.onBlur(Qe),Ve&&Ve.onBlur?Ve.onBlur(Qe):Ye(!1)},Ze=(Qe,...gt)=>{if(!xe){const ln=Qe.target||ge.current;if(ln==null)throw new Error(Pi(1));je({value:ln.value})}D.onChange&&D.onChange(Qe,...gt),T&&T(Qe,...gt)};x.useEffect(()=>{je(ge.current)},[]);const Ge=Qe=>{ge.current&&Qe.currentTarget===Qe.target&&ge.current.focus(),M&&M(Qe)};let Pe=A,Ot=D;F&&Pe==="input"&&(J?Ot={type:void 0,minRows:J,maxRows:J,...Ot}:Ot={type:void 0,maxRows:O,minRows:k,...Ot},Pe=$he);const Dn=Qe=>{je(Qe.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};x.useEffect(()=>{Ve&&Ve.setAdornedStart(!!ee)},[Ve,ee]);const bt={...n,color:ke.color||"primary",disabled:ke.disabled,endAdornment:y,error:ke.error,focused:ke.focused,formControl:Ve,fullWidth:E,hiddenLabel:ke.hiddenLabel,multiline:F,size:ke.size,startAdornment:ee,type:L},ce=Fhe(bt),me=re.root||u.Root||h0,Be=I.root||d.root||{},We=re.input||u.Input||m0;return Ot={...Ot,...I.input??d.input},P.jsxs(x.Fragment,{children:[!g&&typeof RO=="function"&&(kO||(kO=P.jsx(RO,{}))),P.jsxs(me,{...Be,ref:t,onClick:Ge,...be,...!xT(me)&&{ownerState:{...bt,...Be.ownerState}},className:mt(ce.root,Be.className,s,z&&"MuiInputBase-readOnly"),children:[ee,P.jsx(F_.Provider,{value:null,children:P.jsx(We,{"aria-invalid":ke.error,"aria-describedby":r,autoComplete:a,autoFocus:o,defaultValue:p,disabled:ke.disabled,id:_,onAnimationStart:Dn,name:G,placeholder:X,readOnly:z,required:ke.required,rows:J,value:de,onKeyDown:B,onKeyUp:Y,type:L,...Ot,...!xT(We)&&{as:Pe,ownerState:{...bt,...Ot.ownerState}},ref:Ue,className:mt(ce.input,Ot.className,z&&"MuiInputBase-readOnly"),onBlur:ot,onChange:Ze,onFocus:St})}),y,Z?Z({...ke,startAdornment:ee}):null]})]})}),Bhe=e=>{const{classes:t}=e,n=zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nhe,t);return{...t,...n}},Uhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:f0})(fn(({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 .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$o.focused} .${$o.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n},style:{[`&.${$o.focused} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$o.error} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$o.disabled} .${$o.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"}}]}})),jhe=ze(Ohe,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Hhe=ze(m0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:p0})(fn(({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}}]}))),G_=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",...g}=n,y=Bhe(n),b=Gl(),E=Mu({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...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??Uhe,D=d.input??r.Input??Hhe,[w,R]=bn("notchedOutline",{elementType:jhe,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:_,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&E.required?P.jsxs(x.Fragment,{children:[s," ","*"]}):s}});return P.jsx(V_,{slots:{root:A,input:D},slotProps:p,renderSuffix:O=>P.jsx(w,{...R,notched:typeof u<"u"?u:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:o,multiline:c,ref:t,type:h,...g,classes:{...y,notchedOutline:null}})});G_.muiName="Input";function zhe(e){return Ht("MuiFilledInput",e)}const al={...vu,...Nt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Vhe=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${rt(o)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=zt(u,zhe,t);return{...t,...d}},Ghe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({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}},[`&.${al.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${al.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"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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(.${al.disabled}, .${al.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).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}}]}})),qhe=ze(m0,{name:"MuiFilledInput",slot:"Input",overridesResolver:p0})(fn(({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}}]}))),q_=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:g="text",...y}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:d,type:g},E=Vhe(n),_={root:{ownerState:b},input:{ownerState:b}},A=p??o?$r(_,p??o):_,D=h.root??a.Root??Ghe,w=h.input??a.Input??qhe;return P.jsx(V_,{slots:{root:D,input:w},slotProps:A,fullWidth:s,inputComponent:u,multiline:d,ref:t,type:g,...y,classes:E})});q_.muiName="Input";function Whe(e){return Ht("MuiInput",e)}const ef={...vu,...Nt("MuiInput",["root","underline","input"])},Yhe=e=>{const{classes:t,disableUnderline:n}=e,r=zt({root:["root",!n&&"underline"],input:["input"]},Whe,t);return{...t,...r}},Qhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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"},[`&.${ef.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ef.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(.${ef.disabled}, .${ef.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${ef.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Khe=ze(m0,{name:"MuiInput",slot:"Input",overridesResolver:p0})({}),W_=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",...g}=n,y=Yhe(n),b={root:{ownerState:{disableUnderline:r}}},E=d??o?$r(d??o,b):b,_=p.root??a.Root??Qhe,A=p.input??a.Input??Khe;return P.jsx(V_,{slots:{root:_,input:A},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:t,type:h,...g,classes:y})});W_.muiName="Input";function Xhe(e){return Ht("MuiInputLabel",e)}Nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function Zhe(e){return Ht("MuiFormLabel",e)}const Pf=Nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jhe=e=>{const{classes:t,color:n,focused:r,disabled:a,error:o,filled:s,required:c}=e,u={root:["root",`color${rt(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",o&&"error"]};return zt(u,Zhe,t)},eme=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]}})(fn(({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(_o()).map(([t])=>({props:{color:t},style:{[`&.${Pf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),tme=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}))),nme=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,...g}=n,y=Gl(),b=Mu({props:n,muiFormControl:y,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},_=Jhe(E);return P.jsxs(eme,{as:s,ownerState:E,className:mt(_.root,a),ref:t,...g,children:[r,b.required&&P.jsxs(tme,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),rme=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${rt(r)}`,s],asterisk:[c&&"asterisk"]},d=zt(u,Xhe,t);return{...t,...d}},ame=ze(nme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.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]]}})(fn(({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)"}}]}))),ome=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=Gl();let p=o;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Mu({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),g={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=rme(g);return P.jsx(ame,{"data-shrink":p,ref:t,className:mt(y.root,c),...u,ownerState:g,classes:y})});function ime(e){return Ht("MuiFormHelperText",e)}const OO=Nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var IO;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${rt(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return zt(d,ime,t)},lme=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${rt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OO.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:g,...y}=n,b=Gl(),E=Mu({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),_={...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 _.ownerState;const A=sme(_);return P.jsx(lme,{as:o,className:mt(A.root,a),ref:t,...y,ownerState:_,children:r===" "?IO||(IO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function ume(e){return Ht("MuiMenu",e)}Nt("MuiMenu",["root","paper","list"]);function dme(e){return Ht("MuiPopover",e)}Nt("MuiPopover",["root","paper"]);function wT(e){return`scale(${e}, ${e**2})`}const fme={entering:{opacity:1,transform:wT(1)},entered:{opacity:1,transform:"none"}},Hb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zg=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:g,style:y,timeout:b="auto",TransitionComponent:E=wo,..._}=e,A=s0(),D=x.useRef(),w=Lu(),R=x.useRef(null),O=Kn(R,Pu(a),t),k=B=>Y=>{if(B){const X=R.current;Y===void 0?B(X):B(X,Y)}},F=k(d),G=k((B,Y)=>{bP(B);const{duration:X,delay:z,easing:Z}=yu({style:y,timeout:b,easing:o},{mode:"enter"});let J;b==="auto"?(J=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=J):J=X,B.style.transition=[w.transitions.create("opacity",{duration:J,delay:z}),w.transitions.create("transform",{duration:Hb?J:J*.666,delay:z,easing:Z})].join(","),c&&c(B,Y)}),j=k(u),T=k(g),M=k(B=>{const{duration:Y,delay:X,easing:z}=yu({style:y,timeout:b,easing:o},{mode:"exit"});let Z;b==="auto"?(Z=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=Z):Z=Y,B.style.transition=[w.transitions.create("opacity",{duration:Z,delay:X}),w.transitions.create("transform",{duration:Hb?Z:Z*.666,delay:Hb?X:X||Z*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=wT(.75),p&&p(B)}),U=k(h);return P.jsx(E,{appear:r,in:s,nodeRef:R,onEnter:G,onEntered:j,onEntering:F,onExit:M,onExited:U,onExiting:T,addEndListener:B=>{b==="auto"&&A.start(D.current||0,B),n&&n(R.current,B)},timeout:b==="auto"?null:b,..._,children:(B,{ownerState:Y,...X})=>x.cloneElement(a,{style:{opacity:0,transform:wT(.75),visibility:B==="exited"&&!s?"hidden":void 0,...fme[B],...y,...a.props.style},ref:O,...X})})});Zg&&(Zg.muiSupportAuto=!0);function NO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function LO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function PO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nm(e){return typeof e=="function"?e():e}const pme=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"]},dme,t)},hme=ze(qP,{name:"MuiPopover",slot:"Root"})({}),QP=ze(d0,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mme=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:g=16,open:y,PaperProps:b={},slots:E={},slotProps:_={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:D,transitionDuration:w="auto",TransitionProps:R={},disableScrollLock:O=!1,...k}=n,F=x.useRef(),G={...n,anchorOrigin:o,anchorReference:c,elevation:h,marginThreshold:g,transformOrigin:A,TransitionComponent:D,transitionDuration:w,TransitionProps:R},j=pme(G),T=x.useCallback(()=>{if(c==="anchorPosition")return s;const Oe=Nm(a),Ue=(Oe&&Oe.nodeType===1?Oe:Kr(F.current).body).getBoundingClientRect();return{top:Ue.top+NO(Ue,o.vertical),left:Ue.left+LO(Ue,o.horizontal)}},[a,o.horizontal,o.vertical,s,c]),M=x.useCallback(Oe=>({vertical:NO(Oe,A.vertical),horizontal:LO(Oe,A.horizontal)}),[A.horizontal,A.vertical]),U=x.useCallback(Oe=>{const Ue={width:Oe.offsetWidth,height:Oe.offsetHeight},Ie=M(Ue);if(c==="none")return{top:null,left:null,transformOrigin:PO(Ie)};const Ye=T();let Ve=Ye.top-Ie.vertical,ke=Ye.left-Ie.horizontal;const Rt=Ve+Ue.height,Et=ke+Ue.width,je=$i(Nm(a)),St=je.innerHeight-g,ot=je.innerWidth-g;if(g!==null&&Ve<g){const Ze=Ve-g;Ve-=Ze,Ie.vertical+=Ze}else if(g!==null&&Rt>St){const Ze=Rt-St;Ve-=Ze,Ie.vertical+=Ze}if(g!==null&&ke<g){const Ze=ke-g;ke-=Ze,Ie.horizontal+=Ze}else if(Et>ot){const Ze=Et-ot;ke-=Ze,Ie.horizontal+=Ze}return{top:`${Math.round(Ve)}px`,left:`${Math.round(ke)}px`,transformOrigin:PO(Ie)}},[a,c,T,M,g]),[B,Y]=x.useState(y),X=x.useCallback(()=>{const Oe=F.current;if(!Oe)return;const Ue=U(Oe);Ue.top!==null&&Oe.style.setProperty("top",Ue.top),Ue.left!==null&&(Oe.style.left=Ue.left),Oe.style.transformOrigin=Ue.transformOrigin,Y(!0)},[U]);x.useEffect(()=>(O&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[a,O,X]);const z=()=>{X()},Z=()=>{Y(!1)};x.useEffect(()=>{y&&X()}),x.useImperativeHandle(r,()=>y?{updatePosition:()=>{X()}}:null,[y,X]),x.useEffect(()=>{if(!y)return;const Oe=YP(()=>{X()}),Ue=$i(Nm(a));return Ue.addEventListener("resize",Oe),()=>{Oe.clear(),Ue.removeEventListener("resize",Oe)}},[a,y,X]);let J=w;const oe={slots:{transition:D,...E},slotProps:{transition:R,paper:b,..._}},[I,re]=bn("transition",{elementType:Zg,externalForwardedProps:oe,ownerState:G,getSlotProps:Oe=>({...Oe,onEntering:(Ue,Ie)=>{Oe.onEntering?.(Ue,Ie),z()},onExited:Ue=>{Oe.onExited?.(Ue),Z()}}),additionalProps:{appear:!0,in:y}});w==="auto"&&!I.muiSupportAuto&&(J=void 0);const ee=p||(a?Kr(Nm(a)).body:void 0),[L,{slots:te,slotProps:be,...de}]=bn("root",{ref:t,elementType:hme,externalForwardedProps:{...oe,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:AP(typeof _.backdrop=="function"?_.backdrop(G):_.backdrop,{invisible:!0})},container:ee,open:y},ownerState:G,className:mt(j.root,d)}),[xe,ge]=bn("paper",{ref:F,className:j.paper,elementType:QP,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:B?void 0:{opacity:0}},ownerState:G});return P.jsx(L,{...de,...!xT(L)&&{slots:te,slotProps:be,disableScrollLock:O},children:P.jsx(I,{...re,timeout:J,children:P.jsx(xe,{...ge,children:u})})})}),DT=x.createContext({});function gme(e){return Ht("MuiList",e)}Nt("MuiList",["root","padding","dense","subheader"]);const yme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return zt({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},gme,t)},vme=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}}]}),bme=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},g=yme(h);return P.jsx(DT.Provider,{value:p,children:P.jsxs(vme,{as:o,className:mt(g.root,a),ref:t,ownerState:h,...d,children:[u,r]})})});function zb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function MO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function KP(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 tf(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")||!KP(c,o)||u)c=a(e,c,n);else return c.focus(),!0}return!1}const Eme=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,g=x.useRef(null),y=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls(()=>{r&&g.current.focus()},[r]),x.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(D,{direction:w})=>{const R=!g.current.style.width;if(D.clientHeight<g.current.clientHeight&&R){const O=`${VP($i(D))}px`;g.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const b=D=>{const w=g.current,R=D.key;if(D.ctrlKey||D.metaKey||D.altKey){d&&d(D);return}const O=Kr(w).activeElement;if(R==="ArrowDown")D.preventDefault(),tf(w,O,u,c,zb);else if(R==="ArrowUp")D.preventDefault(),tf(w,O,u,c,MO);else if(R==="Home")D.preventDefault(),tf(w,null,u,c,zb);else if(R==="End")D.preventDefault(),tf(w,null,u,c,MO);else if(R.length===1){const k=y.current,F=R.toLowerCase(),G=performance.now();k.keys.length>0&&(G-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&F!==k.keys[0]&&(k.repeating=!1)),k.lastTime=G,k.keys.push(F);const j=O&&!k.repeating&&KP(O,k);k.previousKeyMatched&&(j||tf(w,O,!1,c,zb,k))?D.preventDefault():k.previousKeyMatched=!1}d&&d(D)},E=Kn(g,t);let _=-1;x.Children.forEach(o,(D,w)=>{if(!x.isValidElement(D)){_===w&&(_+=1,_>=o.length&&(_=-1));return}D.props.disabled||(p==="selectedMenu"&&D.props.selected||_===-1)&&(_=w),_===w&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(_+=1,_>=o.length&&(_=-1))});const A=x.Children.map(o,(D,w)=>{if(w===_){const R={};return a&&(R.autoFocus=!0),D.props.tabIndex===void 0&&p==="selectedMenu"&&(R.tabIndex=0),x.cloneElement(D,R)}return D});return P.jsx(bme,{role:"menu",ref:E,className:s,onKeyDown:b,tabIndex:r?0:-1,...h,children:A})}),Tme={vertical:"top",horizontal:"right"},Sme={vertical:"top",horizontal:"left"},_me=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"],list:["list"]},ume,t)},Cme=ze(mme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ame=ze(QP,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xme=ze(Eme,{name:"MuiMenu",slot:"List"})({outline:0}),wme=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:g="auto",TransitionProps:{onEntering:y,...b}={},variant:E="selectedMenu",slots:_={},slotProps:A={},...D}=n,w=IP(),R={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:b,variant:E},O=_me(R),k=r&&!s&&d,F=x.useRef(null),G=(J,oe)=>{F.current&&F.current.adjustStyleForScrollbar(J,{direction:w?"rtl":"ltr"}),y&&y(J,oe)},j=J=>{J.key==="Tab"&&(J.preventDefault(),u&&u(J,"tabKeyDown"))};let T=-1;x.Children.map(a,(J,oe)=>{x.isValidElement(J)&&(J.props.disabled||(E==="selectedMenu"&&J.props.selected||T===-1)&&(T=oe))});const M={slots:_,slotProps:{list:c,transition:b,paper:p,...A}},U=As({elementType:_.root,externalSlotProps:A.root,ownerState:R,className:[O.root,o]}),[B,Y]=bn("paper",{className:O.paper,elementType:Ame,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:R}),[X,z]=bn("list",{className:mt(O.list,c.className),elementType:xme,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:J=>({...J,onKeyDown:oe=>{j(oe),J.onKeyDown?.(oe)}}),ownerState:R}),Z=typeof M.slotProps.transition=="function"?M.slotProps.transition(R):M.slotProps.transition;return P.jsx(Cme,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Tme:Sme,slots:{root:_.root,paper:B,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:U,paper:Y,backdrop:typeof A.backdrop=="function"?A.backdrop(R):A.backdrop,transition:{...Z,onEntering:(...J)=>{G(...J),Z?.onEntering?.(...J)}}},open:d,ref:t,transitionDuration:g,ownerState:R,...D,classes:h,children:P.jsx(X,{actions:F,autoFocus:r&&(T===-1||s),autoFocusItem:k,variant:E,...z,children:a})})});function Dme(e){return Ht("MuiNativeSelect",e)}const Y_=Nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kme=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${rt(n)}`,o&&"iconOpen",r&&"disabled"]};return zt(c,Dme,t)},XP=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Y_.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}}}]})),Rme=ze(XP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ea,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Y_.multiple}`]:t.multiple}]}})({}),ZP=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Y_.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}}]})),Ome=ze(ZP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Ime=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=kme(d);return P.jsxs(x.Fragment,{children:[P.jsx(Rme,{ownerState:d,className:mt(p.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:P.jsx(Ome,{as:o,ownerState:d,className:p.icon})]})});function JP(e){return Ht("MuiSelect",e)}const nf=Nt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $O;const Nme=ze(XP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nf.select}`]:t.select},{[`&.${nf.select}`]:t[n.variant]},{[`&.${nf.error}`]:t.error},{[`&.${nf.multiple}`]:t.multiple}]}})({[`&.${nf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lme=ze(ZP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Pme=ze("input",{shouldForwardProp:e=>$3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function FO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Mme(e){return e==null||typeof e=="string"&&!e.trim()}const $me=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${rt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return zt(c,JP,t)},Fme=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:g=!1,IconComponent:y,inputRef:b,labelId:E,MenuProps:_={},multiple:A,name:D,onBlur:w,onChange:R,onClose:O,onFocus:k,onOpen:F,open:G,readOnly:j,renderValue:T,required:M,SelectDisplayProps:U={},tabIndex:B,type:Y,value:X,variant:z="standard",...Z}=e,[J,oe]=ET({controlled:X,default:d,name:"Select"}),[I,re]=ET({controlled:G,default:u,name:"Select"}),ee=x.useRef(null),L=x.useRef(null),[te,be]=x.useState(null),{current:de}=x.useRef(G!=null),[xe,ge]=x.useState(),Oe=Kn(t,b),Ue=x.useCallback(qe=>{L.current=qe,qe&&be(qe)},[]),Ie=te?.parentNode;x.useImperativeHandle(Oe,()=>({focus:()=>{L.current.focus()},node:ee.current,value:J}),[J]),x.useEffect(()=>{u&&I&&te&&!de&&(ge(o?null:Ie.clientWidth),L.current.focus())},[te,o]),x.useEffect(()=>{a&&L.current.focus()},[a]),x.useEffect(()=>{if(!E)return;const qe=Kr(L.current).getElementById(E);if(qe){const Ee=()=>{getSelection().isCollapsed&&L.current.focus()};return qe.addEventListener("click",Ee),()=>{qe.removeEventListener("click",Ee)}}},[E]);const Ye=(qe,Ee)=>{qe?F&&F(Ee):O&&O(Ee),de||(ge(o?null:Ie.clientWidth),re(qe))},Ve=qe=>{qe.button===0&&(qe.preventDefault(),L.current.focus(),Ye(!0,qe))},ke=qe=>{Ye(!1,qe)},Rt=x.Children.toArray(s),Et=qe=>{const Ee=Rt.find(Te=>Te.props.value===qe.target.value);Ee!==void 0&&(oe(Ee.props.value),R&&R(qe,Ee))},je=qe=>Ee=>{let Te;if(Ee.currentTarget.hasAttribute("tabindex")){if(A){Te=Array.isArray(J)?J.slice():[];const ut=J.indexOf(qe.props.value);ut===-1?Te.push(qe.props.value):Te.splice(ut,1)}else Te=qe.props.value;if(qe.props.onClick&&qe.props.onClick(Ee),J!==Te&&(oe(Te),R)){const ut=Ee.nativeEvent||Ee,nt=new ut.constructor(ut.type,ut);Object.defineProperty(nt,"target",{writable:!0,value:{value:Te,name:D}}),R(nt,qe)}A||Ye(!1,Ee)}},St=qe=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(qe.key)&&(qe.preventDefault(),Ye(!0,qe))},ot=te!==null&&I,Ze=qe=>{!ot&&w&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:J,name:D}}),w(qe))};delete Z["aria-invalid"];let Ge,Pe;const Ot=[];let Dn=!1;(Xg({value:J})||h)&&(T?Ge=T(J):Dn=!0);const bt=Rt.map(qe=>{if(!x.isValidElement(qe))return null;let Ee;if(A){if(!Array.isArray(J))throw new Error(Pi(2));Ee=J.some(Te=>FO(Te,qe.props.value)),Ee&&Dn&&Ot.push(qe.props.children)}else Ee=FO(J,qe.props.value),Ee&&Dn&&(Pe=qe.props.children);return x.cloneElement(qe,{"aria-selected":Ee?"true":"false",onClick:je(qe),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Te)},role:"option",selected:Ee,value:void 0,"data-value":qe.props.value})});Dn&&(A?Ot.length===0?Ge=null:Ge=Ot.reduce((qe,Ee,Te)=>(qe.push(Ee),Te<Ot.length-1&&qe.push(", "),qe),[]):Ge=Pe);let ce=xe;!o&&de&&te&&(ce=Ie.clientWidth);let me;typeof B<"u"?me=B:me=p?null:0;const Be=U.id||(D?`mui-component-select-${D}`:void 0),We={...e,variant:z,value:J,open:ot,error:g},Qe=$me(We),gt={..._.PaperProps,..._.slotProps?.paper},ln={..._.MenuListProps,..._.slotProps?.list},Qt=Yp();return P.jsxs(x.Fragment,{children:[P.jsx(Nme,{as:"div",ref:Ue,tabIndex:me,role:"combobox","aria-controls":ot?Qt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[E,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":M?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:St,onMouseDown:p||j?null:Ve,onBlur:Ze,onFocus:k,...U,ownerState:We,className:mt(U.className,Qe.select,c),id:Be,children:Mme(Ge)?$O||($O=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ge}),P.jsx(Pme,{"aria-invalid":g,value:Array.isArray(J)?J.join(","):J,name:D,ref:ee,"aria-hidden":!0,onChange:Et,tabIndex:-1,disabled:p,className:Qe.nativeInput,autoFocus:a,required:M,...Z,ownerState:We}),P.jsx(Lme,{as:y,className:Qe.icon,ownerState:We}),P.jsx(wme,{id:`menu-${D||""}`,anchorEl:Ie,open:ot,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,slotProps:{..._.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Qt,...ln},paper:{...gt,style:{minWidth:ce,...gt!=null?gt.style:null}}},children:bt})]})}),Bme=wn(P.jsx("path",{d:"M7 10l5 5 5-5z"})),Ume=e=>{const{classes:t}=e,n=zt({root:["root"]},JP,t);return{...t,...n}},Q_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ea(e)&&e!=="variant"},jme=ze(W_,Q_)(""),Hme=ze(G_,Q_)(""),zme=ze(q_,Q_)(""),e6=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=Bme,id:p,input:h,inputProps:g,label:y,labelId:b,MenuProps:E,multiple:_=!1,native:A=!1,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:k,variant:F="outlined",...G}=n,j=A?Ime:Fme,T=Gl(),M=Mu({props:n,muiFormControl:T,states:["variant","error"]}),U=M.variant||F,B={...n,variant:U,classes:o},Y=Ume(B),{root:X,...z}=Y,Z=h||{standard:P.jsx(jme,{ownerState:B}),outlined:P.jsx(Hme,{label:y,ownerState:B}),filled:P.jsx(zme,{ownerState:B})}[U],J=Kn(t,Pu(Z));return P.jsx(x.Fragment,{children:x.cloneElement(Z,{inputComponent:j,inputProps:{children:a,error:M.error,IconComponent:d,variant:U,type:void 0,multiple:_,...A?{id:p}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:b,MenuProps:E,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:{id:p,...k}},...g,classes:g?$r(z,g.classes):z,...h?h.props.inputProps:{}},...(_&&A||u)&&U==="outlined"?{notched:!0}:{},ref:J,className:mt(Z.props.className,s,Y.root),...!h&&{variant:U},...G})})});e6.muiName="Select";function Vme(e){return Ht("MuiFormControl",e)}Nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);function Vb(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Gme=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${rt(n)}`,r&&"fullWidth"]};return zt(a,Vme,t)},qme=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${rt(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%"}}]}),Wme=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:g="none",required:y=!1,size:b="medium",variant:E="outlined",..._}=n,A={...n,color:o,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:g,required:y,size:b,variant:E},D=Gme(A),[w,R]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{if(!Vb(X,["Input","Select"]))return;const z=Vb(X,["Select"])?X.props.input:X;z&&Lhe(z.props)&&(Y=!0)}),Y}),[O,k]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{Vb(X,["Input","Select"])&&(Xg(X.props,!0)||Xg(X.props.inputProps,!0))&&(Y=!0)}),Y}),[F,G]=x.useState(!1);c&&F&&G(!1);const j=d!==void 0&&!c?d:F;let T;x.useRef(!1);const M=x.useCallback(()=>{k(!0)},[]),U=x.useCallback(()=>{k(!1)},[]),B=x.useMemo(()=>({adornedStart:w,setAdornedStart:R,color:o,disabled:c,error:u,filled:O,focused:j,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{G(!1)},onFocus:()=>{G(!0)},onEmpty:U,onFilled:M,registerEffect:T,required:y,variant:E}),[w,o,c,u,O,j,p,h,T,U,M,y,b,E]);return P.jsx(F_.Provider,{value:B,children:P.jsx(qme,{as:s,ownerState:A,className:mt(D.root,a),ref:t,..._,children:r})})}),Yme={standard:W_,filled:q_,outlined:G_},Qme=e=>{const{classes:t}=e;return zt({root:["root"]},Dhe,t)},Kme=ze(Wme,{name:"MuiTextField",slot:"Root"})({}),K0e=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:g=!1,helperText:y,id:b,InputLabelProps:E,inputProps:_,InputProps:A,inputRef:D,label:w,maxRows:R,minRows:O,multiline:k=!1,name:F,onBlur:G,onChange:j,onFocus:T,placeholder:M,required:U=!1,rows:B,select:Y=!1,SelectProps:X,slots:z={},slotProps:Z={},type:J,value:oe,variant:I="outlined",...re}=n,ee={...n,autoFocus:a,color:c,disabled:d,error:p,fullWidth:g,multiline:k,required:U,select:Y,variant:I},L=Qme(ee),te=Yp(b),be=y&&te?`${te}-helper-text`:void 0,de=w&&te?`${te}-label`:void 0,xe=Yme[I],ge={slots:z,slotProps:{input:A,inputLabel:E,htmlInput:_,formHelperText:h,select:X,...Z}},Oe={},Ue=ge.slotProps.inputLabel;I==="outlined"&&(Ue&&typeof Ue.shrink<"u"&&(Oe.notched=Ue.shrink),Oe.label=w),Y&&((!X||!X.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Ie,Ye]=bn("root",{elementType:Kme,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...re},ownerState:ee,className:mt(L.root,s),ref:t,additionalProps:{disabled:d,error:p,fullWidth:g,required:U,color:c,variant:I}}),[Ve,ke]=bn("input",{elementType:xe,externalForwardedProps:ge,additionalProps:Oe,ownerState:ee}),[Rt,Et]=bn("inputLabel",{elementType:ome,externalForwardedProps:ge,ownerState:ee}),[je,St]=bn("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:ee}),[ot,Ze]=bn("formHelperText",{elementType:cme,externalForwardedProps:ge,ownerState:ee}),[Ge,Pe]=bn("select",{elementType:e6,externalForwardedProps:ge,ownerState:ee}),Ot=P.jsx(Ve,{"aria-describedby":be,autoComplete:r,autoFocus:a,defaultValue:u,fullWidth:g,multiline:k,name:F,rows:B,maxRows:R,minRows:O,type:J,value:oe,id:te,inputRef:D,onBlur:G,onChange:j,onFocus:T,placeholder:M,inputProps:St,slots:{input:z.htmlInput?je:void 0},...ke});return P.jsxs(Ie,{...Ye,children:[w!=null&&w!==""&&P.jsx(Rt,{htmlFor:te,id:de,...Et,children:w}),Y?P.jsx(Ge,{"aria-describedby":be,id:te,labelId:de,value:oe,input:Ot,...Pe,children:o}):Ot,y&&P.jsx(ot,{id:be,...Ze,children:y})]})});function Xme(e){return Ht("MuiMenuItem",e)}const rf=Nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),BO=Nt("MuiListItemIcon",["root","alignItemsFlexStart"]),UO=Nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jO=Nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zme=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Jme=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"]},Xme,s);return{...s,...c}},ege=ze(l0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Zme})(fn(({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"}},[`&.${rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nr(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})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jO.inset}`]:{marginLeft:52},[`& .${UO.root}`]:{marginTop:0,marginBottom:0},[`& .${UO.inset}`]:{paddingLeft:36},[`& .${BO.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,[`& .${BO.root} svg`]:{fontSize:"1.25rem"}}}]}))),X0e=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,...g}=n,y=x.useContext(DT),b=x.useMemo(()=>({dense:o||y.dense||!1,disableGutters:c}),[y.dense,o,c]),E=x.useRef(null);Ls(()=>{r&&E.current&&E.current.focus()},[r]);const _={...n,dense:b.dense,divider:s,disableGutters:c},A=Jme(n),D=Kn(E,t);let w;return n.disabled||(w=p!==void 0?p:-1),P.jsx(DT.Provider,{value:b,children:P.jsx(ege,{ref:D,role:d,tabIndex:w,component:a,focusVisibleClassName:mt(A.focusVisible,u),className:mt(A.root,h),...g,ownerState:_,classes:A})})});function tge(e){return Ht("MuiDialogActions",e)}Nt("MuiDialogActions",["root","spacing"]);const nge=e=>{const{classes:t,disableSpacing:n}=e;return zt({root:["root",!n&&"spacing"]},tge,t)},rge=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}}}]}),Z0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...o}=n,s={...n,disableSpacing:a},c=nge(s);return P.jsx(rge,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function age(e){return Ht("MuiIconButton",e)}const HO=Nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),oge=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${rt(r)}`,a&&`edge${rt(a)}`,`size${rt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zt(c,age,t)},ige=ze(l0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${rt(n.color)}`],n.edge&&t[`edge${rt(n.edge)}`],t[`size${rt(n.size)}`]]}})(fn(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.action.active,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}}]})),fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr((e.vars||e).palette[t].main,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)}}],[`&.${HO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${HO.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"}}]})),J0e=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:g,...y}=n,b=Yp(p),E=g??P.jsx(jP,{"aria-labelledby":b,color:"inherit",size:16}),_={...n,edge:r,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:E,size:d},A=oge(_);return P.jsxs(ige,{id:h?b:p,className:mt(A.root,o),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:t,...y,ownerState:_,children:[typeof h=="boolean"&&P.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:P.jsx(sge,{className:A.loadingIndicator,ownerState:_,children:h&&E})}),a]})}),e1e=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"})),t1e=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"})),n1e=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"})),r1e=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"})),a1e=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"})),o1e=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")]),i1e=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 lge(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=e,s=s0();x.useEffect(()=>{if(!a)return;function _(A){A.defaultPrevented||A.key==="Escape"&&r?.(A,"escapeKeyDown")}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,r]);const c=Fr((_,A)=>{r?.(_,A)}),u=Fr(_=>{!r||_==null||s.start(_,()=>{c(null,"timeout")})});x.useEffect(()=>(a&&u(t),s.clear),[a,t,u,s]);const d=_=>{r?.(_,"clickaway")},p=s.clear,h=x.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),g=_=>A=>{const D=_.onBlur;D?.(A),h()},y=_=>A=>{const D=_.onFocus;D?.(A),p()},b=_=>A=>{const D=_.onMouseEnter;D?.(A),p()},E=_=>A=>{const D=_.onMouseLeave;D?.(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:(_={})=>{const A={...Gr(e),...Gr(_)};return{role:"presentation",..._,...A,onBlur:g(A),onFocus:y(A),onMouseEnter:b(A),onMouseLeave:E(A)}},onClickAway:d}}function cge(e){return Ht("MuiSnackbar",e)}Nt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function zO(e){return e.substring(2).toLowerCase()}function uge(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function dge(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(Pu(t),c),h=Fr(b=>{const E=d.current;d.current=!1;const _=Kr(c.current);if(!u.current||!c.current||"clientX"in b&&uge(b,_))return;if(s.current){s.current=!1;return}let A;b.composedPath?A=b.composedPath().includes(c.current):A=!_.documentElement.contains(b.target)||c.current.contains(b.target),!A&&(n||!E)&&a(b)}),g=b=>E=>{d.current=!0;const _=t.props[b];_&&_(E)},y={ref:p};return o!==!1&&(y[o]=g(o)),x.useEffect(()=>{if(o!==!1){const b=zO(o),E=Kr(c.current),_=()=>{s.current=!0};return E.addEventListener(b,h),E.addEventListener("touchmove",_),()=>{E.removeEventListener(b,h),E.removeEventListener("touchmove",_)}}},[h,o]),r!==!1&&(y[r]=g(r)),x.useEffect(()=>{if(r!==!1){const b=zO(r),E=Kr(c.current);return E.addEventListener(b,h),()=>{E.removeEventListener(b,h)}}},[h,r]),x.cloneElement(t,y)}function fge(e){return Ht("MuiSnackbarContent",e)}Nt("MuiSnackbarContent",["root","message","action"]);const pge=e=>{const{classes:t}=e;return zt({root:["root"],action:["action"],message:["message"]},fge,t)},hge=ze(d0,{name:"MuiSnackbarContent",slot:"Root"})(fn(({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(mE(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:mE(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),mge=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),gge=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yge=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=pge(u);return P.jsxs(hge,{role:s,elevation:6,className:mt(d.root,a),ownerState:u,ref:t,...c,children:[P.jsx(mge,{className:d.message,ownerState:u,children:o}),r?P.jsx(gge,{className:d.action,ownerState:u,children:r}):null]})}),vge=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${rt(n.vertical)}${rt(n.horizontal)}`]};return zt(r,cge,t)},bge=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${rt(n.anchorOrigin.vertical)}${rt(n.anchorOrigin.horizontal)}`]]}})(fn(({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=Lu(),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:g,disableWindowBlurListener:y=!1,message:b,onBlur:E,onClose:_,onFocus:A,onMouseEnter:D,onMouseLeave:w,open:R,resumeHideDuration:O,slots:k={},slotProps:F={},TransitionComponent:G,transitionDuration:j=a,TransitionProps:{onEnter:T,onExited:M,...U}={},...B}=n,Y={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:u,disableWindowBlurListener:y,TransitionComponent:G,transitionDuration:j},X=vge(Y),{getRootProps:z,onClickAway:Z}=lge({...Y}),[J,oe]=x.useState(!0),I=Ye=>{oe(!0),M&&M(Ye)},re=(Ye,Ve)=>{oe(!1),T&&T(Ye,Ve)},ee={slots:{transition:G,...k},slotProps:{content:g,clickAwayListener:h,transition:U,...F}},[L,te]=bn("root",{ref:t,className:[X.root,p],elementType:bge,getSlotProps:z,externalForwardedProps:{...ee,...B},ownerState:Y}),[be,{ownerState:de,...xe}]=bn("clickAwayListener",{elementType:dge,externalForwardedProps:ee,getSlotProps:Ye=>({onClickAway:(...Ve)=>{const ke=Ve[0];Ye.onClickAway?.(...Ve),!ke?.defaultMuiPrevented&&Z(...Ve)}}),ownerState:Y}),[ge,Oe]=bn("content",{elementType:yge,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:b,action:o},ownerState:Y}),[Ue,Ie]=bn("transition",{elementType:Zg,externalForwardedProps:ee,getSlotProps:Ye=>({onEnter:(...Ve)=>{Ye.onEnter?.(...Ve),re(...Ve)},onExited:(...Ve)=>{Ye.onExited?.(...Ve),I(...Ve)}}),additionalProps:{appear:!0,in:R,timeout:j,direction:s==="top"?"down":"up"},ownerState:Y});return!R&&J?null:P.jsx(be,{...xe,...k.clickAwayListener&&{ownerState:de},children:P.jsx(L,{...te,children:P.jsx(Ue,{...Ie,children:d||P.jsx(ge,{...Oe})})})})});ct.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const Mn={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"}},Ege=my({palette:{mode:"light",primary:Mn.primary,secondary:Mn.secondary,grey:Mn.grey,success:Mn.success,warning:Mn.warning,error:Mn.error,info:Mn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Mn.grey[900],secondary:Mn.grey[600]},divider:Mn.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:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.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:Mn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Mn.grey[200]}},defaultProps:{sx:{my:1}}}}}),Tge=x.lazy(()=>V(()=>import("./HomePage-Bov6-5AZ.js"),__vite__mapDeps([96,97,98,99,100,101,102,103,104]))),Sge=x.lazy(()=>V(()=>import("./MainPage-BYUYRBax.js"),__vite__mapDeps([105,97,104,103]))),_ge=x.lazy(()=>V(()=>import("./ModelPage-BMg6IR4I.js"),__vite__mapDeps([106,107,108,109,100]))),Cge=x.lazy(()=>V(()=>import("./PackagePage-Ca-5S4bY.js"),__vite__mapDeps([110,97,107,108,109,100,99,102,111]))),Age=x.lazy(()=>V(()=>import("./ProjectPage-Csve1erO.js"),__vite__mapDeps([112,97,108,102,99,98,100,101]))),xge=x.lazy(()=>V(()=>import("./RouteError-DVrYYQx8.js"),__vite__mapDeps([113,103]))),wge=x.lazy(()=>V(()=>import("./WorkbookPage-Bos3GG6c.js"),__vite__mapDeps([114,108,109,100,111,99,104,98,97]))),Dge=(e="/",t,n)=>d8([{path:e,element:P.jsx(KK,{children:P.jsx(pce,{workbookStorage:t,children:P.jsxs(eU,{theme:Ege,children:[P.jsx(qH,{}),P.jsx(Sge,{headerProps:n})]})})}),errorElement:P.jsx(xge,{}),children:[{path:"",element:P.jsx(Tge,{})},{path:":projectName",element:P.jsx(Age,{})},{path:":projectName/:packageName",element:P.jsx(Cge,{})},{path:":projectName/:packageName/*",element:P.jsx(_ge,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:P.jsx(wge,{})}]}]),kge=Dge("/",new upe,void 0);m$.createRoot(document.getElementById("root")).render(P.jsx(x.StrictMode,{children:P.jsx(_8,{router:kge})}));export{Fge as $,tn as A,Sl as B,Z0e as C,WS as D,K0e as E,Pa as F,WP as G,EU as H,KU as I,To as J,Vf as K,d3 as L,Q0e as M,Y0e as N,VF as O,V0e as P,lH as Q,Tt as R,rpe as S,hS as T,Oge as U,E7 as V,npe as W,Ige as X,J0e as Y,Dy as Z,Nye as _,q0e as a,lg as a$,Lge as a0,Bge as a1,Lye as a2,spe as a3,N0e as a4,Pge as a5,iU as a6,dm as a7,n3 as a8,Rl as a9,uS as aA,Nge as aB,qc as aC,SU as aD,pE as aE,L7 as aF,MB as aG,Fi as aH,zw as aI,ape as aJ,Bb as aK,F0e as aL,B0e as aM,U0e as aN,sG as aO,fce as aP,j0e as aQ,w0e as aR,lG as aS,H0e as aT,U3 as aU,$0e as aV,hy as aW,VI as aX,gU as aY,uH as aZ,V as a_,Ni as aa,Jn as ab,rS as ac,nS as ad,Uge as ae,jge as af,Hge as ag,_ce as ah,t0e as ai,X0e as aj,ez as ak,I0e as al,d0e as am,M0e as an,P0e as ao,Mge as ap,$ge as aq,zge as ar,$F as as,Ap as at,JT as au,BF as av,fy as aw,SS as ax,Zc as ay,Bw as az,L0e as b,Es as b0,bp as b1,Rge as b2,VO as b3,a3 as c,tz as d,aD as e,n1e as f,_3 as g,C3 as h,r1e as i,P as j,o1e as k,kH as l,e1e as m,a1e as n,t1e as o,ma as p,Zr as q,x as r,Jr as s,i1e as t,J3 as u,W0e as v,xt as w,An as x,bE as y,s1e as z};
|