@malloy-publisher/server 0.0.97 → 0.0.99
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/index-CGCKhGuq.js +240 -0
- package/dist/app/assets/{index-D4eYZfPc.js → index-sRdDLm-N.js} +1 -1
- package/dist/app/assets/index.es23-BBjdzilP.js +2 -0
- package/dist/app/assets/{index.es126-CKC26ttZ.js → index.es248-BbnofNr_.js} +1 -1
- package/dist/app/assets/{index.es127-CBKpWhIe.js → index.es249-CHnp3pgu.js} +1 -1
- package/dist/app/assets/{index.es130-5z_n6lm6.js → index.es252-CHg5mTDB.js} +1 -1
- package/dist/app/assets/{index.es135-aJw1Xr-9.js → index.es257-C9wENz3l.js} +1 -1
- package/dist/app/assets/{index.es143-CAt8G2AV.js → index.es265-BntVFYmO.js} +1 -1
- package/dist/app/assets/{index.es144-CaWYrbVR.js → index.es266-DJiGb8ir.js} +1 -1
- package/dist/app/assets/{index.es147-B_4j3qbz.js → index.es269-BlNAgQRk.js} +1 -1
- package/dist/app/assets/{index.es151-Byg3j7QH.js → index.es273-BZa9C0_S.js} +1 -1
- package/dist/app/assets/{index.es154-D8PMiD5x.js → index.es276-Dm75OSI9.js} +1 -1
- package/dist/app/assets/{index.es157-qx6EMeW2.js → index.es279-DOueKgLW.js} +1 -1
- package/dist/app/assets/{index.es158-CJWvYXRx.js → index.es280-CxZDxKUo.js} +1 -1
- package/dist/app/assets/{index.es172-BamsV9CN.js → index.es294-CTbJ9vLR.js} +1 -1
- package/dist/app/assets/{index.es173-CXyGU58j.js → index.es295-DiA-SM4E.js} +1 -1
- package/dist/app/assets/{index.es174-C2o3B3o8.js → index.es296-CZ8C1F3L.js} +1 -1
- package/dist/app/assets/{index.es176-BB-1P5bb.js → index.es298-gjAJKRU1.js} +1 -1
- package/dist/app/assets/{index.es181-2PlTGcYG.js → index.es303-B34gU-g3.js} +1 -1
- package/dist/app/assets/{index.es183-DgoVwe-N.js → index.es305-K0bsFYUN.js} +1 -1
- package/dist/app/assets/{index.es184-Cmc38osU.js → index.es306-DyjbQFWh.js} +1 -1
- package/dist/app/assets/{index.es189-DuMu0KfI.js → index.es311-B1RhmG6z.js} +1 -1
- package/dist/app/assets/{index.es190-C117wYiK.js → index.es312-DP9VVTDA.js} +1 -1
- package/dist/app/assets/{index.es192-Bm2ZoxNH.js → index.es314-oqkmpbtc.js} +1 -1
- package/dist/app/assets/{index.es193-BBtnt1bZ.js → index.es315-Cry3G-vd.js} +1 -1
- package/dist/app/assets/{index.es194-CB2Nn3wg.js → index.es316-C4cIqlTU.js} +1 -1
- package/dist/app/assets/{index.es197-D91osx4R.js → index.es319-DnDYp8mI.js} +1 -1
- package/dist/app/assets/{index.es199-BtpESJSS.js → index.es321-8D69jX4a.js} +1 -1
- package/dist/app/assets/{index.es200-BeG9RRw_.js → index.es322--yjHxpYn.js} +1 -1
- package/dist/app/assets/{index.es201-k2nuCC3B.js → index.es323-CAnzK2pq.js} +1 -1
- package/dist/app/assets/{index.es207-C2uQegug.js → index.es329-pKsC3-g8.js} +1 -1
- package/dist/app/assets/{index.es208-BTucFWqR.js → index.es330-Boxjtls_.js} +1 -1
- package/dist/app/assets/{index.es209-4dK47W8o.js → index.es331-Dq2hbiQb.js} +1 -1
- package/dist/app/assets/{index.es210-DO6X3-kz.js → index.es332-_c-j6KJ7.js} +1 -1
- package/dist/app/assets/{index.es212-CFG-vrrr.js → index.es334-CiqPgm0u.js} +1 -1
- package/dist/app/assets/{index.es216-TWO3Mhor.js → index.es338-CcTqmj4Y.js} +1 -1
- package/dist/app/assets/{index.es217-0tHVUThG.js → index.es339-DpdXeVfL.js} +1 -1
- package/dist/app/assets/{index.es225-DHGKCs7a.js → index.es347-Huf3ll6E.js} +1 -1
- package/dist/app/assets/{index.es228-Bz0ZvI5L.js → index.es350-DJbtODnQ.js} +1 -1
- package/dist/app/assets/{index.es231-D1HdFvsl.js → index.es353-CZ1g2C4t.js} +1 -1
- package/dist/app/assets/{index.es234-1j9jt1V9.js → index.es356-DORxJG9x.js} +1 -1
- package/dist/app/assets/{index.es238-DBm7c9HR.js → index.es360-D_JGZUfP.js} +1 -1
- package/dist/app/assets/{index.es240-DCqDESzD.js → index.es362-SgvLbwKE.js} +1 -1
- package/dist/app/assets/{index.es248-BEYN2dFo.js → index.es370-CmNgHhZR.js} +1 -1
- package/dist/app/assets/{index.es249-DKdYiZA_.js → index.es371-Cs1lL0hA.js} +1 -1
- package/dist/app/assets/{index.es256-CgBAGaDx.js → index.es378-DLafTSmc.js} +1 -1
- package/dist/app/assets/{index.es257-DMI3dJGJ.js → index.es379-DvAUFL3j.js} +1 -1
- package/dist/app/assets/{index.es267-B5ei8o6D.js → index.es389-DLoaFSAg.js} +1 -1
- package/dist/app/assets/{index.es271-DDBsSlrj.js → index.es393-D2rZ0QpA.js} +1 -1
- package/dist/app/assets/{index.es277-aI_iYBJv.js → index.es399-CfJRcQ4n.js} +1 -1
- package/dist/app/assets/{index.es282-DZQyCurk.js → index.es404-BtfUL5QQ.js} +1 -1
- package/dist/app/assets/{index.es283-DRQxI154.js → index.es405-CgsGWDZA.js} +1 -1
- package/dist/app/assets/{index.es285-DrT3oe3D.js → index.es407-C_zMiwph.js} +1 -1
- package/dist/app/assets/{index.es289-CKYiktdr.js → index.es411-vZ0JeZmh.js} +1 -1
- package/dist/app/assets/{index.es291-BRH8qn2R.js → index.es413-CbVhl1jA.js} +1 -1
- package/dist/app/assets/{index.es293-B_x7Y2b5.js → index.es415-BcYlm_Ug.js} +1 -1
- package/dist/app/assets/{index.es296-CMhur-CK.js → index.es418-vuRuSeN9.js} +1 -1
- package/dist/app/assets/{index.es297-BY9kHC-p.js → index.es419-_2HbSMSa.js} +1 -1
- package/dist/app/assets/{index.es301-CmwjGLCv.js → index.es423-DzpSEUNI.js} +1 -1
- package/dist/app/assets/{index.es303-BOa5F89I.js → index.es425-D6X1TVim.js} +1 -1
- package/dist/app/assets/{index.es310-BF6kc0UE.js → index.es432-8bVDwFXM.js} +1 -1
- package/dist/app/assets/{index.es312-CoCT5fTV.js → index.es434-C9NHuXnM.js} +1 -1
- package/dist/app/assets/{index.es314-CMYE9lCS.js → index.es436-BTPPL0zS.js} +1 -1
- package/dist/app/assets/{index.es318-C2_Stmju.js → index.es440-ww1QoUAZ.js} +1 -1
- package/dist/app/assets/{index.es328-DxiHjjdV.js → index.es450-DBjXbu_P.js} +1 -1
- package/dist/app/assets/{index.es329-D4H4qJV5.js → index.es451-DHwELaFr.js} +1 -1
- package/dist/app/assets/{index.es336-DMBcHb9l.js → index.es458-webL2P4r.js} +1 -1
- package/dist/app/assets/{index.es337-BOcmfyvS.js → index.es459-huEmffFP.js} +1 -1
- package/dist/app/assets/mui-Bd3E_VmC.js +159 -0
- package/dist/app/index.html +2 -2
- package/package.json +1 -1
- package/dist/app/assets/index-BIibKHZO.js +0 -251
- package/dist/app/assets/index.es23-Cifiq2N-.js +0 -2
- package/dist/app/assets/mui-UpaxdnvH.js +0 -159
- /package/dist/app/assets/{index.es115-CG6Dc4jp.js → index.es237-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es123-DsBKuouk.js → index.es245-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es124-D_z4Izcz.js → index.es246-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es125-727ZlQH0.js → index.es247-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es128-Dn00JSTd.js → index.es250-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es129-COJ4H7py.js → index.es251-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es131-Bu5BbsvL.js → index.es253-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es132-7O62HKoU.js → index.es254-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es133-BPT9niGB.js → index.es255-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es134-Dhn9LcZ4.js → index.es256-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es136-eg146-Ew.js → index.es258-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es137-Du268qiB.js → index.es259-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es138-fje9CFhw.js → index.es260-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es139-BwXTMy5W.js → index.es261-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es140-3xVqZejG.js → index.es262-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es141-xW4inM5L.js → index.es263-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es142-DHo0CJ0O.js → index.es264-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es145-C3t2pwGQ.js → index.es267-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es146-DNquZEk8.js → index.es268-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es148-BHOwM8T6.js → index.es270-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es149-DxSadP1t.js → index.es271-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es150-DbXoA79R.js → index.es272-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es152-Bp6g37R7.js → index.es274-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es153-sacFqUAJ.js → index.es275-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es155-C7gG9l05.js → index.es277-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es156-Dsg_Bt_b.js → index.es278-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es159-D9R-vmeu.js → index.es281-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es160-BPhBrDlE.js → index.es282-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es161-C-TU5hQ_.js → index.es283-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es162-DtFQj3wx.js → index.es284-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es163-m2LEI-9-.js → index.es285-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es164-BoXegm-a.js → index.es286-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es165-B9wLZaAG.js → index.es287-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es166-ClGRhx96.js → index.es288-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es167-DEIpsLCJ.js → index.es289-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es168-BgYniUM_.js → index.es290-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es169-COcR7UxN.js → index.es291-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es170-BjQB5zDj.js → index.es292-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es171-C-nORZOA.js → index.es293-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es175-BX77sIaO.js → index.es297-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es177-B-DoSBHF.js → index.es299-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es178-bCA53EVm.js → index.es300-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es179-w-ucz2PV.js → index.es301-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es180-Dayu4EKP.js → index.es302-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es182-DKXYxT9g.js → index.es304-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es185-DfxzS6Rs.js → index.es307-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es186-SKMF96pI.js → index.es308-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es187-ajMbGru0.js → index.es309-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es188--30QC5Em.js → index.es310--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es191-B430Bg39.js → index.es313-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es195-CM8KxXT1.js → index.es317-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es196-B1SYOhNW.js → index.es318-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es198-DkBy-JyN.js → index.es320-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es202-BILxekzW.js → index.es324-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es203-C5wWYbrZ.js → index.es325-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es204-HzYwdGDm.js → index.es326-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es205-T-Tgc4AT.js → index.es327-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es206-ifBTmRxC.js → index.es328-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es211-BMj5Y0dO.js → index.es333-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es213-BjABl1g7.js → index.es335-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es214-xI-RfyKK.js → index.es336-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es215-ySlJ1b_l.js → index.es337-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es218-BQoSv7ci.js → index.es340-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es219-w8dY5SsB.js → index.es341-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es220-TU54ms6u.js → index.es342-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es221-DREVFZK8.js → index.es343-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es222-BfivnA6A.js → index.es344-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es223-P4WzXJd0.js → index.es345-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es224-BAng5TT0.js → index.es346-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es226-B5lbUyaz.js → index.es348-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es227-mebxcVVE.js → index.es349-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es229-XBlWyCtg.js → index.es351-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es230-BfCpw3nA.js → index.es352-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es232-Cc5clBb7.js → index.es354-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es233-IuBKFhSY.js → index.es355-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es235-Du5NY7AG.js → index.es357-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es236-Bvotw-X0.js → index.es358-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es237-UIAJJxZW.js → index.es359-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es239-D9-PGadD.js → index.es361-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es241-sdHcTMYB.js → index.es363-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es242-Ci6OQyBP.js → index.es364-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es243-BC5c_5Pe.js → index.es365-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es244-Tz6hzZYG.js → index.es366-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es245-DB_GagMm.js → index.es367-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es246-DLbgOhZU.js → index.es368-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es247-B0XVJmRM.js → index.es369-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es250-shcSOmrb.js → index.es372-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es251-D4Tzg5kh.js → index.es373-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es252-Deuh7S70.js → index.es374-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es253-BUEGK8hf.js → index.es375-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es254-BNioltXt.js → index.es376-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es255-JqZropPD.js → index.es377-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es258-LKU2TuZ1.js → index.es380-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es259-BFLt1xDp.js → index.es381-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es260-DKykz6zU.js → index.es382-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es261-B3ZDOciz.js → index.es383-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es262-CSHBycmS.js → index.es384-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es263-BIEUsx6d.js → index.es385-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es264-B48N-Iqd.js → index.es386-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es265-BY-TUvya.js → index.es387-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es266-zocC4JxJ.js → index.es388-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es268-Cza_XSSt.js → index.es390-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es269-Bg-kzb6g.js → index.es391-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es270-DhUJRlN_.js → index.es392-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es272-C8lEn-DE.js → index.es394-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es273-DhMKtDLN.js → index.es395-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es274-CwjWoCRV.js → index.es396-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es275-CzouJOBO.js → index.es397-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es276-B1bQXN8T.js → index.es398-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es278-5LuOXUq_.js → index.es400-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es279-DWJ3fJO_.js → index.es401-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es280-DJlmqQ1C.js → index.es402-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es281-QhoSD0DR.js → index.es403-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es284-Be6lgOlo.js → index.es406-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es286-BJ4Li9vH.js → index.es408-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es287-DQVVAn-B.js → index.es409-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es288-BJGe-b2p.js → index.es410-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es290-BLhTXw86.js → index.es412-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es292-atvbtKCR.js → index.es414-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es294-DkLiglaE.js → index.es416-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es295-C1w2a3ep.js → index.es417-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es298-Cf8iN4DR.js → index.es420-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es299-COK4E0Yg.js → index.es421-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es300-BknIz3MU.js → index.es422-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es302-BeQkCIfX.js → index.es424-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es304-BSxZ-RaX.js → index.es426-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es305-C7L56vO4.js → index.es427-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es306-CUnW07Te.js → index.es428-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es307-C1XDQQGZ.js → index.es429-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es308-CQjiPCtT.js → index.es430-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es309-DQ1-QYvQ.js → index.es431-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es311-BbSNqyBO.js → index.es433-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es313-CB2ApiWb.js → index.es435-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es315-B_m7g4N7.js → index.es437-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es316-B6W0miNI.js → index.es438-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es317-BMR_PYu6.js → index.es439-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es319-Dj6nwHGl.js → index.es441-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es320-BpWG_bgh.js → index.es442-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es321-BVUVsWT6.js → index.es443-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es322-CAQ2eGtk.js → index.es444-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es323-BFOHcciG.js → index.es445-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es324-CdO5JTpU.js → index.es446-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es325-CJaU5se_.js → index.es447-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es326-DYoNaHQp.js → index.es448-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es327-m4uW47V2.js → index.es449-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es330-nyqBNV6O.js → index.es452-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es331-C6j12Q_x.js → index.es453-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es332-7A4Fjokl.js → index.es454-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es333-CB0Krxn9.js → index.es455-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es334-DCE3LsBG.js → index.es456-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es335-C3FkfJm5.js → index.es457-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es338-CVw76BM1.js → index.es460-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es339-HnGAYVZD.js → index.es461-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es340-BVz_zdnA.js → index.es462-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es341-C3khCPGq.js → index.es463-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es342-D-2ljcwZ.js → index.es464-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es343-Cv9koXgw.js → index.es465-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es344-CD_QflpE.js → index.es466-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es345-DRW-0cLl.js → index.es467-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es346-C-_shW-Y.js → index.es468-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es347-LGGdnPYs.js → index.es469-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es348-C3mMm8J8.js → index.es470-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es349-BzJJZx-M.js → index.es471-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es350-BXkSAIEj.js → index.es472-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es351-BgDCqdQA.js → index.es473-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es352-C8M2exoo.js → index.es474-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es353-DHJKELXO.js → index.es475-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es354-Cuk6v7N8.js → index.es476-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es355-DH5Ifo-i.js → index.es477-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es356-E3gJ1_iC.js → index.es478-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es357-DAi9KRSo.js → index.es479-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es358-D7oLnXFd.js → index.es480-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es359-BfjtVDDH.js → index.es481-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es360-DnULxvSX.js → index.es482-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es361-CkXjmgJE.js → index.es483-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es362-CfQXZHmo.js → index.es484-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es363-DWedfzmr.js → index.es485-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es364-DUszq2jm.js → index.es486-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es365-B7mTdjB0.js → index.es487-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es366-D5KoaKCx.js → index.es488-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es367-BfHTSMKl.js → index.es489-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es368-B0m2ddpp.js → index.es490-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es369-CyktbL80.js → index.es491-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es370-Csfq5Kiy.js → index.es492-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es371-CafNBF8u.js → index.es493-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es372-CTRr51gU.js → index.es494-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es373-D4h5O-jR.js → index.es495-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es374-C39BiMTA.js → index.es496-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es375-Ddv68eIx.js → index.es497-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es376-GBQ2dnAY.js → index.es498-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es377-PoHY5YXO.js → index.es499-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es378-3e1v2bzS.js → index.es500-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es379-CS3Unz2-.js → index.es501-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es380-bN70gL4F.js → index.es502-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es381-CmCqftbK.js → index.es503-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es382-Ds-gbosJ.js → index.es504-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es383-CjDtw9vr.js → index.es505-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es384-BthQWCQV.js → index.es506-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es385-DqwNpetd.js → index.es507-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es386-Bw305WKR.js → index.es508-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es387-DXbdFlpD.js → index.es509-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es388-L9t79GZl.js → index.es510-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es389-CbfX1IO0.js → index.es511-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es390-DBQeEorK.js → index.es512-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es391-BEBZ7ncR.js → index.es513-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es392-Bkuqu6BP.js → index.es514-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es393-D0r3Knsf.js → index.es515-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es394-CVO1_9PV.js → index.es516-CVO1_9PV.js} +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es248-BbnofNr_.js","assets/index.es329-pKsC3-g8.js","assets/index.es337-ySlJ1b_l.js","assets/index.es282-BPhBrDlE.js","assets/index.es249-CHnp3pgu.js","assets/index.es411-vZ0JeZmh.js","assets/index.es252-CHg5mTDB.js","assets/index.es458-webL2P4r.js","assets/index.es336-xI-RfyKK.js","assets/index.es340-BQoSv7ci.js","assets/index.es257-C9wENz3l.js","assets/index.es441-Dj6nwHGl.js","assets/index.es383-B3ZDOciz.js","assets/index.es265-BntVFYmO.js","assets/index.es421-COK4E0Yg.js","assets/index.es266-DJiGb8ir.js","assets/index.es412-BLhTXw86.js","assets/index.es269-BlNAgQRk.js","assets/index.es392-DhUJRlN_.js","assets/index.es273-BZa9C0_S.js","assets/index.es276-Dm75OSI9.js","assets/index.es279-DOueKgLW.js","assets/index.es401-DWJ3fJO_.js","assets/index.es316-C4cIqlTU.js","assets/index.es267-C3t2pwGQ.js","assets/index.es280-CxZDxKUo.js","assets/index.es414-atvbtKCR.js","assets/index.es294-CTbJ9vLR.js","assets/index.es330-Boxjtls_.js","assets/index.es295-DiA-SM4E.js","assets/index.es296-CZ8C1F3L.js","assets/index.es298-gjAJKRU1.js","assets/index.es405-CgsGWDZA.js","assets/index.es322--yjHxpYn.js","assets/index.es319-DnDYp8mI.js","assets/index.es346-BAng5TT0.js","assets/index.es438-B6W0miNI.js","assets/index.es356-DORxJG9x.js","assets/index.es460-CVw76BM1.js","assets/index.es303-B34gU-g3.js","assets/index.es304-DKXYxT9g.js","assets/index.es305-K0bsFYUN.js","assets/index.es359-UIAJJxZW.js","assets/index.es306-DyjbQFWh.js","assets/index.es308-SKMF96pI.js","assets/index.es307-DfxzS6Rs.js","assets/index.es311-B1RhmG6z.js","assets/index.es290-BgYniUM_.js","assets/index.es312-DP9VVTDA.js","assets/index.es314-oqkmpbtc.js","assets/index.es315-Cry3G-vd.js","assets/index.es321-8D69jX4a.js","assets/index.es323-CAnzK2pq.js","assets/index.es331-Dq2hbiQb.js","assets/index.es332-_c-j6KJ7.js","assets/index.es325-C5wWYbrZ.js","assets/index.es334-CiqPgm0u.js","assets/index.es338-CcTqmj4Y.js","assets/index.es339-DpdXeVfL.js","assets/index.es347-Huf3ll6E.js","assets/index.es396-CwjWoCRV.js","assets/index.es350-DJbtODnQ.js","assets/index.es434-C9NHuXnM.js","assets/index.es353-CZ1g2C4t.js","assets/index.es360-D_JGZUfP.js","assets/index.es352-BfCpw3nA.js","assets/index.es362-SgvLbwKE.js","assets/index.es370-CmNgHhZR.js","assets/index.es371-Cs1lL0hA.js","assets/index.es378-DLafTSmc.js","assets/index.es379-DvAUFL3j.js","assets/index.es389-DLoaFSAg.js","assets/index.es393-D2rZ0QpA.js","assets/index.es399-CfJRcQ4n.js","assets/index.es281-D9R-vmeu.js","assets/index.es404-BtfUL5QQ.js","assets/index.es272-DbXoA79R.js","assets/index.es407-C_zMiwph.js","assets/index.es413-CbVhl1jA.js","assets/index.es328-ifBTmRxC.js","assets/index.es415-BcYlm_Ug.js","assets/index.es418-vuRuSeN9.js","assets/index.es419-_2HbSMSa.js","assets/index.es439-BMR_PYu6.js","assets/index.es423-DzpSEUNI.js","assets/index.es425-D6X1TVim.js","assets/index.es432-8bVDwFXM.js","assets/index.es318-B1SYOhNW.js","assets/index.es436-BTPPL0zS.js","assets/index.es440-ww1QoUAZ.js","assets/index.es450-DBjXbu_P.js","assets/index.es451-DHwELaFr.js","assets/index.es459-huEmffFP.js","assets/index-sRdDLm-N.js","assets/mui-Bd3E_VmC.js","assets/vendor-c5ypKtDW.js","assets/index-SM0qJxoC.js","assets/index.umd-DknWdzGi.js","assets/index.es23-BBjdzilP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as N,a as H2,j as E,T as ze,B as at,C as l5,s as Hn,b as ps,c as ms,d as c5,u as u5,e as d5,f as f5,g as h5,h as z2,i as xr,R as Le,S as Mx,I as xn,F as p5,k as m5,L as hb,l as ph,m as Fu,G as mn,D as ai,P as Ph,n as g5,o as y5,p as G2,q as Er,t as pb,v as rd,w as sp,x as ri,y as Ut,z as ad,A as Co,E as Do,H as ko,J as b5,K as mh,M as mb,N as Fi,O as E5,Q as v5,U as An,V as lp,W as V2,X as T5,Y as As,Z as q2,_ as cp,$ as _5,a0 as x5,a1 as gb,a2 as A5,a3 as S5,a4 as C5,a5 as D5,a6 as k5,a7 as R5,a8 as I5,a9 as w5}from"./mui-Bd3E_VmC.js";import{r as N5,a as O5}from"./vendor-c5ypKtDW.js";(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 l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 z0={exports:{}},cu={},G0={exports:{}},V0={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* scheduler.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 Px;function L5(){return Px||(Px=1,function(e){function t(G,le){var se=G.length;G.push(le);e:for(;0<se;){var ye=se-1>>>1,P=G[ye];if(0<a(P,le))G[ye]=le,G[se]=P,se=ye;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var le=G[0],se=G.pop();if(se!==le){G[0]=se;e:for(var ye=0,P=G.length,Ne=P>>>1;ye<Ne;){var ce=2*(ye+1)-1,w=G[ce],te=ce+1,Ce=G[te];if(0>a(w,se))te<P&&0>a(Ce,w)?(G[ye]=Ce,G[te]=se,ye=te):(G[ye]=w,G[ce]=se,ye=ce);else if(te<P&&0>a(Ce,se))G[ye]=Ce,G[te]=se,ye=te;else break e}}return le}function a(G,le){var se=G.sortIndex-le.sortIndex;return se!==0?se:G.id-le.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 l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,m=null,y=3,b=!1,T=!1,A=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function M(G){for(var le=n(f);le!==null;){if(le.callback===null)r(f);else if(le.startTime<=G)r(f),le.sortIndex=le.expirationTime,t(d,le);else break;le=n(f)}}function L(G){if(A=!1,M(G),!T)if(n(d)!==null)T=!0,I||(I=!0,Q());else{var le=n(f);le!==null&&me(L,le.startTime-G)}}var I=!1,V=-1,ne=5,K=-1;function k(){return C?!0:!(e.unstable_now()-K<ne)}function H(){if(C=!1,I){var G=e.unstable_now();K=G;var le=!0;try{e:{T=!1,A&&(A=!1,D(V),V=-1),b=!0;var se=y;try{t:{for(M(G),m=n(d);m!==null&&!(m.expirationTime>G&&k());){var ye=m.callback;if(typeof ye=="function"){m.callback=null,y=m.priorityLevel;var P=ye(m.expirationTime<=G);if(G=e.unstable_now(),typeof P=="function"){m.callback=P,M(G),le=!0;break t}m===n(d)&&r(d),M(G)}else r(d);m=n(d)}if(m!==null)le=!0;else{var Ne=n(f);Ne!==null&&me(L,Ne.startTime-G),le=!1}}break e}finally{m=null,y=se,b=!1}le=void 0}}finally{le?Q():I=!1}}}var Q;if(typeof S=="function")Q=function(){S(H)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,re=W.port2;W.port1.onmessage=H,Q=function(){re.postMessage(null)}}else Q=function(){x(H,0)};function me(G,le){V=x(function(){G(e.unstable_now())},le)}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(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(G){switch(y){case 1:case 2:case 3:var le=3;break;default:le=y}var se=y;y=le;try{return G()}finally{y=se}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(G,le){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var se=y;y=G;try{return le()}finally{y=se}},e.unstable_scheduleCallback=function(G,le,se){var ye=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ye+se:ye):se=ye,G){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=se+P,G={id:p++,callback:le,priorityLevel:G,startTime:se,expirationTime:P,sortIndex:-1},se>ye?(G.sortIndex=se,t(f,G),n(d)===null&&G===n(f)&&(A?(D(V),V=-1):A=!0,me(L,se-ye))):(G.sortIndex=P,t(d,G),T||b||(T=!0,I||(I=!0,Q()))),G},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(G){var le=y;return function(){var se=y;y=le;try{return G.apply(this,arguments)}finally{y=se}}}}(V0)),V0}var $x;function M5(){return $x||($x=1,G0.exports=L5()),G0.exports}/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-dom-client.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 Fx;function P5(){if(Fx)return cu;Fx=1;var e=M5(),t=N5(),n=O5();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" 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 s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,h=s;;){var g=u.return;if(g===null)break;var v=g.alternate;if(v===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===u)return c(g),i;if(v===h)return c(g),s;v=v.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=v;else{for(var R=!1,O=g.child;O;){if(O===u){R=!0,u=g,h=v;break}if(O===h){R=!0,h=g,u=v;break}O=O.sibling}if(!R){for(O=v.child;O;){if(O===u){R=!0,u=v,h=g;break}if(O===h){R=!0,h=v,u=g;break}O=O.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function f(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=f(i),s!==null)return s;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),S=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var W=Symbol.for("react.client.reference");function re(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===W?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case L:return"Suspense";case I:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case S:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case M:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return s=i.displayName||null,s!==null?s:re(i.type)||"Memo";case ne:s=i._payload,i=i._init;try{return re(i(s))}catch{}}return null}var me=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ye=[],P=-1;function Ne(i){return{current:i}}function ce(i){0>P||(i.current=ye[P],ye[P]=null,P--)}function w(i,s){P++,ye[P]=i.current,i.current=s}var te=Ne(null),Ce=Ne(null),Ie=Ne(null),Me=Ne(null);function Oe(i,s){switch(w(Ie,s),w(Ce,i),w(te,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?cx(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=cx(s),i=ux(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ce(te),w(te,i)}function st(){ce(te),ce(Ce),ce(Ie)}function dt(i){i.memoizedState!==null&&w(Me,i);var s=te.current,u=ux(s,i.type);s!==u&&(w(Ce,i),w(te,u))}function Be(i){Ce.current===i&&(ce(te),ce(Ce)),Me.current===i&&(ce(Me),au._currentValue=se)}var en=Object.prototype.hasOwnProperty,wt=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,ar=e.unstable_shouldYield,dn=e.unstable_requestPaint,Ve=e.unstable_now,Xn=e.unstable_getCurrentPriorityLevel,an=e.unstable_ImmediatePriority,on=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,Sr=e.unstable_IdlePriority,ja=e.log,Rt=e.unstable_setDisableYieldValue,ue=null,ve=null;function Fe(i){if(typeof ja=="function"&&Rt(i),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ue,i)}catch{}}var nt=Math.clz32?Math.clz32:Gn,Dt=Math.log,Nt=Math.LN2;function Gn(i){return i>>>=0,i===0?32:31-(Dt(i)/Nt|0)|0}var gn=256,Sn=4194304;function _e(i){var s=i&42;if(s!==0)return s;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,s,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,v=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~v,h!==0?g=_e(h):(R&=O,R!==0?g=_e(R):u||(u=O&~i,u!==0&&(g=_e(u))))):(O=h&~v,O!==0?g=_e(O):R!==0?g=_e(R):u||(u=h&~i,u!==0&&(g=_e(u)))),g===0?0:s!==0&&s!==g&&(s&v)===0&&(v=g&-g,u=s&-s,v>=u||v===32&&(u&4194048)!==0)?s:g}function ot(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function We(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Cn(){var i=gn;return gn<<=1,(gn&4194048)===0&&(gn=256),i}function Fr(){var i=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),i}function gr(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function ir(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function or(i,s,u,h,g,v){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var O=i.entanglements,U=i.expirationTimes,ee=i.hiddenUpdates;for(u=R&~u;0<u;){var pe=31-nt(u),be=1<<pe;O[pe]=0,U[pe]=-1;var ae=ee[pe];if(ae!==null)for(ee[pe]=null,pe=0;pe<ae.length;pe++){var oe=ae[pe];oe!==null&&(oe.lane&=-536870913)}u&=~be}h!==0&&Ba(i,h,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(R&~s))}function Ba(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-nt(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function fn(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var h=31-nt(u),g=1<<h;g&s|i[h]&s&&(i[h]|=s),u&=~g}}function jr(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 Da(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function z(){var i=le.p;return i!==0?i:(i=window.event,i===void 0?32:Rx(i.type))}function X(i,s){var u=le.p;try{return le.p=i,s()}finally{le.p=u}}var ie=Math.random().toString(36).slice(2),Ee="__reactFiber$"+ie,De="__reactProps$"+ie,je="__reactContainer$"+ie,Ge="__reactEvents$"+ie,Ue="__reactListeners$"+ie,Ke="__reactHandles$"+ie,Ze="__reactResources$"+ie,He="__reactMarker$"+ie;function qe(i){delete i[Ee],delete i[De],delete i[Ge],delete i[Ue],delete i[Ke]}function pt(i){var s=i[Ee];if(s)return s;for(var u=i.parentNode;u;){if(s=u[je]||u[Ee]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=px(i);i!==null;){if(u=i[Ee])return u;i=px(i)}return s}i=u,u=i.parentNode}return null}function Ot(i){if(i=i[Ee]||i[je]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function yn(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function bn(i){var s=i[Ze];return s||(s=i[Ze]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function ft(i){i[He]=!0}var Pt=new Set,Ua={};function Br(i,s){yr(i,s),yr(i+"Capture",s)}function yr(i,s){for(Ua[i]=s,i=0;i<s.length;i++)Pt.add(s[i])}var na=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]*$"),Vs={},Yi={};function hi(i){return en.call(Yi,i)?!0:en.call(Vs,i)?!1:na.test(i)?Yi[i]=!0:(Vs[i]=!0,!1)}function pi(i,s,u){if(hi(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function mi(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function gt(i,s,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+h)}}var wn,Go;function ra(i){if(wn===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);wn=s&&s[1]||"",Go=-1<u.stack.indexOf(`
|
|
19
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
+
`+wn+i+Go}var hn=!1;function Qi(i,s){if(!i||hn)return"";hn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(oe){var ae=oe}Reflect.construct(i,[],be)}else{try{be.call()}catch(oe){ae=oe}i.call(be.prototype)}}else{try{throw Error()}catch(oe){ae=oe}(be=i())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(oe){if(oe&&ae&&typeof oe.stack=="string")return[oe.stack,ae.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),R=v[0],O=v[1];if(R&&O){var U=R.split(`
|
|
21
|
+
`),ee=O.split(`
|
|
22
|
+
`);for(g=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===U.length||g===ee.length)for(h=U.length-1,g=ee.length-1;1<=h&&0<=g&&U[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(U[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||U[h]!==ee[g]){var pe=`
|
|
23
|
+
`+U[h].replace(" at new "," at ");return i.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",i.displayName)),pe}while(1<=h&&0<=g);break}}}finally{hn=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ra(u):""}function rf(i){switch(i.tag){case 26:case 27:case 5:return ra(i.type);case 16:return ra("Lazy");case 13:return ra("Suspense");case 19:return ra("SuspenseList");case 0:case 15:return Qi(i.type,!1);case 11:return Qi(i.type.render,!1);case 1:return Qi(i.type,!0);case 31:return ra("Activity");default:return""}}function af(i){try{var s="";do s+=rf(i),i=i.return;while(i);return s}catch(u){return`
|
|
24
|
+
Error generating stack: `+u.message+`
|
|
25
|
+
`+u.stack}}function aa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function av(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function rN(i){var s=av(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,v=u.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return g.call(this)},set:function(R){h=""+R,v.call(this,R)}}),Object.defineProperty(i,s,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function of(i){i._valueTracker||(i._valueTracker=rN(i))}function iv(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),h="";return i&&(h=av(i)?i.checked?"true":"false":i.value),i=h,i!==u?(s.setValue(i),!0):!1}function sf(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 aN=/[\n"\\]/g;function ia(i){return i.replace(aN,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Bm(i,s,u,h,g,v,R,O){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),s!=null?R==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+aa(s)):i.value!==""+aa(s)&&(i.value=""+aa(s)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),s!=null?Um(i,R,aa(s)):u!=null?Um(i,R,aa(u)):h!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+aa(O):i.removeAttribute("name")}function ov(i,s,u,h,g,v,R,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),s!=null||u!=null){if(!(v!=="submit"&&v!=="reset"||s!=null))return;u=u!=null?""+aa(u):"",s=s!=null?""+aa(s):u,O||s===i.value||(i.value=s),i.defaultValue=s}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R)}function Um(i,s,u){s==="number"&&sf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function qs(i,s,u,h){if(i=i.options,s){s={};for(var g=0;g<u.length;g++)s["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=s.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+aa(u),s=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}s!==null||i[g].disabled||(s=i[g])}s!==null&&(s.selected=!0)}}function sv(i,s,u){if(s!=null&&(s=""+aa(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+aa(u):""}function lv(i,s,u,h){if(s==null){if(h!=null){if(u!=null)throw Error(r(92));if(me(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),s=u}u=aa(s),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function Ys(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var iN=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 cv(i,s,u){var h=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,u):typeof u!="number"||u===0||iN.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function uv(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in s)h=s[g],s.hasOwnProperty(g)&&u[g]!==h&&cv(i,g,h)}else for(var v in s)s.hasOwnProperty(v)&&cv(i,v,s[v])}function Hm(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 oN=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"]]),sN=/^[\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 lf(i){return sN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var zm=null;function Gm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Qs=null,Ks=null;function dv(i){var s=Ot(i);if(s&&(i=s.stateNode)){var u=i[De]||null;e:switch(i=s.stateNode,s.type){case"input":if(Bm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+ia(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var h=u[s];if(h!==i&&h.form===i.form){var g=h[De]||null;if(!g)throw Error(r(90));Bm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(s=0;s<u.length;s++)h=u[s],h.form===i.form&&iv(h)}break e;case"textarea":sv(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&qs(i,!!u.multiple,s,!1)}}}var Vm=!1;function fv(i,s,u){if(Vm)return i(s,u);Vm=!0;try{var h=i(s);return h}finally{if(Vm=!1,(Qs!==null||Ks!==null)&&(Yf(),Qs&&(s=Qs,i=Ks,Ks=Qs=null,dv(s),i)))for(s=0;s<i.length;s++)dv(i[s])}}function yc(i,s){var u=i.stateNode;if(u===null)return null;var h=u[De]||null;if(h===null)return null;u=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qm=!1;if(gi)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){qm=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch{qm=!1}var Ki=null,Ym=null,cf=null;function hv(){if(cf)return cf;var i,s=Ym,u=s.length,h,g="value"in Ki?Ki.value:Ki.textContent,v=g.length;for(i=0;i<u&&s[i]===g[i];i++);var R=u-i;for(h=1;h<=R&&s[u-h]===g[v-h];h++);return cf=g.slice(i,1<h?1-h:void 0)}function uf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function df(){return!0}function pv(){return!1}function Cr(i){function s(u,h,g,v,R){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=v,this.target=R,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(u=i[O],this[O]=u?u(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?df:pv,this.isPropagationStopped=pv,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=df)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=df)},persist:function(){},isPersistent:df}),s}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=Cr(Vo),Ec=p({},Vo,{view:0,detail:0}),lN=Cr(Ec),Qm,Km,vc,hf=p({},Ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xm,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!==vc&&(vc&&i.type==="mousemove"?(Qm=i.screenX-vc.screenX,Km=i.screenY-vc.screenY):Km=Qm=0,vc=i),Qm)},movementY:function(i){return"movementY"in i?i.movementY:Km}}),mv=Cr(hf),cN=p({},hf,{dataTransfer:0}),uN=Cr(cN),dN=p({},Ec,{relatedTarget:0}),Wm=Cr(dN),fN=p({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),hN=Cr(fN),pN=p({},Vo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),mN=Cr(pN),gN=p({},Vo,{data:0}),gv=Cr(gN),yN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bN={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"},EN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vN(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=EN[i])?!!s[i]:!1}function Xm(){return vN}var TN=p({},Ec,{key:function(i){if(i.key){var s=yN[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=uf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?bN[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xm,charCode:function(i){return i.type==="keypress"?uf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?uf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),_N=Cr(TN),xN=p({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yv=Cr(xN),AN=p({},Ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xm}),SN=Cr(AN),CN=p({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),DN=Cr(CN),kN=p({},hf,{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}),RN=Cr(kN),IN=p({},Vo,{newState:0,oldState:0}),wN=Cr(IN),NN=[9,13,27,32],Zm=gi&&"CompositionEvent"in window,Tc=null;gi&&"documentMode"in document&&(Tc=document.documentMode);var ON=gi&&"TextEvent"in window&&!Tc,bv=gi&&(!Zm||Tc&&8<Tc&&11>=Tc),Ev=" ",vv=!1;function Tv(i,s){switch(i){case"keyup":return NN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _v(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ws=!1;function LN(i,s){switch(i){case"compositionend":return _v(s);case"keypress":return s.which!==32?null:(vv=!0,Ev);case"textInput":return i=s.data,i===Ev&&vv?null:i;default:return null}}function MN(i,s){if(Ws)return i==="compositionend"||!Zm&&Tv(i,s)?(i=hv(),cf=Ym=Ki=null,Ws=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return bv&&s.locale!=="ko"?null:s.data;default:return null}}var PN={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 xv(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!PN[i.type]:s==="textarea"}function Av(i,s,u,h){Qs?Ks?Ks.push(h):Ks=[h]:Qs=h,s=Jf(s,"onChange"),0<s.length&&(u=new ff("onChange","change",null,u,h),i.push({event:u,listeners:s}))}var _c=null,xc=null;function $N(i){ax(i,0)}function pf(i){var s=yn(i);if(iv(s))return i}function Sv(i,s){if(i==="change")return s}var Cv=!1;if(gi){var Jm;if(gi){var eg="oninput"in document;if(!eg){var Dv=document.createElement("div");Dv.setAttribute("oninput","return;"),eg=typeof Dv.oninput=="function"}Jm=eg}else Jm=!1;Cv=Jm&&(!document.documentMode||9<document.documentMode)}function kv(){_c&&(_c.detachEvent("onpropertychange",Rv),xc=_c=null)}function Rv(i){if(i.propertyName==="value"&&pf(xc)){var s=[];Av(s,xc,i,Gm(i)),fv($N,s)}}function FN(i,s,u){i==="focusin"?(kv(),_c=s,xc=u,_c.attachEvent("onpropertychange",Rv)):i==="focusout"&&kv()}function jN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return pf(xc)}function BN(i,s){if(i==="click")return pf(s)}function UN(i,s){if(i==="input"||i==="change")return pf(s)}function HN(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Ur=typeof Object.is=="function"?Object.is:HN;function Ac(i,s){if(Ur(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),h=Object.keys(s);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!en.call(s,g)||!Ur(i[g],s[g]))return!1}return!0}function Iv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function wv(i,s){var u=Iv(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=s&&h>=s)return{node:u,offset:s-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Iv(u)}}function Nv(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Nv(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Ov(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=sf(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=sf(i.document)}return s}function tg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var zN=gi&&"documentMode"in document&&11>=document.documentMode,Xs=null,ng=null,Sc=null,rg=!1;function Lv(i,s,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rg||Xs==null||Xs!==sf(h)||(h=Xs,"selectionStart"in h&&tg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Sc&&Ac(Sc,h)||(Sc=h,h=Jf(ng,"onSelect"),0<h.length&&(s=new ff("onSelect","select",null,s,u),i.push({event:s,listeners:h}),s.target=Xs)))}function qo(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Zs={animationend:qo("Animation","AnimationEnd"),animationiteration:qo("Animation","AnimationIteration"),animationstart:qo("Animation","AnimationStart"),transitionrun:qo("Transition","TransitionRun"),transitionstart:qo("Transition","TransitionStart"),transitioncancel:qo("Transition","TransitionCancel"),transitionend:qo("Transition","TransitionEnd")},ag={},Mv={};gi&&(Mv=document.createElement("div").style,"AnimationEvent"in window||(delete Zs.animationend.animation,delete Zs.animationiteration.animation,delete Zs.animationstart.animation),"TransitionEvent"in window||delete Zs.transitionend.transition);function Yo(i){if(ag[i])return ag[i];if(!Zs[i])return i;var s=Zs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in Mv)return ag[i]=s[u];return i}var Pv=Yo("animationend"),$v=Yo("animationiteration"),Fv=Yo("animationstart"),GN=Yo("transitionrun"),VN=Yo("transitionstart"),qN=Yo("transitioncancel"),jv=Yo("transitionend"),Bv=new Map,ig="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(" ");ig.push("scrollEnd");function ka(i,s){Bv.set(i,s),Br(s,[i])}var Uv=new WeakMap;function oa(i,s){if(typeof i=="object"&&i!==null){var u=Uv.get(i);return u!==void 0?u:(s={value:i,source:s,stack:af(s)},Uv.set(i,s),s)}return{value:i,source:s,stack:af(s)}}var sa=[],Js=0,og=0;function mf(){for(var i=Js,s=og=Js=0;s<i;){var u=sa[s];sa[s++]=null;var h=sa[s];sa[s++]=null;var g=sa[s];sa[s++]=null;var v=sa[s];if(sa[s++]=null,h!==null&&g!==null){var R=h.pending;R===null?g.next=g:(g.next=R.next,R.next=g),h.pending=g}v!==0&&Hv(u,g,v)}}function gf(i,s,u,h){sa[Js++]=i,sa[Js++]=s,sa[Js++]=u,sa[Js++]=h,og|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function sg(i,s,u,h){return gf(i,s,u,h),yf(i)}function el(i,s){return gf(i,null,null,s),yf(i)}function Hv(i,s,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,v=i.return;v!==null;)v.childLanes|=u,h=v.alternate,h!==null&&(h.childLanes|=u),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&s!==null&&(g=31-nt(u),i=v.hiddenUpdates,h=i[g],h===null?i[g]=[s]:h.push(s),s.lane=u|536870912),v):null}function yf(i){if(50<Wc)throw Wc=0,h0=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var tl={};function YN(i,s,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hr(i,s,u,h){return new YN(i,s,u,h)}function lg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function yi(i,s){var u=i.alternate;return u===null?(u=Hr(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function zv(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function bf(i,s,u,h,g,v){var R=0;if(h=i,typeof i=="function")lg(i)&&(R=1);else if(typeof i=="string")R=KO(i,u,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case K:return i=Hr(31,u,s,g),i.elementType=K,i.lanes=v,i;case T:return Qo(u.children,g,v,s);case A:R=8,g|=24;break;case C:return i=Hr(12,u,s,g|2),i.elementType=C,i.lanes=v,i;case L:return i=Hr(13,u,s,g),i.elementType=L,i.lanes=v,i;case I:return i=Hr(19,u,s,g),i.elementType=I,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case S:R=10;break e;case D:R=9;break e;case M:R=11;break e;case V:R=14;break e;case ne:R=16,h=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=Hr(R,u,s,g),s.elementType=i,s.type=h,s.lanes=v,s}function Qo(i,s,u,h){return i=Hr(7,i,h,s),i.lanes=u,i}function cg(i,s,u){return i=Hr(6,i,null,s),i.lanes=u,i}function ug(i,s,u){return s=Hr(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var nl=[],rl=0,Ef=null,vf=0,la=[],ca=0,Ko=null,bi=1,Ei="";function Wo(i,s){nl[rl++]=vf,nl[rl++]=Ef,Ef=i,vf=s}function Gv(i,s,u){la[ca++]=bi,la[ca++]=Ei,la[ca++]=Ko,Ko=i;var h=bi;i=Ei;var g=32-nt(h)-1;h&=~(1<<g),u+=1;var v=32-nt(s)+g;if(30<v){var R=g-g%5;v=(h&(1<<R)-1).toString(32),h>>=R,g-=R,bi=1<<32-nt(s)+g|u<<g|h,Ei=v+i}else bi=1<<v|u<<g|h,Ei=i}function dg(i){i.return!==null&&(Wo(i,1),Gv(i,1,0))}function fg(i){for(;i===Ef;)Ef=nl[--rl],nl[rl]=null,vf=nl[--rl],nl[rl]=null;for(;i===Ko;)Ko=la[--ca],la[ca]=null,Ei=la[--ca],la[ca]=null,bi=la[--ca],la[ca]=null}var br=null,En=null,It=!1,Xo=null,Ha=!1,hg=Error(r(519));function Zo(i){var s=Error(r(418,""));throw kc(oa(s,i)),hg}function Vv(i){var s=i.stateNode,u=i.type,h=i.memoizedProps;switch(s[Ee]=i,s[De]=h,u){case"dialog":vt("cancel",s),vt("close",s);break;case"iframe":case"object":case"embed":vt("load",s);break;case"video":case"audio":for(u=0;u<Zc.length;u++)vt(Zc[u],s);break;case"source":vt("error",s);break;case"img":case"image":case"link":vt("error",s),vt("load",s);break;case"details":vt("toggle",s);break;case"input":vt("invalid",s),ov(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),of(s);break;case"select":vt("invalid",s);break;case"textarea":vt("invalid",s),lv(s,h.value,h.defaultValue,h.children),of(s)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||h.suppressHydrationWarning===!0||lx(s.textContent,u)?(h.popover!=null&&(vt("beforetoggle",s),vt("toggle",s)),h.onScroll!=null&&vt("scroll",s),h.onScrollEnd!=null&&vt("scrollend",s),h.onClick!=null&&(s.onclick=eh),s=!0):s=!1,s||Zo(i)}function qv(i){for(br=i.return;br;)switch(br.tag){case 5:case 13:Ha=!1;return;case 27:case 3:Ha=!0;return;default:br=br.return}}function Cc(i){if(i!==br)return!1;if(!It)return qv(i),It=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||R0(i.type,i.memoizedProps)),u=!u),u&&En&&Zo(i),qv(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(s===0){En=Ia(i.nextSibling);break e}s--}else u!=="$"&&u!=="$!"&&u!=="$?"||s++;i=i.nextSibling}En=null}}else s===27?(s=En,fo(i.type)?(i=O0,O0=null,En=i):En=s):En=br?Ia(i.stateNode.nextSibling):null;return!0}function Dc(){En=br=null,It=!1}function Yv(){var i=Xo;return i!==null&&(Rr===null?Rr=i:Rr.push.apply(Rr,i),Xo=null),i}function kc(i){Xo===null?Xo=[i]:Xo.push(i)}var pg=Ne(null),Jo=null,vi=null;function Wi(i,s,u){w(pg,s._currentValue),s._currentValue=u}function Ti(i){i._currentValue=pg.current,ce(pg)}function mg(i,s,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===u)break;i=i.return}}function gg(i,s,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var R=g.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=g;for(var U=0;U<s.length;U++)if(O.context===s[U]){v.lanes|=u,O=v.alternate,O!==null&&(O.lanes|=u),mg(v.return,u,i),h||(R=null);break e}v=O.next}}else if(g.tag===18){if(R=g.return,R===null)throw Error(r(341));R.lanes|=u,v=R.alternate,v!==null&&(v.lanes|=u),mg(R,u,i),R=null}else R=g.child;if(R!==null)R.return=g;else for(R=g;R!==null;){if(R===i){R=null;break}if(g=R.sibling,g!==null){g.return=R.return,R=g;break}R=R.return}g=R}}function Rc(i,s,u,h){i=null;for(var g=s,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var R=g.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var O=g.type;Ur(g.pendingProps.value,R.value)||(i!==null?i.push(O):i=[O])}}else if(g===Me.current){if(R=g.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(au):i=[au])}g=g.return}i!==null&&gg(s,i,u,h),s.flags|=262144}function Tf(i){for(i=i.firstContext;i!==null;){if(!Ur(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function es(i){Jo=i,vi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function sr(i){return Qv(Jo,i)}function _f(i,s){return Jo===null&&es(i),Qv(i,s)}function Qv(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},vi===null){if(i===null)throw Error(r(308));vi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else vi=vi.next=s;return u}var QN=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},KN=e.unstable_scheduleCallback,WN=e.unstable_NormalPriority,Fn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new QN,data:new Map,refCount:0}}function Ic(i){i.refCount--,i.refCount===0&&KN(WN,function(){i.controller.abort()})}var wc=null,bg=0,al=0,il=null;function XN(i,s){if(wc===null){var u=wc=[];bg=0,al=v0(),il={status:"pending",value:void 0,then:function(h){u.push(h)}}}return bg++,s.then(Kv,Kv),s}function Kv(){if(--bg===0&&wc!==null){il!==null&&(il.status="fulfilled");var i=wc;wc=null,al=0,il=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function ZN(i,s){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var g=0;g<u.length;g++)(0,u[g])(s)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Wv=G.S;G.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&XN(i,s),Wv!==null&&Wv(i,s)};var ts=Ne(null);function Eg(){var i=ts.current;return i!==null?i:tn.pooledCache}function xf(i,s){s===null?w(ts,ts.current):w(ts,s.pool)}function Xv(){var i=Eg();return i===null?null:{parent:Fn._currentValue,pool:i}}var Nc=Error(r(460)),Zv=Error(r(474)),Af=Error(r(542)),vg={then:function(){}};function Jv(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Sf(){}function eT(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(Sf,Sf),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,nT(i),i;default:if(typeof s.status=="string")s.then(Sf,Sf);else{if(i=tn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var g=s;g.status="fulfilled",g.value=h}},function(h){if(s.status==="pending"){var g=s;g.status="rejected",g.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,nT(i),i}throw Oc=s,Nc}}var Oc=null;function tT(){if(Oc===null)throw Error(r(459));var i=Oc;return Oc=null,i}function nT(i){if(i===Nc||i===Af)throw Error(r(483))}var Xi=!1;function Tg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _g(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Zi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ji(i,s,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Lt&2)!==0){var g=h.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),h.pending=s,s=yf(i),Hv(i,null,u),s}return gf(i,h,s,u),yf(i)}function Lc(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,fn(i,u)}}function xg(i,s){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};v===null?g=v=R:v=v.next=R,u=u.next}while(u!==null);v===null?g=v=s:v=v.next=s}else g=v=s;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Ag=!1;function Mc(){if(Ag){var i=il;if(i!==null)throw i}}function Pc(i,s,u,h){Ag=!1;var g=i.updateQueue;Xi=!1;var v=g.firstBaseUpdate,R=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var U=O,ee=U.next;U.next=null,R===null?v=ee:R.next=ee,R=U;var pe=i.alternate;pe!==null&&(pe=pe.updateQueue,O=pe.lastBaseUpdate,O!==R&&(O===null?pe.firstBaseUpdate=ee:O.next=ee,pe.lastBaseUpdate=U))}if(v!==null){var be=g.baseState;R=0,pe=ee=U=null,O=v;do{var ae=O.lane&-536870913,oe=ae!==O.lane;if(oe?(At&ae)===ae:(h&ae)===ae){ae!==0&&ae===al&&(Ag=!0),pe!==null&&(pe=pe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var it=i,Je=O;ae=s;var jt=u;switch(Je.tag){case 1:if(it=Je.payload,typeof it=="function"){be=it.call(jt,be,ae);break e}be=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=Je.payload,ae=typeof it=="function"?it.call(jt,be,ae):it,ae==null)break e;be=p({},be,ae);break e;case 2:Xi=!0}}ae=O.callback,ae!==null&&(i.flags|=64,oe&&(i.flags|=8192),oe=g.callbacks,oe===null?g.callbacks=[ae]:oe.push(ae))}else oe={lane:ae,tag:O.tag,payload:O.payload,callback:O.callback,next:null},pe===null?(ee=pe=oe,U=be):pe=pe.next=oe,R|=ae;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;oe=O,O=oe.next,oe.next=null,g.lastBaseUpdate=oe,g.shared.pending=null}}while(!0);pe===null&&(U=be),g.baseState=U,g.firstBaseUpdate=ee,g.lastBaseUpdate=pe,v===null&&(g.shared.lanes=0),so|=R,i.lanes=R,i.memoizedState=be}}function rT(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function aT(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)rT(u[i],s)}var ol=Ne(null),Cf=Ne(0);function iT(i,s){i=ki,w(Cf,i),w(ol,s),ki=i|s.baseLanes}function Sg(){w(Cf,ki),w(ol,ol.current)}function Cg(){ki=Cf.current,ce(ol),ce(Cf)}var eo=0,mt=null,$t=null,Nn=null,Df=!1,sl=!1,ns=!1,kf=0,$c=0,ll=null,JN=0;function Dn(){throw Error(r(321))}function Dg(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Ur(i[u],s[u]))return!1;return!0}function kg(i,s,u,h,g,v){return eo=v,mt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=i===null||i.memoizedState===null?HT:zT,ns=!1,v=u(h,g),ns=!1,sl&&(v=sT(s,u,h,g)),oT(i),v}function oT(i){G.H=Lf;var s=$t!==null&&$t.next!==null;if(eo=0,Nn=$t=mt=null,Df=!1,$c=0,ll=null,s)throw Error(r(300));i===null||Vn||(i=i.dependencies,i!==null&&Tf(i)&&(Vn=!0))}function sT(i,s,u,h){mt=i;var g=0;do{if(sl&&(ll=null),$c=0,sl=!1,25<=g)throw Error(r(301));if(g+=1,Nn=$t=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}G.H=oO,v=s(u,h)}while(sl);return v}function eO(){var i=G.H,s=i.useState()[0];return s=typeof s.then=="function"?Fc(s):s,i=i.useState()[0],($t!==null?$t.memoizedState:null)!==i&&(mt.flags|=1024),s}function Rg(){var i=kf!==0;return kf=0,i}function Ig(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function wg(i){if(Df){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Df=!1}eo=0,Nn=$t=mt=null,sl=!1,$c=kf=0,ll=null}function Dr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nn===null?mt.memoizedState=Nn=i:Nn=Nn.next=i,Nn}function On(){if($t===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=$t.next;var s=Nn===null?mt.memoizedState:Nn.next;if(s!==null)Nn=s,$t=i;else{if(i===null)throw mt.alternate===null?Error(r(467)):Error(r(310));$t=i,i={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},Nn===null?mt.memoizedState=Nn=i:Nn=Nn.next=i}return Nn}function Ng(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fc(i){var s=$c;return $c+=1,ll===null&&(ll=[]),i=eT(ll,i,s),s=mt,(Nn===null?s.memoizedState:Nn.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?HT:zT),i}function Rf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Fc(i);if(i.$$typeof===S)return sr(i)}throw Error(r(438,String(i)))}function Og(i){var s=null,u=mt.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var h=mt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(g){return g.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Ng(),mt.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),h=0;h<i;h++)u[h]=k;return s.index++,u}function _i(i,s){return typeof s=="function"?s(i):s}function If(i){var s=On();return Lg(s,$t,i)}function Lg(i,s,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,v=h.pending;if(v!==null){if(g!==null){var R=g.next;g.next=v.next,v.next=R}s.baseQueue=g=v,h.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{s=g.next;var O=R=null,U=null,ee=s,pe=!1;do{var be=ee.lane&-536870913;if(be!==ee.lane?(At&be)===be:(eo&be)===be){var ae=ee.revertLane;if(ae===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),be===al&&(pe=!0);else if((eo&ae)===ae){ee=ee.next,ae===al&&(pe=!0);continue}else be={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=be,R=v):U=U.next=be,mt.lanes|=ae,so|=ae;be=ee.action,ns&&u(v,be),v=ee.hasEagerState?ee.eagerState:u(v,be)}else ae={lane:be,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=ae,R=v):U=U.next=ae,mt.lanes|=be,so|=be;ee=ee.next}while(ee!==null&&ee!==s);if(U===null?R=v:U.next=O,!Ur(v,i.memoizedState)&&(Vn=!0,pe&&(u=il,u!==null)))throw u;i.memoizedState=v,i.baseState=R,i.baseQueue=U,h.lastRenderedState=v}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Mg(i){var s=On(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,v=s.memoizedState;if(g!==null){u.pending=null;var R=g=g.next;do v=i(v,R.action),R=R.next;while(R!==g);Ur(v,s.memoizedState)||(Vn=!0),s.memoizedState=v,s.baseQueue===null&&(s.baseState=v),u.lastRenderedState=v}return[v,h]}function lT(i,s,u){var h=mt,g=On(),v=It;if(v){if(u===void 0)throw Error(r(407));u=u()}else u=s();var R=!Ur(($t||g).memoizedState,u);R&&(g.memoizedState=u,Vn=!0),g=g.queue;var O=dT.bind(null,h,g,i);if(jc(2048,8,O,[i]),g.getSnapshot!==s||R||Nn!==null&&Nn.memoizedState.tag&1){if(h.flags|=2048,cl(9,wf(),uT.bind(null,h,g,u,s),null),tn===null)throw Error(r(349));v||(eo&124)!==0||cT(h,s,u)}return u}function cT(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=mt.updateQueue,s===null?(s=Ng(),mt.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function uT(i,s,u,h){s.value=u,s.getSnapshot=h,fT(s)&&hT(i)}function dT(i,s,u){return u(function(){fT(s)&&hT(i)})}function fT(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Ur(i,u)}catch{return!0}}function hT(i){var s=el(i,2);s!==null&&Yr(s,i,2)}function Pg(i){var s=Dr();if(typeof i=="function"){var u=i;if(i=u(),ns){Fe(!0);try{u()}finally{Fe(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:i},s}function pT(i,s,u,h){return i.baseState=u,Lg(i,$t,typeof h=="function"?h:_i)}function tO(i,s,u,h,g){if(Of(i))throw Error(r(485));if(i=s.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){v.listeners.push(R)}};G.T!==null?u(!0):v.isTransition=!1,h(v),u=s.pending,u===null?(v.next=s.pending=v,mT(s,v)):(v.next=u.next,s.pending=u.next=v)}}function mT(i,s){var u=s.action,h=s.payload,g=i.state;if(s.isTransition){var v=G.T,R={};G.T=R;try{var O=u(g,h),U=G.S;U!==null&&U(R,O),gT(i,s,O)}catch(ee){$g(i,s,ee)}finally{G.T=v}}else try{v=u(g,h),gT(i,s,v)}catch(ee){$g(i,s,ee)}}function gT(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){yT(i,s,h)},function(h){return $g(i,s,h)}):yT(i,s,u)}function yT(i,s,u){s.status="fulfilled",s.value=u,bT(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,mT(i,u)))}function $g(i,s,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=u,bT(s),s=s.next;while(s!==h)}i.action=null}function bT(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function ET(i,s){return s}function vT(i,s){if(It){var u=tn.formState;if(u!==null){e:{var h=mt;if(It){if(En){t:{for(var g=En,v=Ha;g.nodeType!==8;){if(!v){g=null;break t}if(g=Ia(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){En=Ia(g.nextSibling),h=g.data==="F!";break e}}Zo(h)}h=!1}h&&(s=u[0])}}return u=Dr(),u.memoizedState=u.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ET,lastRenderedState:s},u.queue=h,u=jT.bind(null,mt,h),h.dispatch=u,h=Pg(!1),v=Hg.bind(null,mt,!1,h.queue),h=Dr(),g={state:s,dispatch:null,action:i,pending:null},h.queue=g,u=tO.bind(null,mt,g,v,u),g.dispatch=u,h.memoizedState=i,[s,u,!1]}function TT(i){var s=On();return _T(s,$t,i)}function _T(i,s,u){if(s=Lg(i,s,ET)[0],i=If(_i)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Fc(s)}catch(R){throw R===Nc?Af:R}else h=s;s=On();var g=s.queue,v=g.dispatch;return u!==s.memoizedState&&(mt.flags|=2048,cl(9,wf(),nO.bind(null,g,u),null)),[h,v,i]}function nO(i,s){i.action=s}function xT(i){var s=On(),u=$t;if(u!==null)return _T(s,u,i);On(),s=s.memoizedState,u=On();var h=u.queue.dispatch;return u.memoizedState=i,[s,h,!1]}function cl(i,s,u,h){return i={tag:i,create:u,deps:h,inst:s,next:null},s=mt.updateQueue,s===null&&(s=Ng(),mt.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,s.lastEffect=i),i}function wf(){return{destroy:void 0,resource:void 0}}function AT(){return On().memoizedState}function Nf(i,s,u,h){var g=Dr();h=h===void 0?null:h,mt.flags|=i,g.memoizedState=cl(1|s,wf(),u,h)}function jc(i,s,u,h){var g=On();h=h===void 0?null:h;var v=g.memoizedState.inst;$t!==null&&h!==null&&Dg(h,$t.memoizedState.deps)?g.memoizedState=cl(s,v,u,h):(mt.flags|=i,g.memoizedState=cl(1|s,v,u,h))}function ST(i,s){Nf(8390656,8,i,s)}function CT(i,s){jc(2048,8,i,s)}function DT(i,s){return jc(4,2,i,s)}function kT(i,s){return jc(4,4,i,s)}function RT(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function IT(i,s,u){u=u!=null?u.concat([i]):null,jc(4,4,RT.bind(null,s,i),u)}function Fg(){}function wT(i,s){var u=On();s=s===void 0?null:s;var h=u.memoizedState;return s!==null&&Dg(s,h[1])?h[0]:(u.memoizedState=[i,s],i)}function NT(i,s){var u=On();s=s===void 0?null:s;var h=u.memoizedState;if(s!==null&&Dg(s,h[1]))return h[0];if(h=i(),ns){Fe(!0);try{i()}finally{Fe(!1)}}return u.memoizedState=[h,s],h}function jg(i,s,u){return u===void 0||(eo&1073741824)!==0?i.memoizedState=s:(i.memoizedState=u,i=M_(),mt.lanes|=i,so|=i,u)}function OT(i,s,u,h){return Ur(u,s)?u:ol.current!==null?(i=jg(i,u,h),Ur(i,s)||(Vn=!0),i):(eo&42)===0?(Vn=!0,i.memoizedState=u):(i=M_(),mt.lanes|=i,so|=i,s)}function LT(i,s,u,h,g){var v=le.p;le.p=v!==0&&8>v?v:8;var R=G.T,O={};G.T=O,Hg(i,!1,s,u);try{var U=g(),ee=G.S;if(ee!==null&&ee(O,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var pe=ZN(U,h);Bc(i,s,pe,qr(i))}else Bc(i,s,h,qr(i))}catch(be){Bc(i,s,{then:function(){},status:"rejected",reason:be},qr())}finally{le.p=v,G.T=R}}function rO(){}function Bg(i,s,u,h){if(i.tag!==5)throw Error(r(476));var g=MT(i).queue;LT(i,g,s,se,u===null?rO:function(){return PT(i),u(h)})}function MT(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:se},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function PT(i){var s=MT(i).next.queue;Bc(i,s,{},qr())}function Ug(){return sr(au)}function $T(){return On().memoizedState}function FT(){return On().memoizedState}function aO(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=qr();i=Zi(u);var h=Ji(s,i,u);h!==null&&(Yr(h,s,u),Lc(h,s,u)),s={cache:yg()},i.payload=s;return}s=s.return}}function iO(i,s,u){var h=qr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Of(i)?BT(s,u):(u=sg(i,s,u,h),u!==null&&(Yr(u,i,h),UT(u,s,h)))}function jT(i,s,u){var h=qr();Bc(i,s,u,h)}function Bc(i,s,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Of(i))BT(s,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=s.lastRenderedReducer,v!==null))try{var R=s.lastRenderedState,O=v(R,u);if(g.hasEagerState=!0,g.eagerState=O,Ur(O,R))return gf(i,s,g,0),tn===null&&mf(),!1}catch{}finally{}if(u=sg(i,s,g,h),u!==null)return Yr(u,i,h),UT(u,s,h),!0}return!1}function Hg(i,s,u,h){if(h={lane:2,revertLane:v0(),action:h,hasEagerState:!1,eagerState:null,next:null},Of(i)){if(s)throw Error(r(479))}else s=sg(i,u,h,2),s!==null&&Yr(s,i,2)}function Of(i){var s=i.alternate;return i===mt||s!==null&&s===mt}function BT(i,s){sl=Df=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function UT(i,s,u){if((u&4194048)!==0){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,fn(i,u)}}var Lf={readContext:sr,use:Rf,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},HT={readContext:sr,use:Rf,useCallback:function(i,s){return Dr().memoizedState=[i,s===void 0?null:s],i},useContext:sr,useEffect:ST,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Nf(4194308,4,RT.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Nf(4194308,4,i,s)},useInsertionEffect:function(i,s){Nf(4,2,i,s)},useMemo:function(i,s){var u=Dr();s=s===void 0?null:s;var h=i();if(ns){Fe(!0);try{i()}finally{Fe(!1)}}return u.memoizedState=[h,s],h},useReducer:function(i,s,u){var h=Dr();if(u!==void 0){var g=u(s);if(ns){Fe(!0);try{u(s)}finally{Fe(!1)}}}else g=s;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=iO.bind(null,mt,i),[h.memoizedState,i]},useRef:function(i){var s=Dr();return i={current:i},s.memoizedState=i},useState:function(i){i=Pg(i);var s=i.queue,u=jT.bind(null,mt,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Dr();return jg(u,i,s)},useTransition:function(){var i=Pg(!1);return i=LT.bind(null,mt,i.queue,!0,!1),Dr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var h=mt,g=Dr();if(It){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),tn===null)throw Error(r(349));(At&124)!==0||cT(h,s,u)}g.memoizedState=u;var v={value:u,getSnapshot:s};return g.queue=v,ST(dT.bind(null,h,v,i),[i]),h.flags|=2048,cl(9,wf(),uT.bind(null,h,v,u,s),null),u},useId:function(){var i=Dr(),s=tn.identifierPrefix;if(It){var u=Ei,h=bi;u=(h&~(1<<32-nt(h)-1)).toString(32)+u,s="«"+s+"R"+u,u=kf++,0<u&&(s+="H"+u.toString(32)),s+="»"}else u=JN++,s="«"+s+"r"+u.toString(32)+"»";return i.memoizedState=s},useHostTransitionStatus:Ug,useFormState:vT,useActionState:vT,useOptimistic:function(i){var s=Dr();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Hg.bind(null,mt,!0,u),u.dispatch=s,[i,s]},useMemoCache:Og,useCacheRefresh:function(){return Dr().memoizedState=aO.bind(null,mt)}},zT={readContext:sr,use:Rf,useCallback:wT,useContext:sr,useEffect:CT,useImperativeHandle:IT,useInsertionEffect:DT,useLayoutEffect:kT,useMemo:NT,useReducer:If,useRef:AT,useState:function(){return If(_i)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=On();return OT(u,$t.memoizedState,i,s)},useTransition:function(){var i=If(_i)[0],s=On().memoizedState;return[typeof i=="boolean"?i:Fc(i),s]},useSyncExternalStore:lT,useId:$T,useHostTransitionStatus:Ug,useFormState:TT,useActionState:TT,useOptimistic:function(i,s){var u=On();return pT(u,$t,i,s)},useMemoCache:Og,useCacheRefresh:FT},oO={readContext:sr,use:Rf,useCallback:wT,useContext:sr,useEffect:CT,useImperativeHandle:IT,useInsertionEffect:DT,useLayoutEffect:kT,useMemo:NT,useReducer:Mg,useRef:AT,useState:function(){return Mg(_i)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=On();return $t===null?jg(u,i,s):OT(u,$t.memoizedState,i,s)},useTransition:function(){var i=Mg(_i)[0],s=On().memoizedState;return[typeof i=="boolean"?i:Fc(i),s]},useSyncExternalStore:lT,useId:$T,useHostTransitionStatus:Ug,useFormState:xT,useActionState:xT,useOptimistic:function(i,s){var u=On();return $t!==null?pT(u,$t,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Og,useCacheRefresh:FT},ul=null,Uc=0;function Mf(i){var s=Uc;return Uc+=1,ul===null&&(ul=[]),eT(ul,i,s)}function Hc(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Pf(i,s){throw s.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function GT(i){var s=i._init;return s(i._payload)}function VT(i){function s(Y,q){if(i){var Z=Y.deletions;Z===null?(Y.deletions=[q],Y.flags|=16):Z.push(q)}}function u(Y,q){if(!i)return null;for(;q!==null;)s(Y,q),q=q.sibling;return null}function h(Y){for(var q=new Map;Y!==null;)Y.key!==null?q.set(Y.key,Y):q.set(Y.index,Y),Y=Y.sibling;return q}function g(Y,q){return Y=yi(Y,q),Y.index=0,Y.sibling=null,Y}function v(Y,q,Z){return Y.index=Z,i?(Z=Y.alternate,Z!==null?(Z=Z.index,Z<q?(Y.flags|=67108866,q):Z):(Y.flags|=67108866,q)):(Y.flags|=1048576,q)}function R(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function O(Y,q,Z,ge){return q===null||q.tag!==6?(q=cg(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function U(Y,q,Z,ge){var $e=Z.type;return $e===T?pe(Y,q,Z.props.children,ge,Z.key):q!==null&&(q.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===ne&>($e)===q.type)?(q=g(q,Z.props),Hc(q,Z),q.return=Y,q):(q=bf(Z.type,Z.key,Z.props,null,Y.mode,ge),Hc(q,Z),q.return=Y,q)}function ee(Y,q,Z,ge){return q===null||q.tag!==4||q.stateNode.containerInfo!==Z.containerInfo||q.stateNode.implementation!==Z.implementation?(q=ug(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z.children||[]),q.return=Y,q)}function pe(Y,q,Z,ge,$e){return q===null||q.tag!==7?(q=Qo(Z,Y.mode,ge,$e),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function be(Y,q,Z){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=cg(""+q,Y.mode,Z),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case y:return Z=bf(q.type,q.key,q.props,null,Y.mode,Z),Hc(Z,q),Z.return=Y,Z;case b:return q=ug(q,Y.mode,Z),q.return=Y,q;case ne:var ge=q._init;return q=ge(q._payload),be(Y,q,Z)}if(me(q)||Q(q))return q=Qo(q,Y.mode,Z,null),q.return=Y,q;if(typeof q.then=="function")return be(Y,Mf(q),Z);if(q.$$typeof===S)return be(Y,_f(Y,q),Z);Pf(Y,q)}return null}function ae(Y,q,Z,ge){var $e=q!==null?q.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return $e!==null?null:O(Y,q,""+Z,ge);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:return Z.key===$e?U(Y,q,Z,ge):null;case b:return Z.key===$e?ee(Y,q,Z,ge):null;case ne:return $e=Z._init,Z=$e(Z._payload),ae(Y,q,Z,ge)}if(me(Z)||Q(Z))return $e!==null?null:pe(Y,q,Z,ge,null);if(typeof Z.then=="function")return ae(Y,q,Mf(Z),ge);if(Z.$$typeof===S)return ae(Y,q,_f(Y,Z),ge);Pf(Y,Z)}return null}function oe(Y,q,Z,ge,$e){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Y=Y.get(Z)||null,O(q,Y,""+ge,$e);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case y:return Y=Y.get(ge.key===null?Z:ge.key)||null,U(q,Y,ge,$e);case b:return Y=Y.get(ge.key===null?Z:ge.key)||null,ee(q,Y,ge,$e);case ne:var yt=ge._init;return ge=yt(ge._payload),oe(Y,q,Z,ge,$e)}if(me(ge)||Q(ge))return Y=Y.get(Z)||null,pe(q,Y,ge,$e,null);if(typeof ge.then=="function")return oe(Y,q,Z,Mf(ge),$e);if(ge.$$typeof===S)return oe(Y,q,Z,_f(q,ge),$e);Pf(q,ge)}return null}function it(Y,q,Z,ge){for(var $e=null,yt=null,Qe=q,tt=q=0,Yn=null;Qe!==null&&tt<Z.length;tt++){Qe.index>tt?(Yn=Qe,Qe=null):Yn=Qe.sibling;var kt=ae(Y,Qe,Z[tt],ge);if(kt===null){Qe===null&&(Qe=Yn);break}i&&Qe&&kt.alternate===null&&s(Y,Qe),q=v(kt,q,tt),yt===null?$e=kt:yt.sibling=kt,yt=kt,Qe=Yn}if(tt===Z.length)return u(Y,Qe),It&&Wo(Y,tt),$e;if(Qe===null){for(;tt<Z.length;tt++)Qe=be(Y,Z[tt],ge),Qe!==null&&(q=v(Qe,q,tt),yt===null?$e=Qe:yt.sibling=Qe,yt=Qe);return It&&Wo(Y,tt),$e}for(Qe=h(Qe);tt<Z.length;tt++)Yn=oe(Qe,Y,tt,Z[tt],ge),Yn!==null&&(i&&Yn.alternate!==null&&Qe.delete(Yn.key===null?tt:Yn.key),q=v(Yn,q,tt),yt===null?$e=Yn:yt.sibling=Yn,yt=Yn);return i&&Qe.forEach(function(yo){return s(Y,yo)}),It&&Wo(Y,tt),$e}function Je(Y,q,Z,ge){if(Z==null)throw Error(r(151));for(var $e=null,yt=null,Qe=q,tt=q=0,Yn=null,kt=Z.next();Qe!==null&&!kt.done;tt++,kt=Z.next()){Qe.index>tt?(Yn=Qe,Qe=null):Yn=Qe.sibling;var yo=ae(Y,Qe,kt.value,ge);if(yo===null){Qe===null&&(Qe=Yn);break}i&&Qe&&yo.alternate===null&&s(Y,Qe),q=v(yo,q,tt),yt===null?$e=yo:yt.sibling=yo,yt=yo,Qe=Yn}if(kt.done)return u(Y,Qe),It&&Wo(Y,tt),$e;if(Qe===null){for(;!kt.done;tt++,kt=Z.next())kt=be(Y,kt.value,ge),kt!==null&&(q=v(kt,q,tt),yt===null?$e=kt:yt.sibling=kt,yt=kt);return It&&Wo(Y,tt),$e}for(Qe=h(Qe);!kt.done;tt++,kt=Z.next())kt=oe(Qe,Y,tt,kt.value,ge),kt!==null&&(i&&kt.alternate!==null&&Qe.delete(kt.key===null?tt:kt.key),q=v(kt,q,tt),yt===null?$e=kt:yt.sibling=kt,yt=kt);return i&&Qe.forEach(function(s5){return s(Y,s5)}),It&&Wo(Y,tt),$e}function jt(Y,q,Z,ge){if(typeof Z=="object"&&Z!==null&&Z.type===T&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:e:{for(var $e=Z.key;q!==null;){if(q.key===$e){if($e=Z.type,$e===T){if(q.tag===7){u(Y,q.sibling),ge=g(q,Z.props.children),ge.return=Y,Y=ge;break e}}else if(q.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===ne&>($e)===q.type){u(Y,q.sibling),ge=g(q,Z.props),Hc(ge,Z),ge.return=Y,Y=ge;break e}u(Y,q);break}else s(Y,q);q=q.sibling}Z.type===T?(ge=Qo(Z.props.children,Y.mode,ge,Z.key),ge.return=Y,Y=ge):(ge=bf(Z.type,Z.key,Z.props,null,Y.mode,ge),Hc(ge,Z),ge.return=Y,Y=ge)}return R(Y);case b:e:{for($e=Z.key;q!==null;){if(q.key===$e)if(q.tag===4&&q.stateNode.containerInfo===Z.containerInfo&&q.stateNode.implementation===Z.implementation){u(Y,q.sibling),ge=g(q,Z.children||[]),ge.return=Y,Y=ge;break e}else{u(Y,q);break}else s(Y,q);q=q.sibling}ge=ug(Z,Y.mode,ge),ge.return=Y,Y=ge}return R(Y);case ne:return $e=Z._init,Z=$e(Z._payload),jt(Y,q,Z,ge)}if(me(Z))return it(Y,q,Z,ge);if(Q(Z)){if($e=Q(Z),typeof $e!="function")throw Error(r(150));return Z=$e.call(Z),Je(Y,q,Z,ge)}if(typeof Z.then=="function")return jt(Y,q,Mf(Z),ge);if(Z.$$typeof===S)return jt(Y,q,_f(Y,Z),ge);Pf(Y,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,q!==null&&q.tag===6?(u(Y,q.sibling),ge=g(q,Z),ge.return=Y,Y=ge):(u(Y,q),ge=cg(Z,Y.mode,ge),ge.return=Y,Y=ge),R(Y)):u(Y,q)}return function(Y,q,Z,ge){try{Uc=0;var $e=jt(Y,q,Z,ge);return ul=null,$e}catch(Qe){if(Qe===Nc||Qe===Af)throw Qe;var yt=Hr(29,Qe,null,Y.mode);return yt.lanes=ge,yt.return=Y,yt}finally{}}}var dl=VT(!0),qT=VT(!1),ua=Ne(null),za=null;function to(i){var s=i.alternate;w(jn,jn.current&1),w(ua,i),za===null&&(s===null||ol.current!==null||s.memoizedState!==null)&&(za=i)}function YT(i){if(i.tag===22){if(w(jn,jn.current),w(ua,i),za===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(za=i)}}else no()}function no(){w(jn,jn.current),w(ua,ua.current)}function xi(i){ce(ua),za===i&&(za=null),ce(jn)}var jn=Ne(0);function $f(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||N0(u)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function zg(i,s,u,h){s=i.memoizedState,u=u(h,s),u=u==null?s:p({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Gg={enqueueSetState:function(i,s,u){i=i._reactInternals;var h=qr(),g=Zi(h);g.payload=s,u!=null&&(g.callback=u),s=Ji(i,g,h),s!==null&&(Yr(s,i,h),Lc(s,i,h))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var h=qr(),g=Zi(h);g.tag=1,g.payload=s,u!=null&&(g.callback=u),s=Ji(i,g,h),s!==null&&(Yr(s,i,h),Lc(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=qr(),h=Zi(u);h.tag=2,s!=null&&(h.callback=s),s=Ji(i,h,u),s!==null&&(Yr(s,i,u),Lc(s,i,u))}};function QT(i,s,u,h,g,v,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,v,R):s.prototype&&s.prototype.isPureReactComponent?!Ac(u,h)||!Ac(g,v):!0}function KT(i,s,u,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,h),s.state!==i&&Gg.enqueueReplaceState(s,s.state,null)}function rs(i,s){var u=s;if("ref"in s){u={};for(var h in s)h!=="ref"&&(u[h]=s[h])}if(i=i.defaultProps){u===s&&(u=p({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var Ff=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=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(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function WT(i){Ff(i)}function XT(i){console.error(i)}function ZT(i){Ff(i)}function jf(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function JT(i,s,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Vg(i,s,u){return u=Zi(u),u.tag=3,u.payload={element:null},u.callback=function(){jf(i,s)},u}function e_(i){return i=Zi(i),i.tag=3,i}function t_(i,s,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var v=h.value;i.payload=function(){return g(v)},i.callback=function(){JT(s,u,h)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){JT(s,u,h),typeof g!="function"&&(lo===null?lo=new Set([this]):lo.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function sO(i,s,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=u.alternate,s!==null&&Rc(s,u,g,!0),u=ua.current,u!==null){switch(u.tag){case 13:return za===null?m0():u.alternate===null&&vn===0&&(vn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([h]):s.add(h),y0(i,h,g)),!1;case 22:return u.flags|=65536,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([h]):u.add(h)),y0(i,h,g)),!1}throw Error(r(435,u.tag))}return y0(i,h,g),m0(),!1}if(It)return s=ua.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=g,h!==hg&&(i=Error(r(422),{cause:h}),kc(oa(i,u)))):(h!==hg&&(s=Error(r(423),{cause:h}),kc(oa(s,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=oa(h,u),g=Vg(i.stateNode,h,g),xg(i,g),vn!==4&&(vn=2)),!1;var v=Error(r(520),{cause:h});if(v=oa(v,u),Kc===null?Kc=[v]:Kc.push(v),vn!==4&&(vn=2),s===null)return!0;h=oa(h,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=Vg(u.stateNode,h,i),xg(u,i),!1;case 1:if(s=u.type,v=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(lo===null||!lo.has(v))))return u.flags|=65536,g&=-g,u.lanes|=g,g=e_(g),t_(g,i,u,h),xg(u,g),!1}u=u.return}while(u!==null);return!1}var n_=Error(r(461)),Vn=!1;function Zn(i,s,u,h){s.child=i===null?qT(s,null,u,h):dl(s,i.child,u,h)}function r_(i,s,u,h,g){u=u.render;var v=s.ref;if("ref"in h){var R={};for(var O in h)O!=="ref"&&(R[O]=h[O])}else R=h;return es(s),h=kg(i,s,u,R,v,g),O=Rg(),i!==null&&!Vn?(Ig(i,s,g),Ai(i,s,g)):(It&&O&&dg(s),s.flags|=1,Zn(i,s,h,g),s.child)}function a_(i,s,u,h,g){if(i===null){var v=u.type;return typeof v=="function"&&!lg(v)&&v.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=v,i_(i,s,v,h,g)):(i=bf(u.type,null,h,s,s.mode,g),i.ref=s.ref,i.return=s,s.child=i)}if(v=i.child,!Jg(i,g)){var R=v.memoizedProps;if(u=u.compare,u=u!==null?u:Ac,u(R,h)&&i.ref===s.ref)return Ai(i,s,g)}return s.flags|=1,i=yi(v,h),i.ref=s.ref,i.return=s,s.child=i}function i_(i,s,u,h,g){if(i!==null){var v=i.memoizedProps;if(Ac(v,h)&&i.ref===s.ref)if(Vn=!1,s.pendingProps=h=v,Jg(i,g))(i.flags&131072)!==0&&(Vn=!0);else return s.lanes=i.lanes,Ai(i,s,g)}return qg(i,s,u,h,g)}function o_(i,s,u){var h=s.pendingProps,g=h.children,v=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((s.flags&128)!==0){if(h=v!==null?v.baseLanes|u:u,i!==null){for(g=s.child=i.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;s.childLanes=v&~h}else s.childLanes=0,s.child=null;return s_(i,s,h,u)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&xf(s,v!==null?v.cachePool:null),v!==null?iT(s,v):Sg(),YT(s);else return s.lanes=s.childLanes=536870912,s_(i,s,v!==null?v.baseLanes|u:u,u)}else v!==null?(xf(s,v.cachePool),iT(s,v),no(),s.memoizedState=null):(i!==null&&xf(s,null),Sg(),no());return Zn(i,s,g,u),s.child}function s_(i,s,u,h){var g=Eg();return g=g===null?null:{parent:Fn._currentValue,pool:g},s.memoizedState={baseLanes:u,cachePool:g},i!==null&&xf(s,null),Sg(),YT(s),i!==null&&Rc(i,s,h,!0),null}function Bf(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function qg(i,s,u,h,g){return es(s),u=kg(i,s,u,h,void 0,g),h=Rg(),i!==null&&!Vn?(Ig(i,s,g),Ai(i,s,g)):(It&&h&&dg(s),s.flags|=1,Zn(i,s,u,g),s.child)}function l_(i,s,u,h,g,v){return es(s),s.updateQueue=null,u=sT(s,h,u,g),oT(i),h=Rg(),i!==null&&!Vn?(Ig(i,s,v),Ai(i,s,v)):(It&&h&&dg(s),s.flags|=1,Zn(i,s,u,v),s.child)}function c_(i,s,u,h,g){if(es(s),s.stateNode===null){var v=tl,R=u.contextType;typeof R=="object"&&R!==null&&(v=sr(R)),v=new u(h,v),s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Gg,s.stateNode=v,v._reactInternals=s,v=s.stateNode,v.props=h,v.state=s.memoizedState,v.refs={},Tg(s),R=u.contextType,v.context=typeof R=="object"&&R!==null?sr(R):tl,v.state=s.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(zg(s,u,R,h),v.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(R=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),R!==v.state&&Gg.enqueueReplaceState(v,v.state,null),Pc(s,h,v,g),Mc(),v.state=s.memoizedState),typeof v.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){v=s.stateNode;var O=s.memoizedProps,U=rs(u,O);v.props=U;var ee=v.context,pe=u.contextType;R=tl,typeof pe=="object"&&pe!==null&&(R=sr(pe));var be=u.getDerivedStateFromProps;pe=typeof be=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=s.pendingProps!==O,pe||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||ee!==R)&&KT(s,v,h,R),Xi=!1;var ae=s.memoizedState;v.state=ae,Pc(s,h,v,g),Mc(),ee=s.memoizedState,O||ae!==ee||Xi?(typeof be=="function"&&(zg(s,u,be,h),ee=s.memoizedState),(U=Xi||QT(s,u,U,h,ae,ee,R))?(pe||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=ee),v.props=h,v.state=ee,v.context=R,h=U):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{v=s.stateNode,_g(i,s),R=s.memoizedProps,pe=rs(u,R),v.props=pe,be=s.pendingProps,ae=v.context,ee=u.contextType,U=tl,typeof ee=="object"&&ee!==null&&(U=sr(ee)),O=u.getDerivedStateFromProps,(ee=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==be||ae!==U)&&KT(s,v,h,U),Xi=!1,ae=s.memoizedState,v.state=ae,Pc(s,h,v,g),Mc();var oe=s.memoizedState;R!==be||ae!==oe||Xi||i!==null&&i.dependencies!==null&&Tf(i.dependencies)?(typeof O=="function"&&(zg(s,u,O,h),oe=s.memoizedState),(pe=Xi||QT(s,u,pe,h,ae,oe,U)||i!==null&&i.dependencies!==null&&Tf(i.dependencies))?(ee||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,oe,U),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,oe,U)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=oe),v.props=h,v.state=oe,v.context=U,h=pe):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),h=!1)}return v=h,Bf(i,s),h=(s.flags&128)!==0,v||h?(v=s.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:v.render(),s.flags|=1,i!==null&&h?(s.child=dl(s,i.child,null,g),s.child=dl(s,null,u,g)):Zn(i,s,u,g),s.memoizedState=v.state,i=s.child):i=Ai(i,s,g),i}function u_(i,s,u,h){return Dc(),s.flags|=256,Zn(i,s,u,h),s.child}var Yg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qg(i){return{baseLanes:i,cachePool:Xv()}}function Kg(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=da),i}function d_(i,s,u){var h=s.pendingProps,g=!1,v=(s.flags&128)!==0,R;if((R=v)||(R=i!==null&&i.memoizedState===null?!1:(jn.current&2)!==0),R&&(g=!0,s.flags&=-129),R=(s.flags&32)!==0,s.flags&=-33,i===null){if(It){if(g?to(s):no(),It){var O=En,U;if(U=O){e:{for(U=O,O=Ha;U.nodeType!==8;){if(!O){O=null;break e}if(U=Ia(U.nextSibling),U===null){O=null;break e}}O=U}O!==null?(s.memoizedState={dehydrated:O,treeContext:Ko!==null?{id:bi,overflow:Ei}:null,retryLane:536870912,hydrationErrors:null},U=Hr(18,null,null,0),U.stateNode=O,U.return=s,s.child=U,br=s,En=null,U=!0):U=!1}U||Zo(s)}if(O=s.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return N0(O)?s.lanes=32:s.lanes=536870912,null;xi(s)}return O=h.children,h=h.fallback,g?(no(),g=s.mode,O=Uf({mode:"hidden",children:O},g),h=Qo(h,g,u,null),O.return=s,h.return=s,O.sibling=h,s.child=O,g=s.child,g.memoizedState=Qg(u),g.childLanes=Kg(i,R,u),s.memoizedState=Yg,h):(to(s),Wg(s,O))}if(U=i.memoizedState,U!==null&&(O=U.dehydrated,O!==null)){if(v)s.flags&256?(to(s),s.flags&=-257,s=Xg(i,s,u)):s.memoizedState!==null?(no(),s.child=i.child,s.flags|=128,s=null):(no(),g=h.fallback,O=s.mode,h=Uf({mode:"visible",children:h.children},O),g=Qo(g,O,u,null),g.flags|=2,h.return=s,g.return=s,h.sibling=g,s.child=h,dl(s,i.child,null,u),h=s.child,h.memoizedState=Qg(u),h.childLanes=Kg(i,R,u),s.memoizedState=Yg,s=g);else if(to(s),N0(O)){if(R=O.nextSibling&&O.nextSibling.dataset,R)var ee=R.dgst;R=ee,h=Error(r(419)),h.stack="",h.digest=R,kc({value:h,source:null,stack:null}),s=Xg(i,s,u)}else if(Vn||Rc(i,s,u,!1),R=(u&i.childLanes)!==0,Vn||R){if(R=tn,R!==null&&(h=u&-u,h=(h&42)!==0?1:jr(h),h=(h&(R.suspendedLanes|u))!==0?0:h,h!==0&&h!==U.retryLane))throw U.retryLane=h,el(i,h),Yr(R,i,h),n_;O.data==="$?"||m0(),s=Xg(i,s,u)}else O.data==="$?"?(s.flags|=192,s.child=i.child,s=null):(i=U.treeContext,En=Ia(O.nextSibling),br=s,It=!0,Xo=null,Ha=!1,i!==null&&(la[ca++]=bi,la[ca++]=Ei,la[ca++]=Ko,bi=i.id,Ei=i.overflow,Ko=s),s=Wg(s,h.children),s.flags|=4096);return s}return g?(no(),g=h.fallback,O=s.mode,U=i.child,ee=U.sibling,h=yi(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?g=yi(ee,g):(g=Qo(g,O,u,null),g.flags|=2),g.return=s,h.return=s,h.sibling=g,s.child=h,h=g,g=s.child,O=i.child.memoizedState,O===null?O=Qg(u):(U=O.cachePool,U!==null?(ee=Fn._currentValue,U=U.parent!==ee?{parent:ee,pool:ee}:U):U=Xv(),O={baseLanes:O.baseLanes|u,cachePool:U}),g.memoizedState=O,g.childLanes=Kg(i,R,u),s.memoizedState=Yg,h):(to(s),u=i.child,i=u.sibling,u=yi(u,{mode:"visible",children:h.children}),u.return=s,u.sibling=null,i!==null&&(R=s.deletions,R===null?(s.deletions=[i],s.flags|=16):R.push(i)),s.child=u,s.memoizedState=null,u)}function Wg(i,s){return s=Uf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Uf(i,s){return i=Hr(22,i,null,s),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Xg(i,s,u){return dl(s,i.child,null,u),i=Wg(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function f_(i,s,u){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),mg(i.return,s,u)}function Zg(i,s,u,h,g){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(v.isBackwards=s,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=g)}function h_(i,s,u){var h=s.pendingProps,g=h.revealOrder,v=h.tail;if(Zn(i,s,h.children,u),h=jn.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&f_(i,u,s);else if(i.tag===19)f_(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(w(jn,h),g){case"forwards":for(u=s.child,g=null;u!==null;)i=u.alternate,i!==null&&$f(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=s.child,s.child=null):(g=u.sibling,u.sibling=null),Zg(s,!1,g,u,v);break;case"backwards":for(u=null,g=s.child,s.child=null;g!==null;){if(i=g.alternate,i!==null&&$f(i)===null){s.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}Zg(s,!0,u,null,v);break;case"together":Zg(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ai(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),so|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(Rc(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=yi(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=yi(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function Jg(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Tf(i)))}function lO(i,s,u){switch(s.tag){case 3:Oe(s,s.stateNode.containerInfo),Wi(s,Fn,i.memoizedState.cache),Dc();break;case 27:case 5:dt(s);break;case 4:Oe(s,s.stateNode.containerInfo);break;case 10:Wi(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(to(s),s.flags|=128,null):(u&s.child.childLanes)!==0?d_(i,s,u):(to(s),i=Ai(i,s,u),i!==null?i.sibling:null);to(s);break;case 19:var g=(i.flags&128)!==0;if(h=(u&s.childLanes)!==0,h||(Rc(i,s,u,!1),h=(u&s.childLanes)!==0),g){if(h)return h_(i,s,u);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),w(jn,jn.current),h)break;return null;case 22:case 23:return s.lanes=0,o_(i,s,u);case 24:Wi(s,Fn,i.memoizedState.cache)}return Ai(i,s,u)}function p_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Vn=!0;else{if(!Jg(i,u)&&(s.flags&128)===0)return Vn=!1,lO(i,s,u);Vn=(i.flags&131072)!==0}else Vn=!1,It&&(s.flags&1048576)!==0&&Gv(s,vf,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,g=h._init;if(h=g(h._payload),s.type=h,typeof h=="function")lg(h)?(i=rs(h,i),s.tag=1,s=c_(null,s,h,i,u)):(s.tag=0,s=qg(null,s,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===M){s.tag=11,s=r_(null,s,h,i,u);break e}else if(g===V){s.tag=14,s=a_(null,s,h,i,u);break e}}throw s=re(h)||h,Error(r(306,s,""))}}return s;case 0:return qg(i,s,s.type,s.pendingProps,u);case 1:return h=s.type,g=rs(h,s.pendingProps),c_(i,s,h,g,u);case 3:e:{if(Oe(s,s.stateNode.containerInfo),i===null)throw Error(r(387));h=s.pendingProps;var v=s.memoizedState;g=v.element,_g(i,s),Pc(s,h,null,u);var R=s.memoizedState;if(h=R.cache,Wi(s,Fn,h),h!==v.cache&&gg(s,[Fn],u,!0),Mc(),h=R.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:R.cache},s.updateQueue.baseState=v,s.memoizedState=v,s.flags&256){s=u_(i,s,h,u);break e}else if(h!==g){g=oa(Error(r(424)),s),kc(g),s=u_(i,s,h,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(En=Ia(i.firstChild),br=s,It=!0,Xo=null,Ha=!0,u=qT(s,null,h,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Dc(),h===g){s=Ai(i,s,u);break e}Zn(i,s,h,u)}s=s.child}return s;case 26:return Bf(i,s),i===null?(u=bx(s.type,null,s.pendingProps,null))?s.memoizedState=u:It||(u=s.type,i=s.pendingProps,h=th(Ie.current).createElement(u),h[Ee]=s,h[De]=i,er(h,u,i),ft(h),s.stateNode=h):s.memoizedState=bx(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return dt(s),i===null&&It&&(h=s.stateNode=mx(s.type,s.pendingProps,Ie.current),br=s,Ha=!0,g=En,fo(s.type)?(O0=g,En=Ia(h.firstChild)):En=g),Zn(i,s,s.pendingProps.children,u),Bf(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&It&&((g=h=En)&&(h=PO(h,s.type,s.pendingProps,Ha),h!==null?(s.stateNode=h,br=s,En=Ia(h.firstChild),Ha=!1,g=!0):g=!1),g||Zo(s)),dt(s),g=s.type,v=s.pendingProps,R=i!==null?i.memoizedProps:null,h=v.children,R0(g,v)?h=null:R!==null&&R0(g,R)&&(s.flags|=32),s.memoizedState!==null&&(g=kg(i,s,eO,null,null,u),au._currentValue=g),Bf(i,s),Zn(i,s,h,u),s.child;case 6:return i===null&&It&&((i=u=En)&&(u=$O(u,s.pendingProps,Ha),u!==null?(s.stateNode=u,br=s,En=null,i=!0):i=!1),i||Zo(s)),null;case 13:return d_(i,s,u);case 4:return Oe(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=dl(s,null,h,u):Zn(i,s,h,u),s.child;case 11:return r_(i,s,s.type,s.pendingProps,u);case 7:return Zn(i,s,s.pendingProps,u),s.child;case 8:return Zn(i,s,s.pendingProps.children,u),s.child;case 12:return Zn(i,s,s.pendingProps.children,u),s.child;case 10:return h=s.pendingProps,Wi(s,s.type,h.value),Zn(i,s,h.children,u),s.child;case 9:return g=s.type._context,h=s.pendingProps.children,es(s),g=sr(g),h=h(g),s.flags|=1,Zn(i,s,h,u),s.child;case 14:return a_(i,s,s.type,s.pendingProps,u);case 15:return i_(i,s,s.type,s.pendingProps,u);case 19:return h_(i,s,u);case 31:return h=s.pendingProps,u=s.mode,h={mode:h.mode,children:h.children},i===null?(u=Uf(h,u),u.ref=s.ref,s.child=u,u.return=s,s=u):(u=yi(i.child,h),u.ref=s.ref,s.child=u,u.return=s,s=u),s;case 22:return o_(i,s,u);case 24:return es(s),h=sr(Fn),i===null?(g=Eg(),g===null&&(g=tn,v=yg(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=u),g=v),s.memoizedState={parent:h,cache:g},Tg(s),Wi(s,Fn,g)):((i.lanes&u)!==0&&(_g(i,s),Pc(s,null,null,u),Mc()),g=i.memoizedState,v=s.memoizedState,g.parent!==h?(g={parent:h,cache:h},s.memoizedState=g,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=g),Wi(s,Fn,h)):(h=v.cache,Wi(s,Fn,h),h!==g.cache&&gg(s,[Fn],u,!0))),Zn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Si(i){i.flags|=4}function m_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!xx(s)){if(s=ua.current,s!==null&&((At&4194048)===At?za!==null:(At&62914560)!==At&&(At&536870912)===0||s!==za))throw Oc=vg,Zv;i.flags|=8192}}function Hf(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?Fr():536870912,i.lanes|=s,ml|=s)}function zc(i,s){if(!It)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function pn(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(s)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,s}function cO(i,s,u){var h=s.pendingProps;switch(fg(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pn(s),null;case 1:return pn(s),null;case 3:return u=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Ti(Fn),st(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Cc(s)?Si(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Yv())),pn(s),null;case 26:return u=s.memoizedState,i===null?(Si(s),u!==null?(pn(s),m_(s,u)):(pn(s),s.flags&=-16777217)):u?u!==i.memoizedState?(Si(s),pn(s),m_(s,u)):(pn(s),s.flags&=-16777217):(i.memoizedProps!==h&&Si(s),pn(s),s.flags&=-16777217),null;case 27:Be(s),u=Ie.current;var g=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return pn(s),null}i=te.current,Cc(s)?Vv(s):(i=mx(g,h,u),s.stateNode=i,Si(s))}return pn(s),null;case 5:if(Be(s),u=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return pn(s),null}if(i=te.current,Cc(s))Vv(s);else{switch(g=th(Ie.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[Ee]=s,i[De]=h;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=i;e:switch(er(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Si(s)}}return pn(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Si(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=Ie.current,Cc(s)){if(i=s.stateNode,u=s.memoizedProps,h=null,g=br,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[Ee]=s,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||lx(i.nodeValue,u)),i||Zo(s)}else i=th(i).createTextNode(h),i[Ee]=s,s.stateNode=i}return pn(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=Cc(s),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Ee]=s}else Dc(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pn(s),g=!1}else g=Yv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return s.flags&256?(xi(s),s):(xi(s),null)}if(xi(s),(s.flags&128)!==0)return s.lanes=u,s;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=s.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var v=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==g&&(h.flags|=2048)}return u!==i&&u&&(s.child.flags|=8192),Hf(s,s.updateQueue),pn(s),null;case 4:return st(),i===null&&A0(s.stateNode.containerInfo),pn(s),null;case 10:return Ti(s.type),pn(s),null;case 19:if(ce(jn),g=s.memoizedState,g===null)return pn(s),null;if(h=(s.flags&128)!==0,v=g.rendering,v===null)if(h)zc(g,!1);else{if(vn!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(v=$f(i),v!==null){for(s.flags|=128,zc(g,!1),i=v.updateQueue,s.updateQueue=i,Hf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)zv(u,i),u=u.sibling;return w(jn,jn.current&1|2),s.child}i=i.sibling}g.tail!==null&&Ve()>Vf&&(s.flags|=128,h=!0,zc(g,!1),s.lanes=4194304)}else{if(!h)if(i=$f(v),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Hf(s,i),zc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!It)return pn(s),null}else 2*Ve()-g.renderingStartTime>Vf&&u!==536870912&&(s.flags|=128,h=!0,zc(g,!1),s.lanes=4194304);g.isBackwards?(v.sibling=s.child,s.child=v):(i=g.last,i!==null?i.sibling=v:s.child=v,g.last=v)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Ve(),s.sibling=null,i=jn.current,w(jn,h?i&1|2:i&1),s):(pn(s),null);case 22:case 23:return xi(s),Cg(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(u&536870912)!==0&&(s.flags&128)===0&&(pn(s),s.subtreeFlags&6&&(s.flags|=8192)):pn(s),u=s.updateQueue,u!==null&&Hf(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==u&&(s.flags|=2048),i!==null&&ce(ts),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Ti(Fn),pn(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function uO(i,s){switch(fg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ti(Fn),st(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Be(s),null;case 13:if(xi(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Dc()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return ce(jn),null;case 4:return st(),null;case 10:return Ti(s.type),null;case 22:case 23:return xi(s),Cg(),i!==null&&ce(ts),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Ti(Fn),null;case 25:return null;default:return null}}function g_(i,s){switch(fg(s),s.tag){case 3:Ti(Fn),st();break;case 26:case 27:case 5:Be(s);break;case 4:st();break;case 13:xi(s);break;case 19:ce(jn);break;case 10:Ti(s.type);break;case 22:case 23:xi(s),Cg(),i!==null&&ce(ts);break;case 24:Ti(Fn)}}function Gc(i,s){try{var u=s.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var v=u.create,R=u.inst;h=v(),R.destroy=h}u=u.next}while(u!==g)}}catch(O){Gt(s,s.return,O)}}function ro(i,s,u){try{var h=s.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var v=g.next;h=v;do{if((h.tag&i)===i){var R=h.inst,O=R.destroy;if(O!==void 0){R.destroy=void 0,g=s;var U=u,ee=O;try{ee()}catch(pe){Gt(g,U,pe)}}}h=h.next}while(h!==v)}}catch(pe){Gt(s,s.return,pe)}}function y_(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{aT(s,u)}catch(h){Gt(i,i.return,h)}}}function b_(i,s,u){u.props=rs(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){Gt(i,s,h)}}function Vc(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){Gt(i,s,g)}}function Ga(i,s){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){Gt(i,s,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){Gt(i,s,g)}else u.current=null}function E_(i){var s=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){Gt(i,i.return,g)}}function e0(i,s,u){try{var h=i.stateNode;wO(h,i.type,u,s),h[De]=s}catch(g){Gt(i,i.return,g)}}function v_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&fo(i.type)||i.tag===4}function t0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||v_(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&&fo(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 n0(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=eh));else if(h!==4&&(h===27&&fo(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(n0(i,s,u),i=i.sibling;i!==null;)n0(i,s,u),i=i.sibling}function zf(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(h!==4&&(h===27&&fo(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(zf(i,s,u),i=i.sibling;i!==null;)zf(i,s,u),i=i.sibling}function T_(i){var s=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=s.attributes;g.length;)s.removeAttributeNode(g[0]);er(s,h,u),s[Ee]=i,s[De]=u}catch(v){Gt(i,i.return,v)}}var Ci=!1,kn=!1,r0=!1,__=typeof WeakSet=="function"?WeakSet:Set,qn=null;function dO(i,s){if(i=i.containerInfo,D0=sh,i=Ov(i),tg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var R=0,O=-1,U=-1,ee=0,pe=0,be=i,ae=null;t:for(;;){for(var oe;be!==u||g!==0&&be.nodeType!==3||(O=R+g),be!==v||h!==0&&be.nodeType!==3||(U=R+h),be.nodeType===3&&(R+=be.nodeValue.length),(oe=be.firstChild)!==null;)ae=be,be=oe;for(;;){if(be===i)break t;if(ae===u&&++ee===g&&(O=R),ae===v&&++pe===h&&(U=R),(oe=be.nextSibling)!==null)break;be=ae,ae=be.parentNode}be=oe}u=O===-1||U===-1?null:{start:O,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(k0={focusedElem:i,selectionRange:u},sh=!1,qn=s;qn!==null;)if(s=qn,i=s.child,(s.subtreeFlags&1024)!==0&&i!==null)i.return=s,qn=i;else for(;qn!==null;){switch(s=qn,v=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,u=s,g=v.memoizedProps,v=v.memoizedState,h=u.stateNode;try{var it=rs(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(it,v),h.__reactInternalSnapshotBeforeUpdate=i}catch(Je){Gt(u,u.return,Je)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)w0(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":w0(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=s.sibling,i!==null){i.return=s.return,qn=i;break}qn=s.return}}function x_(i,s,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:ao(i,u),h&4&&Gc(5,u);break;case 1:if(ao(i,u),h&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(R){Gt(u,u.return,R)}else{var g=rs(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(g,s,i.__reactInternalSnapshotBeforeUpdate)}catch(R){Gt(u,u.return,R)}}h&64&&y_(u),h&512&&Vc(u,u.return);break;case 3:if(ao(i,u),h&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{aT(i,s)}catch(R){Gt(u,u.return,R)}}break;case 27:s===null&&h&4&&T_(u);case 26:case 5:ao(i,u),s===null&&h&4&&E_(u),h&512&&Vc(u,u.return);break;case 12:ao(i,u);break;case 13:ao(i,u),h&4&&C_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=vO.bind(null,u),FO(i,u))));break;case 22:if(h=u.memoizedState!==null||Ci,!h){s=s!==null&&s.memoizedState!==null||kn,g=Ci;var v=kn;Ci=h,(kn=s)&&!v?io(i,u,(u.subtreeFlags&8772)!==0):ao(i,u),Ci=g,kn=v}break;case 30:break;default:ao(i,u)}}function A_(i){var s=i.alternate;s!==null&&(i.alternate=null,A_(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&qe(s)),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 sn=null,kr=!1;function Di(i,s,u){for(u=u.child;u!==null;)S_(i,s,u),u=u.sibling}function S_(i,s,u){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:kn||Ga(u,s),Di(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:kn||Ga(u,s);var h=sn,g=kr;fo(u.type)&&(sn=u.stateNode,kr=!1),Di(i,s,u),eu(u.stateNode),sn=h,kr=g;break;case 5:kn||Ga(u,s);case 6:if(h=sn,g=kr,sn=null,Di(i,s,u),sn=h,kr=g,sn!==null)if(kr)try{(sn.nodeType===9?sn.body:sn.nodeName==="HTML"?sn.ownerDocument.body:sn).removeChild(u.stateNode)}catch(v){Gt(u,s,v)}else try{sn.removeChild(u.stateNode)}catch(v){Gt(u,s,v)}break;case 18:sn!==null&&(kr?(i=sn,hx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),lu(i)):hx(sn,u.stateNode));break;case 4:h=sn,g=kr,sn=u.stateNode.containerInfo,kr=!0,Di(i,s,u),sn=h,kr=g;break;case 0:case 11:case 14:case 15:kn||ro(2,u,s),kn||ro(4,u,s),Di(i,s,u);break;case 1:kn||(Ga(u,s),h=u.stateNode,typeof h.componentWillUnmount=="function"&&b_(u,s,h)),Di(i,s,u);break;case 21:Di(i,s,u);break;case 22:kn=(h=kn)||u.memoizedState!==null,Di(i,s,u),kn=h;break;default:Di(i,s,u)}}function C_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{lu(i)}catch(u){Gt(s,s.return,u)}}function fO(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new __),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new __),s;default:throw Error(r(435,i.tag))}}function a0(i,s){var u=fO(i);s.forEach(function(h){var g=TO.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function zr(i,s){var u=s.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],v=i,R=s,O=R;e:for(;O!==null;){switch(O.tag){case 27:if(fo(O.type)){sn=O.stateNode,kr=!1;break e}break;case 5:sn=O.stateNode,kr=!1;break e;case 3:case 4:sn=O.stateNode.containerInfo,kr=!0;break e}O=O.return}if(sn===null)throw Error(r(160));S_(v,R,g),sn=null,kr=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)D_(s,i),s=s.sibling}var Ra=null;function D_(i,s){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:zr(s,i),Gr(i),h&4&&(ro(3,i,i.return),Gc(3,i),ro(5,i,i.return));break;case 1:zr(s,i),Gr(i),h&512&&(kn||u===null||Ga(u,u.return)),h&64&&Ci&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ra;if(zr(s,i),Gr(i),h&512&&(kn||u===null||Ga(u,u.return)),h&4){var v=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":v=g.getElementsByTagName("title")[0],(!v||v[He]||v[Ee]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(h),g.head.insertBefore(v,g.querySelector("head > title"))),er(v,h,u),v[Ee]=i,ft(v),h=v;break e;case"link":var R=Tx("link","href",g).get(h+(u.href||""));if(R){for(var O=0;O<R.length;O++)if(v=R[O],v.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&v.getAttribute("rel")===(u.rel==null?null:u.rel)&&v.getAttribute("title")===(u.title==null?null:u.title)&&v.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(O,1);break t}}v=g.createElement(h),er(v,h,u),g.head.appendChild(v);break;case"meta":if(R=Tx("meta","content",g).get(h+(u.content||""))){for(O=0;O<R.length;O++)if(v=R[O],v.getAttribute("content")===(u.content==null?null:""+u.content)&&v.getAttribute("name")===(u.name==null?null:u.name)&&v.getAttribute("property")===(u.property==null?null:u.property)&&v.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&v.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(O,1);break t}}v=g.createElement(h),er(v,h,u),g.head.appendChild(v);break;default:throw Error(r(468,h))}v[Ee]=i,ft(v),h=v}i.stateNode=h}else _x(g,i.type,i.stateNode);else i.stateNode=vx(g,h,i.memoizedProps);else v!==h?(v===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):v.count--,h===null?_x(g,i.type,i.stateNode):vx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&e0(i,i.memoizedProps,u.memoizedProps)}break;case 27:zr(s,i),Gr(i),h&512&&(kn||u===null||Ga(u,u.return)),u!==null&&h&4&&e0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(zr(s,i),Gr(i),h&512&&(kn||u===null||Ga(u,u.return)),i.flags&32){g=i.stateNode;try{Ys(g,"")}catch(oe){Gt(i,i.return,oe)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,e0(i,g,u!==null?u.memoizedProps:g)),h&1024&&(r0=!0);break;case 6:if(zr(s,i),Gr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(oe){Gt(i,i.return,oe)}}break;case 3:if(ah=null,g=Ra,Ra=nh(s.containerInfo),zr(s,i),Ra=g,Gr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{lu(s.containerInfo)}catch(oe){Gt(i,i.return,oe)}r0&&(r0=!1,k_(i));break;case 4:h=Ra,Ra=nh(i.stateNode.containerInfo),zr(s,i),Gr(i),Ra=h;break;case 12:zr(s,i),Gr(i);break;case 13:zr(s,i),Gr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(u0=Ve()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 22:g=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Ci,pe=kn;if(Ci=ee||g,kn=pe||U,zr(s,i),kn=pe,Ci=ee,Gr(i),h&8192)e:for(s=i.stateNode,s._visibility=g?s._visibility&-2:s._visibility|1,g&&(u===null||U||Ci||kn||as(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){U=u=s;try{if(v=U.stateNode,g)R=v.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{O=U.stateNode;var be=U.memoizedProps.style,ae=be!=null&&be.hasOwnProperty("display")?be.display:null;O.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(oe){Gt(U,U.return,oe)}}}else if(s.tag===6){if(u===null){U=s;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(oe){Gt(U,U.return,oe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,a0(i,u))));break;case 19:zr(s,i),Gr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 30:break;case 21:break;default:zr(s,i),Gr(i)}}function Gr(i){var s=i.flags;if(s&2){try{for(var u,h=i.return;h!==null;){if(v_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,v=t0(i);zf(i,v,g);break;case 5:var R=u.stateNode;u.flags&32&&(Ys(R,""),u.flags&=-33);var O=t0(i);zf(i,O,R);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=t0(i);n0(i,ee,U);break;default:throw Error(r(161))}}catch(pe){Gt(i,i.return,pe)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function k_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;k_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function ao(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)x_(i,s.alternate,s),s=s.sibling}function as(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:ro(4,s,s.return),as(s);break;case 1:Ga(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&b_(s,s.return,u),as(s);break;case 27:eu(s.stateNode);case 26:case 5:Ga(s,s.return),as(s);break;case 22:s.memoizedState===null&&as(s);break;case 30:as(s);break;default:as(s)}i=i.sibling}}function io(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,g=i,v=s,R=v.flags;switch(v.tag){case 0:case 11:case 15:io(g,v,u),Gc(4,v);break;case 1:if(io(g,v,u),h=v,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){Gt(h,h.return,ee)}if(h=v,g=h.updateQueue,g!==null){var O=h.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)rT(U[g],O)}catch(ee){Gt(h,h.return,ee)}}u&&R&64&&y_(v),Vc(v,v.return);break;case 27:T_(v);case 26:case 5:io(g,v,u),u&&h===null&&R&4&&E_(v),Vc(v,v.return);break;case 12:io(g,v,u);break;case 13:io(g,v,u),u&&R&4&&C_(g,v);break;case 22:v.memoizedState===null&&io(g,v,u),Vc(v,v.return);break;case 30:break;default:io(g,v,u)}s=s.sibling}}function i0(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Ic(u))}function o0(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Ic(i))}function Va(i,s,u,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)R_(i,s,u,h),s=s.sibling}function R_(i,s,u,h){var g=s.flags;switch(s.tag){case 0:case 11:case 15:Va(i,s,u,h),g&2048&&Gc(9,s);break;case 1:Va(i,s,u,h);break;case 3:Va(i,s,u,h),g&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Ic(i)));break;case 12:if(g&2048){Va(i,s,u,h),i=s.stateNode;try{var v=s.memoizedProps,R=v.id,O=v.onPostCommit;typeof O=="function"&&O(R,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){Gt(s,s.return,U)}}else Va(i,s,u,h);break;case 13:Va(i,s,u,h);break;case 23:break;case 22:v=s.stateNode,R=s.alternate,s.memoizedState!==null?v._visibility&2?Va(i,s,u,h):qc(i,s):v._visibility&2?Va(i,s,u,h):(v._visibility|=2,fl(i,s,u,h,(s.subtreeFlags&10256)!==0)),g&2048&&i0(R,s);break;case 24:Va(i,s,u,h),g&2048&&o0(s.alternate,s);break;default:Va(i,s,u,h)}}function fl(i,s,u,h,g){for(g=g&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var v=i,R=s,O=u,U=h,ee=R.flags;switch(R.tag){case 0:case 11:case 15:fl(v,R,O,U,g),Gc(8,R);break;case 23:break;case 22:var pe=R.stateNode;R.memoizedState!==null?pe._visibility&2?fl(v,R,O,U,g):qc(v,R):(pe._visibility|=2,fl(v,R,O,U,g)),g&&ee&2048&&i0(R.alternate,R);break;case 24:fl(v,R,O,U,g),g&&ee&2048&&o0(R.alternate,R);break;default:fl(v,R,O,U,g)}s=s.sibling}}function qc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,h=s,g=h.flags;switch(h.tag){case 22:qc(u,h),g&2048&&i0(h.alternate,h);break;case 24:qc(u,h),g&2048&&o0(h.alternate,h);break;default:qc(u,h)}s=s.sibling}}var Yc=8192;function hl(i){if(i.subtreeFlags&Yc)for(i=i.child;i!==null;)I_(i),i=i.sibling}function I_(i){switch(i.tag){case 26:hl(i),i.flags&Yc&&i.memoizedState!==null&&XO(Ra,i.memoizedState,i.memoizedProps);break;case 5:hl(i);break;case 3:case 4:var s=Ra;Ra=nh(i.stateNode.containerInfo),hl(i),Ra=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Yc,Yc=16777216,hl(i),Yc=s):hl(i));break;default:hl(i)}}function w_(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Qc(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];qn=h,O_(h,i)}w_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)N_(i),i=i.sibling}function N_(i){switch(i.tag){case 0:case 11:case 15:Qc(i),i.flags&2048&&ro(9,i,i.return);break;case 3:Qc(i);break;case 12:Qc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Gf(i)):Qc(i);break;default:Qc(i)}}function Gf(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];qn=h,O_(h,i)}w_(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:ro(8,s,s.return),Gf(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Gf(s));break;default:Gf(s)}i=i.sibling}}function O_(i,s){for(;qn!==null;){var u=qn;switch(u.tag){case 0:case 11:case 15:ro(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Ic(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,qn=h;else e:for(u=i;qn!==null;){h=qn;var g=h.sibling,v=h.return;if(A_(h),h===u){qn=null;break e}if(g!==null){g.return=v,qn=g;break e}qn=v}}}var hO={getCacheForType:function(i){var s=sr(Fn),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u}},pO=typeof WeakMap=="function"?WeakMap:Map,Lt=0,tn=null,Et=null,At=0,Mt=0,Vr=null,oo=!1,pl=!1,s0=!1,ki=0,vn=0,so=0,is=0,l0=0,da=0,ml=0,Kc=null,Rr=null,c0=!1,u0=0,Vf=1/0,qf=null,lo=null,Jn=0,co=null,gl=null,yl=0,d0=0,f0=null,L_=null,Wc=0,h0=null;function qr(){if((Lt&2)!==0&&At!==0)return At&-At;if(G.T!==null){var i=al;return i!==0?i:v0()}return z()}function M_(){da===0&&(da=(At&536870912)===0||It?Cn():536870912);var i=ua.current;return i!==null&&(i.flags|=32),da}function Yr(i,s,u){(i===tn&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)&&(bl(i,0),uo(i,At,da,!1)),ir(i,u),((Lt&2)===0||i!==tn)&&(i===tn&&((Lt&2)===0&&(is|=u),vn===4&&uo(i,At,da,!1)),qa(i))}function P_(i,s,u){if((Lt&6)!==0)throw Error(r(327));var h=!u&&(s&124)===0&&(s&i.expiredLanes)===0||ot(i,s),g=h?yO(i,s):g0(i,s,!0),v=h;do{if(g===0){pl&&!h&&uo(i,s,0,!1);break}else{if(u=i.current.alternate,v&&!mO(u)){g=g0(i,s,!1),v=!1;continue}if(g===2){if(v=s,i.errorRecoveryDisabledLanes&v)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){s=R;e:{var O=i;g=Kc;var U=O.current.memoizedState.isDehydrated;if(U&&(bl(O,R).flags|=256),R=g0(O,R,!1),R!==2){if(s0&&!U){O.errorRecoveryDisabledLanes|=v,is|=v,g=4;break e}v=Rr,Rr=g,v!==null&&(Rr===null?Rr=v:Rr.push.apply(Rr,v))}g=R}if(v=!1,g!==2)continue}}if(g===1){bl(i,0),uo(i,s,0,!0);break}e:{switch(h=i,v=g,v){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:uo(h,s,da,!oo);break e;case 2:Rr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(g=u0+300-Ve(),10<g)){if(uo(h,s,da,!oo),Te(h,0,!0)!==0)break e;h.timeoutHandle=dx($_.bind(null,h,u,Rr,qf,c0,s,da,is,ml,oo,v,2,-0,0),g);break e}$_(h,u,Rr,qf,c0,s,da,is,ml,oo,v,0,-0,0)}}break}while(!0);qa(i)}function $_(i,s,u,h,g,v,R,O,U,ee,pe,be,ae,oe){if(i.timeoutHandle=-1,be=s.subtreeFlags,(be&8192||(be&16785408)===16785408)&&(ru={stylesheets:null,count:0,unsuspend:WO},I_(s),be=ZO(),be!==null)){i.cancelPendingCommit=be(G_.bind(null,i,s,v,u,h,g,R,O,U,pe,1,ae,oe)),uo(i,v,R,!ee);return}G_(i,s,v,u,h,g,R,O,U)}function mO(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],v=g.getSnapshot;g=g.value;try{if(!Ur(v(),g))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function uo(i,s,u,h){s&=~l0,s&=~is,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var g=s;0<g;){var v=31-nt(g),R=1<<v;h[v]=-1,g&=~R}u!==0&&Ba(i,u,s)}function Yf(){return(Lt&6)===0?(Xc(0),!1):!0}function p0(){if(Et!==null){if(Mt===0)var i=Et.return;else i=Et,vi=Jo=null,wg(i),ul=null,Uc=0,i=Et;for(;i!==null;)g_(i.alternate,i),i=i.return;Et=null}}function bl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,OO(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),p0(),tn=i,Et=u=yi(i.current,null),At=s,Mt=0,Vr=null,oo=!1,pl=ot(i,s),s0=!1,ml=da=l0=is=so=vn=0,Rr=Kc=null,c0=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var g=31-nt(h),v=1<<g;s|=i[g],h&=~v}return ki=s,mf(),u}function F_(i,s){mt=null,G.H=Lf,s===Nc||s===Af?(s=tT(),Mt=3):s===Zv?(s=tT(),Mt=4):Mt=s===n_?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Vr=s,Et===null&&(vn=1,jf(i,oa(s,i.current)))}function j_(){var i=G.H;return G.H=Lf,i===null?Lf:i}function B_(){var i=G.A;return G.A=hO,i}function m0(){vn=4,oo||(At&4194048)!==At&&ua.current!==null||(pl=!0),(so&134217727)===0&&(is&134217727)===0||tn===null||uo(tn,At,da,!1)}function g0(i,s,u){var h=Lt;Lt|=2;var g=j_(),v=B_();(tn!==i||At!==s)&&(qf=null,bl(i,s)),s=!1;var R=vn;e:do try{if(Mt!==0&&Et!==null){var O=Et,U=Vr;switch(Mt){case 8:p0(),R=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(s=!0);var ee=Mt;if(Mt=0,Vr=null,El(i,O,U,ee),u&&pl){R=0;break e}break;default:ee=Mt,Mt=0,Vr=null,El(i,O,U,ee)}}gO(),R=vn;break}catch(pe){F_(i,pe)}while(!0);return s&&i.shellSuspendCounter++,vi=Jo=null,Lt=h,G.H=g,G.A=v,Et===null&&(tn=null,At=0,mf()),R}function gO(){for(;Et!==null;)U_(Et)}function yO(i,s){var u=Lt;Lt|=2;var h=j_(),g=B_();tn!==i||At!==s?(qf=null,Vf=Ve()+500,bl(i,s)):pl=ot(i,s);e:do try{if(Mt!==0&&Et!==null){s=Et;var v=Vr;t:switch(Mt){case 1:Mt=0,Vr=null,El(i,s,v,1);break;case 2:case 9:if(Jv(v)){Mt=0,Vr=null,H_(s);break}s=function(){Mt!==2&&Mt!==9||tn!==i||(Mt=7),qa(i)},v.then(s,s);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:Jv(v)?(Mt=0,Vr=null,H_(s)):(Mt=0,Vr=null,El(i,s,v,7));break;case 5:var R=null;switch(Et.tag){case 26:R=Et.memoizedState;case 5:case 27:var O=Et;if(!R||xx(R)){Mt=0,Vr=null;var U=O.sibling;if(U!==null)Et=U;else{var ee=O.return;ee!==null?(Et=ee,Qf(ee)):Et=null}break t}}Mt=0,Vr=null,El(i,s,v,5);break;case 6:Mt=0,Vr=null,El(i,s,v,6);break;case 8:p0(),vn=6;break e;default:throw Error(r(462))}}bO();break}catch(pe){F_(i,pe)}while(!0);return vi=Jo=null,G.H=h,G.A=g,Lt=u,Et!==null?0:(tn=null,At=0,mf(),vn)}function bO(){for(;Et!==null&&!ar();)U_(Et)}function U_(i){var s=p_(i.alternate,i,ki);i.memoizedProps=i.pendingProps,s===null?Qf(i):Et=s}function H_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=l_(u,s,s.pendingProps,s.type,void 0,At);break;case 11:s=l_(u,s,s.pendingProps,s.type.render,s.ref,At);break;case 5:wg(s);default:g_(u,s),s=Et=zv(s,ki),s=p_(u,s,ki)}i.memoizedProps=i.pendingProps,s===null?Qf(i):Et=s}function El(i,s,u,h){vi=Jo=null,wg(s),ul=null,Uc=0;var g=s.return;try{if(sO(i,g,s,u,At)){vn=1,jf(i,oa(u,i.current)),Et=null;return}}catch(v){if(g!==null)throw Et=g,v;vn=1,jf(i,oa(u,i.current)),Et=null;return}s.flags&32768?(It||h===1?i=!0:pl||(At&536870912)!==0?i=!1:(oo=i=!0,(h===2||h===9||h===3||h===6)&&(h=ua.current,h!==null&&h.tag===13&&(h.flags|=16384))),z_(s,i)):Qf(s)}function Qf(i){var s=i;do{if((s.flags&32768)!==0){z_(s,oo);return}i=s.return;var u=cO(s.alternate,s,ki);if(u!==null){Et=u;return}if(s=s.sibling,s!==null){Et=s;return}Et=s=i}while(s!==null);vn===0&&(vn=5)}function z_(i,s){do{var u=uO(i.alternate,i);if(u!==null){u.flags&=32767,Et=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){Et=i;return}Et=i=u}while(i!==null);vn=6,Et=null}function G_(i,s,u,h,g,v,R,O,U){i.cancelPendingCommit=null;do Kf();while(Jn!==0);if((Lt&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(v=s.lanes|s.childLanes,v|=og,or(i,u,v,R,O,U),i===tn&&(Et=tn=null,At=0),gl=s,co=i,yl=u,d0=v,f0=g,L_=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,_O(Ye,function(){return K_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=G.T,G.T=null,g=le.p,le.p=2,R=Lt,Lt|=4;try{dO(i,s,u)}finally{Lt=R,le.p=g,G.T=h}}Jn=1,V_(),q_(),Y_()}}function V_(){if(Jn===1){Jn=0;var i=co,s=gl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Lt;Lt|=4;try{D_(s,i);var v=k0,R=Ov(i.containerInfo),O=v.focusedElem,U=v.selectionRange;if(R!==O&&O&&O.ownerDocument&&Nv(O.ownerDocument.documentElement,O)){if(U!==null&&tg(O)){var ee=U.start,pe=U.end;if(pe===void 0&&(pe=ee),"selectionStart"in O)O.selectionStart=ee,O.selectionEnd=Math.min(pe,O.value.length);else{var be=O.ownerDocument||document,ae=be&&be.defaultView||window;if(ae.getSelection){var oe=ae.getSelection(),it=O.textContent.length,Je=Math.min(U.start,it),jt=U.end===void 0?Je:Math.min(U.end,it);!oe.extend&&Je>jt&&(R=jt,jt=Je,Je=R);var Y=wv(O,Je),q=wv(O,jt);if(Y&&q&&(oe.rangeCount!==1||oe.anchorNode!==Y.node||oe.anchorOffset!==Y.offset||oe.focusNode!==q.node||oe.focusOffset!==q.offset)){var Z=be.createRange();Z.setStart(Y.node,Y.offset),oe.removeAllRanges(),Je>jt?(oe.addRange(Z),oe.extend(q.node,q.offset)):(Z.setEnd(q.node,q.offset),oe.addRange(Z))}}}}for(be=[],oe=O;oe=oe.parentNode;)oe.nodeType===1&&be.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<be.length;O++){var ge=be[O];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}sh=!!D0,k0=D0=null}finally{Lt=g,le.p=h,G.T=u}}i.current=s,Jn=2}}function q_(){if(Jn===2){Jn=0;var i=co,s=gl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Lt;Lt|=4;try{x_(i,s.alternate,s)}finally{Lt=g,le.p=h,G.T=u}}Jn=3}}function Y_(){if(Jn===4||Jn===3){Jn=0,dn();var i=co,s=gl,u=yl,h=L_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Jn=5:(Jn=0,gl=co=null,Q_(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(lo=null),Da(u),s=s.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ue,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=G.T,g=le.p,le.p=2,G.T=null;try{for(var v=i.onRecoverableError,R=0;R<h.length;R++){var O=h[R];v(O.value,{componentStack:O.stack})}}finally{G.T=s,le.p=g}}(yl&3)!==0&&Kf(),qa(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===h0?Wc++:(Wc=0,h0=i):Wc=0,Xc(0)}}function Q_(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Ic(s)))}function Kf(i){return V_(),q_(),Y_(),K_()}function K_(){if(Jn!==5)return!1;var i=co,s=d0;d0=0;var u=Da(yl),h=G.T,g=le.p;try{le.p=32>u?32:u,G.T=null,u=f0,f0=null;var v=co,R=yl;if(Jn=0,gl=co=null,yl=0,(Lt&6)!==0)throw Error(r(331));var O=Lt;if(Lt|=4,N_(v.current),R_(v,v.current,R,u),Lt=O,Xc(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ue,v)}catch{}return!0}finally{le.p=g,G.T=h,Q_(i,s)}}function W_(i,s,u){s=oa(u,s),s=Vg(i.stateNode,s,2),i=Ji(i,s,2),i!==null&&(ir(i,2),qa(i))}function Gt(i,s,u){if(i.tag===3)W_(i,i,u);else for(;s!==null;){if(s.tag===3){W_(s,i,u);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(lo===null||!lo.has(h))){i=oa(u,i),u=e_(2),h=Ji(s,u,2),h!==null&&(t_(u,h,s,i),ir(h,2),qa(h));break}}s=s.return}}function y0(i,s,u){var h=i.pingCache;if(h===null){h=i.pingCache=new pO;var g=new Set;h.set(s,g)}else g=h.get(s),g===void 0&&(g=new Set,h.set(s,g));g.has(u)||(s0=!0,g.add(u),i=EO.bind(null,i,s,u),s.then(i,i))}function EO(i,s,u){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,tn===i&&(At&u)===u&&(vn===4||vn===3&&(At&62914560)===At&&300>Ve()-u0?(Lt&2)===0&&bl(i,0):l0|=u,ml===At&&(ml=0)),qa(i)}function X_(i,s){s===0&&(s=Fr()),i=el(i,s),i!==null&&(ir(i,s),qa(i))}function vO(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),X_(i,u)}function TO(i,s){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),X_(i,u)}function _O(i,s){return wt(i,s)}var Wf=null,vl=null,b0=!1,Xf=!1,E0=!1,os=0;function qa(i){i!==vl&&i.next===null&&(vl===null?Wf=vl=i:vl=vl.next=i),Xf=!0,b0||(b0=!0,AO())}function Xc(i,s){if(!E0&&Xf){E0=!0;do for(var u=!1,h=Wf;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var v=0;else{var R=h.suspendedLanes,O=h.pingedLanes;v=(1<<31-nt(42|i)+1)-1,v&=g&~(R&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(u=!0,tx(h,v))}else v=At,v=Te(h,h===tn?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||ot(h,v)||(u=!0,tx(h,v));h=h.next}while(u);E0=!1}}function xO(){Z_()}function Z_(){Xf=b0=!1;var i=0;os!==0&&(NO()&&(i=os),os=0);for(var s=Ve(),u=null,h=Wf;h!==null;){var g=h.next,v=J_(h,s);v===0?(h.next=null,u===null?Wf=g:u.next=g,g===null&&(vl=u)):(u=h,(i!==0||(v&3)!==0)&&(Xf=!0)),h=g}Xc(i)}function J_(i,s){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var R=31-nt(v),O=1<<R,U=g[R];U===-1?((O&u)===0||(O&h)!==0)&&(g[R]=We(O,s)):U<=s&&(i.expiredLanes|=O),v&=~O}if(s=tn,u=At,u=Te(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===s&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Pe(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||ot(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(h!==null&&Pe(h),Da(u)){case 2:case 8:u=on;break;case 32:u=Ye;break;case 268435456:u=Sr;break;default:u=Ye}return h=ex.bind(null,i),u=wt(u,h),i.callbackPriority=s,i.callbackNode=u,s}return h!==null&&h!==null&&Pe(h),i.callbackPriority=2,i.callbackNode=null,2}function ex(i,s){if(Jn!==0&&Jn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Kf()&&i.callbackNode!==u)return null;var h=At;return h=Te(i,i===tn?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(P_(i,h,s),J_(i,Ve()),i.callbackNode!=null&&i.callbackNode===u?ex.bind(null,i):null)}function tx(i,s){if(Kf())return null;P_(i,s,!0)}function AO(){LO(function(){(Lt&6)!==0?wt(an,xO):Z_()})}function v0(){return os===0&&(os=Cn()),os}function nx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:lf(""+i)}function rx(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function SO(i,s,u,h,g){if(s==="submit"&&u&&u.stateNode===g){var v=nx((g[De]||null).action),R=h.submitter;R&&(s=(s=R[De]||null)?nx(s.formAction):R.getAttribute("formAction"),s!==null&&(v=s,R=null));var O=new ff("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(os!==0){var U=R?rx(g,R):new FormData(g);Bg(u,{pending:!0,data:U,method:g.method,action:v},null,U)}}else typeof v=="function"&&(O.preventDefault(),U=R?rx(g,R):new FormData(g),Bg(u,{pending:!0,data:U,method:g.method,action:v},v,U))},currentTarget:g}]})}}for(var T0=0;T0<ig.length;T0++){var _0=ig[T0],CO=_0.toLowerCase(),DO=_0[0].toUpperCase()+_0.slice(1);ka(CO,"on"+DO)}ka(Pv,"onAnimationEnd"),ka($v,"onAnimationIteration"),ka(Fv,"onAnimationStart"),ka("dblclick","onDoubleClick"),ka("focusin","onFocus"),ka("focusout","onBlur"),ka(GN,"onTransitionRun"),ka(VN,"onTransitionStart"),ka(qN,"onTransitionCancel"),ka(jv,"onTransitionEnd"),yr("onMouseEnter",["mouseout","mouseover"]),yr("onMouseLeave",["mouseout","mouseover"]),yr("onPointerEnter",["pointerout","pointerover"]),yr("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zc="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(" "),kO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zc));function ax(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var v=void 0;if(s)for(var R=h.length-1;0<=R;R--){var O=h[R],U=O.instance,ee=O.currentTarget;if(O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Ff(pe)}g.currentTarget=null,v=U}else for(R=0;R<h.length;R++){if(O=h[R],U=O.instance,ee=O.currentTarget,O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Ff(pe)}g.currentTarget=null,v=U}}}}function vt(i,s){var u=s[Ge];u===void 0&&(u=s[Ge]=new Set);var h=i+"__bubble";u.has(h)||(ix(s,i,2,!1),u.add(h))}function x0(i,s,u){var h=0;s&&(h|=4),ix(u,i,h,s)}var Zf="_reactListening"+Math.random().toString(36).slice(2);function A0(i){if(!i[Zf]){i[Zf]=!0,Pt.forEach(function(u){u!=="selectionchange"&&(kO.has(u)||x0(u,!1,i),x0(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Zf]||(s[Zf]=!0,x0("selectionchange",!1,s))}}function ix(i,s,u,h){switch(Rx(s)){case 2:var g=t5;break;case 8:g=n5;break;default:g=F0}u=g.bind(null,s,u,i),g=void 0,!qm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(s,u,{capture:!0,passive:g}):i.addEventListener(s,u,!0):g!==void 0?i.addEventListener(s,u,{passive:g}):i.addEventListener(s,u,!1)}function S0(i,s,u,h,g){var v=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var O=h.stateNode.containerInfo;if(O===g)break;if(R===4)for(R=h.return;R!==null;){var U=R.tag;if((U===3||U===4)&&R.stateNode.containerInfo===g)return;R=R.return}for(;O!==null;){if(R=pt(O),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){h=v=R;continue e}O=O.parentNode}}h=h.return}fv(function(){var ee=v,pe=Gm(u),be=[];e:{var ae=Bv.get(i);if(ae!==void 0){var oe=ff,it=i;switch(i){case"keypress":if(uf(u)===0)break e;case"keydown":case"keyup":oe=_N;break;case"focusin":it="focus",oe=Wm;break;case"focusout":it="blur",oe=Wm;break;case"beforeblur":case"afterblur":oe=Wm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=mv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=uN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=SN;break;case Pv:case $v:case Fv:oe=hN;break;case jv:oe=DN;break;case"scroll":case"scrollend":oe=lN;break;case"wheel":oe=RN;break;case"copy":case"cut":case"paste":oe=mN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=yv;break;case"toggle":case"beforetoggle":oe=wN}var Je=(s&4)!==0,jt=!Je&&(i==="scroll"||i==="scrollend"),Y=Je?ae!==null?ae+"Capture":null:ae;Je=[];for(var q=ee,Z;q!==null;){var ge=q;if(Z=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||Z===null||Y===null||(ge=yc(q,Y),ge!=null&&Je.push(Jc(q,ge,Z))),jt)break;q=q.return}0<Je.length&&(ae=new oe(ae,it,null,u,pe),be.push({event:ae,listeners:Je}))}}if((s&7)===0){e:{if(ae=i==="mouseover"||i==="pointerover",oe=i==="mouseout"||i==="pointerout",ae&&u!==zm&&(it=u.relatedTarget||u.fromElement)&&(pt(it)||it[je]))break e;if((oe||ae)&&(ae=pe.window===pe?pe:(ae=pe.ownerDocument)?ae.defaultView||ae.parentWindow:window,oe?(it=u.relatedTarget||u.toElement,oe=ee,it=it?pt(it):null,it!==null&&(jt=o(it),Je=it.tag,it!==jt||Je!==5&&Je!==27&&Je!==6)&&(it=null)):(oe=null,it=ee),oe!==it)){if(Je=mv,ge="onMouseLeave",Y="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(Je=yv,ge="onPointerLeave",Y="onPointerEnter",q="pointer"),jt=oe==null?ae:yn(oe),Z=it==null?ae:yn(it),ae=new Je(ge,q+"leave",oe,u,pe),ae.target=jt,ae.relatedTarget=Z,ge=null,pt(pe)===ee&&(Je=new Je(Y,q+"enter",it,u,pe),Je.target=Z,Je.relatedTarget=jt,ge=Je),jt=ge,oe&&it)t:{for(Je=oe,Y=it,q=0,Z=Je;Z;Z=Tl(Z))q++;for(Z=0,ge=Y;ge;ge=Tl(ge))Z++;for(;0<q-Z;)Je=Tl(Je),q--;for(;0<Z-q;)Y=Tl(Y),Z--;for(;q--;){if(Je===Y||Y!==null&&Je===Y.alternate)break t;Je=Tl(Je),Y=Tl(Y)}Je=null}else Je=null;oe!==null&&ox(be,ae,oe,Je,!1),it!==null&&jt!==null&&ox(be,jt,it,Je,!0)}}e:{if(ae=ee?yn(ee):window,oe=ae.nodeName&&ae.nodeName.toLowerCase(),oe==="select"||oe==="input"&&ae.type==="file")var $e=Sv;else if(xv(ae))if(Cv)$e=UN;else{$e=jN;var yt=FN}else oe=ae.nodeName,!oe||oe.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?ee&&Hm(ee.elementType)&&($e=Sv):$e=BN;if($e&&($e=$e(i,ee))){Av(be,$e,u,pe);break e}yt&&yt(i,ae,ee),i==="focusout"&&ee&&ae.type==="number"&&ee.memoizedProps.value!=null&&Um(ae,"number",ae.value)}switch(yt=ee?yn(ee):window,i){case"focusin":(xv(yt)||yt.contentEditable==="true")&&(Xs=yt,ng=ee,Sc=null);break;case"focusout":Sc=ng=Xs=null;break;case"mousedown":rg=!0;break;case"contextmenu":case"mouseup":case"dragend":rg=!1,Lv(be,u,pe);break;case"selectionchange":if(zN)break;case"keydown":case"keyup":Lv(be,u,pe)}var Qe;if(Zm)e:{switch(i){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Ws?Tv(i,u)&&(tt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(tt="onCompositionStart");tt&&(bv&&u.locale!=="ko"&&(Ws||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Ws&&(Qe=hv()):(Ki=pe,Ym="value"in Ki?Ki.value:Ki.textContent,Ws=!0)),yt=Jf(ee,tt),0<yt.length&&(tt=new gv(tt,i,null,u,pe),be.push({event:tt,listeners:yt}),Qe?tt.data=Qe:(Qe=_v(u),Qe!==null&&(tt.data=Qe)))),(Qe=ON?LN(i,u):MN(i,u))&&(tt=Jf(ee,"onBeforeInput"),0<tt.length&&(yt=new gv("onBeforeInput","beforeinput",null,u,pe),be.push({event:yt,listeners:tt}),yt.data=Qe)),SO(be,i,ee,u,pe)}ax(be,s)})}function Jc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function Jf(i,s){for(var u=s+"Capture",h=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=yc(i,u),g!=null&&h.unshift(Jc(i,g,v)),g=yc(i,s),g!=null&&h.push(Jc(i,g,v))),i.tag===3)return h;i=i.return}return[]}function Tl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function ox(i,s,u,h,g){for(var v=s._reactName,R=[];u!==null&&u!==h;){var O=u,U=O.alternate,ee=O.stateNode;if(O=O.tag,U!==null&&U===h)break;O!==5&&O!==26&&O!==27||ee===null||(U=ee,g?(ee=yc(u,v),ee!=null&&R.unshift(Jc(u,ee,U))):g||(ee=yc(u,v),ee!=null&&R.push(Jc(u,ee,U)))),u=u.return}R.length!==0&&i.push({event:s,listeners:R})}var RO=/\r\n?/g,IO=/\u0000|\uFFFD/g;function sx(i){return(typeof i=="string"?i:""+i).replace(RO,`
|
|
26
|
+
`).replace(IO,"")}function lx(i,s){return s=sx(s),sx(i)===s}function eh(){}function Ft(i,s,u,h,g,v){switch(u){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ys(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ys(i,""+h);break;case"className":mi(i,"class",h);break;case"tabIndex":mi(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(i,u,h);break;case"style":uv(i,h,v);break;case"data":if(s!=="object"){mi(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=lf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"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 v=="function"&&(u==="formAction"?(s!=="input"&&Ft(i,s,"name",g.name,g,null),Ft(i,s,"formEncType",g.formEncType,g,null),Ft(i,s,"formMethod",g.formMethod,g,null),Ft(i,s,"formTarget",g.formTarget,g,null)):(Ft(i,s,"encType",g.encType,g,null),Ft(i,s,"method",g.method,g,null),Ft(i,s,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=lf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=eh);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=lf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":vt("beforetoggle",i),vt("toggle",i),pi(i,"popover",h);break;case"xlinkActuate":gt(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":gt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":gt(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":gt(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":gt(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":gt(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":gt(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":gt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":gt(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pi(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=oN.get(u)||u,pi(i,u,h))}}function C0(i,s,u,h,g,v){switch(u){case"style":uv(i,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Ys(i,h):(typeof h=="number"||typeof h=="bigint")&&Ys(i,""+h);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ua.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),s=u.slice(2,g?u.length-7:void 0),v=i[De]||null,v=v!=null?v[u]:null,typeof v=="function"&&i.removeEventListener(s,v,g),typeof h=="function")){typeof v!="function"&&v!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):pi(i,u,h)}}}function er(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",i),vt("load",i);var h=!1,g=!1,v;for(v in u)if(u.hasOwnProperty(v)){var R=u[v];if(R!=null)switch(v){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Ft(i,s,v,R,u,null)}}g&&Ft(i,s,"srcSet",u.srcSet,u,null),h&&Ft(i,s,"src",u.src,u,null);return;case"input":vt("invalid",i);var O=v=R=g=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var pe=u[h];if(pe!=null)switch(h){case"name":g=pe;break;case"type":R=pe;break;case"checked":U=pe;break;case"defaultChecked":ee=pe;break;case"value":v=pe;break;case"defaultValue":O=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,s));break;default:Ft(i,s,h,pe,u,null)}}ov(i,v,O,U,ee,R,g,!1),of(i);return;case"select":vt("invalid",i),h=R=v=null;for(g in u)if(u.hasOwnProperty(g)&&(O=u[g],O!=null))switch(g){case"value":v=O;break;case"defaultValue":R=O;break;case"multiple":h=O;default:Ft(i,s,g,O,u,null)}s=v,u=R,i.multiple=!!h,s!=null?qs(i,!!h,s,!1):u!=null&&qs(i,!!h,u,!0);return;case"textarea":vt("invalid",i),v=g=h=null;for(R in u)if(u.hasOwnProperty(R)&&(O=u[R],O!=null))switch(R){case"value":h=O;break;case"defaultValue":g=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:Ft(i,s,R,O,u,null)}lv(i,h,g,v),of(i);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ft(i,s,U,h,u,null)}return;case"dialog":vt("beforetoggle",i),vt("toggle",i),vt("cancel",i),vt("close",i);break;case"iframe":case"object":vt("load",i);break;case"video":case"audio":for(h=0;h<Zc.length;h++)vt(Zc[h],i);break;case"image":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"embed":case"source":case"link":vt("error",i),vt("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(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Ft(i,s,ee,h,u,null)}return;default:if(Hm(s)){for(pe in u)u.hasOwnProperty(pe)&&(h=u[pe],h!==void 0&&C0(i,s,pe,h,u,void 0));return}}for(O in u)u.hasOwnProperty(O)&&(h=u[O],h!=null&&Ft(i,s,O,h,u,null))}function wO(i,s,u,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,R=null,O=null,U=null,ee=null,pe=null;for(oe in u){var be=u[oe];if(u.hasOwnProperty(oe)&&be!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":U=be;default:h.hasOwnProperty(oe)||Ft(i,s,oe,null,h,be)}}for(var ae in h){var oe=h[ae];if(be=u[ae],h.hasOwnProperty(ae)&&(oe!=null||be!=null))switch(ae){case"type":v=oe;break;case"name":g=oe;break;case"checked":ee=oe;break;case"defaultChecked":pe=oe;break;case"value":R=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,s));break;default:oe!==be&&Ft(i,s,ae,oe,h,be)}}Bm(i,R,O,U,ee,pe,v,g);return;case"select":oe=R=O=ae=null;for(v in u)if(U=u[v],u.hasOwnProperty(v)&&U!=null)switch(v){case"value":break;case"multiple":oe=U;default:h.hasOwnProperty(v)||Ft(i,s,v,null,h,U)}for(g in h)if(v=h[g],U=u[g],h.hasOwnProperty(g)&&(v!=null||U!=null))switch(g){case"value":ae=v;break;case"defaultValue":O=v;break;case"multiple":R=v;default:v!==U&&Ft(i,s,g,v,h,U)}s=O,u=R,h=oe,ae!=null?qs(i,!!u,ae,!1):!!h!=!!u&&(s!=null?qs(i,!!u,s,!0):qs(i,!!u,u?[]:"",!1));return;case"textarea":oe=ae=null;for(O in u)if(g=u[O],u.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Ft(i,s,O,null,h,g)}for(R in h)if(g=h[R],v=u[R],h.hasOwnProperty(R)&&(g!=null||v!=null))switch(R){case"value":ae=g;break;case"defaultValue":oe=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==v&&Ft(i,s,R,g,h,v)}sv(i,ae,oe);return;case"option":for(var it in u)if(ae=u[it],u.hasOwnProperty(it)&&ae!=null&&!h.hasOwnProperty(it))switch(it){case"selected":i.selected=!1;break;default:Ft(i,s,it,null,h,ae)}for(U in h)if(ae=h[U],oe=u[U],h.hasOwnProperty(U)&&ae!==oe&&(ae!=null||oe!=null))switch(U){case"selected":i.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:Ft(i,s,U,ae,h,oe)}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 Je in u)ae=u[Je],u.hasOwnProperty(Je)&&ae!=null&&!h.hasOwnProperty(Je)&&Ft(i,s,Je,null,h,ae);for(ee in h)if(ae=h[ee],oe=u[ee],h.hasOwnProperty(ee)&&ae!==oe&&(ae!=null||oe!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:Ft(i,s,ee,ae,h,oe)}return;default:if(Hm(s)){for(var jt in u)ae=u[jt],u.hasOwnProperty(jt)&&ae!==void 0&&!h.hasOwnProperty(jt)&&C0(i,s,jt,void 0,h,ae);for(pe in h)ae=h[pe],oe=u[pe],!h.hasOwnProperty(pe)||ae===oe||ae===void 0&&oe===void 0||C0(i,s,pe,ae,h,oe);return}}for(var Y in u)ae=u[Y],u.hasOwnProperty(Y)&&ae!=null&&!h.hasOwnProperty(Y)&&Ft(i,s,Y,null,h,ae);for(be in h)ae=h[be],oe=u[be],!h.hasOwnProperty(be)||ae===oe||ae==null&&oe==null||Ft(i,s,be,ae,h,oe)}var D0=null,k0=null;function th(i){return i.nodeType===9?i:i.ownerDocument}function cx(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 ux(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function R0(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var I0=null;function NO(){var i=window.event;return i&&i.type==="popstate"?i===I0?!1:(I0=i,!0):(I0=null,!1)}var dx=typeof setTimeout=="function"?setTimeout:void 0,OO=typeof clearTimeout=="function"?clearTimeout:void 0,fx=typeof Promise=="function"?Promise:void 0,LO=typeof queueMicrotask=="function"?queueMicrotask:typeof fx<"u"?function(i){return fx.resolve(null).then(i).catch(MO)}:dx;function MO(i){setTimeout(function(){throw i})}function fo(i){return i==="head"}function hx(i,s){var u=s,h=0,g=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(0<h&&8>h){u=h;var R=i.ownerDocument;if(u&1&&eu(R.documentElement),u&2&&eu(R.body),u&4)for(u=R.head,eu(u),R=u.firstChild;R;){var O=R.nextSibling,U=R.nodeName;R[He]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&R.rel.toLowerCase()==="stylesheet"||u.removeChild(R),R=O}}if(g===0){i.removeChild(v),lu(s);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=v}while(u);lu(s)}function w0(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":w0(u),qe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function PO(i,s,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[He])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=Ia(i.nextSibling),i===null)break}return null}function $O(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ia(i.nextSibling),i===null))return null;return i}function N0(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function FO(i,s){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")s();else{var h=function(){s(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Ia(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}var O0=null;function px(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(s===0)return i;s--}else u==="/$"&&s++}i=i.previousSibling}return null}function mx(i,s,u){switch(s=th(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function eu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);qe(i)}var fa=new Map,gx=new Set;function nh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ri=le.d;le.d={f:jO,r:BO,D:UO,C:HO,L:zO,m:GO,X:qO,S:VO,M:YO};function jO(){var i=Ri.f(),s=Yf();return i||s}function BO(i){var s=Ot(i);s!==null&&s.tag===5&&s.type==="form"?PT(s):Ri.r(i)}var _l=typeof document>"u"?null:document;function yx(i,s,u){var h=_l;if(h&&typeof s=="string"&&s){var g=ia(s);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),gx.has(g)||(gx.add(g),i={rel:i,crossOrigin:u,href:s},h.querySelector(g)===null&&(s=h.createElement("link"),er(s,"link",i),ft(s),h.head.appendChild(s)))}}function UO(i){Ri.D(i),yx("dns-prefetch",i,null)}function HO(i,s){Ri.C(i,s),yx("preconnect",i,s)}function zO(i,s,u){Ri.L(i,s,u);var h=_l;if(h&&i&&s){var g='link[rel="preload"][as="'+ia(s)+'"]';s==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+ia(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+ia(u.imageSizes)+'"]')):g+='[href="'+ia(i)+'"]';var v=g;switch(s){case"style":v=xl(i);break;case"script":v=Al(i)}fa.has(v)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),fa.set(v,i),h.querySelector(g)!==null||s==="style"&&h.querySelector(tu(v))||s==="script"&&h.querySelector(nu(v))||(s=h.createElement("link"),er(s,"link",i),ft(s),h.head.appendChild(s)))}}function GO(i,s){Ri.m(i,s);var u=_l;if(u&&i){var h=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+ia(h)+'"][href="'+ia(i)+'"]',v=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Al(i)}if(!fa.has(v)&&(i=p({rel:"modulepreload",href:i},s),fa.set(v,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(nu(v)))return}h=u.createElement("link"),er(h,"link",i),ft(h),u.head.appendChild(h)}}}function VO(i,s,u){Ri.S(i,s,u);var h=_l;if(h&&i){var g=bn(h).hoistableStyles,v=xl(i);s=s||"default";var R=g.get(v);if(!R){var O={loading:0,preload:null};if(R=h.querySelector(tu(v)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=fa.get(v))&&L0(i,u);var U=R=h.createElement("link");ft(U),er(U,"link",i),U._p=new Promise(function(ee,pe){U.onload=ee,U.onerror=pe}),U.addEventListener("load",function(){O.loading|=1}),U.addEventListener("error",function(){O.loading|=2}),O.loading|=4,rh(R,s,h)}R={type:"stylesheet",instance:R,count:1,state:O},g.set(v,R)}}}function qO(i,s){Ri.X(i,s);var u=_l;if(u&&i){var h=bn(u).hoistableScripts,g=Al(i),v=h.get(g);v||(v=u.querySelector(nu(g)),v||(i=p({src:i,async:!0},s),(s=fa.get(g))&&M0(i,s),v=u.createElement("script"),ft(v),er(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function YO(i,s){Ri.M(i,s);var u=_l;if(u&&i){var h=bn(u).hoistableScripts,g=Al(i),v=h.get(g);v||(v=u.querySelector(nu(g)),v||(i=p({src:i,async:!0,type:"module"},s),(s=fa.get(g))&&M0(i,s),v=u.createElement("script"),ft(v),er(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function bx(i,s,u,h){var g=(g=Ie.current)?nh(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=xl(u.href),u=bn(g).hoistableStyles,h=u.get(s),h||(h={type:"style",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=xl(u.href);var v=bn(g).hoistableStyles,R=v.get(i);if(R||(g=g.ownerDocument||g,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,R),(v=g.querySelector(tu(i)))&&!v._p&&(R.instance=v,R.state.loading=5),fa.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},fa.set(i,u),v||QO(g,i,u,R.state))),s&&h===null)throw Error(r(528,""));return R}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Al(u),u=bn(g).hoistableScripts,h=u.get(s),h||(h={type:"script",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function xl(i){return'href="'+ia(i)+'"'}function tu(i){return'link[rel="stylesheet"]['+i+"]"}function Ex(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function QO(i,s,u,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),er(s,"link",u),ft(s),i.head.appendChild(s))}function Al(i){return'[src="'+ia(i)+'"]'}function nu(i){return"script[async]"+i}function vx(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+ia(u.href)+'"]');if(h)return s.instance=h,ft(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),ft(h),er(h,"style",g),rh(h,u.precedence,i),s.instance=h;case"stylesheet":g=xl(u.href);var v=i.querySelector(tu(g));if(v)return s.state.loading|=4,s.instance=v,ft(v),v;h=Ex(u),(g=fa.get(g))&&L0(h,g),v=(i.ownerDocument||i).createElement("link"),ft(v);var R=v;return R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),er(v,"link",h),s.state.loading|=4,rh(v,u.precedence,i),s.instance=v;case"script":return v=Al(u.src),(g=i.querySelector(nu(v)))?(s.instance=g,ft(g),g):(h=u,(g=fa.get(v))&&(h=p({},u),M0(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),ft(g),er(g,"link",h),i.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,rh(h,u.precedence,i));return s.instance}function rh(i,s,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,v=g,R=0;R<h.length;R++){var O=h[R];if(O.dataset.precedence===s)v=O;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function L0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function M0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var ah=null;function Tx(i,s,u){if(ah===null){var h=new Map,g=ah=new Map;g.set(u,h)}else g=ah,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var v=u[g];if(!(v[He]||v[Ee]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var R=v.getAttribute(s)||"";R=i+R;var O=h.get(R);O?O.push(v):h.set(R,[v])}}return h}function _x(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function KO(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function xx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var ru=null;function WO(){}function XO(i,s,u){if(ru===null)throw Error(r(475));var h=ru;if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=xl(u.href),v=i.querySelector(tu(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=ih.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=v,ft(v);return}v=i.ownerDocument||i,u=Ex(u),(g=fa.get(g))&&L0(u,g),v=v.createElement("link"),ft(v);var R=v;R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),er(v,"link",u),s.instance=v}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=ih.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function ZO(){if(ru===null)throw Error(r(475));var i=ru;return i.stylesheets&&i.count===0&&P0(i,i.stylesheets),0<i.count?function(s){var u=setTimeout(function(){if(i.stylesheets&&P0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(u)}}:null}function ih(){if(this.count--,this.count===0){if(this.stylesheets)P0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var oh=null;function P0(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,oh=new Map,s.forEach(JO,i),oh=null,ih.call(i))}function JO(i,s){if(!(s.state.loading&4)){var u=oh.get(i);if(u)var h=u.get(null);else{u=new Map,oh.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var R=g[v];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),h=R)}h&&u.set(null,h)}g=s.instance,R=g.getAttribute("data-precedence"),v=u.get(R)||h,v===h&&u.set(null,g),u.set(R,g),this.count++,h=ih.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),s.state.loading|=4}}var au={$$typeof:S,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function e5(i,s,u,h,g,v,R,O){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=gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gr(0),this.hiddenUpdates=gr(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Ax(i,s,u,h,g,v,R,O,U,ee,pe,be){return i=new e5(i,s,u,R,O,U,ee,be),s=1,v===!0&&(s|=24),v=Hr(3,null,null,s),i.current=v,v.stateNode=i,s=yg(),s.refCount++,i.pooledCache=s,s.refCount++,v.memoizedState={element:h,isDehydrated:u,cache:s},Tg(v),i}function Sx(i){return i?(i=tl,i):tl}function Cx(i,s,u,h,g,v){g=Sx(g),h.context===null?h.context=g:h.pendingContext=g,h=Zi(s),h.payload={element:u},v=v===void 0?null:v,v!==null&&(h.callback=v),u=Ji(i,h,s),u!==null&&(Yr(u,i,s),Lc(u,i,s))}function Dx(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function $0(i,s){Dx(i,s),(i=i.alternate)&&Dx(i,s)}function kx(i){if(i.tag===13){var s=el(i,67108864);s!==null&&Yr(s,i,67108864),$0(i,67108864)}}var sh=!0;function t5(i,s,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=2,F0(i,s,u,h)}finally{le.p=v,G.T=g}}function n5(i,s,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=8,F0(i,s,u,h)}finally{le.p=v,G.T=g}}function F0(i,s,u,h){if(sh){var g=j0(h);if(g===null)S0(i,s,h,lh,u),Ix(i,h);else if(a5(g,i,s,u,h))h.stopPropagation();else if(Ix(i,h),s&4&&-1<r5.indexOf(i)){for(;g!==null;){var v=Ot(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var R=_e(v.pendingLanes);if(R!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;R;){var U=1<<31-nt(R);O.entanglements[1]|=U,R&=~U}qa(v),(Lt&6)===0&&(Vf=Ve()+500,Xc(0))}}break;case 13:O=el(v,2),O!==null&&Yr(O,v,2),Yf(),$0(v,2)}if(v=j0(h),v===null&&S0(i,s,h,lh,u),v===g)break;g=v}g!==null&&h.stopPropagation()}else S0(i,s,h,null,u)}}function j0(i){return i=Gm(i),B0(i)}var lh=null;function B0(i){if(lh=null,i=pt(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return lh=i,null}function Rx(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(Xn()){case an:return 2;case on:return 8;case Ye:case Ct:return 32;case Sr:return 268435456;default:return 32}default:return 32}}var U0=!1,ho=null,po=null,mo=null,iu=new Map,ou=new Map,go=[],r5="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 Ix(i,s){switch(i){case"focusin":case"focusout":ho=null;break;case"dragenter":case"dragleave":po=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":iu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(s.pointerId)}}function su(i,s,u,h,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:s,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[g]},s!==null&&(s=Ot(s),s!==null&&kx(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),i)}function a5(i,s,u,h,g){switch(s){case"focusin":return ho=su(ho,i,s,u,h,g),!0;case"dragenter":return po=su(po,i,s,u,h,g),!0;case"mouseover":return mo=su(mo,i,s,u,h,g),!0;case"pointerover":var v=g.pointerId;return iu.set(v,su(iu.get(v)||null,i,s,u,h,g)),!0;case"gotpointercapture":return v=g.pointerId,ou.set(v,su(ou.get(v)||null,i,s,u,h,g)),!0}return!1}function wx(i){var s=pt(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,X(i.priority,function(){if(u.tag===13){var h=qr();h=jr(h);var g=el(u,h);g!==null&&Yr(g,u,h),$0(u,h)}});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ch(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=j0(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);zm=h,u.target.dispatchEvent(h),zm=null}else return s=Ot(u),s!==null&&kx(s),i.blockedOn=u,!1;s.shift()}return!0}function Nx(i,s,u){ch(i)&&u.delete(s)}function i5(){U0=!1,ho!==null&&ch(ho)&&(ho=null),po!==null&&ch(po)&&(po=null),mo!==null&&ch(mo)&&(mo=null),iu.forEach(Nx),ou.forEach(Nx)}function uh(i,s){i.blockedOn===s&&(i.blockedOn=null,U0||(U0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,i5)))}var dh=null;function Ox(i){dh!==i&&(dh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){dh===i&&(dh=null);for(var s=0;s<i.length;s+=3){var u=i[s],h=i[s+1],g=i[s+2];if(typeof h!="function"){if(B0(h||u)===null)continue;break}var v=Ot(u);v!==null&&(i.splice(s,3),s-=3,Bg(v,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function lu(i){function s(U){return uh(U,i)}ho!==null&&uh(ho,i),po!==null&&uh(po,i),mo!==null&&uh(mo,i),iu.forEach(s),ou.forEach(s);for(var u=0;u<go.length;u++){var h=go[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<go.length&&(u=go[0],u.blockedOn===null);)wx(u),u.blockedOn===null&&go.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],v=u[h+1],R=g[De]||null;if(typeof v=="function")R||Ox(u);else if(R){var O=null;if(v&&v.hasAttribute("formAction")){if(g=v,R=v[De]||null)O=R.formAction;else if(B0(g)!==null)continue}else O=R.action;typeof O=="function"?u[h+1]=O:(u.splice(h,3),h-=3),Ox(u)}}}function H0(i){this._internalRoot=i}fh.prototype.render=H0.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,h=qr();Cx(u,h,i,s,null,null)},fh.prototype.unmount=H0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Cx(i.current,2,null,i,null,null),Yf(),s[je]=null}};function fh(i){this._internalRoot=i}fh.prototype.unstable_scheduleHydration=function(i){if(i){var s=z();i={blockedOn:null,target:i,priority:s};for(var u=0;u<go.length&&s!==0&&s<go[u].priority;u++);go.splice(u,0,i),u===0&&wx(i)}};var Lx=t.version;if(Lx!=="19.1.1")throw Error(r(527,Lx,"19.1.1"));le.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var o5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hh.isDisabled&&hh.supportsFiber)try{ue=hh.inject(o5),ve=hh}catch{}}return cu.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,h="",g=WT,v=XT,R=ZT,O=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(v=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(O=s.unstable_transitionCallbacks)),s=Ax(i,1,!1,null,null,u,h,g,v,R,O,null),i[je]=s.current,A0(i),new H0(s)},cu.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var h=!1,g="",v=WT,R=XT,O=ZT,U=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(O=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(U=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),s=Ax(i,1,!0,s,u??null,h,g,v,R,O,U,ee),s.context=Sx(null),u=s.current,h=qr(),h=jr(h),g=Zi(h),g.callback=null,Ji(u,g,h),u=h,s.current.lanes=u,ir(s,u),qa(s),i[je]=s.current,A0(i),new fh(s)},cu.version="19.1.1",cu}var jx;function $5(){if(jx)return z0.exports;jx=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(),z0.exports=P5(),z0.exports}var F5=$5();/**
|
|
27
|
+
* react-router v7.7.1
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Remix Software Inc.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
33
|
+
*
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/var Y2=e=>{throw TypeError(e)},j5=(e,t,n)=>t.has(e)||Y2("Cannot "+n),q0=(e,t,n)=>(j5(e,t,"read from private field"),n?n.call(e):t.get(e)),B5=(e,t,n)=>t.has(e)?Y2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Bx="popstate";function U5(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return id("",{pathname:o,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Po(a)}return z5(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $n(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function H5(){return Math.random().toString(36).substring(2,10)}function Ux(e,t){return{usr:e.state,key:e.key,idx:t}}function id(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fo(t):t,state:n,key:t&&t.key||r||H5()}}function Po({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 Fo(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 z5(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let C=p(),x=C==null?null:C-f;f=C,d&&d({action:c,location:A.location,delta:x})}function y(C,x){c="PUSH";let D=id(A.location,C,x);f=p()+1;let S=Ux(D,f),M=A.createHref(D);try{l.pushState(S,"",M)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;a.location.assign(M)}o&&d&&d({action:c,location:A.location,delta:1})}function b(C,x){c="REPLACE";let D=id(A.location,C,x);f=p();let S=Ux(D,f),M=A.createHref(D);l.replaceState(S,"",M),o&&d&&d({action:c,location:A.location,delta:0})}function T(C){return Q2(C)}let A={get action(){return c},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Bx,m),d=C,()=>{a.removeEventListener(Bx,m),d=null}},createHref(C){return t(a,C)},createURL:T,encodeLocation(C){let x=T(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:y,replace:b,go(C){return l.go(C)}};return A}function Q2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Po(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Iu,Hx=class{constructor(e){if(B5(this,Iu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(q0(this,Iu).has(e))return q0(this,Iu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){q0(this,Iu).set(e,t)}};Iu=new WeakMap;var G5=new Set(["lazy","caseSensitive","path","id","index","children"]);function V5(e){return G5.has(e)}var q5=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Y5(e){return q5.has(e)}function Q5(e){return e.index===!0}function od(e,t,n=[],r={},a=!1){return e.map((o,l)=>{let c=[...n,String(l)],d=typeof o.id=="string"?o.id:c.join("-");if(Tt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Tt(a||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),Q5(o)){let f={...o,...t(o),id:d};return r[d]=f,f}else{let f={...o,...t(o),id:d,children:void 0};return r[d]=f,o.children&&(f.children=od(o.children,t,c,r,a)),f}})}function So(e,t,n="/"){return $h(e,t,n,!1)}function $h(e,t,n,r){let a=typeof t=="string"?Fo(t):t,o=Aa(a.pathname||"/",n);if(o==null)return null;let l=K2(e);W5(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=s4(o);c=i4(l[d],f,r)}return c}function K5(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 K2(e,t=[],n=[],r=""){let a=(o,l,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Tt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=ii([r,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),K2(o.children,t,p,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:r4(f,o.index),routesMeta:p})};return e.forEach((o,l)=>{if(o.path===""||!o.path?.includes("?"))a(o,l);else for(let c of W2(o.path))a(o,l,c)}),t}function W2(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 l=W2(r.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function W5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:a4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X5=/^:[\w-]+$/,Z5=3,J5=2,e4=1,t4=10,n4=-2,zx=e=>e==="*";function r4(e,t){let n=e.split("/"),r=n.length;return n.some(zx)&&(r+=n4),t&&(r+=J5),n.filter(a=>!zx(a)).reduce((a,o)=>a+(X5.test(o)?Z5:o===""?e4:t4),r)}function a4(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 i4(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",m=up({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),y=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=up({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:ii([o,m.pathname]),pathnameBase:d4(ii([o,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(o=ii([o,m.pathnameBase]))}return l}function up(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o4(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},y)=>{if(p==="*"){let T=c[y]||"";l=o.slice(0,o.length-T.length).replace(/(.)\/+$/,"$1")}const b=c[y];return m&&!b?f[p]=void 0:f[p]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function o4(e,t=!1,n=!0){$n(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,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function s4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $n(!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 Aa(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 l4({basename:e,pathname:t}){return t==="/"?e:ii([e,t])}function c4(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Fo(e):e;return{pathname:n?n.startsWith("/")?n:u4(n,t):t,search:f4(r),hash:h4(a)}}function u4(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 Y0(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 X2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yb(e){let t=X2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function bb(e,t,n,r=!1){let a;typeof e=="string"?a=Fo(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Y0("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Y0("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Y0("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;a.pathname=y.join("/")}c=m>=0?t[m]:"/"}let d=c4(a,c),f=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var ii=e=>e.join("/").replace(/\/\/+/g,"/"),d4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dp=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 sd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Z2=["POST","PUT","PATCH","DELETE"],p4=new Set(Z2),m4=["GET",...Z2],g4=new Set(m4),y4=new Set([301,302,303,307,308]),b4=new Set([307,308]),Q0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},E4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},v4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Eb=e=>v4.test(e),T4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),J2="remix-router-transitions",eD=Symbol("ResetLoaderData");function _4(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";Tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||T4,o={},l=od(e.routes,a,void 0,o),c,d=e.basename||"/",f=e.dataStrategy||D4,p={unstable_middleware:!1,...e.future},m=null,y=new Set,b=null,T=null,A=null,C=e.hydrationData!=null,x=So(l,e.history.location,d),D=!1,S=null,M;if(x==null&&!e.patchRoutesOnNavigation){let z=ma(404,{pathname:e.history.location.pathname}),{matches:X,route:ie}=tA(l);M=!0,x=X,S={[ie.id]:z}}else if(x&&!e.hydrationData&&Ba(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some(z=>z.route.lazy))M=!1;else if(!x.some(z=>z.route.loader))M=!0;else{let z=e.hydrationData?e.hydrationData.loaderData:null,X=e.hydrationData?e.hydrationData.errors:null;if(X){let ie=x.findIndex(Ee=>X[Ee.route.id]!==void 0);M=x.slice(0,ie+1).every(Ee=>!ny(Ee.route,z,X))}else M=x.every(ie=>!ny(ie.route,z,X))}else{M=!1,x=[];let z=Ba(null,l,e.history.location.pathname);z.active&&z.matches&&(D=!0,x=z.matches)}let L,I={historyAction:e.history.action,location:e.history.location,matches:x,initialized:M,navigation:Q0,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||S,fetchers:new Map,blockers:new Map},V="POP",ne=!1,K,k=!1,H=new Map,Q=null,W=!1,re=!1,me=new Set,G=new Map,le=0,se=-1,ye=new Map,P=new Set,Ne=new Map,ce=new Map,w=new Set,te=new Map,Ce,Ie=null;function Me(){if(m=e.history.listen(({action:z,location:X,delta:ie})=>{if(Ce){Ce(),Ce=void 0;return}$n(te.size===0||ie!=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 Ee=We({currentLocation:I.location,nextLocation:X,historyAction:z});if(Ee&&ie!=null){let De=new Promise(je=>{Ce=je});e.history.go(ie*-1),ot(Ee,{state:"blocked",location:X,proceed(){ot(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),De.then(()=>e.history.go(ie))},reset(){let je=new Map(I.blockers);je.set(Ee,uu),dt({blockers:je})}});return}return Pe(z,X)}),n){F4(t,H);let z=()=>j4(t,H);t.addEventListener("pagehide",z),Q=()=>t.removeEventListener("pagehide",z)}return I.initialized||Pe("POP",I.location,{initialHydration:!0}),L}function Oe(){m&&m(),Q&&Q(),y.clear(),K&&K.abort(),I.fetchers.forEach((z,X)=>nt(X)),I.blockers.forEach((z,X)=>Te(X))}function st(z){return y.add(z),()=>y.delete(z)}function dt(z,X={}){z.matches&&(z.matches=z.matches.map(De=>{let je=o[De.route.id],Ge=De.route;return Ge.element!==je.element||Ge.errorElement!==je.errorElement||Ge.hydrateFallbackElement!==je.hydrateFallbackElement?{...De,route:je}:De})),I={...I,...z};let ie=[],Ee=[];I.fetchers.forEach((De,je)=>{De.state==="idle"&&(w.has(je)?ie.push(je):Ee.push(je))}),w.forEach(De=>{!I.fetchers.has(De)&&!G.has(De)&&ie.push(De)}),[...y].forEach(De=>De(I,{deletedFetchers:ie,viewTransitionOpts:X.viewTransitionOpts,flushSync:X.flushSync===!0})),ie.forEach(De=>nt(De)),Ee.forEach(De=>I.fetchers.delete(De))}function Be(z,X,{flushSync:ie}={}){let Ee=I.actionData!=null&&I.navigation.formMethod!=null&&Nr(I.navigation.formMethod)&&I.navigation.state==="loading"&&z.state?._isRedirect!==!0,De;X.actionData?Object.keys(X.actionData).length>0?De=X.actionData:De=null:Ee?De=I.actionData:De=null;let je=X.loaderData?Jx(I.loaderData,X.loaderData,X.matches||[],X.errors):I.loaderData,Ge=I.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((He,qe)=>Ge.set(qe,uu)));let Ue=W?!1:or(z,X.matches||I.matches),Ke=ne===!0||I.navigation.formMethod!=null&&Nr(I.navigation.formMethod)&&z.state?._isRedirect!==!0;c&&(l=c,c=void 0),W||V==="POP"||(V==="PUSH"?e.history.push(z,z.state):V==="REPLACE"&&e.history.replace(z,z.state));let Ze;if(V==="POP"){let He=H.get(I.location.pathname);He&&He.has(z.pathname)?Ze={currentLocation:I.location,nextLocation:z}:H.has(z.pathname)&&(Ze={currentLocation:z,nextLocation:I.location})}else if(k){let He=H.get(I.location.pathname);He?He.add(z.pathname):(He=new Set([z.pathname]),H.set(I.location.pathname,He)),Ze={currentLocation:I.location,nextLocation:z}}dt({...X,actionData:De,loaderData:je,historyAction:V,location:z,initialized:!0,navigation:Q0,revalidation:"idle",restoreScrollPosition:Ue,preventScrollReset:Ke,blockers:Ge},{viewTransitionOpts:Ze,flushSync:ie===!0}),V="POP",ne=!1,k=!1,W=!1,re=!1,Ie?.resolve(),Ie=null}async function en(z,X){if(typeof z=="number"){e.history.go(z);return}let ie=ty(I.location,I.matches,d,z,X?.fromRouteId,X?.relative),{path:Ee,submission:De,error:je}=Gx(!1,ie,X),Ge=I.location,Ue=id(I.location,Ee,X&&X.state);Ue={...Ue,...e.history.encodeLocation(Ue)};let Ke=X&&X.replace!=null?X.replace:void 0,Ze="PUSH";Ke===!0?Ze="REPLACE":Ke===!1||De!=null&&Nr(De.formMethod)&&De.formAction===I.location.pathname+I.location.search&&(Ze="REPLACE");let He=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,qe=(X&&X.flushSync)===!0,pt=We({currentLocation:Ge,nextLocation:Ue,historyAction:Ze});if(pt){ot(pt,{state:"blocked",location:Ue,proceed(){ot(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ue}),en(z,X)},reset(){let Ot=new Map(I.blockers);Ot.set(pt,uu),dt({blockers:Ot})}});return}await Pe(Ze,Ue,{submission:De,pendingError:je,preventScrollReset:He,replace:X&&X.replace,enableViewTransition:X&&X.viewTransition,flushSync:qe})}function wt(){Ie||(Ie=B4()),Rt(),dt({revalidation:"loading"});let z=Ie.promise;return I.navigation.state==="submitting"?z:I.navigation.state==="idle"?(Pe(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),z):(Pe(V||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:k===!0}),z)}async function Pe(z,X,ie){K&&K.abort(),K=null,V=z,W=(ie&&ie.startUninterruptedRevalidation)===!0,ir(I.location,I.matches),ne=(ie&&ie.preventScrollReset)===!0,k=(ie&&ie.enableViewTransition)===!0;let Ee=c||l,De=ie&&ie.overrideNavigation,je=ie?.initialHydration&&I.matches&&I.matches.length>0&&!D?I.matches:So(Ee,X,d),Ge=(ie&&ie.flushSync)===!0;if(je&&I.initialized&&!re&&O4(I.location,X)&&!(ie&&ie.submission&&Nr(ie.submission.formMethod))){Be(X,{matches:je},{flushSync:Ge});return}let Ue=Ba(je,Ee,X.pathname);if(Ue.active&&Ue.matches&&(je=Ue.matches),!je){let{error:bn,notFoundMatches:ft,route:Pt}=Cn(X.pathname);Be(X,{matches:ft,loaderData:{},errors:{[Pt.id]:bn}},{flushSync:Ge});return}K=new AbortController;let Ke=Pl(e.history,X,K.signal,ie&&ie.submission),Ze=new Hx(e.unstable_getContext?await e.unstable_getContext():void 0),He;if(ie&&ie.pendingError)He=[ds(je).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Nr(ie.submission.formMethod)){let bn=await ar(Ke,X,ie.submission,je,Ze,Ue.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:Ge});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[ft,Pt]=bn.pendingActionResult;if(Wr(Pt)&&sd(Pt.error)&&Pt.error.status===404){K=null,Be(X,{matches:bn.matches,loaderData:{},errors:{[ft]:Pt.error}});return}}je=bn.matches||je,He=bn.pendingActionResult,De=K0(X,ie.submission),Ge=!1,Ue.active=!1,Ke=Pl(e.history,Ke.url,Ke.signal)}let{shortCircuited:qe,matches:pt,loaderData:Ot,errors:yn}=await dn(Ke,X,je,Ze,Ue.active,De,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,Ge,He);qe||(K=null,Be(X,{matches:pt||je,...eA(He),loaderData:Ot,errors:yn}))}async function ar(z,X,ie,Ee,De,je,Ge,Ue={}){Rt();let Ke=P4(X,ie);if(dt({navigation:Ke},{flushSync:Ue.flushSync===!0}),je){let qe=await fn(Ee,X.pathname,z.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let pt=ds(qe.partialMatches).route.id;return{matches:qe.partialMatches,pendingActionResult:[pt,{type:"error",error:qe.error}]}}else if(qe.matches)Ee=qe.matches;else{let{notFoundMatches:pt,error:Ot,route:yn}=Cn(X.pathname);return{matches:pt,pendingActionResult:[yn.id,{type:"error",error:Ot}]}}}let Ze,He=Fh(Ee,X);if(!He.route.action&&!He.route.lazy)Ze={type:"error",error:ma(405,{method:z.method,pathname:X.pathname,routeId:He.route.id})};else{let qe=Ul(a,o,z,Ee,He,Ge?[]:r,De),pt=await Sr(z,qe,De,null);if(Ze=pt[He.route.id],!Ze){for(let Ot of Ee)if(pt[Ot.route.id]){Ze=pt[Ot.route.id];break}}if(z.signal.aborted)return{shortCircuited:!0}}if(gs(Ze)){let qe;return Ue&&Ue.replace!=null?qe=Ue.replace:qe=Wx(Ze.response.headers.get("Location"),new URL(z.url),d)===I.location.pathname+I.location.search,await Ct(z,Ze,!0,{submission:ie,replace:qe}),{shortCircuited:!0}}if(Wr(Ze)){let qe=ds(Ee,He.route.id);return(Ue&&Ue.replace)!==!0&&(V="PUSH"),{matches:Ee,pendingActionResult:[qe.route.id,Ze,He.route.id]}}return{matches:Ee,pendingActionResult:[He.route.id,Ze]}}async function dn(z,X,ie,Ee,De,je,Ge,Ue,Ke,Ze,He,qe){let pt=je||K0(X,Ge),Ot=Ge||Ue||rA(pt),yn=!W&&!Ze;if(De){if(yn){let wn=Ve(qe);dt({navigation:pt,...wn!==void 0?{actionData:wn}:{}},{flushSync:He})}let gt=await fn(ie,X.pathname,z.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){let wn=ds(gt.partialMatches).route.id;return{matches:gt.partialMatches,loaderData:{},errors:{[wn]:gt.error}}}else if(gt.matches)ie=gt.matches;else{let{error:wn,notFoundMatches:Go,route:ra}=Cn(X.pathname);return{matches:Go,loaderData:{},errors:{[ra.id]:wn}}}}let bn=c||l,{dsMatches:ft,revalidatingFetchers:Pt}=Vx(z,Ee,a,o,e.history,I,ie,Ot,X,Ze?[]:r,Ze===!0,re,me,w,Ne,P,bn,d,e.patchRoutesOnNavigation!=null,qe);if(se=++le,!e.dataStrategy&&!ft.some(gt=>gt.shouldLoad)&&Pt.length===0){let gt=gn();return Be(X,{matches:ie,loaderData:{},errors:qe&&Wr(qe[1])?{[qe[0]]:qe[1].error}:null,...eA(qe),...gt?{fetchers:new Map(I.fetchers)}:{}},{flushSync:He}),{shortCircuited:!0}}if(yn){let gt={};if(!De){gt.navigation=pt;let wn=Ve(qe);wn!==void 0&&(gt.actionData=wn)}Pt.length>0&&(gt.fetchers=Xn(Pt)),dt(gt,{flushSync:He})}Pt.forEach(gt=>{Nt(gt.key),gt.controller&&G.set(gt.key,gt.controller)});let Ua=()=>Pt.forEach(gt=>Nt(gt.key));K&&K.signal.addEventListener("abort",Ua);let{loaderResults:Br,fetcherResults:yr}=await ja(ft,Pt,z,Ee);if(z.signal.aborted)return{shortCircuited:!0};K&&K.signal.removeEventListener("abort",Ua),Pt.forEach(gt=>G.delete(gt.key));let na=gh(Br);if(na)return await Ct(z,na.result,!0,{replace:Ke}),{shortCircuited:!0};if(na=gh(yr),na)return P.add(na.key),await Ct(z,na.result,!0,{replace:Ke}),{shortCircuited:!0};let{loaderData:Vs,errors:Yi}=Zx(I,ie,Br,qe,Pt,yr);Ze&&I.errors&&(Yi={...I.errors,...Yi});let hi=gn(),pi=Sn(se),mi=hi||pi||Pt.length>0;return{matches:ie,loaderData:Vs,errors:Yi,...mi?{fetchers:new Map(I.fetchers)}:{}}}function Ve(z){if(z&&!Wr(z[1]))return{[z[0]]:z[1].data};if(I.actionData)return Object.keys(I.actionData).length===0?null:I.actionData}function Xn(z){return z.forEach(X=>{let ie=I.fetchers.get(X.key),Ee=du(void 0,ie?ie.data:void 0);I.fetchers.set(X.key,Ee)}),new Map(I.fetchers)}async function an(z,X,ie,Ee){Nt(z);let De=(Ee&&Ee.flushSync)===!0,je=c||l,Ge=ty(I.location,I.matches,d,ie,X,Ee?.relative),Ue=So(je,Ge,d),Ke=Ba(Ue,je,Ge);if(Ke.active&&Ke.matches&&(Ue=Ke.matches),!Ue){ve(z,X,ma(404,{pathname:Ge}),{flushSync:De});return}let{path:Ze,submission:He,error:qe}=Gx(!0,Ge,Ee);if(qe){ve(z,X,qe,{flushSync:De});return}let pt=new Hx(e.unstable_getContext?await e.unstable_getContext():void 0),Ot=(Ee&&Ee.preventScrollReset)===!0;if(He&&Nr(He.formMethod)){await on(z,X,Ze,Ue,pt,Ke.active,De,Ot,He);return}Ne.set(z,{routeId:X,path:Ze}),await Ye(z,X,Ze,Ue,pt,Ke.active,De,Ot,He)}async function on(z,X,ie,Ee,De,je,Ge,Ue,Ke){Rt(),Ne.delete(z);let Ze=I.fetchers.get(z);ue(z,$4(Ke,Ze),{flushSync:Ge});let He=new AbortController,qe=Pl(e.history,ie,He.signal,Ke);if(je){let hn=await fn(Ee,new URL(qe.url).pathname,qe.signal,z);if(hn.type==="aborted")return;if(hn.type==="error"){ve(z,X,hn.error,{flushSync:Ge});return}else if(hn.matches)Ee=hn.matches;else{ve(z,X,ma(404,{pathname:ie}),{flushSync:Ge});return}}let pt=Fh(Ee,ie);if(!pt.route.action&&!pt.route.lazy){let hn=ma(405,{method:Ke.formMethod,pathname:ie,routeId:X});ve(z,X,hn,{flushSync:Ge});return}G.set(z,He);let Ot=le,yn=Ul(a,o,qe,Ee,pt,r,De),ft=(await Sr(qe,yn,De,z))[pt.route.id];if(qe.signal.aborted){G.get(z)===He&&G.delete(z);return}if(w.has(z)){if(gs(ft)||Wr(ft)){ue(z,_o(void 0));return}}else{if(gs(ft))if(G.delete(z),se>Ot){ue(z,_o(void 0));return}else return P.add(z),ue(z,du(Ke)),Ct(qe,ft,!1,{fetcherSubmission:Ke,preventScrollReset:Ue});if(Wr(ft)){ve(z,X,ft.error);return}}let Pt=I.navigation.location||I.location,Ua=Pl(e.history,Pt,He.signal),Br=c||l,yr=I.navigation.state!=="idle"?So(Br,I.navigation.location,d):I.matches;Tt(yr,"Didn't find any matches after fetcher action");let na=++le;ye.set(z,na);let Vs=du(Ke,ft.data);I.fetchers.set(z,Vs);let{dsMatches:Yi,revalidatingFetchers:hi}=Vx(Ua,De,a,o,e.history,I,yr,Ke,Pt,r,!1,re,me,w,Ne,P,Br,d,e.patchRoutesOnNavigation!=null,[pt.route.id,ft]);hi.filter(hn=>hn.key!==z).forEach(hn=>{let Qi=hn.key,rf=I.fetchers.get(Qi),af=du(void 0,rf?rf.data:void 0);I.fetchers.set(Qi,af),Nt(Qi),hn.controller&&G.set(Qi,hn.controller)}),dt({fetchers:new Map(I.fetchers)});let pi=()=>hi.forEach(hn=>Nt(hn.key));He.signal.addEventListener("abort",pi);let{loaderResults:mi,fetcherResults:gt}=await ja(Yi,hi,Ua,De);if(He.signal.aborted)return;if(He.signal.removeEventListener("abort",pi),ye.delete(z),G.delete(z),hi.forEach(hn=>G.delete(hn.key)),I.fetchers.has(z)){let hn=_o(ft.data);I.fetchers.set(z,hn)}let wn=gh(mi);if(wn)return Ct(Ua,wn.result,!1,{preventScrollReset:Ue});if(wn=gh(gt),wn)return P.add(wn.key),Ct(Ua,wn.result,!1,{preventScrollReset:Ue});let{loaderData:Go,errors:ra}=Zx(I,yr,mi,void 0,hi,gt);Sn(na),I.navigation.state==="loading"&&na>se?(Tt(V,"Expected pending action"),K&&K.abort(),Be(I.navigation.location,{matches:yr,loaderData:Go,errors:ra,fetchers:new Map(I.fetchers)})):(dt({errors:ra,loaderData:Jx(I.loaderData,Go,yr,ra),fetchers:new Map(I.fetchers)}),re=!1)}async function Ye(z,X,ie,Ee,De,je,Ge,Ue,Ke){let Ze=I.fetchers.get(z);ue(z,du(Ke,Ze?Ze.data:void 0),{flushSync:Ge});let He=new AbortController,qe=Pl(e.history,ie,He.signal);if(je){let Pt=await fn(Ee,new URL(qe.url).pathname,qe.signal,z);if(Pt.type==="aborted")return;if(Pt.type==="error"){ve(z,X,Pt.error,{flushSync:Ge});return}else if(Pt.matches)Ee=Pt.matches;else{ve(z,X,ma(404,{pathname:ie}),{flushSync:Ge});return}}let pt=Fh(Ee,ie);G.set(z,He);let Ot=le,yn=Ul(a,o,qe,Ee,pt,r,De),ft=(await Sr(qe,yn,De,z))[pt.route.id];if(G.get(z)===He&&G.delete(z),!qe.signal.aborted){if(w.has(z)){ue(z,_o(void 0));return}if(gs(ft))if(se>Ot){ue(z,_o(void 0));return}else{P.add(z),await Ct(qe,ft,!1,{preventScrollReset:Ue});return}if(Wr(ft)){ve(z,X,ft.error);return}ue(z,_o(ft.data))}}async function Ct(z,X,ie,{submission:Ee,fetcherSubmission:De,preventScrollReset:je,replace:Ge}={}){X.response.headers.has("X-Remix-Revalidate")&&(re=!0);let Ue=X.response.headers.get("Location");Tt(Ue,"Expected a Location header on the redirect Response"),Ue=Wx(Ue,new URL(z.url),d);let Ke=id(I.location,Ue,{_isRedirect:!0});if(n){let yn=!1;if(X.response.headers.has("X-Remix-Reload-Document"))yn=!0;else if(Eb(Ue)){const bn=Q2(Ue,!0);yn=bn.origin!==t.location.origin||Aa(bn.pathname,d)==null}if(yn){Ge?t.location.replace(Ue):t.location.assign(Ue);return}}K=null;let Ze=Ge===!0||X.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:He,formAction:qe,formEncType:pt}=I.navigation;!Ee&&!De&&He&&qe&&pt&&(Ee=rA(I.navigation));let Ot=Ee||De;if(b4.has(X.response.status)&&Ot&&Nr(Ot.formMethod))await Pe(Ze,Ke,{submission:{...Ot,formAction:Ue},preventScrollReset:je||ne,enableViewTransition:ie?k:void 0});else{let yn=K0(Ke,Ee);await Pe(Ze,Ke,{overrideNavigation:yn,fetcherSubmission:De,preventScrollReset:je||ne,enableViewTransition:ie?k:void 0})}}async function Sr(z,X,ie,Ee){let De,je={};try{De=await k4(f,z,X,Ee,ie,!1)}catch(Ge){return X.filter(Ue=>Ue.shouldLoad).forEach(Ue=>{je[Ue.route.id]={type:"error",error:Ge}}),je}if(z.signal.aborted)return je;for(let[Ge,Ue]of Object.entries(De))if(L4(Ue)){let Ke=Ue.result;je[Ge]={type:"redirect",response:w4(Ke,z,Ge,X,d)}}else je[Ge]=await I4(Ue);return je}async function ja(z,X,ie,Ee){let De=Sr(ie,z,Ee,null),je=Promise.all(X.map(async Ke=>{if(Ke.matches&&Ke.match&&Ke.request&&Ke.controller){let He=(await Sr(Ke.request,Ke.matches,Ee,Ke.key))[Ke.match.route.id];return{[Ke.key]:He}}else return Promise.resolve({[Ke.key]:{type:"error",error:ma(404,{pathname:Ke.path})}})})),Ge=await De,Ue=(await je).reduce((Ke,Ze)=>Object.assign(Ke,Ze),{});return{loaderResults:Ge,fetcherResults:Ue}}function Rt(){re=!0,Ne.forEach((z,X)=>{G.has(X)&&me.add(X),Nt(X)})}function ue(z,X,ie={}){I.fetchers.set(z,X),dt({fetchers:new Map(I.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ve(z,X,ie,Ee={}){let De=ds(I.matches,X);nt(z),dt({errors:{[De.route.id]:ie},fetchers:new Map(I.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function Fe(z){return ce.set(z,(ce.get(z)||0)+1),w.has(z)&&w.delete(z),I.fetchers.get(z)||E4}function nt(z){let X=I.fetchers.get(z);G.has(z)&&!(X&&X.state==="loading"&&ye.has(z))&&Nt(z),Ne.delete(z),ye.delete(z),P.delete(z),w.delete(z),me.delete(z),I.fetchers.delete(z)}function Dt(z){let X=(ce.get(z)||0)-1;X<=0?(ce.delete(z),w.add(z)):ce.set(z,X),dt({fetchers:new Map(I.fetchers)})}function Nt(z){let X=G.get(z);X&&(X.abort(),G.delete(z))}function Gn(z){for(let X of z){let ie=Fe(X),Ee=_o(ie.data);I.fetchers.set(X,Ee)}}function gn(){let z=[],X=!1;for(let ie of P){let Ee=I.fetchers.get(ie);Tt(Ee,`Expected fetcher: ${ie}`),Ee.state==="loading"&&(P.delete(ie),z.push(ie),X=!0)}return Gn(z),X}function Sn(z){let X=[];for(let[ie,Ee]of ye)if(Ee<z){let De=I.fetchers.get(ie);Tt(De,`Expected fetcher: ${ie}`),De.state==="loading"&&(Nt(ie),ye.delete(ie),X.push(ie))}return Gn(X),X.length>0}function _e(z,X){let ie=I.blockers.get(z)||uu;return te.get(z)!==X&&te.set(z,X),ie}function Te(z){I.blockers.delete(z),te.delete(z)}function ot(z,X){let ie=I.blockers.get(z)||uu;Tt(ie.state==="unblocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="proceeding"||ie.state==="blocked"&&X.state==="unblocked"||ie.state==="proceeding"&&X.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${X.state}`);let Ee=new Map(I.blockers);Ee.set(z,X),dt({blockers:Ee})}function We({currentLocation:z,nextLocation:X,historyAction:ie}){if(te.size===0)return;te.size>1&&$n(!1,"A router only supports one blocker at a time");let Ee=Array.from(te.entries()),[De,je]=Ee[Ee.length-1],Ge=I.blockers.get(De);if(!(Ge&&Ge.state==="proceeding")&&je({currentLocation:z,nextLocation:X,historyAction:ie}))return De}function Cn(z){let X=ma(404,{pathname:z}),ie=c||l,{matches:Ee,route:De}=tA(ie);return{notFoundMatches:Ee,route:De,error:X}}function Fr(z,X,ie){if(b=z,A=X,T=ie||null,!C&&I.navigation===Q0){C=!0;let Ee=or(I.location,I.matches);Ee!=null&&dt({restoreScrollPosition:Ee})}return()=>{b=null,A=null,T=null}}function gr(z,X){return T&&T(z,X.map(Ee=>K5(Ee,I.loaderData)))||z.key}function ir(z,X){if(b&&A){let ie=gr(z,X);b[ie]=A()}}function or(z,X){if(b){let ie=gr(z,X),Ee=b[ie];if(typeof Ee=="number")return Ee}return null}function Ba(z,X,ie){if(e.patchRoutesOnNavigation)if(z){if(Object.keys(z[0].params).length>0)return{active:!0,matches:$h(X,ie,d,!0)}}else return{active:!0,matches:$h(X,ie,d,!0)||[]};return{active:!1,matches:null}}async function fn(z,X,ie,Ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:z};let De=z;for(;;){let je=c==null,Ge=c||l,Ue=o;try{await e.patchRoutesOnNavigation({signal:ie,path:X,matches:De,fetcherKey:Ee,patch:(He,qe)=>{ie.aborted||qx(He,qe,Ge,Ue,a,!1)}})}catch(He){return{type:"error",error:He,partialMatches:De}}finally{je&&!ie.aborted&&(l=[...l])}if(ie.aborted)return{type:"aborted"};let Ke=So(Ge,X,d);if(Ke)return{type:"success",matches:Ke};let Ze=$h(Ge,X,d,!0);if(!Ze||De.length===Ze.length&&De.every((He,qe)=>He.route.id===Ze[qe].route.id))return{type:"success",matches:null};De=Ze}}function jr(z){o={},c=od(z,a,void 0,o)}function Da(z,X,ie=!1){let Ee=c==null;qx(z,X,c||l,o,a,ie),Ee&&(l=[...l],dt({}))}return L={get basename(){return d},get future(){return p},get state(){return I},get routes(){return l},get window(){return t},initialize:Me,subscribe:st,enableScrollRestoration:Fr,navigate:en,fetch:an,revalidate:wt,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:Fe,deleteFetcher:Dt,dispose:Oe,getBlocker:_e,deleteBlocker:Te,patchRoutes:Da,_internalFetchControllers:G,_internalSetRoutes:jr,_internalSetStateDoNotUseOrYouWillBreakYourApp(z){dt(z)}},L}function x4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ty(e,t,n,r,a,o){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=bb(r||".",yb(l),Aa(e.pathname,n)||e.pathname,o==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=vb(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(d.search),m=p.getAll("index");p.delete("index"),m.filter(b=>b).forEach(b=>p.append("index",b));let y=p.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=l4({basename:n,pathname:d.pathname})),Po(d)}function Gx(e,t,n){if(!n||!x4(n))return{path:t};if(n.formMethod&&!M4(n.formMethod))return{path:t,error:ma(405,{method:n.formMethod})};let r=()=>({path:t,error:ma(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),l=oD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Nr(o))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[b,T])=>`${y}${b}=${T}
|
|
36
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Nr(o))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Tt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=ay(n.formData),d=n.formData;else if(n.body instanceof FormData)c=ay(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=Xx(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=Xx(c)}catch{return r()}let f={formMethod:o,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Nr(f.formMethod))return{path:t,submission:f};let p=Fo(t);return e&&p.search&&vb(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Po(p),submission:f}}function Vx(e,t,n,r,a,o,l,c,d,f,p,m,y,b,T,A,C,x,D,S){let M=S?Wr(S[1])?S[1].error:S[1].data:void 0,L=a.createURL(o.location),I=a.createURL(d),V;if(p&&o.errors){let W=Object.keys(o.errors)[0];V=l.findIndex(re=>re.route.id===W)}else if(S&&Wr(S[1])){let W=S[0];V=l.findIndex(re=>re.route.id===W)-1}let ne=S?S[1].statusCode:void 0,K=ne&&ne>=400,k={currentUrl:L,currentParams:o.matches[0]?.params||{},nextUrl:I,nextParams:l[0].params,...c,actionResult:M,actionStatus:ne},H=l.map((W,re)=>{let{route:me}=W,G=null;if(V!=null&&re>V?G=!1:me.lazy?G=!0:me.loader==null?G=!1:p?G=ny(me,o.loaderData,o.errors):A4(o.loaderData,o.matches[re],W)&&(G=!0),G!==null)return ry(n,r,e,W,f,t,G);let le=K?!1:m||L.pathname+L.search===I.pathname+I.search||L.search!==I.search||S4(o.matches[re],W),se={...k,defaultShouldRevalidate:le},ye=fp(W,se);return ry(n,r,e,W,f,t,ye,se)}),Q=[];return T.forEach((W,re)=>{if(p||!l.some(ce=>ce.route.id===W.routeId)||b.has(re))return;let me=o.fetchers.get(re),G=me&&me.state!=="idle"&&me.data===void 0,le=So(C,W.path,x);if(!le){if(D&&G)return;Q.push({key:re,routeId:W.routeId,path:W.path,matches:null,match:null,request:null,controller:null});return}if(A.has(re))return;let se=Fh(le,W.path),ye=new AbortController,P=Pl(a,W.path,ye.signal),Ne=null;if(y.has(re))y.delete(re),Ne=Ul(n,r,P,le,se,f,t);else if(G)m&&(Ne=Ul(n,r,P,le,se,f,t));else{let ce={...k,defaultShouldRevalidate:K?!1:m};fp(se,ce)&&(Ne=Ul(n,r,P,le,se,f,t,ce))}Ne&&Q.push({key:re,routeId:W.routeId,path:W.path,matches:Ne,match:se,request:P,controller:ye})}),{dsMatches:H,revalidatingFetchers:Q}}function ny(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 A4(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function S4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fp(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function qx(e,t,n,r,a,o){let l;if(e){let f=r[e];Tt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let p=l.find(m=>tD(f,m));p?d.push({existingRoute:p,newRoute:f}):c.push(f)}),c.length>0){let f=od(c,a,[e||"_","patch",String(l?.length||"0")],r);l.push(...f)}if(o&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:p,newRoute:m}=d[f],y=p,[b]=od([m],a,[],{},!0);Object.assign(y,{element:b.element?b.element:y.element,errorElement:b.errorElement?b.errorElement:y.errorElement,hydrateFallbackElement:b.hydrateFallbackElement?b.hydrateFallbackElement:y.hydrateFallbackElement})}}function tD(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=>tD(n,a))):!1}var Yx=new WeakMap,nD=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Tt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let l=Yx.get(a);l||(l={},Yx.set(a,l));let c=l[e];if(c)return c;let d=(async()=>{let f=V5(e),m=a[e]!==void 0&&e!=="hasErrorBoundary";if(f)$n(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(m)$n(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return l[e]=d,d},Qx=new WeakMap;function C4(e,t,n,r,a){let o=n[e.id];if(Tt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=Qx.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let m=(async()=>{Tt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),b={};for(let T in y){let A=y[T];if(A===void 0)continue;let C=Y5(T),D=o[T]!==void 0&&T!=="hasErrorBoundary";C?$n(!C,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?$n(!D,`Route "${o.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):b[T]=A}Object.assign(o,b),Object.assign(o,{...r(o),lazy:void 0})})();return Qx.set(o,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let l=Object.keys(e.lazy),c=[],d;for(let p of l){if(a&&a.includes(p))continue;let m=nD({key:p,route:e,manifest:n,mapRouteProperties:r});m&&(c.push(m),p===t&&(d=m))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function Kx(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 D4(e){return e.matches.some(t=>t.route.unstable_middleware)?rD(e,!1,()=>Kx(e),(t,n)=>({[n]:{type:"error",result:t}})):Kx(e)}async function rD(e,t,n,r){let{matches:a,request:o,params:l,context:c}=e,d={handlerResult:void 0};try{let f=a.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(y=>[m.route.id,y]):[]),p=await aD({request:o,params:l,context:c},f,t,d,n);return t?p:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let p=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,p):p}}async function aD(e,t,n,r,a,o=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[o];if(!c)return r.handlerResult=await a(),r.handlerResult;let[d,f]=c,p=!1,m,y=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await aD(e,t,n,r,a,o+1)};try{let b=await f({request:e.request,params:e.params,context:e.context},y);return p?b===void 0?m:b:y()}catch(b){throw r.middlewareError?r.middlewareError.error!==b&&(r.middlewareError={routeId:d,error:b}):r.middlewareError={routeId:d,error:b},b}}function iD(e,t,n,r,a){let o=nD({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=C4(r.route,Nr(n.method)?"action":"loader",t,e,a);return{middleware:o,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function ry(e,t,n,r,a,o,l,c=null){let d=!1,f=iD(e,t,n,r,a);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return d=!0,c?typeof p=="boolean"?fp(r,{...c,defaultShouldRevalidate:p}):fp(r,c):l},resolve(p){return d||l||p&&!Nr(n.method)&&(r.route.lazy||r.route.loader)?R4({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:p,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Ul(e,t,n,r,a,o,l,c=null){return r.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:iD(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ry(e,t,n,d,o,l,!0,c))}async function k4(e,t,n,r,a,o){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let l={request:t,params:n[0].params,context:a,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let p=l;return rD(p,!1,()=>f({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,y)=>({[y]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return d}async function R4({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:o}){let l,c,d=Nr(e.method),f=d?"action":"loader",p=m=>{let y,b=new Promise((C,x)=>y=x);c=()=>y(),e.signal.addEventListener("abort",c);let T=C=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:o},...C!==void 0?[C]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(x=>T(x)):T())}}catch(C){return{type:"error",result:C}}})();return Promise.race([A,b])};try{let m=d?t.route.action:t.route.loader;if(n||r)if(m){let y,[b]=await Promise.all([p(m).catch(T=>{y=T}),n,r]);if(y!==void 0)throw y;l=b}else{await n;let y=d?t.route.action:t.route.loader;if(y)[l]=await Promise.all([p(y),r]);else if(f==="action"){let b=new URL(e.url),T=b.pathname+b.search;throw ma(405,{method:e.method,pathname:T,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)l=await p(m);else{let y=new URL(e.url),b=y.pathname+y.search;throw ma(404,{pathname:b})}}catch(m){return{type:"error",result:m}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function I4(e){let{result:t,type:n}=e;if(sD(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 dp(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?nA(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 dp(t.init?.status||500,void 0,t.data),statusCode:sd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:sd(t)?t.status:void 0}:nA(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 w4(e,t,n,r,a){let o=e.headers.get("Location");if(Tt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Eb(o)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=ty(new URL(t.url),l,a,o),e.headers.set("Location",o)}return e}function Wx(e,t,n){if(Eb(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Aa(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Pl(e,t,n,r){let a=e.createURL(oD(t)).toString(),o={signal:n};if(r&&Nr(r.formMethod)){let{formMethod:l,formEncType:c}=r;o.method=l.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=ay(r.formData):o.body=r.formData}return new Request(a,o)}function ay(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Xx(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function N4(e,t,n,r=!1,a=!1){let o={},l=null,c,d=!1,f={},p=n&&Wr(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let y=m.route.id,b=t[y];if(Tt(!gs(b),"Cannot handle redirect results in processLoaderData"),Wr(b)){let T=b.error;if(p!==void 0&&(T=p,p=void 0),l=l||{},a)l[y]=T;else{let A=ds(e,y);l[A.route.id]==null&&(l[A.route.id]=T)}r||(o[y]=eD),d||(d=!0,c=sd(b.error)?b.error.status:500),b.headers&&(f[y]=b.headers)}else o[y]=b.data,b.statusCode&&b.statusCode!==200&&!d&&(c=b.statusCode),b.headers&&(f[y]=b.headers)}),p!==void 0&&n&&(l={[n[0]]:p},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:l,statusCode:c||200,loaderHeaders:f}}function Zx(e,t,n,r,a,o){let{loaderData:l,errors:c}=N4(t,n,r);return a.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:p,controller:m}=d,y=o[f];if(Tt(y,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Wr(y)){let b=ds(e.matches,p?.route.id);c&&c[b.route.id]||(c={...c,[b.route.id]:y.error}),e.fetchers.delete(f)}else if(gs(y))Tt(!1,"Unhandled fetcher revalidation redirect");else{let b=_o(y.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function Jx(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==eD).reduce((o,[l,c])=>(o[l]=c,o),{});for(let o of n){let l=o.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&o.route.loader&&(a[l]=e[l]),r&&r.hasOwnProperty(l))break}return a}function eA(e){return e?Wr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ds(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 tA(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 ma(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="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?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="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 dp(e||500,l,new Error(c),!0)}function gh(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(gs(a))return{key:r,result:a}}}function oD(e){let t=typeof e=="string"?Fo(e):e;return Po({...t,hash:""})}function O4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function L4(e){return sD(e.result)&&y4.has(e.result.status)}function Wr(e){return e.type==="error"}function gs(e){return(e&&e.type)==="redirect"}function nA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function sD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function M4(e){return g4.has(e.toUpperCase())}function Nr(e){return p4.has(e.toUpperCase())}function vb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fh(e,t){let n=typeof t=="string"?Fo(t).search:t.search;if(e[e.length-1].route.index&&vb(n||""))return e[e.length-1];let r=X2(e);return r[r.length-1]}function rA(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:l}=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(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function K0(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 P4(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 du(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 $4(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 _o(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 F4(e,t){try{let n=e.sessionStorage.getItem(J2);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 j4(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(J2,JSON.stringify(n))}catch(r){$n(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function B4(){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 Fs=N.createContext(null);Fs.displayName="DataRouter";var Nd=N.createContext(null);Nd.displayName="DataRouterState";N.createContext(!1);var Tb=N.createContext({isTransitioning:!1});Tb.displayName="ViewTransition";var lD=N.createContext(new Map);lD.displayName="Fetchers";var U4=N.createContext(null);U4.displayName="Await";var ci=N.createContext(null);ci.displayName="Navigation";var Yp=N.createContext(null);Yp.displayName="Location";var Pa=N.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var _b=N.createContext(null);_b.displayName="RouteError";function H4(e,{relative:t}={}){Tt(Od(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(ci),{hash:a,pathname:o,search:l}=Md(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ii([n,o])),r.createHref({pathname:c,search:l,hash:a})}function Od(){return N.useContext(Yp)!=null}function js(){return Tt(Od(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Yp).location}var cD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uD(e){N.useContext(ci).static||N.useLayoutEffect(e)}function xb(){let{isDataRoute:e}=N.useContext(Pa);return e?n6():z4()}function z4(){Tt(Od(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Fs),{basename:t,navigator:n}=N.useContext(ci),{matches:r}=N.useContext(Pa),{pathname:a}=js(),o=JSON.stringify(yb(r)),l=N.useRef(!1);return uD(()=>{l.current=!0}),N.useCallback((d,f={})=>{if($n(l.current,cD),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=bb(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ii([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,o,a,e])}var G4=N.createContext(null);function V4(e){let t=N.useContext(Pa).outlet;return t&&N.createElement(G4.Provider,{value:e},t)}function Ld(){let{matches:e}=N.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function Md(e,{relative:t}={}){let{matches:n}=N.useContext(Pa),{pathname:r}=js(),a=JSON.stringify(yb(n));return N.useMemo(()=>bb(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function q4(e,t,n,r){Tt(Od(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext(ci),{matches:o}=N.useContext(Pa),l=o[o.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let x=p&&p.path||"";fD(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) 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.
|
|
37
|
+
|
|
38
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=js(),y;y=m;let b=y.pathname||"/",T=b;if(f!=="/"){let x=f.replace(/^\//,"").split("/");T="/"+b.replace(/^\//,"").split("/").slice(x.length).join("/")}let A=So(e,{pathname:T});return $n(p||A!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),$n(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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.`),X4(A&&A.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ii([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:ii([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function Y4(){let e=dD(),t=sd(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},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:o},"ErrorBoundary")," or"," ",N.createElement("code",{style:o},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:a},n):null,l)}var Q4=N.createElement(Y4,null),K4=class extends N.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?N.createElement(Pa.Provider,{value:this.props.routeContext},N.createElement(_b.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function W4({routeContext:e,match:t,children:n}){let r=N.useContext(Fs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Pa.Provider,{value:e},n)}function X4(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 d=a.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);Tt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:m}=n,y=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let m,y=!1,b=null,T=null;n&&(m=o&&f.route.id?o[f.route.id]:void 0,b=f.route.errorElement||Q4,l&&(c<0&&p===0?(fD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,T=null):c===p&&(y=!0,T=f.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,p+1)),C=()=>{let x;return m?x=b:y?x=T:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(W4,{match:f,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(K4,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):C()},null)}function Ab(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Z4(e){let t=N.useContext(Fs);return Tt(t,Ab(e)),t}function J4(e){let t=N.useContext(Nd);return Tt(t,Ab(e)),t}function e6(e){let t=N.useContext(Pa);return Tt(t,Ab(e)),t}function Sb(e){let t=e6(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function t6(){return Sb("useRouteId")}function dD(){let e=N.useContext(_b),t=J4("useRouteError"),n=Sb("useRouteError");return e!==void 0?e:t.errors?.[n]}function n6(){let{router:e}=Z4("useNavigate"),t=Sb("useNavigate"),n=N.useRef(!1);return uD(()=>{n.current=!0}),N.useCallback(async(a,o={})=>{$n(n.current,cD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var aA={};function fD(e,t,n){!t&&!aA[e]&&(aA[e]=!0,$n(!1,n))}var iA={};function oA(e,t){!e&&!iA[t]&&(iA[t]=!0,console.warn(t))}function r6(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&$n(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&$n(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&$n(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var a6=["HydrateFallback","hydrateFallbackElement"],i6=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 o6({router:e,flushSync:t}){let[n,r]=N.useState(e.state),[a,o]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[d,f]=N.useState(),[p,m]=N.useState(),[y,b]=N.useState(),T=N.useRef(new Map),A=N.useCallback((S,{deletedFetchers:M,flushSync:L,viewTransitionOpts:I})=>{S.fetchers.forEach((ne,K)=>{ne.data!==void 0&&T.current.set(K,ne.data)}),M.forEach(ne=>T.current.delete(ne)),oA(L===!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 V=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(oA(I==null||V,"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."),!I||!V){t&&L?t(()=>r(S)):N.startTransition(()=>r(S));return}if(t&&L){t(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let ne=e.window.document.startViewTransition(()=>{t(()=>r(S))});ne.finished.finally(()=>{t(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})})}),t(()=>m(ne));return}p?(d&&d.resolve(),p.skipTransition(),b({state:S,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(o(S),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[e.window,t,p,d]);N.useLayoutEffect(()=>e.subscribe(A),[e,A]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new i6)},[l]),N.useEffect(()=>{if(d&&a&&e.window){let S=a,M=d.promise,L=e.window.document.startViewTransition(async()=>{N.startTransition(()=>r(S)),await M});L.finished.finally(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})}),m(L)}},[a,d,e.window]),N.useEffect(()=>{d&&a&&n.location.key===a.location.key&&d.resolve()},[d,p,n.location,a]),N.useEffect(()=>{!l.isTransitioning&&y&&(o(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),b(void 0))},[l.isTransitioning,y]);let C=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:S=>e.navigate(S),push:(S,M,L)=>e.navigate(S,{state:M,preventScrollReset:L?.preventScrollReset}),replace:(S,M,L)=>e.navigate(S,{replace:!0,state:M,preventScrollReset:L?.preventScrollReset})}),[e]),x=e.basename||"/",D=N.useMemo(()=>({router:e,navigator:C,static:!1,basename:x}),[e,C,x]);return N.createElement(N.Fragment,null,N.createElement(Fs.Provider,{value:D},N.createElement(Nd.Provider,{value:n},N.createElement(lD.Provider,{value:T.current},N.createElement(Tb.Provider,{value:l},N.createElement(u6,{basename:x,location:n.location,navigationType:n.historyAction,navigator:C},N.createElement(s6,{routes:e.routes,future:e.future,state:n})))))),null)}var s6=N.memo(l6);function l6({routes:e,future:t,state:n}){return q4(e,void 0,n,t)}function c6(e){return V4(e.context)}function u6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!Od(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=Fo(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:y="default"}=n,b=N.useMemo(()=>{let T=Aa(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:m,key:y},navigationType:r}},[l,d,f,p,m,y,r]);return $n(b!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:N.createElement(ci.Provider,{value:c},N.createElement(Yp.Provider,{children:t,value:b}))}var jh="get",Bh="application/x-www-form-urlencoded";function Qp(e){return e!=null&&typeof e.tagName=="string"}function d6(e){return Qp(e)&&e.tagName.toLowerCase()==="button"}function f6(e){return Qp(e)&&e.tagName.toLowerCase()==="form"}function h6(e){return Qp(e)&&e.tagName.toLowerCase()==="input"}function p6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function m6(e,t){return e.button===0&&(!t||t==="_self")&&!p6(e)}var yh=null;function g6(){if(yh===null)try{new FormData(document.createElement("form"),0),yh=!1}catch{yh=!0}return yh}var y6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function W0(e){return e!=null&&!y6.has(e)?($n(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bh}"`),null):e}function b6(e,t){let n,r,a,o,l;if(f6(e)){let c=e.getAttribute("action");r=c?Aa(c,t):null,n=e.getAttribute("method")||jh,a=W0(e.getAttribute("enctype"))||Bh,o=new FormData(e)}else if(d6(e)||h6(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 d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Aa(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||jh,a=W0(e.getAttribute("formenctype"))||W0(c.getAttribute("enctype"))||Bh,o=new FormData(c,e),!g6()){let{name:f,type:p,value:m}=e;if(p==="image"){let y=f?`${f}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else f&&o.append(f,m)}}else{if(Qp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=jh,r=null,a=Bh,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Cb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function E6(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&&Aa(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function v6(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 T6(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 _6(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await v6(o,n);return l.links?l.links():[]}return[]}));return C6(r.flat(1).filter(T6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function sA(e,t,n,r,a,o){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return o==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):o==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function x6(e,t,{includeHydrateFallback:n}={}){return A6(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 A6(e){return[...new Set(e)]}function S6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function C6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(S6(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function hD(){let e=N.useContext(Fs);return Cb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function D6(){let e=N.useContext(Nd);return Cb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Db=N.createContext(void 0);Db.displayName="FrameworkContext";function pD(){let e=N.useContext(Db);return Cb(e,"You must render this element inside a <HydratedRouter> element"),e}function k6(e,t){let n=N.useContext(Db),[r,a]=N.useState(!1),[o,l]=N.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,y=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=x=>{x.forEach(D=>{l(D.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[e]),N.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:fu(c,b),onBlur:fu(d,T),onMouseEnter:fu(f,b),onMouseLeave:fu(p,T),onTouchStart:fu(m,b)}]:[!1,y,{}]}function fu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function R6({page:e,...t}){let{router:n}=hD(),r=N.useMemo(()=>So(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?N.createElement(w6,{page:e,matches:r,...t}):null}function I6(e){let{manifest:t,routeModules:n}=pD(),[r,a]=N.useState([]);return N.useEffect(()=>{let o=!1;return _6(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function w6({page:e,matches:t,...n}){let r=js(),{manifest:a,routeModules:o}=pD(),{basename:l}=hD(),{loaderData:c,matches:d}=D6(),f=N.useMemo(()=>sA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=N.useMemo(()=>sA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(x=>{let D=a.routes[x.route.id];!D||!D.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in c&&o[x.route.id]?.shouldRevalidate||D.hasClientLoader?A=!0:T.add(x.route.id))}),T.size===0)return[];let C=E6(e,l,"data");return A&&T.size>0&&C.searchParams.set("_routes",t.filter(x=>T.has(x.route.id)).map(x=>x.route.id).join(",")),[C.pathname+C.search]},[l,c,r,a,f,t,e,o]),y=N.useMemo(()=>x6(p,a),[p,a]),b=I6(p);return N.createElement(N.Fragment,null,m.map(T=>N.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),y.map(T=>N.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),b.map(({key:T,link:A})=>N.createElement("link",{key:T,...A})))}function N6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var mD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mD&&(window.__reactRouterVersion="7.7.1")}catch{}function O6(e,t){return _4({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:U5({window:t?.window}),hydrationData:L6(),routes:e,mapRouteProperties:r6,hydrationRouteProperties:a6,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function L6(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:M6(e.errors)}),e}function M6(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 dp(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 l=new o(a.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(a.message);o.stack="",n[r]=o}}else n[r]=a;return n}var gD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yD=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:m,...y},b){let{basename:T}=N.useContext(ci),A=typeof f=="string"&&gD.test(f),C,x=!1;if(typeof f=="string"&&A&&(C=f,mD))try{let K=new URL(window.location.href),k=f.startsWith("//")?new URL(K.protocol+f):new URL(f),H=Aa(k.pathname,T);k.origin===K.origin&&H!=null?f=H+k.search+k.hash:x=!0}catch{$n(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=H4(f,{relative:a}),[S,M,L]=k6(r,y),I=j6(f,{replace:l,state:c,target:d,preventScrollReset:p,relative:a,viewTransition:m});function V(K){t&&t(K),K.defaultPrevented||I(K)}let ne=N.createElement("a",{...y,...L,href:C||D,onClick:x||o?t:V,ref:N6(b,M),target:d,"data-discover":!A&&n==="render"?"true":void 0});return S&&!A?N.createElement(N.Fragment,null,ne,N.createElement(R6,{page:D})):ne});yD.displayName="Link";var P6=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:d,...f},p){let m=Md(l,{relative:f.relative}),y=js(),b=N.useContext(Nd),{navigator:T,basename:A}=N.useContext(ci),C=b!=null&&G6(m)&&c===!0,x=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,D=y.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(D=D.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&A&&(S=Aa(S,A)||S);const M=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let L=D===x||!a&&D.startsWith(x)&&D.charAt(M)==="/",I=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),V={isActive:L,isPending:I,isTransitioning:C},ne=L?t:void 0,K;typeof r=="function"?K=r(V):K=[r,L?"active":null,I?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof o=="function"?o(V):o;return N.createElement(yD,{...f,"aria-current":ne,className:K,ref:p,style:k,to:l,viewTransition:c},typeof d=="function"?d(V):d)});P6.displayName="NavLink";var $6=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=jh,action:c,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...y},b)=>{let T=H6(),A=z6(c,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&gD.test(c),D=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,L=M?.getAttribute("formmethod")||l;T(M||S.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:a,state:o,relative:f,preventScrollReset:p,viewTransition:m})};return N.createElement("form",{ref:b,method:C,action:A,onSubmit:r?d:D,...y,"data-discover":!x&&e==="render"?"true":void 0})});$6.displayName="Form";function F6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bD(e){let t=N.useContext(Fs);return Tt(t,F6(e)),t}function j6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let c=xb(),d=js(),f=Md(e,{relative:o});return N.useCallback(p=>{if(m6(p,t)){p.preventDefault();let m=n!==void 0?n:Po(d)===Po(f);c(e,{replace:m,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[d,c,f,n,r,t,e,a,o,l])}var B6=0,U6=()=>`__${String(++B6)}__`;function H6(){let{router:e}=bD("useSubmit"),{basename:t}=N.useContext(ci),n=t6();return N.useCallback(async(r,a={})=>{let{action:o,method:l,encType:c,formData:d,body:f}=b6(r,t);if(a.navigate===!1){let p=a.fetcherKey||U6();await e.fetch(p,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function z6(e,{relative:t}={}){let{basename:n}=N.useContext(ci),r=N.useContext(Pa);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Md(e||".",{relative:t})},l=js();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),d=c.getAll("index");if(d.some(p=>p==="")){c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));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:ii([n,o.pathname])),Po(o)}function G6(e,{relative:t}={}){let n=N.useContext(Tb);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bD("useViewTransitionState"),a=Md(e,{relative:t});if(!n.isTransitioning)return!1;let o=Aa(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Aa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return up(a.pathname,l)!=null||up(a.pathname,o)!=null}function V6(e){return N.createElement(o6,{flushSync:H2.flushSync,...e})}function nr({error:e,context:t}){const n=e.data?.message||"Unknown Error";return E.jsxs(E.Fragment,{children:[t&&E.jsx(ze,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),E.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function fr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:l="body2"}){const c=E.jsxs(at,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[E.jsx(l5,{size:t,color:n,thickness:r}),e&&E.jsx(ze,{variant:l,color:"text.secondary",children:e})]});return a?E.jsx(at,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const Kl=Hn(ps)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),hp=Hn(ms)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),kb=Hn(c5)({padding:"0"}),q6=Hn("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});Hn("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const Y6=Hn("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),lA=Hn("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),cA=Hn("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)"}});Hn("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});Hn("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const Q6=Hn("div")({height:"100%"});Hn("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const ED=Hn("div")({height:"75vh",width:"100%",overflowY:"auto"});Hn("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Hi=Hn(ps)({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)"}}),zi=Hn(ms)({padding:"0","&:last-child":{paddingBottom:"0"}}),jo=Hn("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),vD=Hn("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});function TD(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=TD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pn(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=TD(e))&&(r&&(r+=" "),r+=t);return r}const Rb=u5,uA=e=>e,K6=()=>{let e=uA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=uA}}},W6=K6(),X6={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 Bo(e,t,n="Mui"){const r=X6[t];return r?`${n}-${r}`:`${W6.generate(e)}-${t}`}function Uo(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Bo(e,a,n)}),r}function Z6(e){return Bo("MuiSvgIcon",e)}Uo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function pp(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 l=e[o],c=t[o];if(!c)r[o]=l||{};else if(!l)r[o]=c;else{r[o]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const f=d;r[o][f]=pp(l[f],c[f],n)}}}else o==="className"&&n&&t.className?r.className=Pn(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 J6=N.createContext(void 0);function eL(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?pp(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?pp(a,r,t.components.mergeClassNameAndStyle):r}function tL({props:e,name:t}){const n=N.useContext(J6);return eL({props:e,name:t,theme:{components:n}})}function rc(e){return tL(e)}const ld={black:"#000",white:"#fff"},nL={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"},Sl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Cl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},hu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Dl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},kl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var X0={exports:{}},Bt={};/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-is.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var dA;function rL(){if(dA)return Bt;dA=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"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function T(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case n:case a:case r:case d:case f:case y:return A;default:switch(A=A&&A.$$typeof,A){case l:case c:case m:case p:return A;case o:return A;default:return C}}case t:return C}}}return Bt.ContextConsumer=o,Bt.ContextProvider=l,Bt.Element=e,Bt.ForwardRef=c,Bt.Fragment=n,Bt.Lazy=m,Bt.Memo=p,Bt.Portal=t,Bt.Profiler=a,Bt.StrictMode=r,Bt.Suspense=d,Bt.SuspenseList=f,Bt.isContextConsumer=function(A){return T(A)===o},Bt.isContextProvider=function(A){return T(A)===l},Bt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Bt.isForwardRef=function(A){return T(A)===c},Bt.isFragment=function(A){return T(A)===n},Bt.isLazy=function(A){return T(A)===m},Bt.isMemo=function(A){return T(A)===p},Bt.isPortal=function(A){return T(A)===t},Bt.isProfiler=function(A){return T(A)===a},Bt.isStrictMode=function(A){return T(A)===r},Bt.isSuspense=function(A){return T(A)===d},Bt.isSuspenseList=function(A){return T(A)===f},Bt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===p||A.$$typeof===l||A.$$typeof===o||A.$$typeof===c||A.$$typeof===b||A.getModuleId!==void 0)},Bt.typeOf=T,Bt}var fA;function aL(){return fA||(fA=1,X0.exports=rL()),X0.exports}var _D=aL();function Pi(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 xD(e){if(N.isValidElement(e)||_D.isValidElementType(e)||!Pi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xD(e[n])}),t}function Jr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pi(e)&&Pi(t)&&Object.keys(t).forEach(a=>{N.isValidElement(t[a])||_D.isValidElementType(t[a])?r[a]=t[a]:Pi(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Pi(e[a])?r[a]=Jr(e[a],t[a],n):n.clone?r[a]=Pi(t[a])?xD(t[a]):t[a]:r[a]=t[a]}),r}function Is(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 iL(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ib(e,t=0,n=1){return iL(e,t,n)}function oL(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 $o(e){if(e.type)return e;if(e.charAt(0)==="#")return $o(oL(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Is(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(Is(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const sL=e=>{const t=$o(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wu=(e,t)=>{try{return sL(e)}catch{return e}};function Kp(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 AD(e){e=$o(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),l=(f,p=(f+n/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Kp({type:c,values:d})}function iy(e){e=$o(e);let t=e.type==="hsl"||e.type==="hsla"?$o(AD(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 lL(e,t){const n=iy(e),r=iy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function oy(e,t){return e=$o(e),t=Ib(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kp(e)}function bh(e,t,n){try{return oy(e,t)}catch{return e}}function wb(e,t){if(e=$o(e),t=Ib(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 Kp(e)}function Vt(e,t,n){try{return wb(e,t)}catch{return e}}function Nb(e,t){if(e=$o(e),t=Ib(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 Kp(e)}function qt(e,t,n){try{return Nb(e,t)}catch{return e}}function cL(e,t=.15){return iy(e)>.5?wb(e,t):Nb(e,t)}function Eh(e,t,n){try{return cL(e,t)}catch{return e}}function SD(){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:ld.white,default:ld.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 uL=SD();function CD(){return{text:{primary:ld.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:ld.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 hA=CD();function pA(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=Nb(e.main,a):t==="dark"&&(e.dark=wb(e.main,o)))}function dL(e="light"){return e==="dark"?{main:Dl[200],light:Dl[50],dark:Dl[400]}:{main:Dl[700],light:Dl[400],dark:Dl[800]}}function fL(e="light"){return e==="dark"?{main:Sl[200],light:Sl[50],dark:Sl[400]}:{main:Sl[500],light:Sl[300],dark:Sl[700]}}function hL(e="light"){return e==="dark"?{main:Cl[500],light:Cl[300],dark:Cl[700]}:{main:Cl[700],light:Cl[400],dark:Cl[800]}}function pL(e="light"){return e==="dark"?{main:kl[400],light:kl[300],dark:kl[700]}:{main:kl[700],light:kl[500],dark:kl[900]}}function mL(e="light"){return e==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:Rl[800],light:Rl[500],dark:Rl[900]}}function gL(e="light"){return e==="dark"?{main:hu[400],light:hu[300],dark:hu[700]}:{main:"#ed6c02",light:hu[500],dark:hu[900]}}function Ob(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,o=e.primary||dL(t),l=e.secondary||fL(t),c=e.error||hL(t),d=e.info||pL(t),f=e.success||mL(t),p=e.warning||gL(t);function m(T){return lL(T,hA.text.primary)>=n?hA.text.primary:uL.text.primary}const y=({color:T,name:A,mainShade:C=500,lightShade:x=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[C]&&(T.main=T[C]),!T.hasOwnProperty("main"))throw new Error(Is(11,A?` (${A})`:"",C));if(typeof T.main!="string")throw new Error(Is(12,A?` (${A})`:"",JSON.stringify(T.main)));return pA(T,"light",x,r),pA(T,"dark",D,r),T.contrastText||(T.contrastText=m(T.main)),T};let b;return t==="light"?b=SD():t==="dark"&&(b=CD()),Jr({common:{...ld},mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:f,name:"success"}),grey:nL,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...b},a)}function yL(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bL(e){return Math.round(e*1e5)/1e5}const mA={textTransform:"uppercase"},gA='"Roboto", "Helvetica", "Arial", sans-serif';function EL(e,t){const{fontFamily:n=gA,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p,...m}=typeof t=="function"?t(e):t,y=r/14,b=p||(C=>`${C/d*y}rem`),T=(C,x,D,S,M)=>({fontFamily:n,fontWeight:C,fontSize:b(x),lineHeight:D,...n===gA?{letterSpacing:`${bL(S/x)}em`}:{},...M,...f}),A={h1:T(a,96,1.167,-1.5),h2:T(a,60,1.2,-.5),h3:T(o,48,1.167,0),h4:T(o,34,1.235,.25),h5:T(o,24,1.334,0),h6:T(l,20,1.6,.15),subtitle1:T(o,16,1.75,.15),subtitle2:T(l,14,1.57,.1),body1:T(o,16,1.5,.15),body2:T(o,14,1.43,.15),button:T(l,14,1.75,.4,mA),caption:T(o,12,1.66,.4),overline:T(o,12,2.66,1,mA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:c,...A},m,{clone:!1})}function ln(...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 vL=["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)],TL={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)"},DD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yA(e){return`${Math.round(e)}ms`}function _L(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function xL(e){const t={...TL,...e.easing},n={...DD,...e.duration};return{getAutoHeightDuration:_L,create:(r=["all"],a={})=>{const{duration:o=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=a;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof o=="string"?o:yA(o)} ${l} ${typeof c=="string"?c:yA(c)}`).join(",")},...e,easing:t,duration:n}}const AL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function SL(e){return Pi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function kD(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[l,c]=a[o];!SL(c)||l.startsWith("unstable_")?delete r[l]:Pi(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
47
|
+
|
|
48
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
49
|
+
|
|
50
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
51
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
52
|
+
|
|
53
|
+
export default theme;`}const CL=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 DL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=CL(t),l=Object.keys(o);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,b){const T=l.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(T!==-1&&typeof t[l[T]]=="number"?t[l[T]]:b)-r/100}${n})`}function p(y){return l.indexOf(y)+1<l.length?f(y,l[l.indexOf(y)+1]):c(y)}function m(y){const b=l.indexOf(y);return b===0?c(l[1]):b===l.length-1?d(l[b]):f(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:o,up:c,down:d,between:f,only:p,not:m,unit:n,...a}}const kL={borderRadius:4};function bA(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 RL(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function IL(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 wL(e){const t=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function n(o,l){o.up=(...c)=>t(e.breakpoints.up(...c),l),o.down=(...c)=>t(e.breakpoints.down(...c),l),o.between=(...c)=>t(e.breakpoints.between(...c),l),o.only=(...c)=>t(e.breakpoints.only(...c),l),o.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const Wp={xs:0,sm:600,md:900,lg:1200,xl:1536},EA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wp[e]}px)`},NL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Wp[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ui(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||EA;return t.reduce((o,l,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||EA;return Object.keys(t).reduce((o,l)=>{if(RL(a.keys,l)){const c=IL(r.containerQueries?r:NL,l);c&&(o[c]=n(t[l],l))}else if(Object.keys(a.values||Wp).includes(l)){const c=a.up(l);o[c]=n(t[l],l)}else{const c=l;o[c]=t[c]}return o},{})}return n(t)}function OL(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function vA(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function La(e){if(typeof e!="string")throw new Error(Is(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xp(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 mp(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Xp(e,n)||r,t&&(a=t(a,r,e)),a}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=Xp(d,r)||{};return Ui(l,c,p=>{let m=mp(f,a,p);return p===m&&typeof p=="string"&&(m=mp(f,a,`${t}${p==="default"?"":La(p)}`,p)),n===!1?m:{[n]:m}})};return o.propTypes={},o.filterProps=[t],o}function ju(e,t){return t?Jr(e,t,{clone:!1}):e}function LL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ML={m:"margin",p:"padding"},PL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$L=LL(e=>{if(e.length>2)if(TA[e])e=TA[e];else return[e];const[t,n]=e.split(""),r=ML[t],a=PL[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),Lb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Lb,...Mb];function Pd(e,t,n,r){const a=Xp(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 l=Math.abs(o),c=a[l];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function Pb(e){return Pd(e,"spacing",8)}function $d(e,t){return typeof t=="string"||t==null?t:e(t)}function FL(e,t){return n=>e.reduce((r,a)=>(r[a]=$d(t,n),r),{})}function jL(e,t,n,r){if(!t.includes(n))return null;const a=$L(n),o=FL(a,r),l=e[n];return Ui(e,l,o)}function RD(e,t){const n=Pb(e.theme);return Object.keys(e).map(r=>jL(e,t,r,n)).reduce(ju,{})}function Tn(e){return RD(e,Lb)}Tn.propTypes={};Tn.filterProps=Lb;function _n(e){return RD(e,Mb)}_n.propTypes={};_n.filterProps=Mb;function BL(e=8,t=Pb({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 Zp(...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]?ju(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Xr(e){return e<=1&&e!==0?`${e*100}%`:e}const UL=In({prop:"width",transform:Xr}),$b=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Wp[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Xr(n)}};return Ui(e,e.maxWidth,t)}return null};$b.filterProps=["maxWidth"];const HL=In({prop:"minWidth",transform:Xr}),zL=In({prop:"height",transform:Xr}),GL=In({prop:"maxHeight",transform:Xr}),VL=In({prop:"minHeight",transform:Xr});In({prop:"size",cssProperty:"width",transform:Xr});In({prop:"size",cssProperty:"height",transform:Xr});const qL=In({prop:"boxSizing"});Zp(UL,$b,HL,zL,GL,VL,qL);const Jp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Pd(e.theme,"spacing",8),n=r=>({gap:$d(t,r)});return Ui(e,e.gap,n)}return null};Jp.propTypes={};Jp.filterProps=["gap"];const em=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Pd(e.theme,"spacing",8),n=r=>({columnGap:$d(t,r)});return Ui(e,e.columnGap,n)}return null};em.propTypes={};em.filterProps=["columnGap"];const tm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Pd(e.theme,"spacing",8),n=r=>({rowGap:$d(t,r)});return Ui(e,e.rowGap,n)}return null};tm.propTypes={};tm.filterProps=["rowGap"];const YL=In({prop:"gridColumn"}),QL=In({prop:"gridRow"}),KL=In({prop:"gridAutoFlow"}),WL=In({prop:"gridAutoColumns"}),XL=In({prop:"gridAutoRows"}),ZL=In({prop:"gridTemplateColumns"}),JL=In({prop:"gridTemplateRows"}),eM=In({prop:"gridTemplateAreas"}),tM=In({prop:"gridArea"});Zp(Jp,em,tm,YL,QL,KL,WL,XL,ZL,JL,eM,tM);function Hl(e,t){return t==="grey"?t:e}const nM=In({prop:"color",themeKey:"palette",transform:Hl}),rM=In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hl}),aM=In({prop:"backgroundColor",themeKey:"palette",transform:Hl});Zp(nM,rM,aM);function ba(e){return typeof e!="number"?e:`${e}px solid`}function Sa(e,t){return In({prop:e,themeKey:"borders",transform:t})}const iM=Sa("border",ba),oM=Sa("borderTop",ba),sM=Sa("borderRight",ba),lM=Sa("borderBottom",ba),cM=Sa("borderLeft",ba),uM=Sa("borderColor"),dM=Sa("borderTopColor"),fM=Sa("borderRightColor"),hM=Sa("borderBottomColor"),pM=Sa("borderLeftColor"),mM=Sa("outline",ba),gM=Sa("outlineColor"),nm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Pd(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:$d(t,r)});return Ui(e,e.borderRadius,n)}return null};nm.propTypes={};nm.filterProps=["borderRadius"];Zp(iM,oM,sM,lM,cM,uM,dM,fM,hM,pM,nm,mM,gM);const rm={border:{themeKey:"borders",transform:ba},borderTop:{themeKey:"borders",transform:ba},borderRight:{themeKey:"borders",transform:ba},borderBottom:{themeKey:"borders",transform:ba},borderLeft:{themeKey:"borders",transform:ba},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ba},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nm},color:{themeKey:"palette",transform:Hl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hl},backgroundColor:{themeKey:"palette",transform:Hl},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Tn},mt:{style:Tn},mr:{style:Tn},mb:{style:Tn},ml:{style:Tn},mx:{style:Tn},my:{style:Tn},margin:{style:Tn},marginTop:{style:Tn},marginRight:{style:Tn},marginBottom:{style:Tn},marginLeft:{style:Tn},marginX:{style:Tn},marginY:{style:Tn},marginInline:{style:Tn},marginInlineStart:{style:Tn},marginInlineEnd:{style:Tn},marginBlock:{style:Tn},marginBlockStart:{style:Tn},marginBlockEnd:{style:Tn},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:Jp},rowGap:{style:tm},columnGap:{style:em},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xr},maxWidth:{style:$b},minWidth:{transform:Xr},height:{transform:Xr},maxHeight:{transform:Xr},minHeight:{transform:Xr},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 yM(...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 bM(e,t){return typeof e=="function"?e(t):e}function EM(){function e(n,r,a,o){const l={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:p,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Xp(a,f)||{};return m?m(l):Ui(l,r,b=>{let T=mp(y,p,b);return b===T&&typeof b=="string"&&(T=mp(y,p,`${n}${b==="default"?"":La(b)}`,b)),d===!1?T:{[d]:T}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const l=a.unstable_sxConfig??rm;function c(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=OL(a.breakpoints),m=Object.keys(p);let y=p;return Object.keys(f).forEach(b=>{const T=bM(f[b],a);if(T!=null)if(typeof T=="object")if(l[b])y=ju(y,e(b,T,a,l));else{const A=Ui({theme:a},T,C=>({[b]:C}));yM(A,T)?y[b]=t({sx:T,theme:a,nested:!0}):y=ju(y,A)}else y=ju(y,e(b,T,a,l))}),!o&&a.modularCssLayers?{"@layer sx":bA(a,vA(m,y))}:bA(a,vA(m,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Wl=EM();Wl.filterProps=["sx"];function vM(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 Fb(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...l}=e,c=DL(n),d=BL(a);let f=Jr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...kL,...o}},l);return f=wL(f),f.applyStyles=vM,f=t.reduce((p,m)=>Jr(p,m),f),f.unstable_sxConfig={...rm,...l?.unstable_sxConfig},f.unstable_sx=function(p){return Wl({sx:p,theme:this})},f}function sy(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Is(20));const p=Ob(o),m=Fb(e);let y=Jr(m,{mixins:yL(m.breakpoints,r),palette:p,shadows:vL.slice(),typography:EL(p,c),transitions:xL(l),zIndex:{...AL}});return y=Jr(y,f),y=t.reduce((b,T)=>Jr(b,T),y),y.unstable_sxConfig={...rm,...f?.unstable_sxConfig},y.unstable_sx=function(b){return Wl({sx:b,theme:this})},y.toRuntimeSource=kD,y}function TM(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 _M=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=TM(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ID(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function wD(e){return e==="dark"?_M:[]}function xM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=Ob(t);return{palette:o,opacity:{...ID(o.mode),...n},overlays:r||wD(o.mode),...a}}function AM(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 SM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],CM=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 l={};return SM(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:o?{[o.replace("%s",t)]:l,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}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 DM(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 _A=(e,t,n,r=[])=>{let a=e;t.forEach((o,l)=>{l===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])})},kM=(e,t,n)=>{function r(a,o=[],l=[]){Object.entries(a).forEach(([c,d])=>{(!n||n&&!n([...o,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...o,c],Array.isArray(d)?[...l,c]:l):t([...o,c],d,l))})}r(e)},RM=(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 Z0(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},l={};return kM(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,m=RM(c,d);Object.assign(a,{[p]:m}),_A(o,c,`var(${p})`,f),_A(l,c,`var(${p}, ${m})`,f)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:l}}function IM(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:p,varsWithDefaults:m}=Z0(d,t);let y=m;const b={},{[c]:T,...A}=o;if(Object.entries(A||{}).forEach(([x,D])=>{const{vars:S,css:M,varsWithDefaults:L}=Z0(D,t);y=Jr(y,L),b[x]={css:M,vars:S}}),T){const{css:x,vars:D,varsWithDefaults:S}=Z0(T,t);y=Jr(y,S),b[c]={css:x,vars:D}}function C(x,D){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${o[x]?.palette?.mode||x})`]:{":root":D}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...f};return Object.entries(b).forEach(([,{vars:D}])=>{x=Jr(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function S(I,V){Object.keys(V).length&&x.push(typeof I=="string"?{[I]:{...V}}:I)}S(n(void 0,{...p}),p);const{[D]:M,...L}=b;if(M){const{css:I}=M,V=o[D]?.palette?.mode,ne=!r&&V?{colorScheme:V,...I}:{...I};S(n(D,{...ne}),ne)}return Object.entries(L).forEach(([I,{css:V}])=>{const ne=o[I]?.palette?.mode,K=!r&&ne?{colorScheme:ne,...V}:{...V};S(n(I,{...K}),K)}),x}}}function wM(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 NM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function he(e,t,n){!e[t]&&n&&(e[t]=n)}function Nu(e){return typeof e!="string"||!e.startsWith("hsl")?e:AD(e)}function Ii(e,t){`${t}Channel`in e||(e[`${t}Channel`]=wu(Nu(e[t])))}function OM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ya=e=>{try{return e()}catch{}},LM=(e="mui")=>d5(e);function J0(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=xM({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...l}=sy({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...ID(a),...t?.opacity},overlays:t?.overlays||wD(a)},l}function MM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=AM,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),y=LM(o),{[m]:b,light:T,dark:A,...C}=n,x={...C};let D=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Is(21,m));const S=J0(x,D,f,m);T&&!x.light&&J0(x,T,void 0,"light"),A&&!x.dark&&J0(x,A,void 0,"dark");let M={defaultColorScheme:m,...S,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:d,getCssVar:y,colorSchemes:x,font:{...DM(S.typography),...S.font},spacing:OM(f.spacing)};Object.keys(M.colorSchemes).forEach(K=>{const k=M.colorSchemes[K].palette,H=Q=>{const W=Q.split("-"),re=W[1],me=W[2];return y(Q,k[re][me])};if(k.mode==="light"&&(he(k.common,"background","#fff"),he(k.common,"onBackground","#000")),k.mode==="dark"&&(he(k.common,"background","#000"),he(k.common,"onBackground","#fff")),NM(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){he(k.Alert,"errorColor",Vt(k.error.light,.6)),he(k.Alert,"infoColor",Vt(k.info.light,.6)),he(k.Alert,"successColor",Vt(k.success.light,.6)),he(k.Alert,"warningColor",Vt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-main")),he(k.Alert,"infoFilledBg",H("palette-info-main")),he(k.Alert,"successFilledBg",H("palette-success-main")),he(k.Alert,"warningFilledBg",H("palette-warning-main")),he(k.Alert,"errorFilledColor",Ya(()=>k.getContrastText(k.error.main))),he(k.Alert,"infoFilledColor",Ya(()=>k.getContrastText(k.info.main))),he(k.Alert,"successFilledColor",Ya(()=>k.getContrastText(k.success.main))),he(k.Alert,"warningFilledColor",Ya(()=>k.getContrastText(k.warning.main))),he(k.Alert,"errorStandardBg",qt(k.error.light,.9)),he(k.Alert,"infoStandardBg",qt(k.info.light,.9)),he(k.Alert,"successStandardBg",qt(k.success.light,.9)),he(k.Alert,"warningStandardBg",qt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-100")),he(k.Avatar,"defaultBg",H("palette-grey-400")),he(k.Button,"inheritContainedBg",H("palette-grey-300")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-A100")),he(k.Chip,"defaultBorder",H("palette-grey-400")),he(k.Chip,"defaultAvatarColor",H("palette-grey-700")),he(k.Chip,"defaultIconColor",H("palette-grey-700")),he(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(k.LinearProgress,"primaryBg",qt(k.primary.main,.62)),he(k.LinearProgress,"secondaryBg",qt(k.secondary.main,.62)),he(k.LinearProgress,"errorBg",qt(k.error.main,.62)),he(k.LinearProgress,"infoBg",qt(k.info.main,.62)),he(k.LinearProgress,"successBg",qt(k.success.main,.62)),he(k.LinearProgress,"warningBg",qt(k.warning.main,.62)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),he(k.Slider,"primaryTrack",qt(k.primary.main,.62)),he(k.Slider,"secondaryTrack",qt(k.secondary.main,.62)),he(k.Slider,"errorTrack",qt(k.error.main,.62)),he(k.Slider,"infoTrack",qt(k.info.main,.62)),he(k.Slider,"successTrack",qt(k.success.main,.62)),he(k.Slider,"warningTrack",qt(k.warning.main,.62));const Q=Eh(k.background.default,.8);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Ya(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",Eh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-400")),he(k.StepContent,"border",H("palette-grey-400")),he(k.Switch,"defaultColor",H("palette-common-white")),he(k.Switch,"defaultDisabledColor",H("palette-grey-100")),he(k.Switch,"primaryDisabledColor",qt(k.primary.main,.62)),he(k.Switch,"secondaryDisabledColor",qt(k.secondary.main,.62)),he(k.Switch,"errorDisabledColor",qt(k.error.main,.62)),he(k.Switch,"infoDisabledColor",qt(k.info.main,.62)),he(k.Switch,"successDisabledColor",qt(k.success.main,.62)),he(k.Switch,"warningDisabledColor",qt(k.warning.main,.62)),he(k.TableCell,"border",qt(bh(k.divider,1),.88)),he(k.Tooltip,"bg",bh(k.grey[700],.92))}if(k.mode==="dark"){he(k.Alert,"errorColor",qt(k.error.light,.6)),he(k.Alert,"infoColor",qt(k.info.light,.6)),he(k.Alert,"successColor",qt(k.success.light,.6)),he(k.Alert,"warningColor",qt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-dark")),he(k.Alert,"infoFilledBg",H("palette-info-dark")),he(k.Alert,"successFilledBg",H("palette-success-dark")),he(k.Alert,"warningFilledBg",H("palette-warning-dark")),he(k.Alert,"errorFilledColor",Ya(()=>k.getContrastText(k.error.dark))),he(k.Alert,"infoFilledColor",Ya(()=>k.getContrastText(k.info.dark))),he(k.Alert,"successFilledColor",Ya(()=>k.getContrastText(k.success.dark))),he(k.Alert,"warningFilledColor",Ya(()=>k.getContrastText(k.warning.dark))),he(k.Alert,"errorStandardBg",Vt(k.error.light,.9)),he(k.Alert,"infoStandardBg",Vt(k.info.light,.9)),he(k.Alert,"successStandardBg",Vt(k.success.light,.9)),he(k.Alert,"warningStandardBg",Vt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-900")),he(k.AppBar,"darkBg",H("palette-background-paper")),he(k.AppBar,"darkColor",H("palette-text-primary")),he(k.Avatar,"defaultBg",H("palette-grey-600")),he(k.Button,"inheritContainedBg",H("palette-grey-800")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-700")),he(k.Chip,"defaultBorder",H("palette-grey-700")),he(k.Chip,"defaultAvatarColor",H("palette-grey-300")),he(k.Chip,"defaultIconColor",H("palette-grey-300")),he(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(k.LinearProgress,"primaryBg",Vt(k.primary.main,.5)),he(k.LinearProgress,"secondaryBg",Vt(k.secondary.main,.5)),he(k.LinearProgress,"errorBg",Vt(k.error.main,.5)),he(k.LinearProgress,"infoBg",Vt(k.info.main,.5)),he(k.LinearProgress,"successBg",Vt(k.success.main,.5)),he(k.LinearProgress,"warningBg",Vt(k.warning.main,.5)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),he(k.Slider,"primaryTrack",Vt(k.primary.main,.5)),he(k.Slider,"secondaryTrack",Vt(k.secondary.main,.5)),he(k.Slider,"errorTrack",Vt(k.error.main,.5)),he(k.Slider,"infoTrack",Vt(k.info.main,.5)),he(k.Slider,"successTrack",Vt(k.success.main,.5)),he(k.Slider,"warningTrack",Vt(k.warning.main,.5));const Q=Eh(k.background.default,.98);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Ya(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",Eh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-600")),he(k.StepContent,"border",H("palette-grey-600")),he(k.Switch,"defaultColor",H("palette-grey-300")),he(k.Switch,"defaultDisabledColor",H("palette-grey-600")),he(k.Switch,"primaryDisabledColor",Vt(k.primary.main,.55)),he(k.Switch,"secondaryDisabledColor",Vt(k.secondary.main,.55)),he(k.Switch,"errorDisabledColor",Vt(k.error.main,.55)),he(k.Switch,"infoDisabledColor",Vt(k.info.main,.55)),he(k.Switch,"successDisabledColor",Vt(k.success.main,.55)),he(k.Switch,"warningDisabledColor",Vt(k.warning.main,.55)),he(k.TableCell,"border",Vt(bh(k.divider,1),.68)),he(k.Tooltip,"bg",bh(k.grey[700],.92))}Ii(k.background,"default"),Ii(k.background,"paper"),Ii(k.common,"background"),Ii(k.common,"onBackground"),Ii(k,"divider"),Object.keys(k).forEach(Q=>{const W=k[Q];Q!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&he(k[Q],"mainChannel",wu(Nu(W.main))),W.light&&he(k[Q],"lightChannel",wu(Nu(W.light))),W.dark&&he(k[Q],"darkChannel",wu(Nu(W.dark))),W.contrastText&&he(k[Q],"contrastTextChannel",wu(Nu(W.contrastText))),Q==="text"&&(Ii(k[Q],"primary"),Ii(k[Q],"secondary")),Q==="action"&&(W.active&&Ii(k[Q],"active"),W.selected&&Ii(k[Q],"selected")))})}),M=t.reduce((K,k)=>Jr(K,k),M);const L={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:CM(M)},{vars:I,generateThemeVars:V,generateStyleSheets:ne}=IM(M,L);return M.vars=I,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([K,k])=>{M[K]=k}),M.generateThemeVars=V,M.generateStyleSheets=ne,M.generateSpacing=function(){return f5(f.spacing,Pb(this))},M.getColorSchemeSelector=wM(c),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=l,M.unstable_sxConfig={...rm,...f?.unstable_sxConfig},M.unstable_sx=function(K){return Wl({sx:K,theme:this})},M.toRuntimeSource=kD,M}function xA(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ob({...n===!0?{}:n.palette,mode:t})})}function PM(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...l}=e,c=o||"light",d=a?.[c],f={...a,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return sy(e,...t);let p=n;"palette"in e||f[c]&&(f[c]!==!0?p=f[c].palette:c==="dark"&&(p={mode:"dark"}));const m=sy({...e,palette:p},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},xA(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},xA(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),MM({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const jb=PM(),Bb="$$material";function $M(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ub=e=>$M(e)&&e!=="classes";function FM(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 jM={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 BM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var UM=/[A-Z]|^ms/g,HM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ND=function(e){return e.charCodeAt(1)===45},AA=function(e){return e!=null&&typeof e!="boolean"},e1=BM(function(e){return ND(e)?e:e.replace(UM,"-$&").toLowerCase()}),SA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(HM,function(n,r,a){return Ro={name:r,styles:a,next:Ro},r})}return jM[e]!==1&&!ND(e)&&typeof t=="number"&&t!==0?t+"px":t};function gp(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 Ro={name:a.name,styles:a.styles,next:Ro},a.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)Ro={name:l.name,styles:l.styles,next:Ro},l=l.next;var c=o.styles+";";return c}return zM(e,t,n)}}var d=n;return d}function zM(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=gp(e,t,n[a])+";";else for(var o in n){var l=n[o];if(typeof l!="object"){var c=l;AA(c)&&(r+=e1(o)+":"+SA(o,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)AA(l[d])&&(r+=e1(o)+":"+SA(o,l[d])+";");else{var f=gp(e,t,l);switch(o){case"animation":case"animationName":{r+=e1(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}return r}var CA=/label:\s*([^\s;{]+)\s*(;|$)/g,Ro;function GM(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="";Ro=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=gp(n,t,o);else{var l=o;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=gp(n,t,e[c]),r){var d=o;a+=d[c]}CA.lastIndex=0;for(var f="",p;(p=CA.exec(a))!==null;)f+="-"+p[1];var m=FM(a)+f;return{name:m,styles:a,next:Ro}}function VM(e,t){return h5(e,t)}function qM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const DA=[];function Ss(e){return DA[0]=e,GM(DA)}function YM(e){const{variants:t,...n}=e,r={variants:t,style:Ss(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Ss(a.style))}),r}const QM=Fb();function Oo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ys(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function KM(e){return e?(t,n)=>n[e]:null}function WM(e,t,n){e.theme=ZM(e.theme)?n:e.theme[t]||e.theme}function Uh(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Uh(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?ys(r.style,n):r.style;else{const{variants:o,...l}=r;a=n?ys(Ss(l),n):l}return OD(e,r.variants,[a],n)}return r?.isProcessed?n?ys(Ss(r.style),n):r.style:n?ys(Ss(r),n):r}function OD(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const l=t[o];if(typeof l.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(a))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ys(Ss(l.style(a)),r):l.style(a))):n.push(r?ys(Ss(l.style),r):l.style)}return n}function XM(e={}){const{themeId:t,defaultTheme:n=QM,rootShouldForwardProp:r=Oo,slotShouldForwardProp:a=Oo}=e;function o(l){WM(l,t,n)}return(l,c={})=>{qM(l,L=>L.filter(I=>I!==Wl));const{name:d,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:y=KM(eP(f)),...b}=c,T=d&&d.startsWith("Mui")||f?"components":"custom",A=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,C=m||!1;let x=Oo;f==="Root"||f==="root"?x=r:f?x=a:JM(l)&&(x=void 0);const D=VM(l,{shouldForwardProp:x,label:void 0,...b}),S=L=>{if(L.__emotion_real===L)return L;if(typeof L=="function")return function(I){return Uh(I,L,I.theme.modularCssLayers?T:void 0)};if(Pi(L)){const I=YM(L);return function(V){return I.variants?Uh(V,I,V.theme.modularCssLayers?T:void 0):V.theme.modularCssLayers?ys(I.style,T):I.style}}return L},M=(...L)=>{const I=[],V=L.map(S),ne=[];if(I.push(o),d&&y&&ne.push(function(H){const Q=H.theme.components?.[d]?.styleOverrides;if(!Q)return null;const W={};for(const re in Q)W[re]=Uh(H,Q[re],H.theme.modularCssLayers?"theme":void 0);return y(H,W)}),d&&!A&&ne.push(function(H){const Q=H.theme?.components?.[d]?.variants;return Q?OD(H,Q,[],H.theme.modularCssLayers?"theme":void 0):null}),C||ne.push(Wl),Array.isArray(V[0])){const H=V.shift(),Q=new Array(I.length).fill(""),W=new Array(ne.length).fill("");let re;re=[...Q,...H,...W],re.raw=[...Q,...H.raw,...W],I.unshift(re)}const K=[...I,...V,...ne],k=D(...K);return l.muiName&&(k.muiName=l.muiName),k};return D.withConfig&&(M.withConfig=D.withConfig),M}}function ZM(e){for(const t in e)return!1;return!0}function JM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Jt=XM({themeId:Bb,defaultTheme:jb,rootShouldForwardProp:Ub});function Bs(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let l="",c=!0;for(let d=0;d<o.length;d+=1){const f=o[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[a]=l}return r}const tP=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${La(t)}`,`fontSize${La(n)}`]};return Bs(a,Z6,r)},nP=Jt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${La(n.color)}`],t[`fontSize${La(n.fontSize)}`]]}})(Rb(({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}}]}))),ly=N.forwardRef(function(e,t){const n=rc({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...y}=n,b=N.isValidElement(r)&&r.type==="svg",T={...n,color:o,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:b},A={};f||(A.viewBox=m);const C=tP(T);return E.jsxs(nP,{as:l,className:Pn(C.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...A,...y,...b&&r.props,ownerState:T,children:[b?r.props.children:r,p?E.jsx("title",{children:p}):null]})});ly.muiName="SvgIcon";function zt(e,t){function n(r,a){return E.jsx(ly,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=ly.muiName,N.memo(N.forwardRef(n))}const rP=zt([E.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-2m0 16H5V5h14z"},"0"),E.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),LD=zt(E.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"})),MD=zt(E.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"})),aP="modulepreload",iP=function(e){return"/"+e},kA={},F=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=l(n.map(f=>{if(f=iP(f),f in kA)return;kA[f]=!0;const p=f.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":aP,p||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),p)return new Promise((b,T)=>{y.addEventListener("load",b),y.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},PD=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es245-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es246-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es247-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es248-BbnofNr_.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es249-CHnp3pgu.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es250-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es251-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es252-CHg5mTDB.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es253-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es254-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es255-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es256-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es257-C9wENz3l.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es258-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es259-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es260-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es261-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es262-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es263-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es264-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es265-BntVFYmO.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es266-DJiGb8ir.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es267-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es268-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es269-BlNAgQRk.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es270-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es271-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es272-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es273-BZa9C0_S.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es274-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es275-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es276-Dm75OSI9.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es277-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es278-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es279-DOueKgLW.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es280-CxZDxKUo.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es281-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es282-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es283-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es284-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es285-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es286-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es287-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es288-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es289-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es290-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es291-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es292-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es293-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es294-CTbJ9vLR.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es295-DiA-SM4E.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es296-CZ8C1F3L.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es297-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es298-gjAJKRU1.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:()=>F(()=>import("./index.es299-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es300-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es301-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es302-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es303-B34gU-g3.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es304-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es305-K0bsFYUN.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es306-DyjbQFWh.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es307-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es308-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es309-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es310--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es311-B1RhmG6z.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es312-DP9VVTDA.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es313-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es314-oqkmpbtc.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es315-Cry3G-vd.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es316-C4cIqlTU.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es317-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es318-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es319-DnDYp8mI.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es320-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es321-8D69jX4a.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es322--yjHxpYn.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es323-CAnzK2pq.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es324-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es325-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es326-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es327-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es328-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es329-pKsC3-g8.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es330-Boxjtls_.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es331-Dq2hbiQb.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es332-_c-j6KJ7.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es333-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es334-CiqPgm0u.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es335-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es336-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es337-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es338-CcTqmj4Y.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es339-DpdXeVfL.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es340-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es341-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es342-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es343-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es344-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es345-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es346-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es347-Huf3ll6E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es348-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es349-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es350-DJbtODnQ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es351-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es352-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es353-CZ1g2C4t.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es354-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es355-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es356-DORxJG9x.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es357-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es358-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es359-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es360-D_JGZUfP.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es361-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es362-SgvLbwKE.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es363-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es364-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es365-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es366-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es367-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es368-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es369-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es370-CmNgHhZR.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es371-Cs1lL0hA.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es372-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es373-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es374-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es375-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es376-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es377-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es378-DLafTSmc.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es379-DvAUFL3j.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es380-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es381-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es382-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es383-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es384-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es385-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es386-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es387-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es388-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es389-DLoaFSAg.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es390-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es391-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es392-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es393-D2rZ0QpA.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es394-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es395-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es396-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es397-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es398-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es399-CfJRcQ4n.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es400-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es401-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es402-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es403-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es404-BtfUL5QQ.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:()=>F(()=>import("./index.es405-CgsGWDZA.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:()=>F(()=>import("./index.es406-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es407-C_zMiwph.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es408-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es409-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es410-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es411-vZ0JeZmh.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es412-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es413-CbVhl1jA.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es414-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es415-BcYlm_Ug.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es416-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es417-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es418-vuRuSeN9.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es419-_2HbSMSa.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es420-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es421-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es422-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es423-DzpSEUNI.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es424-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es425-D6X1TVim.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es426-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es427-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es428-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es429-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es430-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es431-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es432-8bVDwFXM.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es433-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es434-C9NHuXnM.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es435-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es436-BTPPL0zS.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es437-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es438-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es439-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es440-ww1QoUAZ.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:()=>F(()=>import("./index.es441-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es442-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es443-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es444-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es445-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es446-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es447-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es448-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es449-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es450-DBjXbu_P.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es451-DHwELaFr.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es452-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es453-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es454-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es455-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es456-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es457-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es458-webL2P4r.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es459-huEmffFP.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es460-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es461-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es462-BVz_zdnA.js"),[])}],oP=Object.fromEntries(PD.map(e=>[e.id,e.import])),sP=Object.fromEntries(PD.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),lP={...oP,...sP},cP=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es463-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es464-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es465-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es466-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es467-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es468-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es469-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es470-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es471-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es472-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es473-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es474-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es475-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es476-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es477-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es478-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es479-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es480-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es481-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es482-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es483-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es484-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es485-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es486-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es487-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es488-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es489-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es490-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es491-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es492-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es493-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es494-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es495-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es496-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es497-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es498-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es499-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es500-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es501-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es502-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es503-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es504-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es505-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es506-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es507-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es508-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es509-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es510-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es511-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es512-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es513-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es514-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es515-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es516-CVO1_9PV.js"),[])}],uP=Object.fromEntries(cP.map(e=>[e.id,e.import]));let Bi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Hb=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function dP(){return 2147483648}function fP(){return typeof performance<"u"?performance.now():Date.now()}const hP=(e,t)=>e+(t-e%t)%t;async function pP(e){let t,n;const r={};function a(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function o(b,T,A){r.HEAPU8.copyWithin(b,T,T+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(b){const T=r.HEAPU8.length;b=b>>>0;const A=dP();if(b>A)return!1;for(let C=1;C<=4;C*=2){let x=T*(1+.2/C);x=Math.min(x,b+100663296);const D=Math.min(A,hP(Math.max(b,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,T,A=1024){const C=T+A;let x=T;for(;b[x]&&!(x>=C);)++x;if(x-T>16&&b.buffer&&d)return d.decode(b.subarray(T,x));let D="";for(;T<x;){let S=b[T++];if(!(S&128)){D+=String.fromCharCode(S);continue}const M=b[T++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|M);continue}const L=b[T++]&63;if((S&240)===224?S=(S&15)<<12|M<<6|L:S=(S&7)<<18|M<<12|L<<6|b[T++]&63,S<65536)D+=String.fromCharCode(S);else{const I=S-65536;D+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return D}function p(b,T){return b?f(r.HEAPU8,b,T):""}const m={emscripten_get_now:fP,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const b=await e({env:m,wasi_snapshot_preview1:m});t=b.memory,a(t.buffer),Object.assign(r,b),r.UTF8ToString=p}return await y(),r}var mP=Object.defineProperty,gP=(e,t,n)=>t in e?mP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t,n)=>(gP(e,typeof t!="symbol"?t+"":t,n),n);let Kn=null;function yP(e){throw new Hb(e.UTF8ToString(e.getLastOnigError()))}let $D=class FD{constructor(t){Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16Value"),Bn(this,"utf8Value"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16");const n=t.length,r=FD._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,y=!0)}a&&(o[f]=d,y&&(o[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(o-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=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 Xa=class{constructor(t){if(Bn(this,"id",++Xa.LAST_ID),Bn(this,"_onigBinding"),Bn(this,"content"),Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16"),Bn(this,"ptr"),!Kn)throw new Hb("Must invoke loadWasm first.");this._onigBinding=Kn,this.content=t;const n=new $D(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xa._sharedPtrInUse?(Xa._sharedPtr||(Xa._sharedPtr=Kn.omalloc(1e4)),Xa._sharedPtrInUse=!0,Kn.HEAPU8.set(n.utf8Value,Xa._sharedPtr),this.ptr=Xa._sharedPtr):this.ptr=n.createString(Kn)}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===Xa._sharedPtr?Xa._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Fd=Xa;Bn(Fd,"LAST_ID",0);Bn(Fd,"_sharedPtr",0);Bn(Fd,"_sharedPtrInUse",!1);let bP=class{constructor(t){if(Bn(this,"_onigBinding"),Bn(this,"_ptr"),!Kn)throw new Hb("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new $D(t[c]);n[c]=f.createString(Kn),r[c]=f.utf8Length}const a=Kn.omalloc(4*t.length);Kn.HEAPU32.set(n,a/4);const o=Kn.omalloc(4*t.length);Kn.HEAPU32.set(r,o/4);const l=Kn.createOnigScanner(a,o,t.length);for(let c=0,d=t.length;c<d;c++)Kn.ofree(n[c]);Kn.ofree(o),Kn.ofree(a),l===0&&yP(Kn),this._onigBinding=Kn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Fd(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,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=o.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let y=0;y<p;y++){const b=t.convertUtf8OffsetToUtf16(c[d++]),T=t.convertUtf8OffsetToUtf16(c[d++]);m[y]={start:b,end:T,length:T-b}}return{index:f,captureIndices:m}}};function EP(e){return typeof e.instantiator=="function"}function vP(e){return typeof e.default=="function"}function TP(e){return typeof e.data<"u"}function _P(e){return typeof Response<"u"&&e instanceof Response}function xP(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 vh;function AP(e){if(vh)return vh;async function t(){Kn=await pP(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),EP(r)?r=await r.instantiator(n):vP(r)?r=await r.default(n):(TP(r)&&(r=r.data),_P(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await SP(r)(n):r=await CP(r)(n):xP(r)?r=await t1(r)(n):r instanceof WebAssembly.Module?r=await t1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await t1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return vh=t(),vh}function t1(e){return t=>WebAssembly.instantiate(e,t)}function SP(e){return t=>WebAssembly.instantiateStreaming(e,t)}function CP(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let DP;function kP(){return DP}async function jD(e){return e&&await AP(e),{createScanner(t){return new bP(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Fd(t)}}}function RP(e){return zb(e)}function zb(e){return Array.isArray(e)?IP(e):e instanceof RegExp?e:typeof e=="object"?wP(e):e}function IP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=zb(e[n]);return t}function wP(e){let t={};for(let n in e)t[n]=zb(e[n]);return t}function BD(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function UD(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?UD(e.substring(0,e.length-1)):e.substr(~t+1)}var n1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Th=class{static hasCaptures(t){return t===null?!1:(n1.lastIndex=0,n1.test(t))}static replaceCaptures(t,n,r){return t.replace(n1,(a,o,l,c)=>{let d=r[parseInt(o||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function HD(e,t){return e<t?-1:e>t?1:0}function zD(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=HD(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function RA(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 GD(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var VD=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}},yp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(LP(t),n)}static createFromParsedTheme(t,n){return PP(t,n)}_cachedMatchRoot=new VD(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=>NP(t.parent,a.parentScopes));return r?new qD(r.fontStyle,r.foreground,r.background):null}},r1=class Hh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Hh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Hh(n,t[r]);return n}push(t){return new Hh(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 NP(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&&!OP(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function OP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qD=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function LP(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 l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let y=0,b=m.length;y<b;y++)switch(m[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&RA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&RA(l.settings.background)&&(p=l.settings.background);for(let m=0,y=c.length;m<y;m++){let b=c[m].trim().split(" "),T=b[b.length-1],A=null;b.length>1&&(A=b.slice(0,b.length-1),A.reverse()),n[r++]=new MP(T,A,a,d,f,p)}}return n}var MP=class{constructor(t,n,r,a,o,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=l}},ji=(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))(ji||{});function PP(e,t){e.sort((d,f)=>{let p=HD(d.scope,f.scope);return p!==0||(p=zD(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let o=new $P(t),l=new qD(n,o.getId(r),o.getId(a)),c=new jP(new cy(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new yp(o,l,c)}var $P=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)}},FP=Object.freeze([]),cy=class YD{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||FP,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new YD(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)}},jP=class uy{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(uy._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new uy(this._mainRule.clone(),cy.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(zD(d.parentScopes,n)===0){d.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 cy(t,n,r,a,o))}},Xl=class ha{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ha.getLanguageId(t),r=ha.getTokenType(t),a=ha.getFontStyle(t),o=ha.getForeground(t),l=ha.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}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,l,c){let d=ha.getLanguageId(t),f=ha.getTokenType(t),p=ha.containsBalancedBrackets(t)?1:0,m=ha.getFontStyle(t),y=ha.getForeground(t),b=ha.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),o!==-1&&(m=o),l!==0&&(y=l),c!==0&&(b=c),(d<<0|f<<8|p<<10|m<<11|y<<15|b<<24)>>>0}};function bp(e,t){const n=[],r=BP(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const d=o();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(IA(a)){const d=[];do d.push(a),a=r.next();while(IA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=o();for(;f;)d.push(f),f=o();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function IA(e){return!!e&&!!e.match(/[\w\.:]+/)}function BP(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 QD(e){typeof e.dispose=="function"&&e.dispose()}var cd=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},UP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},HP=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))}},zP=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new HP;for(const r of t)GP(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof cd){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 GP(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 cd?zh({baseGrammar:o,selfGrammar:a},r):dy(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new cd(c))}function dy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ep([r],t,n)}}function zh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ep(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ep(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ep(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?BD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ep(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=KD(o);switch(l.kind){case 0:zh({...t,selfGrammar:t.baseGrammar},n);break;case 1:zh(t,n);break;case 2:dy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?dy(l.ruleName,d,n):zh(d,n)}else l.kind===4?n.add(new UP(l.scopeName,l.ruleName)):n.add(new cd(l.scopeName));break}}}var VP=class{kind=0},qP=class{kind=1},YP=class{constructor(t){this.ruleName=t}kind=2},QP=class{constructor(t){this.scopeName=t}kind=3},KP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function KD(e){if(e==="$base")return new VP;if(e==="$self")return new qP;const t=e.indexOf("#");if(t===-1)return new QP(e);if(t===0)return new YP(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new KP(n,r)}}var WP=/\\(\d+)/,wA=/\\(\d+)/g,XP=-1,WD=-2,jd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=Th.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Th.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${UD(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:Th.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Th.replaceCaptures(this._contentName,t,n)}},ZP=class extends jd{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!")}},JP=class extends jd{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new ud(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 dd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},NA=class extends jd{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 dd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fy=class extends jd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,l,c,d,f,p){super(t,n,r,a),this._begin=new ud(o,this.id),this.beginCaptures=l,this._end=new ud(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!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 dd;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}},vp=class extends jd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,l,c,d,f){super(t,n,r,a),this._begin=new ud(o,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new ud(c,WD),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.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 dd;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 dd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},XD=class lr{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new ZP(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new JP(t.$vscodeTextmateLocation,t.id,t.name,t.match,lr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=BD({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new NA(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,lr._compilePatterns(o,n,r))}return t.while?new vp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,lr._compileCaptures(t.whileCaptures||t.captures,n,r),lr._compilePatterns(t.patterns,n,r)):new fy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,lr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,lr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=lr.getCompiledRuleId(t[l],n,r)),a[c]=lr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let d=-1;if(c.include){const f=KD(c.include);switch(f.kind){case 0:case 1:d=lr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=lr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(m,r);if(b)if(y){let T=b.repository[y];T&&(d=lr.getCompiledRuleId(T,n,b.repository))}else d=lr.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=lr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof NA||f instanceof fy||f instanceof vp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},ud=class ZD{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,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=WP.test(this.source):this.hasBackReferences=!1}clone(){return new ZD(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 wA.lastIndex=0,this.source.replace(wA,(a,o)=>GD(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,l,c,d;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<l&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=d,n[o+1]=d,r[o+1]=d,a[o+1]=d),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}},dd=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 OA(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 OA(t,a,this._items.map(o=>o.ruleId))}},OA=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(`
|
|
54
|
+
`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},a1=class{constructor(t,n){this.languageId=t,this.tokenType=n}},e7=class hy{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new a1(t,8),this._embeddedLanguagesMatcher=new t7(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?hy._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new a1(0,0);_getBasicScopeAttributes=new VD(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new a1(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(hy.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/},t7=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])=>GD(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])}},LA=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function JD(e,t,n,r,a,o,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const b=n7(e,t,n,r,a,o);a=b.stack,r=b.linePos,n=b.isFirstLine,p=b.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new LA(a,!0);y()}return new LA(a,!1);function y(){const b=r7(e,t,n,r,a,p);if(!b){o.produce(a,d),f=!0;return}const T=b.captureIndices,A=b.matchedRuleId,C=T&&T.length>0?T[0].end>r:!1;if(A===XP){const x=a.getRule(e);o.produce(a,T[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ou(e,t,n,a,o,x.endCaptures,T),o.produce(a,T[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,o.produce(a,d),f=!0;return}}else{const x=e.getRule(A);o.produce(a,T[0].start);const D=a,S=x.getName(t.content,T),M=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,T[0].end===d,null,M,M),x instanceof fy){const L=x;Ou(e,t,n,a,o,L.beginCaptures,T),o.produce(a,T[0].end),p=T[0].end;const I=L.getContentName(t.content,T),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.endHasBackReferences&&(a=a.withEndRule(L.getEndWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(x instanceof vp){const L=x;Ou(e,t,n,a,o,L.beginCaptures,T),o.produce(a,T[0].end),p=T[0].end;const I=L.getContentName(t.content,T),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.whileHasBackReferences&&(a=a.withEndRule(L.getWhileWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(Ou(e,t,n,a,o,x.captures,T),o.produce(a,T[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,d),f=!0;return}}T[0].end>r&&(r=T[0].end,n=!1)}}function n7(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof vp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=o7(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==WD){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(d.stack,m.captureIndices[0].start),Ou(e,t,n,d.stack,o,d.rule.whileCaptures,m.captureIndices),o.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function r7(e,t,n,r,a,o){const l=a7(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return l;const d=i7(c,e,t,n,r,a,o);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function a7(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=ek(l,e,a.endRule,n,r===o),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function i7(e,t,n,r,a,o,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=o.contentNameScopesList.getScopeNames();for(let y=0,b=e.length;y<b;y++){const T=e[y];if(!T.matcher(m))continue;const A=t.getRule(T.ruleId),{ruleScanner:C,findOptions:x}=ek(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=T.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function ek(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function o7(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Ou(e,t,n,r,a,o,l){if(o.length===0)return;const c=t.content,d=Math.min(o.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const y=o[m];if(y===null)continue;const b=l[m];if(b.length===0)continue;if(b.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,b.start):a.produce(r,b.start),y.retokenizeCapturedWithRuleId){const A=y.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=y.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(y.retokenizeCapturedWithRuleId,b.start,-1,!1,null,C,D),M=e.createOnigString(c.substring(0,b.end));JD(e,M,n&&b.start===0,b.start,S,a,!1,0),QD(M);continue}const T=y.getName(c,l);if(T!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(T,e);f.push(new s7(A,b.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var s7=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function l7(e,t,n,r,a,o,l,c){return new u7(e,t,n,r,a,o,l,c)}function MA(e,t,n,r,a){const o=bp(t,Tp),l=XD.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function Tp(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(c7(t[a],r))return n=a+1,!0;return!1})}function c7(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 u7=class{constructor(t,n,r,a,o,l,c,d){if(this._rootScopeName=t,this.balancedBracketSelectors=l,this._onigLib=d,this._basicScopeAttributesProvider=new e7(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=PA(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const f of Object.keys(o)){const p=bp(f,Tp);for(const m of p)this._tokenTypeMatchers.push({matcher:m.matcher,type:o[f]})}}_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)MA(n,c,o[c],this,a);const l=this._grammarRepository.injections(r);l&&l.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&MA(n,f,d,this,d)}})}return n.sort((o,l)=>o.priority-l.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]=PA(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=XD.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===py.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),y=Xl.set(0,p.languageId,p.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),b=this.getRule(this._rootId).getName(null,null);let T;b?T=Bu.createRootAndLookUpScopeName(b,y,this):T=Bu.createRoot("unknown",y),n=new py(null,this._rootId,-1,-1,!1,null,T,T)}else o=!1,n.reset();t=t+`
|
|
55
|
+
`;const l=this.createOnigString(t),c=l.content.length,d=new f7(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),f=JD(this,l,o,0,n,d,!0,a);return QD(l),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function PA(e,t){return e=RP(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 Bu=class Za{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=r1.push(a,o.scopeNames),r=new Za(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Za(null,new r1(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new r1(null,t),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(n,a,l);return new Za(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Za.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,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),Xl.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Za._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Za._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(t.tokenAttributes,a,l);return new Za(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}},py=class ls{constructor(t,n,r,a,o,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new ls(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ls._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Bu.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(){ls._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,c){return new ls(this,t,n,r,a,o,l,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 ls(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=Bu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ls(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Bu.fromExtension(r,n.contentNameScopesList))}},d7=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):bp(r,Tp).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>bp(r,Tp).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}},f7=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 l=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(a=Xl.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=Xl.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}},h7=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 l=this._rawGrammars.get(t);if(!l)return null;this._grammars.set(t,l7(t,l,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},p7=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new h7(yp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(yp.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 d7(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new zP(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.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)}},my=py.NULL;const tk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Bd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Bd.prototype.normal={};Bd.prototype.property={};Bd.prototype.space=void 0;function nk(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Bd(n,r,t)}function fd(e){return e.toLowerCase()}let $r=class{constructor(t,n){this.attribute=n,this.property=t}};$r.prototype.attribute="";$r.prototype.booleanish=!1;$r.prototype.boolean=!1;$r.prototype.commaOrSpaceSeparated=!1;$r.prototype.commaSeparated=!1;$r.prototype.defined=!1;$r.prototype.mustUseProperty=!1;$r.prototype.number=!1;$r.prototype.overloadedBoolean=!1;$r.prototype.property="";$r.prototype.spaceSeparated=!1;$r.prototype.space=void 0;let m7=0;const ht=Us(),Ln=Us(),gy=Us(),ke=Us(),nn=Us(),zl=Us(),Qr=Us();function Us(){return 2**++m7}const yy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Ln,commaOrSpaceSeparated:Qr,commaSeparated:zl,number:ke,overloadedBoolean:gy,spaceSeparated:nn},Symbol.toStringTag,{value:"Module"})),i1=Object.keys(yy);let Gb=class extends $r{constructor(t,n,r,a){let o=-1;if(super(t,n),$A(this,"space",a),typeof r=="number")for(;++o<i1.length;){const l=i1[o];$A(this,i1[o],(r&yy[l])===yy[l])}}};Gb.prototype.defined=!0;function $A(e,t,n){n&&(e[t]=n)}function ac(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Gb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[fd(r)]=r,n[fd(o.attribute)]=r}return new Bd(t,n,e.space)}const rk=ac({properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:nn,ariaCurrent:null,ariaDescribedBy:nn,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:nn,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:nn,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nn,ariaLevel:ke,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:nn,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:nn,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Ln,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ak(e,t){return t in e?e[t]:t}function ik(e,t){return ak(e,t.toLowerCase())}const g7=ac({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zl,acceptCharset:nn,accessKey:nn,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:nn,autoFocus:ht,autoPlay:ht,blocking:nn,capture:null,charSet:null,checked:ht,cite:null,className:nn,cols:ke,colSpan:null,content:null,contentEditable:Ln,controls:ht,controlsList:nn,coords:ke|zl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:gy,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:nn,height:ke,hidden:gy,high:ke,href:null,hrefLang:null,htmlFor:nn,httpEquiv:nn,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:nn,itemRef:nn,itemScope:ht,itemType:nn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,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:ht,optimum:ke,pattern:null,ping:nn,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:nn,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:nn,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Ln,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nn,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:ik}),y7=ac({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:Qr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:nn,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:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,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:zl,g2:zl,glyphName:zl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Qr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,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:ke,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:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qr,rev:Qr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qr,requiredFeatures:Qr,requiredFonts:Qr,requiredFormats:Qr,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:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Qr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ak}),ok=ac({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()}}),sk=ac({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ik}),lk=ac({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ic=nk([rk,g7,ok,sk,lk],"html"),Gi=nk([rk,y7,ok,sk,lk],"svg"),FA={}.hasOwnProperty;function am(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const c=r.handlers;if(a&&FA.call(a,e)){const d=String(a[e]);l=FA.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const b7=/["&'<>`]/g,E7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v7=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,T7=/[|\\{}()[\]^$+*?.]/g,jA=new WeakMap;function _7(e,t){if(e=e.replace(t.subset?x7(t.subset):b7,r),t.subset||t.escapeOnly)return e;return e.replace(E7,n).replace(v7,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function x7(e){let t=jA.get(e);return t||(t=A7(e),jA.set(e,t)),t}function A7(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(T7,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const S7=/[\dA-Fa-f]/;function C7(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!S7.test(String.fromCharCode(t))?r:r+";"}const D7=/\d/;function k7(e,t,n){const r="&#"+String(e);return n&&t&&!D7.test(String.fromCharCode(t))?r:r+";"}const R7=["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"],o1={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:"€"},I7=["cent","copy","divide","gt","lt","not","para","times"],ck={}.hasOwnProperty,by={};let _h;for(_h in o1)ck.call(o1,_h)&&(by[o1[_h]]=_h);const w7=/[^\dA-Za-z]/;function N7(e,t,n,r){const a=String.fromCharCode(e);if(ck.call(by,a)){const o=by[a],l="&"+o;return n&&R7.includes(o)&&!I7.includes(o)&&(!r||t&&t!==61&&w7.test(String.fromCharCode(t)))?l:l+";"}return""}function O7(e,t,n){let r=C7(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=N7(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=k7(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Gl(e,t){return _7(e,Object.assign({format:O7},t))}const L7=/^>|^->|<!--|-->|--!>|<!-$/g,M7=[">"],P7=["<",">"];function $7(e,t,n,r){return r.settings.bogusComments?"<?"+Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:M7}))+">":"<!--"+e.value.replace(L7,a)+"-->";function a(o){return Gl(o,Object.assign({},r.settings.characterReferences,{subset:P7}))}}function F7(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function _p(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 Ey(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function im(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function vy(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function om(e){return e.join(" ").trim()}const j7=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?BA(e.value):!1:BA(e)}function BA(e){return e.replace(j7,"")===""}const zn=dk(1),uk=dk(-1),B7=[];function dk(e){return t;function t(n,r,a){const o=n?n.children:B7;let l=(r||0)+e,c=o[l];if(!a)for(;c&&Ud(c);)l+=e,c=o[l];return c}}const U7={}.hasOwnProperty;function fk(e){return t;function t(n,r,a){return U7.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Vb=fk({body:z7,caption:s1,colgroup:s1,dd:Y7,dt:q7,head:s1,html:H7,li:V7,optgroup:Q7,option:K7,p:G7,rp:UA,rt:UA,tbody:X7,td:HA,tfoot:Z7,th:HA,thead:W7,tr:J7});function s1(e,t,n){const r=zn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ud(r.value.charAt(0)))}function H7(e,t,n){const r=zn(n,t);return!r||r.type!=="comment"}function z7(e,t,n){const r=zn(n,t);return!r||r.type!=="comment"}function G7(e,t,n){const r=zn(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 V7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function q7(e,t,n){const r=zn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Y7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function UA(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Q7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function K7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function W7(e,t,n){const r=zn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function X7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Z7(e,t,n){return!zn(n,t)}function J7(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function HA(e,t,n){const r=zn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const e8=fk({body:r8,colgroup:a8,head:n8,html:t8,tbody:i8});function t8(e){const t=zn(e,-1);return!t||t.type!=="comment"}function n8(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 r8(e){const t=zn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ud(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function a8(e,t,n){const r=uk(n,t),a=zn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Vb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function i8(e,t,n){const r=uk(n,t),a=zn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Vb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const o8=/[A-Z]/g,zA=/-[a-z]/g,s8=/^data[-\w.:]+$/i;function Hd(e,t){const n=fd(t);let r=t,a=$r;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&s8.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(zA,c8);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!zA.test(o)){let l=o.replace(o8,l8);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Gb}return new a(r,t)}function l8(e){return"-"+e.toLowerCase()}function c8(e){return e.charAt(1).toUpperCase()}const xh={name:[[`
|
|
56
|
+
\f\r &/=>`.split(""),`
|
|
57
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
58
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
59
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
60
|
+
\f\r &>`.split(""),`\0
|
|
61
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
62
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
63
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function u8(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=Gi);const f=d8(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!o||!e8(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!o||!Vb(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function d8(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=f8(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 f8(e,t,n){const r=Hd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=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 d=Gl(r.attribute,Object.assign({},e.settings.characterReferences,{subset:xh.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?im:om)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Gl(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:xh.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&_p(n,l)>_p(n,e.alternative)&&(l=e.alternative),c=l+Gl(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?xh.single:xh.double)[a][o],attribute:!0}))+l),d+(c&&"="+c))}const h8=["<","&"];function hk(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:h8}))}function p8(e,t,n,r){return r.settings.allowDangerousHtml?e.value:hk(e,t,n,r)}function m8(e,t,n,r){return r.all(e)}const g8=am("type",{invalid:y8,unknown:b8,handlers:{comment:$7,doctype:F7,element:u8,raw:p8,root:m8,text:hk}});function y8(e){throw new Error("Expected node, not `"+e+"`")}function b8(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const E8={},v8={},T8=[];function _8(e,t){const n=E8,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:x8,all:A8,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||tk,characterReferences:n.characterReferences||v8,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Gi:ic,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function x8(e,t,n){return g8(e,t,n,this)}function A8(e){const t=[],n=e&&e.children||T8;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function S8(e){return Array.isArray(e)?e:[e]}function sm(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 l=t?n[o]+(n[o+1]||""):n[o];a.push([l,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function qb(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pk(e){return e==="ansi"||qb(e)}function Yb(e){return e==="none"}function mk(e){return Yb(e)}function gk(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 C8(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 D8(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(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return o.length?C8(a,o):a})):e}async function yk(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function xp(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 bs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function bk(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&ji.Italic&&(t["font-style"]="italic"),e.fontStyle&ji.Bold&&(t["font-weight"]="bold"),e.fontStyle&ji.Underline&&(t["text-decoration"]="underline")),t}function k8(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function R8(e){const t=sm(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,l=0;for(const c of t){if(o<c.length)break;o-=c.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}let Tr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const Ek=new WeakMap;function lm(e,t){Ek.set(e,t)}function hd(e){return Ek.get(e)}let cm=class vk{_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 vk(Object.fromEntries(S8(n).map(r=>[r,my])),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 GA(this._stacks[this.theme])}getScopes(t=this.theme){return GA(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function GA(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 I8(e,t){if(!(e instanceof cm))throw new Tr("Invalid grammar state");return e.getInternalStack(t)}function w8(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new Tr(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new Tr(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new Tr(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=R8(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));N8(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 D8(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 Tr(`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,m,y,b){const T=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),y===0&&(x=0),y===Number.POSITIVE_INFINITY&&(x=T.children.length),C===-1||x===-1)for(let S=0;S<T.children.length;S++)A+=Tk(T.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===y&&(x=S+1);if(C===-1)throw new Tr(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(x===-1)throw new Tr(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const D=T.children.slice(C,x);if(!b.alwaysWrap&&D.length===T.children.length)c(T,b,"line");else if(!b.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],b,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,b,"wrapper"),T.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,y){const b=m.properties||{},T=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},m.properties?.class&&gk(p,m.properties.class),p=T(p,y)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:y}=p;if(m.line===y.line)o(m.line,m.character,y.character,p);else if(m.line<y.line){o(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let b=m.line+1;b<y.line;b++)d.unshift(()=>l(b,p));o(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function N8(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Tr(`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,l=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,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||c||d){if(l&&l||c&&d)continue;throw new Tr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Tk(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Tk).join(""):""}const O8=[w8()];function Ap(e){return[...e.transformers||[],...O8]}var Es=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],l1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function L8(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 VA(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(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(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 M8(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)l1[a]&&t.push({type:"setDecoration",value:l1[a]});else if(a<=29){const o=l1[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Es[a-30]}});else if(a===38){const[o,l]=VA(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Es[a-40]}});else if(a===48){const[o,l]=VA(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Es[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Es[a-100+8]}})}return t}function P8(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=L8(r,o),c=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=M8(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=l.position}while(o<r.length);return a}}}var $8={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 F8(e=$8){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<Es.length;f++)r.push(t(Es[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function o(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:l}}function j8(e,t,n){const r=xp(e,n),a=sm(t),o=F8(Object.fromEntries(Es.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=P8();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?o.value(d.background):e.bg,p=d.foreground?o.value(d.foreground):e.fg):(f=d.foreground?o.value(d.foreground):e.fg,p=d.background?o.value(d.background):void 0),f=bs(f,r),p=bs(p,r),d.decorations.has("dim")&&(f=B8(f));let m=ji.None;return d.decorations.has("bold")&&(m|=ji.Bold),d.decorations.has("italic")&&(m|=ji.Italic),d.decorations.has("underline")&&(m|=ji.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function B8(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 Qb(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(qb(r)||Yb(a))return sm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return j8(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Bi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Bi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return H8(t,c,o,l,n)}function U8(...e){if(e.length===2)return hd(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(qb(a)||Yb(o))throw new Bi("Plain language does not have grammar state");if(a==="ansi")throw new Bi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(o),d=t.getLanguage(a);return new cm(Sp(n,d,l,c,r).stateStack,d.name,l.name)}function H8(e,t,n,r,a){const o=Sp(e,t,n,r,a),l=new cm(Sp(e,t,n,r,a).stateStack,t.name,n.name);return lm(o.tokens,l),o.tokens}function Sp(e,t,n,r,a){const o=xp(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=sm(e);let f=a.grammarState?I8(a.grammarState,n.name)??my:a.grammarContextCode!=null?Sp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:my,p=[];const m=[];for(let y=0,b=d.length;y<b;y++){const[T,A]=d[y];if(T===""){p=[],m.push([]);continue}if(l>0&&T.length>=l){p=[],m.push([{content:T,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(T,f),x=C.tokens,D=0);const S=t.tokenizeLine2(T,f,c),M=S.tokens.length/2;for(let L=0;L<M;L++){const I=S.tokens[2*L],V=L+1<M?S.tokens[2*L+2]:T.length;if(I===V)continue;const ne=S.tokens[2*L+1],K=bs(r[Xl.getForeground(ne)],o),k=Xl.getFontStyle(ne),H={content:T.substring(I,V),offset:A+I,color:K,fontStyle:k};if(a.includeExplanation){const Q=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(G=>G.trim());break;case"object":me=re.scope;break;default:continue}Q.push({settings:re,selectors:me.map(G=>G.split(/ /))})}H.explanation=[];let W=0;for(;I+W<V;){const re=x[D],me=T.substring(re.startIndex,re.endIndex);W+=me.length,H.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?z8(re.scopes):G8(Q,re.scopes)}),D+=1}}p.push(H)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function z8(e){return e.map(t=>({scopeName:t}))}function G8(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:q8(e,o,t.slice(0,r))}}return n}function qA(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function V8(e,t,n){if(!qA(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)qA(e[r],n[a])&&(r-=1),a-=1;return r===-1}function q8(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(V8(l,t,n)){r.push(o);break}return r}function _k(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=Qb(e,t,{...n,theme:d.theme}),p=hd(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),o=Y8(...a.map(d=>d.tokens)),l=o[0].map((d,f)=>d.map((p,m)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),o.forEach((b,T)=>{const{content:A,explanation:C,offset:x,...D}=b[f][m];y.variants[r[T].color]=D}),y})),c=a[0].state?new cm(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&lm(l,c),l}function Y8(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),o=t.map(()=>[]);t.forEach((d,f)=>d.push(o[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(o[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(o[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function Cp(e,t,n){let r,a,o,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new Bi("`themes` option must not be empty");const y=_k(e,t,n);if(d=hd(y),f&&!m.find(C=>C.color===f))throw new Bi(`\`themes\` option must contain the defaultColor key \`${f}\``);const b=m.map(C=>e.getTheme(C.theme)),T=m.map(C=>C.color);o=y.map(C=>C.map(x=>Q8(x,T,p,f))),d&&lm(o,d);const A=m.map(C=>xp(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(bs(b[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(bs(b[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${b.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=xp(n.theme,n);o=Qb(e,t,n);const p=e.getTheme(n.theme);r=bs(p.bg,f),a=bs(p.fg,f),l=p.name,d=hd(o)}else throw new Bi("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function Q8(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>bk(e.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={};return o.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,b=n+t[f]+(p==="color"?"":y);c[b]=m}}}),a.htmlStyle=c,a}function Dp(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>Dp(e,a,o),codeToTokens:(a,o)=>Cp(e,a,o)}){let a=t;for(const b of Ap(n))a=b.preprocess?.call(r,a,n)||a;let{tokens:o,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=Cp(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?o=W8(o):m==="never"&&(o=X8(o));const y={...r,get source(){return a}};for(const b of Ap(n))o=b.tokens?.call(y,o)||o;return K8(o,{...n,fg:l,bg:c,themeName:d,rootStyle:f},y,p)}function K8(e,t,n,r=hd(e)){const a=Ap(t),o=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([T])=>!T.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const m=[],y={...n,structure:c,addClassToHast:gk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((T,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
64
|
+
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of T){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const M=k8(D.htmlStyle||bk(D));M&&(S.properties.style=M);for(const L of a)S=L?.span?.call(y,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(y,C,A+1)||C;m.push(C),o.push(C)}}),c==="classic"){for(const T of a)p=T?.code?.call(y,p)||p;f.children.push(p);for(const T of a)f=T?.pre?.call(y,f)||f;l.children.push(f)}let b=l;for(const T of a)b=T?.root?.call(y,b)||b;return r&&lm(b,r),b}function W8(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const c=!(o.fontStyle&&o.fontStyle&ji.Underline);c&&o.content.match(/^\s+$/)&&t[l+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 X8(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,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+o.length}),c}))}function Z8(e,t,n){const r={meta:{},options:n,codeToHast:(o,l)=>Dp(e,o,l),codeToTokens:(o,l)=>Cp(e,o,l)};let a=_8(Dp(e,t,n,r));for(const o of Ap(n))a=o.postprocess?.call(r,a,n)||a;return a}const YA={light:"#333333",dark:"#bbbbbb"},QA={light:"#fffffe",dark:"#1e1e1e"},KA="__shiki_resolved";function Kb(e){if(e?.[KA])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(d=>!d.name&&!d.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"?YA.light:YA.dark),n||(n=t.type==="light"?QA.light:QA.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 l(c){if(o.has(c))return o.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(o.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}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 d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,KA,{enumerable:!1,writable:!1,value:!0}),t}async function xk(e){return Array.from(new Set((await Promise.all(e.filter(t=>!pk(t)).map(async t=>await yk(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Ak(e){return(await Promise.all(e.map(async t=>mk(t)?null:Kb(await yk(t))))).filter(t=>!!t)}let J8=class extends p7{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=Kb(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=yp.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 Tr(`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,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(o=>!r.includes(o));throw new Tr(`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))}},e$=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}},pu=0;function t$(e){pu+=1,e.warnings!==!1&&pu>=10&&pu%10===0&&console.warn(`[Shiki] ${pu} 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 Tr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Kb),a=new e$(e.engine,n),o=new J8(a,r,n,e.langAlias);let l;function c(D){C();const S=o.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new Tr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=o.getTheme(D);if(!S)throw new Tr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(o.setTheme(S),l=D);const M=o.getColorMap();return{theme:S,colorMap:M}}function p(){return C(),o.getLoadedThemes()}function m(){return C(),o.getLoadedLanguages()}function y(...D){C(),o.loadLanguages(D.flat(1))}async function b(...D){return y(await xk(D))}function T(...D){C();for(const S of D.flat(1))o.loadTheme(S)}async function A(...D){return C(),T(await Ak(D))}function C(){if(t)throw new Tr("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),pu-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:b,loadLanguageSync:y,loadTheme:A,loadThemeSync:T,dispose:x,[Symbol.dispose]:x}}async function n$(e={}){e.loadWasm;const[t,n,r]=await Promise.all([Ak(e.themes||[]),xk(e.langs||[]),e.engine||jD(e.loadWasm||kP())]);return t$({...e,themes:t,langs:n,engine:r})}async function r$(e={}){const t=await n$(e);return{getLastGrammarState:(...n)=>U8(t,...n),codeToTokensBase:(n,r)=>Qb(t,n,r),codeToTokensWithThemes:(n,r)=>_k(t,n,r),codeToTokens:(n,r)=>Cp(t,n,r),codeToHast:(n,r)=>Dp(t,n,r),codeToHtml:(n,r)=>Z8(t,n,r),...t,getInternalContext:()=>t}}function a$(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function l(c){function d(b){if(typeof b=="string"){if(pk(b))return[];const T=r[b];if(!T)throw new Bi(`Language \`${b}\` is not included in this bundle. You may want to load it from external source.`);return T}return b}function f(b){if(mk(b))return"none";if(typeof b=="string"){const T=a[b];if(!T)throw new Bi(`Theme \`${b}\` is not included in this bundle. You may want to load it from external source.`);return T}return b}const p=(c.themes??[]).map(b=>f(b)),m=(c.langs??[]).map(b=>d(b)),y=await r$({engine:c.engine??o(),...c,themes:p,langs:m});return{...y,loadLanguage(...b){return y.loadLanguage(...b.map(d))},loadTheme(...b){return y.loadTheme(...b.map(f))}}}return l}const i$=a$({langs:lP,themes:uP,engine:()=>jD(F(()=>import("./index.es237-CG6Dc4jp.js"),[]))}),c1={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"}]}}},o$={...c1,patterns:[...c1.patterns,{include:"#docvar"}],repository:{...c1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},s$={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"}]}}},Sk="catppuccin-latte",l$=i$({themes:[Sk],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...o$},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...s$}]});async function pd(e,t){return(await l$).codeToHtml(e,{lang:t,theme:Sk})}function Ck(e,t){return function(){return e.apply(t,arguments)}}const{toString:c$}=Object.prototype,{getPrototypeOf:Wb}=Object,{iterator:um,toStringTag:Dk}=Symbol,dm=(e=>t=>{const n=c$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>dm(t)===e),fm=e=>t=>typeof t===e,{isArray:oc}=Array,md=fm("undefined");function zd(e){return e!==null&&!md(e)&&e.constructor!==null&&!md(e.constructor)&&Lr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kk=$a("ArrayBuffer");function u$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kk(e.buffer),t}const d$=fm("string"),Lr=fm("function"),Rk=fm("number"),Gd=e=>e!==null&&typeof e=="object",f$=e=>e===!0||e===!1,Gh=e=>{if(dm(e)!=="object")return!1;const t=Wb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Dk in e)&&!(um in e)},h$=e=>{if(!Gd(e)||zd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},p$=$a("Date"),m$=$a("File"),g$=$a("Blob"),y$=$a("FileList"),b$=e=>Gd(e)&&Lr(e.pipe),E$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Lr(e.append)&&((t=dm(e))==="formdata"||t==="object"&&Lr(e.toString)&&e.toString()==="[object FormData]"))},v$=$a("URLSearchParams"),[T$,_$,x$,A$]=["ReadableStream","Request","Response","Headers"].map($a),S$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),oc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(zd(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(r=0;r<l;r++)c=o[r],t.call(null,e[c],c,e)}}function Ik(e,t){if(zd(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 vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wk=e=>!md(e)&&e!==vs;function Ty(){const{caseless:e}=wk(this)&&this||{},t={},n=(r,a)=>{const o=e&&Ik(t,a)||a;Gh(t[o])&&Gh(r)?t[o]=Ty(t[o],r):Gh(r)?t[o]=Ty({},r):oc(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Vd(arguments[r],n);return t}const C$=(e,t,n,{allOwnKeys:r}={})=>(Vd(t,(a,o)=>{n&&Lr(a)?e[o]=Ck(a,n):e[o]=a},{allOwnKeys:r}),e),D$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),k$=(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)},R$=(e,t,n,r)=>{let a,o,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)l=a[o],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Wb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},I$=(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},w$=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!Rk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},N$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wb(Uint8Array)),O$=(e,t)=>{const r=(e&&e[um]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},L$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},M$=$a("HTMLFormElement"),P$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),WA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$$=$a("RegExp"),Nk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vd(n,(a,o)=>{let l;(l=t(a,o,e))!==!1&&(r[o]=l||a)}),Object.defineProperties(e,r)},F$=e=>{Nk(e,(t,n)=>{if(Lr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Lr(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+"'")})}})},j$=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return oc(e)?r(e):r(String(e).split(t)),n},B$=()=>{},U$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function H$(e){return!!(e&&Lr(e.append)&&e[Dk]==="FormData"&&e[um])}const z$=e=>{const t=new Array(10),n=(r,a)=>{if(Gd(r)){if(t.indexOf(r)>=0)return;if(zd(r))return r;if(!("toJSON"in r)){t[a]=r;const o=oc(r)?[]:{};return Vd(r,(l,c)=>{const d=n(l,a+1);!md(d)&&(o[c]=d)}),t[a]=void 0,o}}return r};return n(e,0)},G$=$a("AsyncFunction"),V$=e=>e&&(Gd(e)||Lr(e))&&Lr(e.then)&&Lr(e.catch),Ok=((e,t)=>e?setImmediate:t?((n,r)=>(vs.addEventListener("message",({source:a,data:o})=>{a===vs&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),vs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Lr(vs.postMessage)),q$=typeof queueMicrotask<"u"?queueMicrotask.bind(vs):typeof process<"u"&&process.nextTick||Ok,Y$=e=>e!=null&&Lr(e[um]),de={isArray:oc,isArrayBuffer:kk,isBuffer:zd,isFormData:E$,isArrayBufferView:u$,isString:d$,isNumber:Rk,isBoolean:f$,isObject:Gd,isPlainObject:Gh,isEmptyObject:h$,isReadableStream:T$,isRequest:_$,isResponse:x$,isHeaders:A$,isUndefined:md,isDate:p$,isFile:m$,isBlob:g$,isRegExp:$$,isFunction:Lr,isStream:b$,isURLSearchParams:v$,isTypedArray:N$,isFileList:y$,forEach:Vd,merge:Ty,extend:C$,trim:S$,stripBOM:D$,inherits:k$,toFlatObject:R$,kindOf:dm,kindOfTest:$a,endsWith:I$,toArray:w$,forEachEntry:O$,matchAll:L$,isHTMLForm:M$,hasOwnProperty:WA,hasOwnProp:WA,reduceDescriptors:Nk,freezeMethods:F$,toObjectSet:j$,toCamelCase:P$,noop:B$,toFiniteNumber:U$,findKey:Ik,global:vs,isContextDefined:wk,isSpecCompliantForm:H$,toJSONObject:z$,isAsyncFn:G$,isThenable:V$,setImmediate:Ok,asap:q$,isIterable:Y$};function ut(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)}de.inherits(ut,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:de.toJSONObject(this.config),code:this.code,status:this.status}}});const Lk=ut.prototype,Mk={};["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=>{Mk[e]={value:e}});Object.defineProperties(ut,Mk);Object.defineProperty(Lk,"isAxiosError",{value:!0});ut.from=(e,t,n,r,a,o)=>{const l=Object.create(Lk);return de.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),ut.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const Q$=null;function _y(e){return de.isPlainObject(e)||de.isArray(e)}function Pk(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function XA(e,t,n){return e?e.concat(t).map(function(a,o){return a=Pk(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function K$(e){return de.isArray(e)&&!e.some(_y)}const W$=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function hm(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!de.isUndefined(C[A])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(de.isDate(T))return T.toISOString();if(de.isBoolean(T))return T.toString();if(!d&&de.isBlob(T))throw new ut("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(T)||de.isTypedArray(T)?d&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function p(T,A,C){let x=T;if(T&&!C&&typeof T=="object"){if(de.endsWith(A,"{}"))A=r?A:A.slice(0,-2),T=JSON.stringify(T);else if(de.isArray(T)&&K$(T)||(de.isFileList(T)||de.endsWith(A,"[]"))&&(x=de.toArray(T)))return A=Pk(A),x.forEach(function(S,M){!(de.isUndefined(S)||S===null)&&t.append(l===!0?XA([A],M,o):l===null?A:A+"[]",f(S))}),!1}return _y(T)?!0:(t.append(XA(C,A,o),f(T)),!1)}const m=[],y=Object.assign(W$,{defaultVisitor:p,convertValue:f,isVisitable:_y});function b(T,A){if(!de.isUndefined(T)){if(m.indexOf(T)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(T),de.forEach(T,function(x,D){(!(de.isUndefined(x)||x===null)&&a.call(t,x,de.isString(D)?D.trim():D,A,y))===!0&&b(x,A?A.concat(D):[D])}),m.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ZA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xb(e,t){this._pairs=[],e&&hm(e,this,t)}const $k=Xb.prototype;$k.append=function(t,n){this._pairs.push([t,n])};$k.toString=function(t){const n=t?function(r){return t.call(this,r,ZA)}:ZA;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function X$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fk(e,t,n){if(!t)return e;const r=n&&n.encode||X$;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=de.isURLSearchParams(t)?t.toString():new Xb(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class JA{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){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z$=typeof URLSearchParams<"u"?URLSearchParams:Xb,J$=typeof FormData<"u"?FormData:null,e9=typeof Blob<"u"?Blob:null,t9={isBrowser:!0,classes:{URLSearchParams:Z$,FormData:J$,Blob:e9},protocols:["http","https","file","blob","url","data"]},Zb=typeof window<"u"&&typeof document<"u",xy=typeof navigator=="object"&&navigator||void 0,n9=Zb&&(!xy||["ReactNative","NativeScript","NS"].indexOf(xy.product)<0),r9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",a9=Zb&&window.location.href||"http://localhost",i9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zb,hasStandardBrowserEnv:n9,hasStandardBrowserWebWorkerEnv:r9,navigator:xy,origin:a9},Symbol.toStringTag,{value:"Module"})),cr={...i9,...t9};function o9(e,t){return hm(e,new cr.classes.URLSearchParams,{visitor:function(n,r,a,o){return cr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function s9(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l9(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 Bk(e){function t(n,r,a,o){let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=o>=n.length;return l=!l&&de.isArray(a)?a.length:l,d?(de.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!de.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],o)&&de.isArray(a[l])&&(a[l]=l9(a[l])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(s9(r),a,n,0)}),n}return null}function c9(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qd={transitional:jk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=de.isObject(t);if(o&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(Bk(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.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 o9(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return hm(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),c9(t)):t}],transformResponse:[function(t){const n=this.transitional||qd.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ut.from(c,ut.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:cr.classes.FormData,Blob:cr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{qd.headers[e]={}});const u9=de.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"]),d9=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
65
|
+
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&u9[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},eS=Symbol("internals");function mu(e){return e&&String(e).trim().toLowerCase()}function Vh(e){return e===!1||e==null?e:de.isArray(e)?e.map(Vh):String(e)}function f9(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 h9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u1(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function p9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function m9(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,l){return this[r].call(this,t,a,o,l)},configurable:!0})})}let Mr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,d,f){const p=mu(d);if(!p)throw new Error("header name must be a non-empty string");const m=de.findKey(a,p);(!m||a[m]===void 0||f===!0||f===void 0&&a[m]!==!1)&&(a[m||d]=Vh(c))}const l=(c,d)=>de.forEach(c,(f,p)=>o(f,p,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!h9(t))l(d9(t),n);else if(de.isObject(t)&&de.isIterable(t)){let c={},d,f;for(const p of t){if(!de.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(d=c[f])?de.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=mu(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return f9(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mu(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||u1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(l){if(l=mu(l),l){const c=de.findKey(r,l);c&&(!n||u1(r,r[c],c,n))&&(delete r[c],a=!0)}}return de.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||u1(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,o)=>{const l=de.findKey(r,o);if(l){n[l]=Vh(a),delete n[o];return}const c=t?p9(o):String(o).trim();c!==o&&delete n[o],n[c]=Vh(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.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(`
|
|
66
|
+
`)}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[eS]=this[eS]={accessors:{}}).accessors,a=this.prototype;function o(l){const c=mu(l);r[c]||(m9(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(o):o(t),this}};Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Mr);function d1(e,t){const n=this||qd,r=t||n,a=Mr.from(r.headers);let o=r.data;return de.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Uk(e){return!!(e&&e.__CANCEL__)}function sc(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(sc,ut,{__CANCEL__:!0});function Hk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function g9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function y9(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[o];l||(l=f),n[a]=d,r[a]=f;let m=o,y=0;for(;m!==a;)y+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),f-l<t)return;const b=p&&f-p;return b?Math.round(y*1e3/b):void 0}}function b9(e,t){let n=0,r=1e3/t,a,o;const l=(f,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,o||(o=setTimeout(()=>{o=null,l(a)},r-m)))},()=>a&&l(a)]}const kp=(e,t,n=3)=>{let r=0;const a=y9(50,250);return b9(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},tS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nS=e=>(...t)=>de.asap(()=>e(...t)),E9=cr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,cr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(cr.origin),cr.navigator&&/(msie|trident)/i.test(cr.navigator.userAgent)):()=>!0,v9=cr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.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 T9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zk(e,t,n){let r=!T9(t);return e&&(r||n==!1)?_9(e,t):t}const rS=e=>e instanceof Mr?{...e}:e;function ws(e,t){t=t||{};const n={};function r(f,p,m,y){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:y},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,y){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,y)}else return r(f,p,m,y)}function o(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(rS(f),rS(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,y=m(e[p],t[p],p);de.isUndefined(y)&&m!==c||(n[p]=y)}),n}const Gk=e=>{const t=ws({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:c}=t;t.headers=l=Mr.from(l),t.url=Fk(zk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(cr.hasStandardBrowserEnv||cr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(cr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&E9(t.url))){const f=a&&o&&v9.read(o);f&&l.set(a,f)}return t},x9=typeof XMLHttpRequest<"u",A9=x9&&function(e){return new Promise(function(n,r){const a=Gk(e);let o=a.data;const l=Mr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,y,b,T;function A(){b&&b(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Mr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};Hk(function(V){n(V),A()},function(V){r(V),A()},L),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ut("Request aborted",ut.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ut("Network Error",ut.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const L=a.transitional||jk;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),r(new ut(M,L.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,C)),C=null},o===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(M,L){C.setRequestHeader(L,M)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([y,T]=kp(f,!0),C.addEventListener("progress",y)),d&&C.upload&&([m,b]=kp(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new sc(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=g9(a.url);if(D&&cr.protocols.indexOf(D)===-1){r(new ut("Unsupported protocol "+D+":",ut.ERR_BAD_REQUEST,e));return}C.send(o||null)})},S9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ut?p:new sc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,o(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},C9=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},D9=async function*(e,t){for await(const n of k9(e))yield*C9(n,t)},k9=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()}},aS=(e,t,n,r)=>{const a=D9(e,t);let o=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let y=o+=m;n(y)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},pm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vk=pm&&typeof ReadableStream=="function",R9=pm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},I9=Vk&&qk(()=>{let e=!1;const t=new Request(cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),iS=64*1024,Ay=Vk&&qk(()=>de.isReadableStream(new Response("").body)),Rp={stream:Ay&&(e=>e.body)};pm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rp[t]&&(Rp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ut(`Response type '${t}' is not supported`,ut.ERR_NOT_SUPPORT,r)})})})(new Response);const w9=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(cr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await R9(e)).byteLength},N9=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??w9(t)},O9=pm&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:y}=Gk(e);f=f?(f+"").toLowerCase():"text";let b=S9([a,o&&o.toAbortSignal()],l),T;const A=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(d&&I9&&n!=="get"&&n!=="head"&&(C=await N9(p,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(de.isFormData(r)&&(I=L.headers.get("content-type"))&&p.setContentType(I),L.body){const[V,ne]=tS(C,kp(nS(d)));r=aS(L.body,iS,V,ne)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;T=new Request(t,{...y,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(T,y);const S=Ay&&(f==="stream"||f==="response");if(Ay&&(c||S&&A)){const L={};["status","statusText","headers"].forEach(K=>{L[K]=D[K]});const I=de.toFiniteNumber(D.headers.get("content-length")),[V,ne]=c&&tS(I,kp(nS(c),!0))||[];D=new Response(aS(D.body,iS,V,()=>{ne&&ne(),A&&A()}),L)}f=f||"text";let M=await Rp[de.findKey(Rp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((L,I)=>{Hk(L,I,{data:M,headers:Mr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:T})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,T),{cause:x.cause||x}):ut.from(x,x&&x.code,e,T)}}),Sy={http:Q$,xhr:A9,fetch:O9};de.forEach(Sy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oS=e=>`- ${e}`,L9=e=>de.isFunction(e)||e===null||e===!1,Yk={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!L9(n)&&(r=Sy[(l=String(n)).toLowerCase()],r===void 0))throw new ut(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
|
|
67
|
+
`+o.map(oS).join(`
|
|
68
|
+
`):" "+oS(o[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Sy};function f1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sc(null,e)}function sS(e){return f1(e),e.headers=Mr.from(e.headers),e.data=d1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yk.getAdapter(e.adapter||qd.adapter)(e).then(function(r){return f1(e),r.data=d1.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return Uk(r)||(f1(e),r&&r.response&&(r.response.data=d1.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const Qk="1.11.0",mm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lS={};mm.transitional=function(t,n,r){function a(o,l){return"[Axios v"+Qk+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,c)=>{if(t===!1)throw new ut(a(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!lS[l]&&(lS[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};mm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function M9(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new ut("option "+o+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const qh={assertOptions:M9,validators:mm},Qa=qh.validators;let Cs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new JA,response:new JA}}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+=`
|
|
69
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ws(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&qh.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:qh.assertOptions(a,{encode:Qa.function,serialize:Qa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),qh.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],T=>{delete o[T]}),n.headers=Mr.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const T=[sS.bind(this),void 0];for(T.unshift(...c),T.push(...f),y=T.length,p=Promise.resolve(n);m<y;)p=p.then(T[m++],T[m++]);return p}y=c.length;let b=n;for(m=0;m<y;){const T=c[m++],A=c[m++];try{b=T(b)}catch(C){A.call(this,C);break}}try{p=sS.call(this,b)}catch(T){return Promise.reject(T)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=ws(this.defaults,t);const n=zk(t.baseURL,t.url,t.allowAbsoluteUrls);return Fk(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){Cs.prototype[t]=function(n,r){return this.request(ws(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(ws(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Cs.prototype[t]=n(),Cs.prototype[t+"Form"]=n(!0)});let P9=class Kk{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 l=new Promise(c=>{r.subscribe(c),o=c}).then(a);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new sc(o,l,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 Kk(function(a){t=a}),cancel:t}}};function $9(e){return function(n){return e.apply(null,n)}}function F9(e){return de.isObject(e)&&e.isAxiosError===!0}const Cy={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(Cy).forEach(([e,t])=>{Cy[t]=e});function Wk(e){const t=new Cs(e),n=Ck(Cs.prototype.request,t);return de.extend(n,Cs.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Wk(ws(e,a))},n}const rt=Wk(qd);rt.Axios=Cs;rt.CanceledError=sc;rt.CancelToken=P9;rt.isCancel=Uk;rt.VERSION=Qk;rt.toFormData=hm;rt.AxiosError=ut;rt.Cancel=rt.CanceledError;rt.all=function(t){return Promise.all(t)};rt.spread=$9;rt.isAxiosError=F9;rt.mergeConfig=ws;rt.AxiosHeaders=Mr;rt.formToJSON=e=>Bk(de.isHTMLForm(e)?new FormData(e):e);rt.getAdapter=Yk.getAdapter;rt.HttpStatusCode=Cy;rt.default=rt;const{Axios:pae,AxiosError:mae,CanceledError:gae,isCancel:yae,CancelToken:bae,VERSION:Eae,all:vae,Cancel:Tae,isAxiosError:_ae,spread:xae,toFormData:Aae,AxiosHeaders:Sae,HttpStatusCode:Cae,formToJSON:Dae,getAdapter:kae,mergeConfig:Rae}=rt,Ht="http://localhost/api/v0".replace(/\/+$/,"");let Ho=class{constructor(t,n=Ht,r=rt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},j9=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Yt={},Qt="https://example.com",et=function(e,t,n){if(n==null)throw new j9(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Dy(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Dy(e,r,n)):Object.keys(t).forEach(r=>Dy(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Kt=function(e,...t){const n=new URLSearchParams(e.search);Dy(n,t),e.search=n.toString()},gd=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||""},Wt=function(e){return e.pathname+e.search+e.hash},Xt=function(e,t,n,r){return(a=t,o=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(l)}},B9=function(e){return{getConnection:async(t,n,r={})=>{et("getConnection","projectName",t),et("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{et("getQuerydata","projectName",t),et("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Wt(c),options:f}},getSqlsource:async(t,n,r,a={})=>{et("getSqlsource","projectName",t),et("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}},getTablesource:async(t,n,r,a,o={})=>{et("getTablesource","projectName",t),et("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Wt(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{et("getTemporarytable","projectName",t),et("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}},listConnections:async(t,n={})=>{et("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Kt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},listSchemas:async(t,n,r={})=>{et("listSchemas","projectName",t),et("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(o),options:c}},listTables:async(t,n,r,a={})=>{et("listTables","projectName",t),et("listTables","connectionName",n),et("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))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};Kt(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:Wt(l),options:d}},testConnection:async(t,n,r={})=>{et("testConnection","projectName",t),et("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{et("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Qt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Kt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=gd(t,l,e),{url:Wt(a),options:l}}}},Ka=function(e){const t=B9(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async getQuerydata(n,r,a,o,l){const c=await t.getQuerydata(n,r,a,o,l),d=e?.serverIndex??0,f=Yt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async getSqlsource(n,r,a,o){const l=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,d=Yt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async getTablesource(n,r,a,o,l){const c=await t.getTablesource(n,r,a,o,l),d=e?.serverIndex??0,f=Yt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async getTemporarytable(n,r,a,o){const l=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,d=Yt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,l=Yt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async listTables(n,r,a,o){const l=await t.listTables(n,r,a,o),c=e?.serverIndex??0,d=Yt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.testConnection"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,l=Yt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)}}};let Xk=class extends Ho{getConnection(t,n,r){return Ka(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ka(this.configuration).getQuerydata(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ka(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ka(this.configuration).getTablesource(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ka(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Ka(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ka(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ka(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Ka(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Ka(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const U9=function(e){return{listDatabases:async(t,n,r,a={})=>{et("listDatabases","projectName",t),et("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},H9=function(e){const t=U9(e);return{async listDatabases(n,r,a,o){const l=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,d=Yt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let z9=class extends Ho{listDatabases(t,n,r,a){return H9(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const G9=function(e){return{getModel:async(t,n,r,a,o={})=>{et("getModel","projectName",t),et("getModel","packageName",n),et("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Wt(c),options:f}},listModels:async(t,n,r,a={})=>{et("listModels","projectName",t),et("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},cS=function(e){const t=G9(e);return{async getModel(n,r,a,o,l){const c=await t.getModel(n,r,a,o,l),d=e?.serverIndex??0,f=Yt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listModels(n,r,a,o){const l=await t.listModels(n,r,a,o),c=e?.serverIndex??0,d=Yt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let gm=class extends Ho{getModel(t,n,r,a,o){return cS(this.configuration).getModel(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return cS(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const V9=function(e){return{getNotebook:async(t,n,r,a,o={})=>{et("getNotebook","projectName",t),et("getNotebook","packageName",n),et("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Wt(c),options:f}},listNotebooks:async(t,n,r,a={})=>{et("listNotebooks","projectName",t),et("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},uS=function(e){const t=V9(e);return{async getNotebook(n,r,a,o,l){const c=await t.getNotebook(n,r,a,o,l),d=e?.serverIndex??0,f=Yt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listNotebooks(n,r,a,o){const l=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,d=Yt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let Zk=class extends Ho{getNotebook(t,n,r,a,o){return uS(this.configuration).getNotebook(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return uS(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const q9=function(e){return{createPackage:async(t,n,r={})=>{et("createPackage","projectName",t),et("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",Kt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=gd(n,c,e),{url:Wt(o),options:c}},deletePackage:async(t,n,r={})=>{et("deletePackage","projectName",t),et("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};Kt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{et("getPackage","projectName",t),et("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Wt(c),options:f}},listPackages:async(t,n={})=>{et("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Kt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},updatePackage:async(t,n,r,a={})=>{et("updatePackage","projectName",t),et("updatePackage","packageName",n),et("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=gd(r,d,e),{url:Wt(l),options:d}}}},gu=function(e){const t=q9(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=Yt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=Yt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async getPackage(n,r,a,o,l){const c=await t.getPackage(n,r,a,o,l),d=e?.serverIndex??0,f=Yt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,l=Yt["PackagesApi.listPackages"]?.[o]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async updatePackage(n,r,a,o){const l=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,d=Yt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let Jk=class extends Ho{createPackage(t,n,r){return gu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return gu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return gu(this.configuration).getPackage(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return gu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return gu(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const Y9=function(e){return{createProject:async(t,n={})=>{et("createProject","body",t);const r="/projects",a=new URL(r,Qt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Kt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=gd(t,l,e),{url:Wt(a),options:l}},deleteProject:async(t,n={})=>{et("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...n},c={};Kt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},getProject:async(t,n,r={})=>{et("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),Kt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:Wt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Qt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},l={};Kt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...l,...c,...t.headers},{url:Wt(r),options:o}},updateProject:async(t,n,r={})=>{et("updateProject","projectName",t),et("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",Kt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=gd(n,c,e),{url:Wt(o),options:c}}}},yu=function(e){const t=Y9(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,l=Yt["ProjectsApi.createProject"]?.[o]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,l=Yt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async getProject(n,r,a){const o=await t.getProject(n,r,a),l=e?.serverIndex??0,c=Yt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=Yt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>Xt(r,rt,Ht,e)(l,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=Yt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>Xt(o,rt,Ht,e)(d,c||f)}}};let e3=class extends Ho{createProject(t,n){return yu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return yu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return yu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return yu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return yu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const Q9=function(e){return{executeQuery:async(t,n,r,a,o,l,c,d={})=>{et("executeQuery","projectName",t),et("executeQuery","packageName",n),et("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,Qt);let m;e&&(m=e.baseOptions);const y={method:"GET",...m,...d},b={},T={};a!==void 0&&(T.query=a),o!==void 0&&(T.sourceName=o),l!==void 0&&(T.queryName=l),c!==void 0&&(T.versionId=c),Kt(p,T);let A=m&&m.headers?m.headers:{};return y.headers={...b,...A,...d.headers},{url:Wt(p),options:y}}}},K9=function(e){const t=Q9(e);return{async executeQuery(n,r,a,o,l,c,d,f){const p=await t.executeQuery(n,r,a,o,l,c,d,f),m=e?.serverIndex??0,y=Yt["QueryresultsApi.executeQuery"]?.[m]?.url;return(b,T)=>Xt(p,rt,Ht,e)(b,y||T)}}};let Jb=class extends Ho{executeQuery(t,n,r,a,o,l,c,d){return K9(this.configuration).executeQuery(t,n,r,a,o,l,c,d).then(f=>f(this.axios,this.basePath))}};const W9=function(e){return{listSchedules:async(t,n,r,a={})=>{et("listSchedules","projectName",t),et("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},X9=function(e){const t=W9(e);return{async listSchedules(n,r,a,o){const l=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,d=Yt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let Z9=class extends Ho{listSchedules(t,n,r,a){return X9(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}},rr=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 t3=N.createContext(void 0),Ip=({projectName:e,packageName:t,versionId:n,children:r})=>E.jsx(t3.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function ta(e=!0){const t=N.useContext(t3);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}var lc=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(){}},Ns=typeof window>"u"||"Deno"in globalThis;function vr(){}function J9(e,t){return typeof e=="function"?e(t):e}function ky(e){return typeof e=="number"&&e>=0&&e!==1/0}function n3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Lo(e,t){return typeof e=="function"?e(t):e}function ga(e,t){return typeof e=="function"?e(t):e}function dS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==eE(l,t.options))return!1}else if(!yd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function fS(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Os(t.options.mutationKey)!==Os(o))return!1}else if(!yd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function eE(e,t){return(t?.queryKeyHashFn||Os)(e)}function Os(e){return JSON.stringify(e,(t,n)=>Ry(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function yd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>yd(e[n],t[n])):!1}function r3(e,t){if(e===t)return e;const n=hS(e)&&hS(t);if(n||Ry(e)&&Ry(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),l=o.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:o[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=r3(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function wp(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 hS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ry(e){if(!pS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pS(e){return Object.prototype.toString.call(e)==="[object Object]"}function eF(e){return new Promise(t=>{setTimeout(t,e)})}function Iy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?r3(e,t):t}function tF(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function nF(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tE=Symbol();function a3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===tE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function i3(e,t){return typeof e=="function"?e(...t):!!e}var rF=class extends lc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Ns&&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"}},nE=new rF,aF=class extends lc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Ns&&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}},Np=new aF;function wy(){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 iF(e){return Math.min(1e3*2**e,3e4)}function o3(e){return(e??"online")==="online"?Np.isOnline():!0}var s3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function h1(e){return e instanceof s3}function l3(e){let t=!1,n=0,r=!1,a;const o=wy(),l=A=>{r||(y(new s3(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>nE.isFocused()&&(e.networkMode==="always"||Np.isOnline())&&e.canRun(),p=()=>o3(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),o.resolve(A))},y=A=>{r||(r=!0,e.onError?.(A),a?.(),o.reject(A))},b=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(Ns?0:3),S=e.retryDelay??iF,M=typeof S=="function"?S(n,x):S,L=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!L){y(x);return}n++,e.onFail?.(n,x),eF(M).then(()=>f()?void 0:b()).then(()=>{t?y(x):T()})})};return{promise:o,cancel:l,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?T():b().then(T),o)}}var oF=e=>setTimeout(e,0);function sF(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=oF;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Un=sF(),c3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ky(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ns?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},lF=class extends c3{#t;#e;#n;#r;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=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=cF(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.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Iy(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(vr).catch(vr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ga(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lo(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:!n3(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.#i({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 d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const d=a3(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{h1(d)&&d.silent||this.#i({type:"error",error:d}),h1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=l3({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(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,...u3(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 h1(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),Un.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function u3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:o3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cF(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 uF=class extends lc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??eE(r,t);let o=this.get(a);return o||(o=new lF({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(){Un.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=>dS(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>dS(e,n)):t}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},dF=class extends c3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||d3(),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=l3({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),Un.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function d3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fF=class extends lc{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 dF({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Ah(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=Ah(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=Ah(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=Ah(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Un.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=>fS(t,n))}findAll(e={}){return this.getAll().filter(t=>fS(e,t))}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Un.batch(()=>Promise.all(e.map(t=>t.continue().catch(vr))))}};function Ah(e){return e.options.scope?.id}function mS(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=a3(t.options,t.fetchOptions),b=async(T,A,C)=>{if(p)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const D=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(D),{maxPages:M}=t.options,L=C?nF:tF;return{pages:L(T.pages,S,M),pageParams:L(T.pageParams,A,M)}};if(a&&o.length){const T=a==="backward",A=T?hF:gS,C={pages:o,pageParams:l},x=A(r,C);c=await b(C,x,T)}else{const T=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:gS(r,c);if(d>0&&A==null)break;c=await b(c,A),d++}while(d<T)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function gS(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 hF(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var pF=class{#t;#e;#n;#r;#a;#o;#s;#i;constructor(e={}){this.#t=e.queryCache||new uF,this.#e=e.mutationCache||new fF,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=nE.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Np.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=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(Lo(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,l=J9(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Un.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;Un.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Un.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Un.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(vr).catch(vr)}invalidateQueries(e,t={}){return Un.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=Un.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(vr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(vr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Lo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vr).catch(vr)}fetchInfiniteQuery(e){return e.behavior=mS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vr).catch(vr)}ensureInfiniteQueryData(e){return e.behavior=mS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Np.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(Os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{yd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{yd(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=eE(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===tE&&(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()}},mF=class extends lc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=wy(),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;#o;#s;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),yS(this.#e,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ny(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ny(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),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 ga(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!wp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&bS(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||ga(this.options.enabled,this.#e)!==ga(t.enabled,this.#e)||Lo(this.options.staleTime,this.#e)!==Lo(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||ga(this.options.enabled,this.#e)!==ga(t.enabled,this.#e)||a!==this.#l)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return yF(this,n)&&(this.#r=n,this.#o=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.#p.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.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(vr)),t}#g(){this.#v();const e=Lo(this.options.staleTime,this.#e);if(Ns||this.#r.isStale||!ky(e))return;const n=n3(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}#b(e){this.#T(),this.#l=e,!(Ns||ga(this.options.enabled,this.#e)===!1||!ky(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||nE.isFocused())&&this.#d()},this.#l))}#E(){this.#g(),this.#b(this.#y())}#v(){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,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,y;if(t._optimisticResults){const ne=this.hasListeners(),K=!ne&&yS(e,t),k=ne&&bS(e,n,t,r);(K||k)&&(p={...p,...u3(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:T,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let ne;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(ne=a.data,C=!0):ne=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,ne!==void 0&&(A="success",y=Iy(a?.data,ne,t),m=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===o?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=Iy(a?.data,y,t),this.#f=y,this.#i=null}catch(ne){this.#i=ne}this.#i&&(b=this.#i,y=this.#f,T=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",M=D&&x,L=y!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:T,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&L,isStale:rE(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ga(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ne=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},K=()=>{const H=this.#s=V.promise=wy();ne(H)},k=this.#s;switch(k.status){case"pending":e.queryHash===n.queryHash&&ne(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&K();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&K();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),wp(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.#p.size)return!0;const o=new Set(a??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&o.has(c)})};this.#x({listeners:n()})}#_(){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.#E()}#x(e){Un.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function gF(e,t){return ga(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yS(e,t){return gF(e,t)||e.state.data!==void 0&&Ny(e,t,t.refetchOnMount)}function Ny(e,t,n){if(ga(t.enabled,e)!==!1&&Lo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&rE(e,t)}return!1}function bS(e,t,n,r){return(e!==t||ga(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&rE(e,n)}function rE(e,t){return ga(t.enabled,e)!==!1&&e.isStaleByTime(Lo(t.staleTime,e))}function yF(e,t){return!wp(e.getCurrentResult(),t)}var bF=class extends lc{#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),wp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Os(n.mutationKey)!==Os(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.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}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??d3();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}}#o(t){Un.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)})})}},EF=N.createContext(void 0),f3=e=>{const t=N.useContext(EF);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},h3=N.createContext(!1),vF=()=>N.useContext(h3);h3.Provider;function TF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _F=N.createContext(TF()),xF=()=>N.useContext(_F),AF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},SF=e=>{N.useEffect(()=>{e.clearReset()},[e])},CF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||i3(n,[e.error,r])),DF=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))}},kF=(e,t)=>e.isLoading&&e.isFetching&&!t,RF=(e,t)=>e?.suspense&&t.isPending,ES=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function IF(e,t,n){const r=vF(),a=xF(),o=f3(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",DF(l),AF(l,a),SF(a);const c=!o.getQueryCache().get(l.queryHash),[d]=N.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(m=>{const y=p?d.subscribe(Un.batchCalls(m)):vr;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(l)},[l,d]),RF(l,f))throw ES(l,d,a);if(CF({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!Ns&&kF(f,r)&&(c?ES(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(vr).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function wF(e,t){return IF(e,mF,t)}function NF(e,t){const n=f3(t),[r]=N.useState(()=>new bF(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const a=N.useSyncExternalStore(N.useCallback(l=>r.subscribe(Un.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=N.useCallback((l,c)=>{r.mutate(l,c).catch(vr)},[r]);if(a.error&&i3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const OF=new gm(new rr);function p3(e,t){const{projectName:n,packageName:r,versionId:a}=ta(),o=t||a;return mr({queryKey:["package",n,r,e,o],queryFn:async l=>(await OF.getModel(n,r,e,o,l)).data})}const LF=new Jb(new rr),MF=Jt(z2)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),PF=Jt(xr)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function m3({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:a}){const[o,l]=Le.useState(n?e.findIndex(f=>f.sourceInfo.name===n):0),[c,d]=Le.useState(t||Uu());return Le.useEffect(()=>{a&&a(o)},[o,a]),E.jsxs(Kl,{variant:"outlined",children:[E.jsx(hp,{children:E.jsx(Mx,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&E.jsx(MF,{children:e.map((f,p)=>E.jsx(PF,{selected:o===p,onClick:()=>l(p),children:f.sourceInfo.name||`Source ${p+1}`},f.sourceInfo.name||p))})})}),E.jsx(kb,{children:E.jsxs(Mx,{spacing:2,component:"section",children:[E.jsx(g3,{sourceAndPath:e[o],existingQuery:c,onChange:f=>{d(f),r&&r(f)}}),E.jsx(z2,{height:"5px"})]})})]})}function Uu(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function $F({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a}){const[o,l]=Le.useState(n||Uu()),[c,d]=Le.useState([]),{MalloyExplorerProvider:f,QueryPanel:p,ResizableCollapsiblePanel:m,ResultPanel:y,SourcePanel:b}=r;Le.useEffect(()=>{t&&t(o)},[t,o]);const{projectName:T,packageName:A,versionId:C}=ta(),x=Wne({mutationFn:(L,I)=>{const V=new a.ASTQuery({source:e.sourceInfo,query:o?.malloyQuery}).toMalloy();return l({...o,query:V}),LF.executeQuery(T,A,e.modelPath,V,void 0,void 0,C,I)},onSuccess:L=>{if(L){const I=JSON.parse(L.data.result);l({...o,malloyResult:I})}}}),[D,S]=Le.useState(e.sourceInfo.name);Le.useEffect(()=>{D!==e.sourceInfo.name&&(S(e.sourceInfo.name),l(Uu()))},[e,D]);const M=Le.useCallback(L=>{l({...o,malloyQuery:L,malloyResult:void 0})},[o]);return D!==e.sourceInfo.name?E.jsx("div",{children:"Loading..."}):E.jsx(ED,{children:E.jsx(f,{source:e.sourceInfo,query:o?.malloyQuery,onQueryChange:M,focusedNestViewPath:c,onFocusedNestViewPathChange:d,onDrill:L=>{console.info(L)},children:E.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[E.jsx(m,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:E.jsx(b,{onRefresh:()=>l(Uu())})}),E.jsx(m,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:E.jsx(p,{runQuery:()=>{x.mutate()}})}),E.jsx(y,{source:e.sourceInfo,draftQuery:o?.malloyQuery,setDraftQuery:L=>l({...o,malloyQuery:L}),submittedQuery:o?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:o.malloyResult},query:o.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function g3(e){const[t,n]=N.useState(null),[r,a]=N.useState(null),[o,l]=N.useState(!0);return N.useEffect(()=>{let c=!0;return Promise.all([F(()=>import("./index-sRdDLm-N.js"),__vite__mapDeps([93,94,95,96,97])),F(()=>import("./index-SM0qJxoC.js").then(d=>d.i),__vite__mapDeps([96,95]))]).then(([d,f])=>{c&&(n(d),a(f),l(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),c&&l(!1)}),()=>{c=!1}},[]),o||!t||!r?E.jsx(Q6,{children:E.jsx(ED,{children:E.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):E.jsx($F,{...e,explorerComponents:t,QueryBuilder:r})}const y3=zt(E.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"})),Lu=zt(E.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"})),vS=zt(E.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 fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}const FF=["children","options"],TS=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),_S={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},jF=["style","script","pre"],BF=["src","href","data","formAction","srcDoc","action"],UF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,HF=/mailto:/i,zF=/\n{2,}$/,xS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GF=/^ *> ?/gm,VF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,qF=/^ {2,}\n/,YF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,AS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,SS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,QF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,KF=/^(?:\n *)*\n/,WF=/\r\n?/g,XF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,ZF=/^\[\^([^\]]+)]/,JF=/\f/g,ej=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,tj=/^\s*?\[(x|\s)\]/,CS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,DS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,kS=/^([^\n]+)\n *(=|-){3,} *\n/,p1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nj=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,RS=/^<!--[\s\S]*?(?:-->)/,rj=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,m1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aj=/^\{.*\}$/,ij=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,oj=/^<([^ >]+@[^ >]+)>/,sj=/^<([^ >]+:\/[^ >]+)>/,lj=/-([a-z])?/gi,IS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cj=/^[^\n]+(?: \n|\n{2,})/,uj=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dj=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,fj=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hj=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pj=/\t/g,mj=/(^ *\||\| *$)/g,gj=/^ *:-+: *$/,yj=/^ *:-+ *$/,bj=/^ *-+: *$/,ym="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Ej=RegExp(`^([*_])\\1${ym}\\1\\1(?!\\1)`),vj=RegExp(`^([*_])${ym}\\1(?!\\1)`),Tj=RegExp(`^(==)${ym}\\1`),_j=RegExp(`^(~~)${ym}\\1`),xj=/^(:[a-zA-Z0-9-_]+:)/,Aj=/^\\([^0-9A-Za-z\s])/,Sj=/\\([^0-9A-Za-z\s])/g,Cj=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Dj=/^\n+/,kj=/^([ \t]*)/,Rj=/(?:^|\n)( *)$/,aE="(?:\\d+\\.)",iE="(?:[*+-])";function b3(e){return"( *)("+(e===1?aE:iE)+") +"}const E3=b3(1),v3=b3(2);function T3(e){return RegExp("^"+(e===1?E3:v3))}const Ij=T3(1),wj=T3(2);function _3(e){return RegExp("^"+(e===1?E3:v3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?aE:iE)+" )[^\\n]*)*(\\n|$)","gm")}const Nj=_3(1),Oj=_3(2);function x3(e){const t=e===1?aE:iE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const A3=x3(1),S3=x3(2);function wS(e,t){const n=t===1,r=n?A3:S3,a=n?Nj:Oj,o=n?Ij:wj;return{t:l=>o.test(l),o:Zl(function(l,c){const d=Rj.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(zF,`
|
|
70
|
+
`).match(a);let m=!1;return{items:p.map(function(y,b){const T=o.exec(y)[0].length,A=RegExp("^ {1,"+T+"}","gm"),C=y.replace(A,"").replace(o,""),x=b===p.length-1,D=C.indexOf(`
|
|
71
|
+
|
|
72
|
+
`)!==-1||x&&m;m=D;const S=d.inline,M=d.list;let L;d.list=!0,D?(d.inline=!1,L=Hu(C)+`
|
|
73
|
+
|
|
74
|
+
`):(d.inline=!0,L=Hu(C));const I=c(L,d);return d.inline=S,d.list=M,I}),ordered:n,start:f}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},c(f,d))}))}}const Lj=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Mj=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Hu(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Yh(e,t){return e.startsWith(t)}function Pj(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Yh(e,n[r]))return!0;return!1}return n(e,t)}function bu(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function $j(e){return bj.test(e)?"right":gj.test(e)?"center":yj.test(e)?"left":null}function NS(e,t,n,r){const a=n.inTable;n.inTable=!0;let o=[[]],l="";function c(){if(!l)return;const d=o[o.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(c(),r)?f!==0&&f!==p.length-1&&o.push([]):l+=d}),c(),n.inTable=a,o}function Fj(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(mj,"").split("|").map($j):[],a=e[3]?function(l,c,d){return l.trim().split(`
|
|
75
|
+
`).map(function(f){return NS(f,c,d,!0)})}(e[3],t,n):[],o=NS(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:"25"}:{children:o,type:"21"}}function OS(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Zl(e){return e.inline=1,e}function bo(e){return Zl(function(t,n){return n.inline?e.exec(t):null})}function Eo(e){return Zl(function(t,n){return n.inline||n.simple?e.exec(t):null})}function wi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Sh(e){return Zl(function(t){return e.exec(t)})}const jj=/(javascript|vbscript|data(?!:image)):/i;function Bj(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(jj.test(t))return null}catch{return null}return e}function Wa(e){return e&&e.replace(Sj,"$1")}function Qh(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function Uj(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function Hj(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const g1=(e,t,n)=>({children:Qh(t,e[2],n)});function y1(){return{}}function b1(){return null}function zj(...e){return e.filter(Boolean).join(" ")}function E1(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function Gj(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?fs({},_S,t.namedCodesToUnicode):_S;const n=t.slugify||bu,r=t.sanitizer||Bj,a=t.createElement||N.createElement,o=[xS,AS,SS,t.enforceAtxHeadings?DS:CS,kS,IS,A3,S3],l=[...o,cj,p1,RS,m1];function c(x,D,...S){const M=E1(t.overrides,x+".props",{});return a(function(L,I){const V=E1(I,L);return V?typeof V=="function"||typeof V=="object"&&"render"in V?V:E1(I,L+".component",L):L}(x,t.overrides),fs({},D,M,{className:zj(D?.className,M.className)||void 0}),...S)}function d(x){x=x.replace(ej,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=hj.test(x)===!1);const S=T(b(D?x:Hu(x).replace(Dj,"")+`
|
|
76
|
+
|
|
77
|
+
`,{inline:D}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const M=t.wrapper||(D?"span":"div");let L;if(S.length>1||t.forceWrapper)L=S;else{if(S.length===1)return L=S[0],typeof L=="string"?c("span",{key:"outer"},L):L;L=null}return a(M,{key:"outer"},L)}function f(x,D){if(!D||!D.trim())return null;const S=D.match(UF);return S?S.reduce(function(M,L){const I=L.indexOf("=");if(I!==-1){const V=function(H){return H.indexOf("-")!==-1&&H.match(rj)===null&&(H=H.replace(lj,function(Q,W){return W.toUpperCase()})),H}(L.slice(0,I)).trim(),ne=function(H){const Q=H[0];return(Q==='"'||Q==="'")&&H.length>=2&&H[H.length-1]===Q?H.slice(1,-1):H}(L.slice(I+1).trim()),K=TS[V]||V;if(K==="ref")return M;const k=M[K]=function(H,Q,W,re){return Q==="style"?function(me){const G=[];let le="",se=!1,ye=!1,P="";if(!me)return G;for(let ce=0;ce<me.length;ce++){const w=me[ce];if(w!=='"'&&w!=="'"||se||(ye?w===P&&(ye=!1,P=""):(ye=!0,P=w)),w==="("&&le.endsWith("url")?se=!0:w===")"&&se&&(se=!1),w!==";"||ye||se)le+=w;else{const te=le.trim();if(te){const Ce=te.indexOf(":");if(Ce>0){const Ie=te.slice(0,Ce).trim(),Me=te.slice(Ce+1).trim();G.push([Ie,Me])}}le=""}}const Ne=le.trim();if(Ne){const ce=Ne.indexOf(":");if(ce>0){const w=Ne.slice(0,ce).trim(),te=Ne.slice(ce+1).trim();G.push([w,te])}}return G}(W).reduce(function(me,[G,le]){return me[G.replace(/(-[a-z])/g,se=>se[1].toUpperCase())]=re(le,H,G),me},{}):BF.indexOf(Q)!==-1?re(Wa(W),H,Q):(W.match(aj)&&(W=Wa(W.slice(1,W.length-1))),W==="true"||W!=="false"&&W)}(x,V,ne,r);typeof k=="string"&&(p1.test(k)||m1.test(k))&&(M[K]=d(k.trim()))}else L!=="style"&&(M[TS[L]||L]=!0);return M},{}):null}const p=[],m={},y={0:{t:[">"],o:wi(xS),i:1,u(x,D,S){const[,M,L]=x[0].replace(GF,"").match(VF);return{alert:M,children:D(L,S)}},l(x,D,S){const M={key:S.key};return x.alert&&(M.className="markdown-alert-"+n(x.alert.toLowerCase(),bu),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",M,D(x.children,S))}},1:{o:Sh(qF),i:1,u:y1,l:(x,D,S)=>c("br",{key:S.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:wi(YF),i:1,u:y1,l:(x,D,S)=>c("hr",{key:S.key})},3:{t:[" "],o:wi(SS),i:0,u:x=>({lang:void 0,text:Wa(Hu(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,S)=>c("pre",{key:S.key},c("code",fs({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:wi(AS),i:0,u:x=>({attrs:f("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:Eo(QF),i:3,u:x=>({text:Wa(x[2])}),l:(x,D,S)=>c("code",{key:S.key},x.text)},6:{t:["[^"],o:wi(XF),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:b1},7:{t:["[^"],o:bo(ZF),i:1,u:x=>({target:"#"+n(x[1],bu),text:x[1]}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href")},c("sup",{key:S.key},x.text))},8:{t:["[ ]","[x]"],o:bo(tj),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,S)=>c("input",{checked:x.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:wi(t.enforceAtxHeadings?DS:CS),i:1,u:(x,D,S)=>({children:Qh(D,x[2],S),id:n(x[2],bu),level:x[1].length}),l:(x,D,S)=>c("h"+x.level,{id:x.id,key:S.key},D(x.children,S))},10:{o:wi(kS),i:0,u:(x,D,S)=>({children:Qh(D,x[1],S),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Sh(p1),i:1,u(x,D,S){const[,M]=x[3].match(kj),L=RegExp("^"+M,"gm"),I=x[3].replace(L,""),V=(ne=I,l.some(W=>W.test(ne))?Hj:Qh);var ne;const K=x[1].toLowerCase(),k=jF.indexOf(K)!==-1,H=(k?K:x[1]).trim(),Q={attrs:f(H,x[2]),noInnerParse:k,tag:H};if(S.inAnchor=S.inAnchor||K==="a",k)Q.text=x[3];else{const W=S.inHTML;S.inHTML=!0,Q.children=V(D,I,S),S.inHTML=W}return S.inAnchor=!1,Q},l:(x,D,S)=>c(x.tag,fs({key:S.key},x.attrs),x.text||(x.children?D(x.children,S):""))},13:{t:["<"],o:Sh(m1),i:1,u(x){const D=x[1].trim();return{attrs:f(D,x[2]||""),tag:D}},l:(x,D,S)=>c(x.tag,fs({},x.attrs,{key:S.key}))},12:{t:["<!--"],o:Sh(RS),i:1,u:()=>({}),l:b1},14:{t:["!["],o:Eo(Mj),i:1,u:x=>({alt:Wa(x[1]),target:Wa(x[2]),title:Wa(x[3])}),l:(x,D,S)=>c("img",{key:S.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:bo(Lj),i:3,u:(x,D,S)=>({children:Uj(D,x[1],S),target:Wa(x[2]),title:Wa(x[3])}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href"),title:x.title},D(x.children,S))},16:{t:["<"],o:bo(sj),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(Yh(x,"http://")||Yh(x,"https://")),o:bo(ij),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:bo(oj),i:0,u(x){let D=x[1],S=x[1];return HF.test(S)||(S="mailto:"+S),{children:[{text:D.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:wS(c,1),33:wS(c,2),19:{o:wi(KF),i:3,u:y1,l:()=>`
|
|
78
|
+
`},21:{o:Zl(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
|
|
79
|
+
|
|
80
|
+
`)===-1&&D.prevCapture.indexOf(`
|
|
81
|
+
|
|
82
|
+
`)===-1)return null;let S="";x.split(`
|
|
83
|
+
`).every(L=>(L+=`
|
|
84
|
+
`,!o.some(I=>I.test(L))&&(S+=L,!!L.trim())));const M=Hu(S);return M===""?null:[S,,M]}),i:3,u:g1,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:bo(uj),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:b1},23:{t:["!["],o:Eo(dj),i:0,u:x=>({alt:x[1]?Wa(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:bo(fj),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:wi(IS),i:1,u:Fj,l(x,D,S){const M=x;return c("table",{key:S.key},c("thead",null,c("tr",null,M.header.map(function(L,I){return c("th",{key:I,style:OS(M,I)},D(L,S))}))),c("tbody",null,M.cells.map(function(L,I){return c("tr",{key:I},L.map(function(V,ne){return c("td",{key:ne,style:OS(M,ne)},D(V,S))}))})))}},27:{o:Zl(function(x,D){let S;return Yh(x,":")&&(S=xj.exec(x)),S||Cj.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(nj,(S,M)=>t.namedCodesToUnicode[M]||S)}},l:x=>x.text},28:{t:["**","__"],o:Eo(Ej),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:Eo(vj),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:Eo(Aj),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:Eo(Tj),i:3,u:g1,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:Eo(_j),i:3,u:g1,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const b=function(x){var D=Object.keys(x);function S(M,L){var I=[];if(L.prevCapture=L.prevCapture||"",M.trim())for(;M;)for(var V=0;V<D.length;){var ne=D[V],K=x[ne];if(!K.t||Pj(M,L,K.t)){var k=K.o(M,L);if(k&&k[0]){M=M.substring(k[0].length);var H=K.u(k,S,L);L.prevCapture+=k[0],H.type||(H.type=ne),I.push(H);break}V++}else V++}return L.prevCapture="",I}return D.sort(function(M,L){return x[M].i-x[L].i||(M<L?-1:1)}),function(M,L){return S(function(I){return I.replace(WF,`
|
|
85
|
+
`).replace(JF,"").replace(pj," ")}(M),L)}}(y),T=(A=function(x,D){return function(S,M,L){const I=x[S.type].l;return D?D(()=>I(S,M,L),S,M,L):I(S,M,L)}}(y,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const M=S.key,L=[];let I=!1;for(let V=0;V<D.length;V++){S.key=V;const ne=x(D[V],S),K=typeof ne=="string";K&&I?L[L.length-1]+=ne:ne!==null&&L.push(ne),I=K}return S.key=M,L}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,bu),key:x.identifier},x.identifier,T(b(x.footnote,{inline:!0})))}))):C}const oE=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)o.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,FF);return N.cloneElement(Gj(t,n),r)},Vj=N.lazy(()=>F(()=>import("./index.es23-BBjdzilP.js"),__vite__mapDeps([98,94,95])));function Oy({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=N.useState(!1),[l,c]=N.useState(0),[d,f]=N.useState(!1),p=N.useRef(null),m=N.useRef(null),[y,b]=N.useState(void 0),[T,A]=N.useState(!1),C=N.useCallback(()=>{const L=a;o(!a),L&&m.current&&setTimeout(()=>{m.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),x=N.useCallback(L=>{c(L)},[]);if(N.useEffect(()=>{if(r){f(!1);return}if(T){f(!0);return}if(l===0){f(!1);return}const L=t-20,I=l>L;l<L&&b(l+20),f(I)},[l,T,t,r]),!e)return null;const D=E.jsx(fr,{text:"Loading...",centered:!0,size:32}),S=T?a?n-40:t-40:void 0,M=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return E.jsx(E.Fragment,{children:E.jsxs(at,{ref:m,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...M},children:[E.jsx(at,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:d?"40px":1,scrollbarWidth:"thin",scrollbarColor:"#c1c1c1 #f1f1f1","&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}}},children:e&&E.jsx(N.Suspense,{fallback:D,children:E.jsx(Vj,{result:e,height:S,isFillElement:L=>{A(L)},onSizeChange:x})})||D}),d&&E.jsx(at,{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:E.jsx(xn,{size:"small",onClick:C,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?E.jsx(p5,{sx:{fontSize:30}}):E.jsx(m5,{sx:{fontSize:30}})})})]})})}const C3=zt(E.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"})),qj=new Jk(new rr);function Yj(){const{projectName:e,packageName:t,versionId:n}=ta(),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["package",e,t,n],queryFn:c=>qj.getPackage(e,t,n,!1,c)});return E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Package Config"}),E.jsx(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:E.jsxs(hb,{dense:!0,disablePadding:!0,children:[E.jsx(ph,{dense:!0,disablePadding:!0,children:E.jsx(Fu,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!o&&E.jsx(ph,{children:E.jsx(fr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&E.jsx(ph,{dense:!0,disablePadding:!0,children:E.jsx(Fu,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||E.jsxs(ph,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[E.jsx(C3,{sx:{color:"grey.600",mr:"10px"}}),E.jsx(Fu,{primary:"No package manifest"})]})),o&&E.jsx(nr,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const Qj=zt(E.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Kj=new e3(new rr);function Wj(){const{projectName:e}=Yd(),{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["about",e],queryFn:o=>Kj.getProject(e,!1,o)});return E.jsxs(E.Fragment,{children:[!n&&!r&&E.jsx(fr,{text:"Fetching About..."}),n&&t.data?.readme&&E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Readme"}),E.jsx(at,{sx:{mt:1},children:E.jsx(oE,{children:t.data.readme})})]})}),r&&E.jsx(nr,{error:a,context:`${e} > About`})]})}const Xj=new Jk(new rr);function Zj({navigate:e}){const{projectName:t}=Yd(),{data:n,isSuccess:r,isError:a,error:o}=mr({queryKey:["packages",t],queryFn:l=>Xj.listPackages(t,l)});return E.jsxs(E.Fragment,{children:[!r&&!a&&E.jsx(fr,{text:"Fetching Packages..."}),r&&E.jsx(mn,{container:!0,spacing:3,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>E.jsx(mn,{size:{xs:12,sm:12,md:12,lg:4},children:E.jsx(Hi,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:c=>e(l.name,c),children:E.jsxs(zi,{children:[E.jsx(ze,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:l.name}),E.jsx(ai,{sx:{mb:2}}),E.jsx(at,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:E.jsx(ze,{variant:"body2",children:l.description})})]})})},l.name))}),a&&E.jsx(nr,{error:o,context:`${t} > Packages`})]})}const D3=N.createContext(void 0);function Yd(){const e=N.useContext(D3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function k3({children:e,projectName:t}){return E.jsx(D3.Provider,{value:{projectName:t},children:e})}function Jj({navigate:e}){return E.jsx(vD,{children:E.jsxs(mn,{container:!0,spacing:3,columns:12,children:[E.jsx(mn,{size:{xs:12,md:12},children:E.jsx(Zj,{navigate:e})}),E.jsx(mn,{size:{xs:12,md:12},children:E.jsx(Wj,{})})]})})}const sE=new Xk(new rr);function eB({connectionName:e,schema:t}){const{projectName:n}=Yd(),[r,a]=Le.useState(void 0),[o,l]=Le.useState(t||null),[c,d]=Le.useState(!1),{data:f,isSuccess:p,isError:m,error:y,isLoading:b}=mr({queryKey:["tablePath",n,e],queryFn:T=>sE.listSchemas(n,e,T)});return E.jsxs(mn,{container:!0,spacing:1,children:[!t&&E.jsx(mn,{size:{xs:12,md:4},children:E.jsxs(Ph,{sx:{p:1,m:0},children:[E.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[E.jsx(ze,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),E.jsx(g5,{control:E.jsx(y5,{checked:c,onChange:T=>d(T.target.checked)}),label:"Hidden Schemas"})]}),E.jsx(ai,{sx:{mt:"2px"}}),E.jsxs(at,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&E.jsx(fr,{text:"Fetching Table Paths..."}),m&&E.jsx(nr,{error:y,context:`${n} > ${e}`}),p&&f.data.length===0&&E.jsx(ze,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&E.jsx(hb,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:T})=>c||!T).sort((T,A)=>T.isDefault===A.isDefault?0:T.isDefault?-1:1).map(T=>{const A=(T.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=E.jsx(G2,{selected:o===T.name,onClick:()=>l(T.name),children:E.jsx(Fu,{primary:T.name,secondary:x})},T.name);return C?E.jsx(Er,{title:A,arrow:!0,children:D},T.name):D})})]})]})}),E.jsx(mn,{size:{xs:12,md:t?6:4},children:o&&E.jsx(Ph,{sx:{p:1,m:0},children:E.jsx(nB,{connectionName:e,schemaName:o,onTableClick:T=>{a(T)}})})}),E.jsx(mn,{size:{xs:12,md:t?6:4},children:r&&o&&E.jsx(Ph,{sx:{p:1,m:0},children:E.jsx(tB,{connectionName:e,schemaName:o,tableName:r})})})]})}function tB({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Yd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>sE.getTablesource(r,e,n,`${t}.${n}`,f)});return E.jsxs(E.Fragment,{children:[E.jsxs(ze,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),E.jsx(ai,{}),E.jsxs(at,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&E.jsx(fr,{text:"Fetching Table Details..."}),l&&E.jsx(nr,{error:c,context:`${r} > ${e} > ${t}.${n}`}),o&&a&&E.jsx(pb,{children:E.jsxs(rd,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[E.jsx(sp,{children:E.jsxs(ri,{children:[E.jsx(Ut,{children:"NAME"}),E.jsx(Ut,{children:"TYPE"})]})}),E.jsx(ad,{children:a.data.columns?.map(f=>E.jsxs(ri,{children:[E.jsx(Ut,{children:f.name}),E.jsx(Ut,{children:f.type})]},f.name))})]})})]})]})}function nB({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Yd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>sE.listTables(r,e,t,f)});return E.jsxs(E.Fragment,{children:[E.jsxs(ze,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),E.jsx(ai,{}),E.jsxs(at,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&E.jsx(fr,{text:"Fetching Tables..."}),l&&E.jsx(nr,{error:c,context:`${r} > ${e} > ${t}`}),o&&a.data.length===0&&E.jsx(ze,{variant:"body2",children:"No Tables"}),o&&a.data.length>0&&E.jsx(hb,{dense:!0,disablePadding:!0,children:a.data.map(f=>E.jsx(G2,{onClick:()=>n(f),children:E.jsx(Fu,{primary:f})},f))})]})]})}const rB=new Xk(new rr);function aB({connection:e,onClick:t}){return E.jsxs(ri,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[E.jsx(Ut,{children:E.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(ze,{variant:"body2",children:e.name}),E.jsx(Qj,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),E.jsx(Ut,{children:E.jsx(ze,{variant:"body2",children:e.type})})]},e.name)}function iB(){const{projectName:e}=ta(),[t,n]=N.useState(null),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["connections",e],queryFn:f=>rB.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return E.jsxs(k3,{projectName:e,children:[E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Database Connections"}),E.jsxs(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!o&&E.jsx(ze,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&E.jsx(rd,{size:"small",children:E.jsxs(ad,{children:[E.jsxs(ri,{children:[E.jsx(Ut,{children:E.jsx(ze,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),E.jsx(Ut,{children:E.jsx(ze,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(f=>E.jsx(aB,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&E.jsx(ze,{variant:"body2",children:"No Connections"}),o&&E.jsx(nr,{error:l,context:`${e} > Connections`})]})]})}),E.jsxs(Co,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[E.jsxs(Do,{children:["Connection Explorer: ",t,E.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:E.jsx(at,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),E.jsx(ko,{children:t&&E.jsx(eB,{connectionName:t})})]})]})}const oB=new z9(new rr);function sB(){const{projectName:e,packageName:t,versionId:n}=ta(),[r,a]=Le.useState(!1),[o,l]=Le.useState(null),c=T=>{l(T),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:y}=mr({queryKey:["databases",e,t,n],queryFn:T=>oB.listDatabases(e,t,n,T)}),b=T=>T>=1024*1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} T`:T>=1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} G`:T>=1024*1024?`${(T/(1024*1024)).toFixed(2)} M`:`${(T/1024).toFixed(2)} K`;return E.jsxs(E.Fragment,{children:[E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Embedded Databases"}),E.jsxs(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!y&&!p&&E.jsx(fr,{text:"Fetching Databases..."}),p&&E.jsx(nr,{error:m,context:`${e} > ${t} > Databases`}),y&&f.data.length>0&&E.jsxs(rd,{size:"small",children:[E.jsx(sp,{children:E.jsxs(ri,{children:[E.jsx(Ut,{children:"Name"}),E.jsx(Ut,{align:"right",children:"Rows"})]})}),E.jsx(ad,{children:f.data.map(T=>E.jsxs(ri,{onClick:()=>c(T),sx:{cursor:"pointer"},children:[E.jsx(Ut,{component:"th",scope:"row",children:T.path}),E.jsx(Ut,{align:"right",children:b(T.info.rowCount)})]},T.path))})]}),y&&f.data.length===0&&E.jsx(ze,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),E.jsxs(Co,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[E.jsx(Do,{children:o?.path}),E.jsx(ko,{children:o?.info?.columns&&E.jsx(pb,{children:E.jsxs(rd,{size:"small",children:[E.jsx(sp,{children:E.jsxs(ri,{children:[E.jsx(Ut,{children:"Column"}),E.jsx(Ut,{children:"Type"})]})}),E.jsx(ad,{children:o.info.columns.map(T=>E.jsxs(ri,{children:[E.jsx(Ut,{component:"th",scope:"row",children:T.name}),E.jsx(Ut,{children:T.type})]},T.name))})]})})})]})]})}function Ae(){return Ae=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},Ae.apply(null,arguments)}const R3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},I3=(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:I3(e,n.parentId);let l=r[o],c=R3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Kh=(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},w3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=R3(e,n);if(r==null)return t;t=r}return t},bd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),N3=(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],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=o.indexOf(d)!==-1,m=!0,y=!0;for(;!p&&!f;)m&&(o.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),y&&!f&&(l.push(d),p=o.indexOf(d)!==-1,y=d!==null,!p&&y&&(d=e.getItemMeta(d).parentId));const b=f?c:d,T=e.getItemOrderedChildrenIds(b),A=o[o.indexOf(b)-1],C=l[l.indexOf(b)-1];return T.indexOf(A)<T.indexOf(C)?[t,n]:[n,t]},lB=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,o]=N3(e,t,n),l=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},cB=e=>{let t=bd(e);const n=[];for(;t!=null;)n.push(t),t=Kh(e,t);return n},Ed=(e,t)=>t!==e.closest('*[role="treeitem"]');let LS=0;const uB=()=>(LS+=1,`mui-tree-view-${LS}`),lE=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,O3=N.createContext(null),Hs=()=>{const e=N.useContext(O3);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(`
|
|
86
|
+
`));return e},cE=N.createContext(()=>-1),Ds=(e,t)=>e.getAvailablePlugins().has(t),dB=({props:e})=>{const{instance:t}=Hs(),{label:n,itemId:r}=e,[a,o]=N.useState(n),l=t.isItemBeingEdited(r);return N.useEffect(()=>{l||o(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),o(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},xa=({instance:e,state:t,setState:n,params:r})=>{const a=N.useRef(t.editedItemId),o=m=>a.current===m,l=m=>{n(y=>Ae({},y,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const y=e.getItem(m);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(m,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
|
|
87
|
+
`));n(b=>{const T=b.items.itemMetaMap[m];return T.label!==y?Ae({},b,{items:Ae({},b.items,{itemMetaMap:Ae({},b.items.itemMetaMap,{[m]:Ae({},T,{label:y})})})}):b}),r.onItemLabelChange&&r.onItemLabelChange(m,y)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};xa.itemPlugin=dB;xa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};xa.getInitialState=()=>({editedItemId:null});xa.params={onItemLabelChange:!0,isItemEditable:!0};const L3=e=>Array.isArray(e)?e.length>0&&e.some(L3):!!e,fB=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Hs(),o={expandable:L3(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},l=p=>{if(o.disabled)return;o.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);o.expandable&&!(m&&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}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{Ds(n,xa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{Ds(n,xa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Ds(n,xa)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:o,publicAPI:a}};function si(...e){const t=N.useRef(void 0),n=N.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const l=o,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return N.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function pa(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 hB=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=Hs(),m=N.useContext(cE),{id:y,itemId:b,label:T,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:M,status:L}=fB({itemId:b,children:A}),I=N.useRef(null),V=N.useRef(null),ne=si(C,x,I),K=si(D,V),k=N.useRef(null),H=lE({itemId:b,treeId:d,id:y}),Q=f.canItemBeTabbed(b)?0:-1,W={rootRefObject:I,contentRefObject:V,interactions:M},re=ce=>w=>{if(ce.onFocus?.(w),w.defaultMuiPrevented)return;const te=!L.disabled||r;!L.focused&&te&&w.currentTarget===w.target&&f.focusItem(w,b)},me=ce=>w=>{if(ce.onBlur?.(w),w.defaultMuiPrevented)return;const te=f.getItemDOMElement(b);L.editing||w.relatedTarget&&Ed(w.relatedTarget,te)&&(w.target&&w.target?.dataset?.element==="labelInput"&&Ed(w.target,te)||w.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},G=ce=>w=>{ce.onKeyDown?.(w),!(w.defaultMuiPrevented||w.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(w,b)},le=ce=>w=>{ce.onDoubleClick?.(w),!w.defaultMuiPrevented&&M.toggleItemEditing()},se=ce=>w=>{ce.onClick?.(w),n?.(w,b),!(w.defaultMuiPrevented||k.current?.contains(w.target))&&(c==="content"&&M.handleExpansion(w),l||M.handleSelection(w))},ye=ce=>w=>{ce.onMouseDown?.(w),!w.defaultMuiPrevented&&(w.shiftKey||w.ctrlKey||w.metaKey||L.disabled)&&w.preventDefault()},P=ce=>w=>{ce.onChange?.(w),!w.defaultMuiPrevented&&(o||L.disabled||M.handleCheckboxSelection(w))},Ne=ce=>w=>{ce.onClick?.(w),!w.defaultMuiPrevented&&c==="iconContainer"&&M.handleExpansion(w)};return{getRootProps:(ce={})=>{const w=Ae({},pa(e),pa(ce));let te;L.selected?te=!0:o||L.disabled?te=void 0:te=!1;const Ce=Ae({},w,{ref:ne,role:"treeitem",tabIndex:Q,id:H,"aria-expanded":L.expandable?L.expanded:void 0,"aria-selected":te,"aria-disabled":L.disabled||void 0},ce,{onFocus:re(w),onBlur:me(w),onKeyDown:G(w)});a&&(Ce.style={"--TreeView-itemDepth":typeof m=="function"?m(b):m});const Ie=S.root?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},Ce,Ie)},getContentProps:(ce={})=>{const w=pa(ce),te=Ae({},w,ce,{ref:K,onClick:se(w),onMouseDown:ye(w),status:L});a&&(te.indentationAtItemLevel=!0);const Ce=S.content?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},te,Ce)},getGroupTransitionProps:(ce={})=>{const w=pa(ce),te=Ae({},w,{unmountOnExit:!0,component:"ul",role:"group",in:L.expanded,children:A},ce);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ce={})=>{const w=pa(ce);return Ae({},w,ce,{onClick:Ne(w)})},getCheckboxProps:(ce={})=>{const w=pa(ce);return Ae({},w,{visible:l,ref:k,checked:L.selected,disabled:o||L.disabled,tabIndex:-1},ce,{onChange:P(w)})},getLabelProps:(ce={})=>{const w=Ae({},pa(ce)),te=Ae({},w,{children:T},ce,{onDoubleClick:le(w)});return f.isTreeViewEditable&&(te.editable=L.editable),te},getLabelInputProps:(ce={})=>{const w=pa(ce),te=S.labelInput?.({rootRefObject:I,contentRefObject:V,externalEventHandlers:w,interactions:M})??{};return Ae({},ce,te)},getDragAndDropOverlayProps:(ce={})=>{const w=pa(ce),te=S.dragAndDropOverlay?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},ce,te)},rootRef:ne,status:L,publicAPI:p}},pB=hB,mB=zt(E.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"})),gB=zt([E.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"),E.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]);var uE=Kd(),lt=e=>Qd(e,uE),dE=Kd();lt.write=e=>Qd(e,dE);var bm=Kd();lt.onStart=e=>Qd(e,bm);var fE=Kd();lt.onFrame=e=>Qd(e,fE);var hE=Kd();lt.onFinish=e=>Qd(e,hE);var Vl=[];lt.setTimeout=(e,t)=>{const n=lt.now()+t,r=()=>{const o=Vl.findIndex(l=>l.cancel==r);~o&&Vl.splice(o,1),wo-=~o?1:0},a={time:n,handler:e,cancel:r};return Vl.splice(M3(n),0,a),wo+=1,P3(),a};var M3=e=>~(~Vl.findIndex(t=>t.time>e)||~Vl.length);lt.cancel=e=>{bm.delete(e),fE.delete(e),hE.delete(e),uE.delete(e),dE.delete(e)};lt.sync=e=>{Ly=!0,lt.batchedUpdates(e),Ly=!1};lt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,lt.onStart(n)}return r.handler=e,r.cancel=()=>{bm.delete(n),t=null},r};var pE=typeof window<"u"?window.requestAnimationFrame:()=>{};lt.use=e=>pE=e;lt.now=typeof performance<"u"?()=>performance.now():Date.now;lt.batchedUpdates=e=>e();lt.catch=console.error;lt.frameLoop="always";lt.advance=()=>{lt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):F3()};var Io=-1,wo=0,Ly=!1;function Qd(e,t){Ly?(t.delete(e),e(0)):(t.add(e),P3())}function P3(){Io<0&&(Io=0,lt.frameLoop!=="demand"&&pE($3))}function yB(){Io=-1}function $3(){~Io&&(pE($3),lt.batchedUpdates(F3))}function F3(){const e=Io;Io=lt.now();const t=M3(Io);if(t&&(j3(Vl.splice(0,t),n=>n.handler()),wo-=t),!wo){yB();return}bm.flush(),uE.flush(e?Math.min(64,Io-e):16.667),fE.flush(),dE.flush(),hE.flush()}function Kd(){let e=new Set,t=e;return{add(n){wo+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return wo-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,wo-=t.size,j3(t,r=>r(n)&&e.add(r)),wo+=e.size,t=e)}}}function j3(e,t){e.forEach(n=>{try{t(n)}catch(r){lt.catch(r)}})}var bB=Object.defineProperty,EB=(e,t)=>{for(var n in t)bB(e,n,{get:t[n],enumerable:!0})},Ma={};EB(Ma,{assign:()=>TB,colors:()=>Mo,createStringInterpolator:()=>gE,skipAnimation:()=>U3,to:()=>B3,willAdvance:()=>yE});function My(){}var vB=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we={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 Mi(e,t){if(we.arr(e)){if(!we.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 xt=(e,t)=>e.forEach(t);function li(e,t,n){if(we.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 Zr=e=>we.und(e)?[]:we.arr(e)?e:[e];function zu(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Mu=(e,...t)=>zu(e,n=>n(...t)),mE=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gE,B3,Mo=null,U3=!1,yE=My,TB=e=>{e.to&&(B3=e.to),e.now&&(lt.now=e.now),e.colors!==void 0&&(Mo=e.colors),e.skipAnimation!=null&&(U3=e.skipAnimation),e.createStringInterpolator&&(gE=e.createStringInterpolator),e.requestAnimationFrame&<.use(e.requestAnimationFrame),e.batchedUpdates&&(lt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yE=e.willAdvance),e.frameLoop&&(lt.frameLoop=e.frameLoop)},Gu=new Set,_a=[],v1=[],Op=0,Em={get idle(){return!Gu.size&&!_a.length},start(e){Op>e.priority?(Gu.add(e),lt.onStart(_B)):(H3(e),lt(Py))},advance:Py,sort(e){if(Op)lt.onFrame(()=>Em.sort(e));else{const t=_a.indexOf(e);~t&&(_a.splice(t,1),z3(e))}},clear(){_a=[],Gu.clear()}};function _B(){Gu.forEach(H3),Gu.clear(),lt(Py)}function H3(e){_a.includes(e)||z3(e)}function z3(e){_a.splice(xB(_a,t=>t.priority>e.priority),0,e)}function Py(e){const t=v1;for(let n=0;n<_a.length;n++){const r=_a[n];Op=r.priority,r.idle||(yE(r),r.advance(e),r.idle||t.push(r))}return Op=0,v1=_a,v1.length=0,_a=t,_a.length>0}function xB(e,t){const n=e.findIndex(t);return n<0?e.length:n}var AB={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},Na="[-+]?\\d*\\.?\\d+",Lp=Na+"%";function vm(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var SB=new RegExp("rgb"+vm(Na,Na,Na)),CB=new RegExp("rgba"+vm(Na,Na,Na,Na)),DB=new RegExp("hsl"+vm(Na,Lp,Lp)),kB=new RegExp("hsla"+vm(Na,Lp,Lp,Na)),RB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,IB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wB=/^#([0-9a-fA-F]{6})$/,NB=/^#([0-9a-fA-F]{8})$/;function OB(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=wB.exec(e))?parseInt(t[1]+"ff",16)>>>0:Mo&&Mo[e]!==void 0?Mo[e]:(t=SB.exec(e))?(Il(t[1])<<24|Il(t[2])<<16|Il(t[3])<<8|255)>>>0:(t=CB.exec(e))?(Il(t[1])<<24|Il(t[2])<<16|Il(t[3])<<8|$S(t[4]))>>>0:(t=RB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=NB.exec(e))?parseInt(t[1],16)>>>0:(t=IB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=DB.exec(e))?(MS(PS(t[1]),Ch(t[2]),Ch(t[3]))|255)>>>0:(t=kB.exec(e))?(MS(PS(t[1]),Ch(t[2]),Ch(t[3]))|$S(t[4]))>>>0:null}function T1(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 MS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=T1(a,r,e+1/3),l=T1(a,r,e),c=T1(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function Il(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function PS(e){return(parseFloat(e)%360+360)%360/360}function $S(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ch(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function FS(e){let t=OB(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 vd=(e,t,n)=>{if(we.fun(e))return e;if(we.arr(e))return vd({range:e,output:t,extrapolate:n});if(we.str(e.output[0]))return gE(e);const r=e,a=r.output,o=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=MB(f,o);return LB(f,o[p],o[p+1],a[p],a[p+1],d,l,c,r.map)}};function LB(e,t,n,r,a,o,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=o(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function MB(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var PB={linear:e=>e},Td=Symbol.for("FluidValue.get"),Jl=Symbol.for("FluidValue.observers"),Ea=e=>!!(e&&e[Td]),Or=e=>e&&e[Td]?e[Td]():e,jS=e=>e[Jl]||null;function $B(e,t){e.eventObserved?e.eventObserved(t):e(t)}function _d(e,t){const n=e[Jl];n&&n.forEach(r=>{$B(r,t)})}var G3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");FB(this,e)}},FB=(e,t)=>V3(e,Td,t);function cc(e,t){if(e[Td]){let n=e[Jl];n||V3(e,Jl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xd(e,t){const n=e[Jl];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Jl]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var V3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Wh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,jB=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,BS=new RegExp(`(${Wh.source})(%|[a-z]+)`,"i"),BB=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Tm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,q3=e=>{const[t,n]=UB(e);if(!t||mE())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&&Tm.test(n))return q3(n);if(n)return n}return e},UB=e=>{const t=Tm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},_1,HB=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Y3=e=>{_1||(_1=Mo?new RegExp(`(${Object.keys(Mo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Or(o).replace(Tm,q3).replace(jB,FS).replace(_1,FS)),n=t.map(o=>o.match(Wh).map(Number)),a=n[0].map((o,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(o=>vd({...e,output:o}));return o=>{const l=!BS.test(t[0])&&t.find(d=>BS.test(d))?.replace(Wh,"");let c=0;return t[0].replace(Wh,()=>`${a[c++](o)}${l||""}`).replace(BB,HB)}},bE="react-spring: ",Q3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${bE}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},zB=Q3(console.warn);function GB(){zB(`${bE}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var VB=Q3(console.warn);function qB(){VB(`${bE}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 _m(e){return we.str(e)&&(e[0]=="#"||/\d/.test(e)||!mE()&&Tm.test(e)||e in(Mo||{}))}var EE=mE()?N.useEffect:N.useLayoutEffect,YB=()=>{const e=N.useRef(!1);return EE(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function K3(){const e=N.useState()[1],t=YB();return()=>{t.current&&e(Math.random())}}var W3=e=>N.useEffect(e,QB),QB=[];function US(e){const t=N.useRef(void 0);return N.useEffect(()=>{t.current=e}),t.current}var Ad=Symbol.for("Animated:node"),KB=e=>!!e&&e[Ad]===e,ei=e=>e&&e[Ad],vE=(e,t)=>vB(e,Ad,t),xm=e=>e&&e[Ad]&&e[Ad].getPayload(),X3=class{constructor(){vE(this,this)}getPayload(){return this.payload||[]}},Am=class Z3 extends X3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,we.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Z3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return we.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,we.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Mp=class J3 extends Am{constructor(t){super(0),this._string=null,this._toString=vd({output:[t,t]})}static create(t){return new J3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(we.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=vd({output:[this.getValue(),t]})),this._value=0,super.reset()}},Pp={dependencies:null},Sm=class extends X3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return li(this.source,(n,r)=>{KB(n)?t[r]=n.getValue(e):Ea(n)?t[r]=Or(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return li(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Pp.dependencies&&Ea(e)&&Pp.dependencies.add(e);const t=xm(e);t&&xt(t,n=>this.add(n))}},WB=class eR extends Sm{constructor(t){super(t)}static create(t){return new eR(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(XB)),!0)}};function XB(e){return(_m(e)?Mp:Am).create(e)}function $y(e){const t=ei(e);return t?t.constructor:we.arr(e)?WB:_m(e)?Mp:Am}var HS=(e,t)=>{const n=!we.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((r,a)=>{const o=N.useRef(null),l=n&&N.useCallback(T=>{o.current=eU(a,T)},[a]),[c,d]=JB(r,t),f=K3(),p=()=>{const T=o.current;if(n&&!T)return;(T?t.applyAnimatedValues(T,c.getValue(!0)):!1)===!1&&f()},m=new ZB(p,d),y=N.useRef(void 0);EE(()=>(y.current=m,xt(d,T=>cc(T,m)),()=>{y.current&&(xt(y.current.deps,T=>xd(T,y.current)),lt.cancel(y.current.update))})),N.useEffect(p,[]),W3(()=>()=>{const T=y.current;xt(T.deps,A=>xd(A,T))});const b=t.getComponentProps(c.getValue());return N.createElement(e,{...b,ref:l})})},ZB=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&<.write(this.update)}};function JB(e,t){const n=new Set;return Pp.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Sm(e),Pp.dependencies=null,[e,n]}function eU(e,t){return e&&(we.fun(e)?e(t):e.current=t),t}var zS=Symbol.for("AnimatedComponent"),tU=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Sm(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=l=>{const c=GS(l)||"Anonymous";return we.str(l)?l=o[l]||(o[l]=HS(l,a)):l=l[zS]||(l[zS]=HS(l,a)),l.displayName=`Animated(${c})`,l};return li(e,(l,c)=>{we.arr(e)&&(c=GS(l)),o[c]=o(l)}),{animated:o}},GS=e=>we.str(e)?e:e&&we.str(e.displayName)?e.displayName:we.fun(e)&&e.name||null;function hs(e,...t){return we.fun(e)?e(...t):e}var Vu=(e,t)=>e===!0||!!(t&&e&&(we.fun(e)?e(t):Zr(e).includes(t))),tR=(e,t)=>we.obj(e)?t&&e[t]:e,nR=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,nU=e=>e,TE=(e,t=nU)=>{let n=rU;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);we.und(o)||(r[a]=o)}return r},rU=["config","onProps","onStart","onChange","onPause","onResume","onRest"],aU={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 iU(e){const t={};let n=0;if(li(e,(r,a)=>{aU[a]||(t[a]=r,n++)}),n)return t}function rR(e){const t=iU(e);if(t){const n={to:t};return li(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Sd(e){return e=Or(e),we.arr(e)?e.map(Sd):_m(e)?Ma.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function oU(e){for(const t in e)return!0;return!1}function Fy(e){return we.fun(e)||we.arr(e)&&we.obj(e[0])}function sU(e,t){e.ref?.delete(e),t?.delete(e)}function lU(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var cU={default:{tension:170,friction:26}},jy={...cU.default,mass:1,damping:1,easing:PB.linear,clamp:!1},uU=class{constructor(){this.velocity=0,Object.assign(this,jy)}};function dU(e,t,n){n&&(n={...n},VS(n,t),t={...n,...t}),VS(e,t),Object.assign(e,t);for(const l in jy)e[l]==null&&(e[l]=jy[l]);let{frequency:r,damping:a}=e;const{mass:o}=e;return we.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 VS(e,t){if(!we.und(t.decay))e.duration=void 0;else{const n=!we.und(t.tension)||!we.und(t.friction);(n||!we.und(t.frequency)||!we.und(t.damping)||!we.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var qS=[],fU=class{constructor(){this.changed=!1,this.values=qS,this.toValues=null,this.fromValues=qS,this.config=new uU,this.immediate=!1}};function aR(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((l,c)=>{let d,f,p=Vu(n.cancel??r?.cancel,t);if(p)b();else{we.und(n.pause)||(a.paused=Vu(n.pause,t));let T=r?.pause;T!==!0&&(T=a.paused||Vu(T,t)),d=hs(n.delay||0,t),T?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function m(){a.resumeQueue.add(y),a.timeouts.delete(f),f.cancel(),d=f.time-lt.now()}function y(){d>0&&!Ma.skipAnimation?(a.delayed=!0,f=lt.setTimeout(b,d),a.pauseQueue.add(m),a.timeouts.add(f)):b()}function b(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{o.start({...n,callId:e,cancel:p},l)}catch(T){c(T)}}})}var _E=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ql(e.get()):t.every(n=>n.noop)?iR(e.get()):wa(e.get(),t.every(n=>n.finished)),iR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),wa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ql=e=>({value:e,cancelled:!0,finished:!1});function oR(e,t,n,r){const{callId:a,parentId:o,onRest:l}=t,{asyncTo:c,promise:d}=n;return!o&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=TE(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const y=new Promise((C,x)=>(p=C,m=x)),b=C=>{const x=a<=(n.cancelId||0)&&ql(r)||a!==n.asyncId&&wa(r,!1);if(x)throw C.result=x,m(C),C},T=(C,x)=>{const D=new YS,S=new QS;return(async()=>{if(Ma.skipAnimation)throw Cd(n),S.result=wa(r,!1),m(S),S;b(D);const M=we.obj(C)?{...C}:{...x,to:C};M.parentId=a,li(f,(I,V)=>{we.und(M[V])&&(M[V]=I)});const L=await r.start(M);return b(D),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),L})()};let A;if(Ma.skipAnimation)return Cd(n),wa(r,!1);try{let C;we.arr(e)?C=(async x=>{for(const D of x)await T(D)})(e):C=Promise.resolve(e(T,r.stop.bind(r))),await Promise.all([C.then(p),y]),A=wa(r.get(),!0,!1)}catch(C){if(C instanceof YS)A=C.result;else if(C instanceof QS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?c:void 0,n.promise=o?d:void 0)}return we.fun(l)&<.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function Cd(e,t){zu(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var YS=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.")}},QS=class extends Error{constructor(){super("SkipAnimationSignal")}},By=e=>e instanceof xE,hU=1,xE=class extends G3{constructor(){super(...arguments),this.id=hU++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ei(this);return e&&e.getValue()}to(...e){return Ma.to(this,e)}interpolate(...e){return GB(),Ma.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){_d(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Em.sort(this),_d(this,{type:"priority",parent:this,priority:e})}},Ls=Symbol.for("SpringPhase"),sR=1,Uy=2,Hy=4,x1=e=>(e[Ls]&sR)>0,vo=e=>(e[Ls]&Uy)>0,Eu=e=>(e[Ls]&Hy)>0,KS=(e,t)=>t?e[Ls]|=Uy|sR:e[Ls]&=~Uy,WS=(e,t)=>t?e[Ls]|=Hy:e[Ls]&=~Hy,pU=class extends xE{constructor(e,t){if(super(),this.animation=new fU,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,!we.und(e)||!we.und(t)){const n=we.obj(e)?{...e}:{...t,from:e};we.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(vo(this)||this._state.asyncTo)||Eu(this)}get goal(){return Or(this.animation.to)}get velocity(){const e=ei(this);return e instanceof Am?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return x1(this)}get isAnimating(){return vo(this)}get isPaused(){return Eu(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,l=xm(r.to);!l&&Ea(r.to)&&(a=Zr(Or(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==Mp?1:l?l[p].lastPosition:a[p];let y=r.immediate,b=m;if(!y){if(b=f.lastPosition,o.tension<=0){f.done=!0;return}let T=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=we.arr(o.velocity)?o.velocity[p]:o.velocity;let x;const D=o.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(we.und(o.duration))if(o.decay){const S=o.decay===!0?.998:o.decay,M=Math.exp(-(1-S)*T);b=A+C/(1-S)*(1-M),y=Math.abs(f.lastPosition-b)<=D,x=C*M}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=o.restVelocity||D/10,M=o.clamp?0:o.bounce,L=!we.und(M),I=A==m?f.v0>0:A<m;let V,ne=!1;const K=1,k=Math.ceil(e/K);for(let H=0;H<k&&(V=Math.abs(x)>S,!(!V&&(y=Math.abs(m-b)<=D,y)));++H){L&&(ne=b==m||b>m==I,ne&&(x=-x*M,b=m));const Q=-o.tension*1e-6*(b-m),W=-o.friction*.001*x,re=(Q+W)/o.mass;x=x+re*K,b=b+x*K}}else{let S=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,f.durationProgress>0&&(f.elapsedTime=o.duration*f.durationProgress,T=f.elapsedTime+=e)),S=(o.progress||0)+T/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),b=A+o.easing(S)*(m-A),x=(b-f.lastPosition)/e,y=S==1}f.lastVelocity=x,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),y=!0)}l&&!l[p].done&&(y=!1),y?f.done=!0:t=!1,f.setValue(b,o.round)&&(n=!0)});const c=ei(this),d=c.getValue();if(t){const f=Or(r.to);(d!==f||n)&&!o.decay?(c.setValue(f),this._onChange(f)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return lt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(vo(this)){const{to:e,config:t}=this.animation;lt.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 we.und(e)?(n=this.queue||[],this.queue=[]):n=[we.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>_E(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cd(this._state,e&&this._lastCallId),lt.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=we.obj(n)?n[t]:n,(n==null||Fy(n))&&(n=void 0),r=we.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return x1(this)||(e.reverse&&([n,r]=[r,n]),r=Or(r),we.und(r)?ei(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,TE(e,(l,c)=>/^on/.test(c)?tR(l,n):l)),ZS(this,e,"onProps"),Tu(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 aR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Eu(this)||(WS(this,!0),Mu(o.pauseQueue),Tu(this,"onPause",wa(this,vu(this,this.animation.to)),this))},resume:()=>{Eu(this)&&(WS(this,!1),vo(this)&&this._resume(),Mu(o.resumeQueue),Tu(this,"onResume",wa(this,vu(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=lR(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ql(this));const r=!we.und(e.to),a=!we.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ql(this));const{key:o,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||we.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const y=!Mi(m,f);y&&(c.from=m),m=Or(m);const b=!Mi(p,d);b&&this._focus(p);const T=Fy(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!T&&dU(A,hs(t.config,o),t.config!==l.config?hs(l.config,o):void 0);let D=ei(this);if(!D||we.und(p))return n(wa(this,!0));const S=we.und(t.reset)?a&&!t.default:!we.und(m)&&Vu(t.reset,o),M=S?m:this.get(),L=Sd(p),I=we.num(L)||we.arr(L)||_m(L),V=!T&&(!I||Vu(l.immediate||t.immediate,o));if(b){const H=$y(p);if(H!==D.constructor)if(V)D=this._set(L);else throw Error(`Cannot animate between ${D.constructor.name} and ${H.name}, as the "to" prop suggests`)}const ne=D.constructor;let K=Ea(p),k=!1;if(!K){const H=S||!x1(this)&&y;(b||H)&&(k=Mi(Sd(M),L),K=!k),(!Mi(c.immediate,V)&&!V||!Mi(A.decay,C)||!Mi(A.velocity,x))&&(K=!0)}if(k&&vo(this)&&(c.changed&&!S?K=!0:K||this._stop(d)),!T&&((K||Ea(d))&&(c.values=D.getPayload(),c.toValues=Ea(p)?null:ne==Mp?[1]:Zr(L)),c.immediate!=V&&(c.immediate=V,!V&&!S&&this._set(d)),K)){const{onRest:H}=c;xt(gU,W=>ZS(this,t,W));const Q=wa(this,vu(this,d));Mu(this._pendingCalls,Q),this._pendingCalls.add(n),c.changed&<.batchedUpdates(()=>{c.changed=!S,H?.(Q,this),S?hs(l.onRest,Q):c.onStart?.(Q,this)})}S&&this._set(M),T?n(oR(t.to,t,this._state,this)):K?this._start():vo(this)&&!b?this._pendingCalls.add(n):n(iR(M))}_focus(e){const t=this.animation;e!==t.to&&(jS(this)&&this._detach(),t.to=e,jS(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ea(t)&&(cc(t,this),By(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ea(e)&&xd(e,this)}_set(e,t=!0){const n=Or(e);if(!we.und(n)){const r=ei(this);if(!r||!Mi(n,r.getValue())){const a=$y(n);!r||r.constructor!=a?vE(this,a.create(n)):r.setValue(n),r&<.batchedUpdates(()=>{this._onChange(n,t)})}}return ei(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Tu(this,"onStart",wa(this,vu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),hs(this.animation.onChange,e,this)),hs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ei(this).reset(Or(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),vo(this)||(KS(this,!0),Eu(this)||this._resume())}_resume(){Ma.skipAnimation?this.finish():Em.start(this)}_stop(e,t){if(vo(this)){KS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),_d(this,{type:"idle",parent:this});const r=t?ql(this.get()):wa(this.get(),vu(this,e??n.to));Mu(this._pendingCalls,r),n.changed&&(n.changed=!1,Tu(this,"onRest",r,this))}}};function vu(e,t){const n=Sd(t),r=Sd(e.get());return Mi(r,n)}function lR(e,t=e.loop,n=e.to){const r=hs(t);if(r){const a=r!==!0&&rR(r),o=(a||e).reverse,l=!a||a.reset;return Dd({...e,loop:t,default:!1,pause:void 0,to:!o||Fy(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function Dd(e){const{to:t,from:n}=e=rR(e),r=new Set;return we.obj(t)&&XS(t,r),we.obj(n)&&XS(n,r),e.keys=r.size?Array.from(r):null,e}function mU(e){const t=Dd(e);return we.und(t.default)&&(t.default=TE(t)),t}function XS(e,t){li(e,(n,r)=>n!=null&&t.add(r))}var gU=["onStart","onRest","onChange","onPause","onResume"];function ZS(e,t,n){e.animation[n]=t[n]!==nR(t,n)?tR(t[n],e.key):void 0}function Tu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var yU=["onStart","onChange","onRest"],bU=1,EU=class{constructor(e,t){this.id=bU++,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];we.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Dd(e)),this}start(e){let{queue:t}=this;return e?t=Zr(e).map(Dd):this.queue=[],this._flush?this._flush(this,t):(hR(this,t),zy(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Zr(t),r=>n[r].stop(!!e))}else Cd(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(we.und(e))this.start({pause:!0});else{const t=this.springs;xt(Zr(e),n=>t[n].pause())}return this}resume(e){if(we.und(e))this.start({pause:!1});else{const t=this.springs;xt(Zr(e),n=>t[n].resume())}return this}each(e){li(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,zu(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const o=!r&&this._started,l=a||o&&n.size?this.get():null;a&&t.size&&zu(t,([c,d])=>{d.value=l,c(d,this,this._item)}),o&&(this._started=!1,zu(n,([c,d])=>{d.value=l,c(d,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;lt.onFrame(this._onFrame)}};function zy(e,t){return Promise.all(t.map(n=>cR(e,n))).then(n=>_E(e,n))}async function cR(e,t,n){const{keys:r,to:a,from:o,loop:l,onRest:c,onResolve:d}=t,f=we.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),o===!1&&(t.from=null);const p=we.arr(a)||we.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(yU,A=>{const C=t[A];if(we.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const M=x.get(C);M?(D||(M.finished=!1),S&&(M.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,Mu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),b=t.cancel===!0||nR(t,"cancel")===!0;(p||b&&m.asyncId)&&y.push(aR(++e._lastAsyncId,{props:t,state:m,actions:{pause:My,resume:My,start(A,C){b?(Cd(m,e._lastAsyncId),C(ql(e))):(A.onRest=c,C(oR(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const T=_E(e,await Promise.all(y));if(l&&T.finished&&!(n&&T.noop)){const A=lR(t,l,a);if(A)return hR(e,[A]),cR(e,A,!0)}return d&<.batchedUpdates(()=>d(T,e,e.item)),T}function JS(e,t){const n={...e.springs};return t&&xt(Zr(t),r=>{we.und(r.keys)&&(r=Dd(r)),we.obj(r.to)||(r={...r,to:void 0}),fR(n,r,a=>dR(a))}),uR(e,n),n}function uR(e,t){li(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,cc(n,e))})}function dR(e,t){const n=new pU;return n.key=e,t&&cc(n,t),n}function fR(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function hR(e,t){xt(t,n=>{fR(e.springs,n,r=>dR(r,e))})}var vU=N.createContext({pause:!1,immediate:!1}),TU=()=>{const e=[],t=function(r){qB();const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=n(r,o,l);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 xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,o)=>{const l=we.fun(r)?r(o,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=this._getProps(r,o,l);c&&a.push(o.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,o)=>a.update(this._getProps(r,a,o))),this};const n=function(r,a,o){return we.fun(r)?r(o,a):r};return t._getProps=n,t};function _U(e,t,n){const r=we.fun(t)&&t;r&&!n&&(n=[]);const a=N.useMemo(()=>r||arguments.length==3?TU():void 0,[]),o=N.useRef(0),l=K3(),c=N.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=JS(x,D);return o.current>0&&!c.queue.length&&!Object.keys(S).some(L=>!x.springs[L])?zy(x,D):new Promise(L=>{uR(x,S),c.queue.push(()=>{L(zy(x,D))}),l()})}}),[]),d=N.useRef([...c.ctrls]),f=N.useRef([]),p=US(e)||0;N.useMemo(()=>{xt(d.current.slice(e,p),x=>{sU(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),N.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const M=d.current[S]||(d.current[S]=new EU(null,c.flush)),L=r?r(S,M):t[S];L&&(f.current[S]=mU(L))}}const y=d.current.map((x,D)=>JS(x,f.current[D])),b=N.useContext(vU),T=US(b),A=b!==T&&oU(b);EE(()=>{o.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:b});const M=f.current[S];M&&(lU(D,M.ref),D.ref?D.queue.push(M):D.start(M))})}),W3(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=y.map(x=>({...x}));return a?[C,a]:C}function xU(e,t){const n=we.fun(e),[[r],a]=_U(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var AU=class extends xE{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vd(...t);const n=this._get(),r=$y(n);vE(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Mi(t,n)||(ei(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&eC(this._active)&&A1(this)}_get(){const e=we.arr(this.source)?this.source.map(Or):Zr(Or(this.source));return this.calc(...e)}_start(){this.idle&&!eC(this._active)&&(this.idle=!1,xt(xm(this),e=>{e.done=!1}),Ma.skipAnimation?(lt.batchedUpdates(()=>this.advance()),A1(this)):Em.start(this))}_attach(){let e=1;xt(Zr(this.source),t=>{Ea(t)&&cc(t,this),By(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Zr(this.source),e=>{Ea(e)&&xd(e,this)}),this._active.clear(),A1(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=Zr(this.source).reduce((t,n)=>Math.max(t,(By(n)?n.priority:0)+1),0))}};function SU(e){return e.idle!==!1}function eC(e){return!e.size||Array.from(e).every(SU)}function A1(e){e.idle||(e.idle=!0,xt(xm(e),t=>{t.done=!0}),_d(e,{type:"idle",parent:e}))}Ma.assign({createStringInterpolator:Y3,to:(e,t)=>new AU(e,t)});var pR=/^--/;function CU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!pR.test(e)&&!(qu.hasOwnProperty(e)&&qu[e])?t+"px":(""+t).trim()}var tC={};function DU(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:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(y=>n||e.hasAttribute(y)?y:tC[y]||(tC[y]=y.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));o!==void 0&&(e.textContent=o);for(const y in a)if(a.hasOwnProperty(y)){const b=CU(y,a[y]);pR.test(y)?e.style.setProperty(y,b):e.style[y]=b}m.forEach((y,b)=>{e.setAttribute(y,p[b])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var qu={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},kU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),RU=["Webkit","Ms","Moz","O"];qu=Object.keys(qu).reduce((e,t)=>(RU.forEach(n=>e[kU(n,t)]=e[t]),e),qu);var IU=/^(matrix|translate|scale|rotate|skew)/,wU=/^(translate)/,NU=/^(rotate|skew)/,S1=(e,t)=>we.num(e)&&e!==0?e+t:e,Xh=(e,t)=>we.arr(e)?e.every(n=>Xh(n,t)):we.num(e)?e===t:parseFloat(e)===t,OU=class extends Sm{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(l=>[`translate3d(${l.map(c=>S1(c,"px")).join(",")})`,Xh(l,0)])),li(r,(l,c)=>{if(c==="transform")a.push([l||""]),o.push(d=>[d,d===""]);else if(IU.test(c)){if(delete r[c],we.und(l))return;const d=wU.test(c)?"px":NU.test(c)?"deg":"";a.push(Zr(l)),o.push(c==="rotate3d"?([f,p,m,y])=>[`rotate3d(${f},${p},${m},${S1(y,d)})`,Xh(y,0)]:f=>[`${c}(${f.map(p=>S1(p,d)).join(",")})`,Xh(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new LU(a,o)),super(r)}},LU=class extends G3{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 xt(this.inputs,(n,r)=>{const a=Or(n[0]),[o,l]=this.transforms[r](we.arr(a)?a:n.map(Or));e+=" "+o,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>Ea(n)&&cc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>Ea(n)&&xd(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),_d(this,e)}},MU=["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"];Ma.assign({batchedUpdates:H2.unstable_batchedUpdates,createStringInterpolator:Y3,colors:AB});var PU=tU(MU,{applyAnimatedValues:DU,createAnimatedStyle:e=>new OU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),$U=PU.animated;const FU=zt(E.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"})),jU=zt(E.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function BU(){const e=b5(jb);return e[Bb]||e}function nC(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 UU(e){return Bo("MuiCollapse",e)}Uo("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function ur(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 Gy(e,t){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gy(e,t)}function mR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gy(e,t)}const rC={disabled:!1},$p=Le.createContext(null);var HU=function(e){return e.scrollTop},Pu="unmounted",cs="exited",us="entering",$l="entered",Vy="exiting",Vi=function(e){mR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?c?(d=cs,o.appearStatus=us):d=$l:r.unmountOnExit||r.mountOnEnter?d=Pu:d=cs,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===Pu?{status:cs}: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!==us&&o!==$l&&(a=us):(o===us||o===$l)&&(a=Vy)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,l;return a=o=l=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,l=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===us){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:mh.findDOMNode(this);o&&HU(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cs&&this.setState({status:Pu})},n.performEnter=function(r){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[mh.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!o||rC.disabled){this.safeSetState({status:$l},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:us},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:$l},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:mh.findDOMNode(this);if(!a||rC.disabled){this.safeSetState({status:cs},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Vy},function(){r.props.onExiting(l),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:cs},function(){r.props.onExited(l)})})})},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(l){o&&(o=!1,a.nextCallback=null,r(l))},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:mh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Pu)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 l=ur(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Le.createElement($p.Provider,{value:null},typeof o=="function"?o(r,l):Le.cloneElement(Le.Children.only(o),l))},t}(Le.Component);Vi.contextType=$p;Vi.propTypes={};function wl(){}Vi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wl,onEntering:wl,onEntered:wl,onExit:wl,onExiting:wl,onExited:wl};Vi.UNMOUNTED=Pu;Vi.EXITED=cs;Vi.ENTERING=us;Vi.ENTERED=$l;Vi.EXITING=Vy;const aC={};function gR(e,t){const n=N.useRef(aC);return n.current===aC&&(n.current=e(t)),n}const zU=[];function GU(e){N.useEffect(e,zU)}let VU=class yR{static create(){return new yR}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 bR(){const e=gR(VU.create).current;return GU(e.disposeEffect),e}const qU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Bs(r,UU,n)},YU=Jt("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]}})(Rb(({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"}}]}))),QU=Jt("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),KU=Jt("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),kd=N.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:o,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:T,onExiting:A,orientation:C="vertical",style:x,timeout:D=DD.standard,TransitionComponent:S=Vi,...M}=n,L={...n,orientation:C,collapsedSize:l},I=qU(L),V=BU(),ne=bR(),K=N.useRef(null),k=N.useRef(),H=typeof l=="number"?`${l}px`:l,Q=C==="horizontal",W=Q?"width":"height",re=N.useRef(null),me=si(t,re),G=te=>Ce=>{if(te){const Ie=re.current;Ce===void 0?te(Ie):te(Ie,Ce)}},le=()=>K.current?K.current[Q?"clientWidth":"clientHeight"]:0,se=G((te,Ce)=>{K.current&&Q&&(K.current.style.position="absolute"),te.style[W]=H,p&&p(te,Ce)}),ye=G((te,Ce)=>{const Ie=le();K.current&&Q&&(K.current.style.position="");const{duration:Me,easing:Oe}=nC({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const st=V.transitions.getAutoHeightDuration(Ie);te.style.transitionDuration=`${st}ms`,k.current=st}else te.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;te.style[W]=`${Ie}px`,te.style.transitionTimingFunction=Oe,y&&y(te,Ce)}),P=G((te,Ce)=>{te.style[W]="auto",m&&m(te,Ce)}),Ne=G(te=>{te.style[W]=`${le()}px`,b&&b(te)}),ce=G(T),w=G(te=>{const Ce=le(),{duration:Ie,easing:Me}=nC({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Oe=V.transitions.getAutoHeightDuration(Ce);te.style.transitionDuration=`${Oe}ms`,k.current=Oe}else te.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;te.style[W]=H,te.style.transitionTimingFunction=Me,A&&A(te)});return E.jsx(S,{in:f,onEnter:se,onEntered:P,onEntering:ye,onExit:Ne,onExited:ce,onExiting:w,addEndListener:te=>{D==="auto"&&ne.start(k.current||0,te),r&&r(re.current,te)},nodeRef:re,timeout:D==="auto"?null:D,...M,children:(te,{ownerState:Ce,...Ie})=>E.jsx(YU,{as:c,className:Pn(I.root,o,{entered:I.entered,exited:!f&&H==="0px"&&I.hidden}[te]),style:{[Q?"minWidth":"minHeight"]:H,...x},ref:me,ownerState:{...L,state:te},...Ie,children:E.jsx(QU,{ownerState:{...L,state:te},className:I.wrapper,ref:K,children:E.jsx(KU,{ownerState:{...L,state:te},className:I.wrapperInner,children:a})})})})});kd&&(kd.muiSupportAuto=!0);function Cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},D1,iC;function WU(){if(iC)return D1;iC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return D1=e,D1}var k1,oC;function XU(){if(oC)return k1;oC=1;var e=WU();function t(){}function n(){}return n.resetWarningCache=t,k1=function(){function r(l,c,d,f,p,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},k1}var sC;function ZU(){return sC||(sC=1,C1.exports=XU()()),C1.exports}var JU=ZU();const lC=Cm(JU);function AE(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Hs();return r({children:t,itemId:n,instance:a})}AE.propTypes={children:lC.node,itemId:lC.string.isRequired};const eH=N.createContext(void 0);function tH(){return N.useContext(eH)}function nH(e){return Bo("PrivateSwitchBase",e)}Uo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ti(e,t,n){return typeof e=="function"?e(t,n):e}function cC(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 ER(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const b=Pn(n?.className,o,a?.className,r?.className),T={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return b.length>0&&(A.className=b),Object.keys(T).length>0&&(A.style=T),{props:A,internalRef:void 0}}const l=pa({...a,...r}),c=cC(r),d=cC(a),f=t(l),p=Pn(f?.className,n?.className,o,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},y={...f,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function rH(e){return typeof e=="string"}function vR(e,t,n){return e===void 0||rH(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qy(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...y}=o,b=p[e]||r,T=ti(m[e],a),{props:{component:A,...C},internalRef:x}=ER({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:T}),D=si(x,T?.ref,t.ref),S=e==="root"?A||f:A,M=vR(b,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[b,M]}function aH(e){const{controlled:t,default:n}=e,{current:r}=N.useRef(t!==void 0),[a,o]=N.useState(n),l=r?t:a,c=N.useCallback(d=>{r||o(d)},[]);return[l,c]}function iH(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=N.useState(!1),y=Pn(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+o,left:-(l/2)+a},T=Pn(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),N.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),E.jsx("span",{className:y,style:b,children:E.jsx("span",{className:T})})}const ya=Uo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function oH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SE(e,t){var n=function(a){return t&&N.isValidElement(a)?t(a):a},r=Object.create(null);return e&&N.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function sH(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 l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function Ts(e,t,n){return n[t]!=null?n[t]:e.props[t]}function lH(e,t){return SE(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ts(n,"appear",e),enter:Ts(n,"enter",e),exit:Ts(n,"exit",e)})})}function cH(e,t,n){var r=SE(e.children),a=sH(t,r);return Object.keys(a).forEach(function(o){var l=a[o];if(N.isValidElement(l)){var c=o in t,d=o in r,f=t[o],p=N.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Ts(l,"exit",e),enter:Ts(l,"enter",e)}):!d&&c&&!p?a[o]=N.cloneElement(l,{in:!1}):d&&c&&N.isValidElement(f)&&(a[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Ts(l,"exit",e),enter:Ts(l,"enter",e)}))}}),a}var uH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dH={component:"div",childFactory:function(e){return e}},CE=function(e){mR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=o.handleExited.bind(oH(o));return o.state={contextValue:{isMounting:!0},handleExited:l,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,l=a.handleExited,c=a.firstRender;return{children:c?lH(r,l):cH(r,o,l),firstRender:!1}},n.handleExited=function(r,a){var o=SE(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,o=r.childFactory,l=ur(r,["component","childFactory"]),c=this.state.contextValue,d=uH(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Le.createElement($p.Provider,{value:c},d):Le.createElement($p.Provider,{value:c},Le.createElement(a,l,d))},t}(Le.Component);CE.propTypes={};CE.defaultProps=dH;const Yy=550,fH=80,hH=mb`
|
|
88
|
+
0% {
|
|
89
|
+
transform: scale(0);
|
|
90
|
+
opacity: 0.1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
100% {
|
|
94
|
+
transform: scale(1);
|
|
95
|
+
opacity: 0.3;
|
|
96
|
+
}
|
|
97
|
+
`,pH=mb`
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
100% {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
`,mH=mb`
|
|
106
|
+
0% {
|
|
107
|
+
transform: scale(1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
50% {
|
|
111
|
+
transform: scale(0.92);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
100% {
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
}
|
|
117
|
+
`,gH=Jt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yH=Jt(iH,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
118
|
+
opacity: 0;
|
|
119
|
+
position: absolute;
|
|
120
|
+
|
|
121
|
+
&.${ya.rippleVisible} {
|
|
122
|
+
opacity: 0.3;
|
|
123
|
+
transform: scale(1);
|
|
124
|
+
animation-name: ${hH};
|
|
125
|
+
animation-duration: ${Yy}ms;
|
|
126
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.${ya.ripplePulsate} {
|
|
130
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
& .${ya.child} {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
display: block;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
background-color: currentColor;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
& .${ya.childLeaving} {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
animation-name: ${pH};
|
|
145
|
+
animation-duration: ${Yy}ms;
|
|
146
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
& .${ya.childPulsate} {
|
|
150
|
+
position: absolute;
|
|
151
|
+
/* @noflip */
|
|
152
|
+
left: 0px;
|
|
153
|
+
top: 0;
|
|
154
|
+
animation-name: ${mH};
|
|
155
|
+
animation-duration: 2500ms;
|
|
156
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
157
|
+
animation-iteration-count: infinite;
|
|
158
|
+
animation-delay: 200ms;
|
|
159
|
+
}
|
|
160
|
+
`,bH=N.forwardRef(function(e,t){const n=rc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...l}=n,[c,d]=N.useState([]),f=N.useRef(0),p=N.useRef(null);N.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=N.useRef(!1),y=bR(),b=N.useRef(null),T=N.useRef(null),A=N.useCallback(S=>{const{pulsate:M,rippleX:L,rippleY:I,rippleSize:V,cb:ne}=S;d(K=>[...K,E.jsx(yH,{classes:{ripple:Pn(a.ripple,ya.ripple),rippleVisible:Pn(a.rippleVisible,ya.rippleVisible),ripplePulsate:Pn(a.ripplePulsate,ya.ripplePulsate),child:Pn(a.child,ya.child),childLeaving:Pn(a.childLeaving,ya.childLeaving),childPulsate:Pn(a.childPulsate,ya.childPulsate)},timeout:Yy,pulsate:M,rippleX:L,rippleY:I,rippleSize:V},f.current)]),f.current+=1,p.current=ne},[a]),C=N.useCallback((S={},M={},L=()=>{})=>{const{pulsate:I=!1,center:V=r||M.pulsate,fakeElement:ne=!1}=M;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const K=ne?null:T.current,k=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,Q,W;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)H=Math.round(k.width/2),Q=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;H=Math.round(re-k.left),Q=Math.round(me-k.top)}if(V)W=Math.sqrt((2*k.width**2+k.height**2)/3),W%2===0&&(W+=1);else{const re=Math.max(Math.abs((K?K.clientWidth:0)-H),H)*2+2,me=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;W=Math.sqrt(re**2+me**2)}S?.touches?b.current===null&&(b.current=()=>{A({pulsate:I,rippleX:H,rippleY:Q,rippleSize:W,cb:L})},y.start(fH,()=>{b.current&&(b.current(),b.current=null)})):A({pulsate:I,rippleX:H,rippleY:Q,rippleSize:W,cb:L})},[r,A,y]),x=N.useCallback(()=>{C({},{pulsate:!0})},[C]),D=N.useCallback((S,M)=>{if(y.clear(),S?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{D(S,M)});return}b.current=null,d(L=>L.length>0?L.slice(1):L),p.current=M},[y]);return N.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),E.jsx(gH,{className:Pn(ya.root,a.root,o),ref:T,...l,children:E.jsx(CE,{component:null,exit:!0,children:c})})});function EH(e){return Bo("MuiButtonBase",e)}const vH=Uo("MuiButtonBase",["root","disabled","focusVisible"]);let TH=class Qy{static create(){return new Qy}static use(){const t=gR(Qy.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.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=xH(),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 _H(){return TH.use()}function xH(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const AH=typeof window<"u"?N.useLayoutEffect:N.useEffect;function oi(e){const t=N.useRef(e);return AH(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function uC(e){try{return e.matches(":focus-visible")}catch{}return!1}const SH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=Bs({root:["root",t&&"disabled",n&&"focusVisible"]},EH,a);return n&&r&&(o.root+=` ${r}`),o},CH=Jt("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"},[`&.${vH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DH=N.forwardRef(function(e,t){const n=rc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:T,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:M,onKeyUp:L,onMouseDown:I,onMouseLeave:V,onMouseUp:ne,onTouchEnd:K,onTouchMove:k,onTouchStart:H,tabIndex:Q=0,TouchRippleProps:W,touchRippleRef:re,type:me,...G}=n,le=N.useRef(null),se=_H(),ye=si(se.ref,re),[P,Ne]=N.useState(!1);d&&P&&Ne(!1),N.useImperativeHandle(r,()=>({focusVisible:()=>{Ne(!0),le.current.focus()}}),[]);const ce=se.shouldMount&&!f&&!d;N.useEffect(()=>{P&&m&&!f&&se.pulsate()},[f,m,P,se]);const w=Ni(se,"start",I,p),te=Ni(se,"stop",C,p),Ce=Ni(se,"stop",x,p),Ie=Ni(se,"stop",ne,p),Me=Ni(se,"stop",Ye=>{P&&Ye.preventDefault(),V&&V(Ye)},p),Oe=Ni(se,"start",H,p),st=Ni(se,"stop",K,p),dt=Ni(se,"stop",k,p),Be=Ni(se,"stop",Ye=>{uC(Ye.target)||Ne(!1),T&&T(Ye)},!1),en=oi(Ye=>{le.current||(le.current=Ye.currentTarget),uC(Ye.target)&&(Ne(!0),S&&S(Ye)),D&&D(Ye)}),wt=()=>{const Ye=le.current;return c&&c!=="button"&&!(Ye.tagName==="A"&&Ye.href)},Pe=oi(Ye=>{m&&!Ye.repeat&&P&&Ye.key===" "&&se.stop(Ye,()=>{se.start(Ye)}),Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&Ye.preventDefault(),M&&M(Ye),Ye.target===Ye.currentTarget&&wt()&&Ye.key==="Enter"&&!d&&(Ye.preventDefault(),A&&A(Ye))}),ar=oi(Ye=>{m&&Ye.key===" "&&P&&!Ye.defaultPrevented&&se.stop(Ye,()=>{se.pulsate(Ye)}),L&&L(Ye),A&&Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&!Ye.defaultPrevented&&A(Ye)});let dn=c;dn==="button"&&(G.href||G.to)&&(dn=b);const Ve={};dn==="button"?(Ve.type=me===void 0?"button":me,Ve.disabled=d):(!G.href&&!G.to&&(Ve.role="button"),d&&(Ve["aria-disabled"]=d));const Xn=si(t,le),an={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:Q,focusVisible:P},on=SH(an);return E.jsxs(CH,{as:dn,className:Pn(on.root,l),ownerState:an,onBlur:Be,onClick:A,onContextMenu:te,onFocus:en,onKeyDown:Pe,onKeyUp:ar,onMouseDown:w,onMouseLeave:Me,onMouseUp:Ie,onDragLeave:Ce,onTouchEnd:st,onTouchMove:dt,onTouchStart:Oe,ref:Xn,tabIndex:d?-1:Q,type:me,...Ve,...G,children:[o,ce?E.jsx(bH,{ref:ye,center:a,...W}):null]})});function Ni(e,t,n,r=!1){return oi(a=>(n&&n(a),r||e[t](a),!0))}const kH=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${La(a)}`],input:["input"]};return Bs(o,nH,t)},RH=Jt(DH,{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}}]}),IH=Jt("input",{name:"MuiSwitchBase",shouldForwardProp:Ub})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wH=N.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:y,name:b,onBlur:T,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:M,value:L,slots:I={},slotProps:V={},...ne}=e,[K,k]=aH({controlled:r,default:!!o}),H=tH(),Q=te=>{C&&C(te),H&&H.onFocus&&H.onFocus(te)},W=te=>{T&&T(te),H&&H.onBlur&&H.onBlur(te)},re=te=>{if(te.nativeEvent.defaultPrevented)return;const Ce=te.target.checked;k(Ce),A&&A(te,Ce)};let me=l;H&&typeof me>"u"&&(me=H.disabled);const G=M==="checkbox"||M==="radio",le={...e,checked:K,disabled:me,disableFocusRipple:c,edge:d},se=kH(le),ye={slots:I,slotProps:{input:m,...V}},[P,Ne]=qy("root",{ref:t,elementType:RH,className:se.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,component:"span",...ne},getSlotProps:te=>({...te,onFocus:Ce=>{te.onFocus?.(Ce),Q(Ce)},onBlur:Ce=>{te.onBlur?.(Ce),W(Ce)}}),ownerState:le,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[ce,w]=qy("input",{ref:y,elementType:IH,className:se.input,externalForwardedProps:ye,getSlotProps:te=>({...te,onChange:Ce=>{te.onChange?.(Ce),re(Ce)}}),ownerState:le,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:me,id:G?p:void 0,name:b,readOnly:x,required:D,tabIndex:S,type:M,...M==="checkbox"&&L===void 0?{}:{value:L}}});return E.jsxs(P,{...Ne,children:[E.jsx(ce,{...w}),K?a:f]})}),NH=zt(E.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"})),OH=zt(E.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"})),LH=zt(E.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 MH(e){return Bo("MuiCheckbox",e)}const R1=Uo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function PH(e){return typeof e.main=="string"}function $H(e,t=[]){if(!PH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function dC(e=[]){return([,t])=>t&&$H(t,e)}function FH(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function jH(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{FH(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=Pn(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),o=Pn(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 BH=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${La(r)}`,`size${La(a)}`]},l=Bs(o,MH,t);return{...t,...l}},UH=Jt(wH,{shouldForwardProp:e=>Ub(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${La(n.size)}`],n.color!=="default"&&t[`color${La(n.color)}`]]}})(Rb(({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})`:oy(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:oy(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dC()).map(([t])=>({props:{color:t},style:{[`&.${R1.checked}, &.${R1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${R1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),HH=E.jsx(OH,{}),zH=E.jsx(NH,{}),GH=E.jsx(LH,{}),TR=N.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=HH,color:a="primary",icon:o=zH,indeterminate:l=!1,indeterminateIcon:c=GH,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:y={},slotProps:b={},...T}=n,A=l?c:o,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=BH(x),S=b.input??d,[M,L]=qy("root",{ref:t,elementType:UH,className:Pn(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...T},ownerState:x,additionalProps:{type:"checkbox",icon:N.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:N.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:y,slotProps:{input:jH(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return E.jsx(M,{...L,classes:D})}),VH=["visible"],qH=Jt("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),YH=Jt("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Oo(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})`:Fi(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}))`:Fi(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})`:Fi(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}))`:Fi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),QH=Jt("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Oo(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),KH=Jt("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Jt(kd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Oo(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Jt(N.forwardRef((e,t)=>{const{visible:n}=e,r=ur(e,VH);return n?E.jsx(TR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function _s(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,l=a?{}:ti(n,r),{props:c,internalRef:d}=ER({...o,externalSlotProps:l}),f=si(d,l?.ref,e.additionalProps?.ref);return vR(t,{...c,ref:f},r)}const _R=zt(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),xR=zt(E.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function WH(e){const{slots:t,slotProps:n,status:r}=e,a=Hs(),o=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??_R,collapseIcon:a.icons.slots.collapseIcon??xR}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??o[c],f=_s({elementType:d,externalSlotProps:p=>Ae({},ti(l[c],p),ti(n?.[c],p)),ownerState:{}});return d?E.jsx(d,Ae({},f)):null}function XH(e){return Bo("MuiRichTreeView",e)}Uo("MuiRichTreeView",["root"]);function ZH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pp(t.components[n].defaultProps,r)}function JH(e){return Object.keys(e).length===0}function ez(e=null){const t=N.useContext(E5);return!t||JH(t)?e:t}const tz=Fb();function nz(e=tz){return ez(e)}function rz({props:e,name:t,defaultTheme:n,themeId:r}){let a=nz(n);return a=a[r]||a,ZH({theme:a,name:t,props:e})}function az({props:e,name:t}){return rz({props:e,name:t,defaultTheme:jb,themeId:Bb})}function AR(e){return az}const iz=(e,t,n)=>{e.$$publishEvent(t,n)},jl="__TREE_VIEW_ROOT_PARENT_ID__",oz=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},sz=["children"],SR=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},l={[jl]:[]},c=(f,p,m)=>{const y=r?r(f):f.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(f)].join(`
|
|
161
|
+
`));if(a[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
|
|
162
|
+
`));const b=n?n(f):f.label;if(b==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(f)].join(`
|
|
163
|
+
`));a[y]={id:y,label:b,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},o[y]=f;const T=m??jl;l[T]||(l[T]=[]),l[T].push(y),f.children?.forEach(A=>c(A,p+1,y))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=oz(l[f])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Wd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=N.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=N.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=N.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=ur(D,sz),M=n.items.itemOrderedChildrenIds[x];return M&&(S.children=M.map(C)),S};return n.items.itemOrderedChildrenIds[jl].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=N.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=N.useCallback(C=>{const x=e.getItemMeta(C).parentId??jl;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=N.useCallback(C=>n.items.itemOrderedChildrenIds[C??jl]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(lE({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},y=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),b=N.useRef(!1),T=N.useCallback(()=>{b.current=!0},[]),A=N.useCallback(()=>b.current,[]);return N.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=SR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||iz(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[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:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[jl].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:y,preventItemUpdates:T,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Wd.getInitialState=e=>({items:SR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Wd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Wd.wrapRoot=({children:e,instance:t})=>E.jsx(cE.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Wd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Dm=({instance:e,params:t,models:n})=>{const r=N.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(y=>{m.set(y,!0)}),m},[n.expandedItems.value]),a=(m,y)=>{t.onExpandedItemsChange?.(m,y),n.expandedItems.setControlledValue(y)},o=N.useCallback(m=>r.has(m),[r]),l=N.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=oi((m,y)=>{const b=e.isItemExpanded(y);e.setItemExpansion(m,y,!b)}),d=oi((m,y,b)=>{if(e.isItemExpanded(y)===b)return;let T;b?T=[y].concat(n.expandedItems.value):T=n.expandedItems.value.filter(A=>A!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,y,b),a(m,T)}),f=(m,y)=>{const b=e.getItemMeta(y),T=e.getItemOrderedChildrenIds(b.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(T);T.length>0&&(t.onItemExpansionToggle&&T.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=N.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:o,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Dm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const lz=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??lz});Dm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Zh=e=>Array.isArray(e)?e:e!=null?[e]:[],I1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},km=({instance:e,params:t,models:n})=>{const r=N.useRef(null),a=N.useRef({}),o=N.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=m.filter(T=>!e.isItemSelected(T)),b=n.selectedItems.value.filter(T=>!m.includes(T));y.forEach(T=>{t.onItemSelectionToggle(p,T,!0)}),b.forEach(T=>{t.onItemSelectionToggle(p,T,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>o.has(p),d=({event:p,itemId:m,keepExistingSelection:y=!1,shouldBeSelected:b})=>{if(t.disableSelection)return;let T;if(y){const A=Zh(n.selectedItems.value),C=e.isItemSelected(m);C&&(b===!1||b==null)?T=A.filter(x=>x!==m):!C&&(b===!0||b==null)?T=[m].concat(A):T=A}else b===!1||b==null&&e.isItemSelected(m)?T=t.multiSelect?[]:null:T=t.multiSelect?[m]:m;l(p,T),r.current=m,a.current={}},f=(p,[m,y])=>{if(t.disableSelection||!t.multiSelect)return;let b=Zh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(b=b.filter(x=>!a.current[x]));const T=I1(b),A=lB(e,m,y),C=A.filter(x=>!T[x]);b=b.concat(C),l(p,b),a.current=I1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=cB(e);l(p,m),a.current=I1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[y,b]=N3(e,m,r.current);f(p,[y,b])}},selectRangeFromStartToItem:(p,m)=>{f(p,[bd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,w3(e)])},selectItemFromArrowNavigation:(p,m,y)=>{if(t.disableSelection||!t.multiSelect)return;let b=Zh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(b.push(y),a.current={[m]:!0,[y]:!0}):(a.current[m]||(a.current={}),a.current[y]?(b=b.filter(T=>T!==m),delete a.current[m]):(b.push(y),a.current[y]=!0)),l(p,b)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};km.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const cz=[];km.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?cz:null)});km.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let uz=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)}},dz=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(){}},fz=class{};function hz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new dz:new uz);const[o]=N.useState(new fz),l=N.useRef(null),c=N.useRef(void 0);c.current=a;const d=N.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(o,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));N.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const pz={registry:null},mz=hz(pz),CR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?CR(t.shadowRoot):t:null};function gz(e){return e&&e.ownerDocument||document}const yz=(e,t)=>{let n=Zh(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=bd(e)),n},DE=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const l=yz(e,a.selectedItems.value),c=oi(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=N.useCallback(()=>!!o.current&&o.current.contains(CR(gz(o.current))),[o]),f=N.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},y=oi((C,x)=>{p(x)&&m(C,x)}),b=oi(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),T=C=>C===l;mz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:y},instance:{isItemFocused:f,canItemBeTabbed:T,focusItem:y,removeFocusedItem:b}}};DE.getInitialState=()=>({focusedItemId:null});DE.params={onItemFocus:!0};const bz=N.createContext(),Ez=()=>N.useContext(bz)??!1;function vz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const DR=({instance:e,params:t,state:n})=>{const r=Ez(),a=N.useRef({}),o=oi(f=>{a.current=f(a.current)});N.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),y=C=>{const x=Kh(e,C);return x===null?bd(e):x};let b=null,T=y(f);const A={};for(;b==null&&!A[T];)a.current[T]===m?b=T:(A[T]=!0,T=y(T));return b},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||Ed(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{Ds(e,xa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case y==="ArrowDown":{const b=Kh(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case y==="ArrowUp":{const b=I3(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const b=Kh(e,p);b&&(e.focusItem(f,b),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const b=e.getItemMeta(p).parentId;b&&(e.focusItem(f,b),f.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,bd(e)),f.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,w3(e)),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&vz(y)):{const b=l(p,y);b!=null&&(e.focusItem(f,b),f.preventDefault());break}}}}}};DR.params={};const kR=({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}}}});kR.params={};const Tz=[Wd,Dm,km,DE,DR,kR,xa];function RR(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:l}}=Hs(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,b=t.isItemEditable?t.isItemEditable(e):!1,T=S=>{if(!m){f||t.focusItem(S,e);const M=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(M&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!y&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(o||m)return;const M=S.nativeEvent.shiftKey;r&&M?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{Ds(t,xa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:b,editing:y,disableSelection:o,checkboxSelection:a,handleExpansion:T,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,M)=>{Ds(t,xa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,M),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{Ds(t,xa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const _z=Jt("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},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}`}})),xz=Jt("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>v5(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})`:Fi(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 Az(e){return e.action==null?null:E.jsx(xz,Ae({},e))}const Sz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],IR=N.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:y}=e,b=ur(e,Sz),{disabled:T,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:M,checkboxSelection:L,handleExpansion:I,handleSelection:V,handleCheckboxSelection:ne,handleContentClick:K,preventSelection:k,expansionTrigger:H,toggleItemEditing:Q}=RR(d),W=l||o||a,re=N.useRef(null),me=se=>{k(se),p&&p(se)},G=se=>{K?.(se,d),!re.current?.contains(se.target)&&(H==="content"&&I(se),L||V(se),f&&f(se))},le=se=>{se.defaultMuiPrevented||Q()};return E.jsxs("div",Ae({},b,{className:Pn(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,T&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[E.jsx("div",{className:n.iconContainer,children:W}),L&&E.jsx(TR,{className:n.checkbox,checked:C,onChange:ne,disabled:T||M,ref:re,tabIndex:-1}),D?E.jsx(_z,Ae({},y,{className:n.labelInput})):E.jsx("div",Ae({className:n.label},S&&{onDoubleClick:le},{children:c})),m&&E.jsx(Az,Ae({},m))]}))});function Cz(e){return Bo("MuiTreeItem",e)}const Oi=Uo("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Dz=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],kz=["ownerState"],Rz=["ownerState"],Iz=["ownerState"],wz=AR(),Nz=e=>{const{classes:t}=e;return Bs({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"]},Cz,t)},Oz=Jt("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Lz=Jt(IR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Oi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Oi.label}`]:t.label}],shouldForwardProp:e=>Oo(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"}},[`&.${Oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Oi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fi(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}))`:Fi(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})`:Fi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Oi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Oi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Oi.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Oi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Mz=Jt(kd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Oo(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Pz=N.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=Hs(),p=N.useContext(cE),m=wz({props:e,name:"MuiTreeItem"}),{children:y,className:b,slots:T,slotProps:A,ContentComponent:C=IR,ContentProps:x,itemId:D,id:S,label:M,onClick:L,onMouseDown:I,onBlur:V,onKeyDown:ne}=m,K=ur(m,Dz),{expanded:k,focused:H,selected:Q,disabled:W,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:le}=RR(D),{contentRef:se,rootRef:ye,propsEnhancers:P}=r(m),Ne=N.useRef(null),ce=N.useRef(null),w=si(t,ye,Ne),te=si(x?.ref,se,ce),Ce={expandIcon:T?.expandIcon??n.slots.expandIcon??_R,collapseIcon:T?.collapseIcon??n.slots.collapseIcon??xR,endIcon:T?.endIcon??n.slots.endIcon,icon:T?.icon,groupTransition:T?.groupTransition},Ie=Te=>Array.isArray(Te)?Te.length>0&&Te.some(Ie):!!Te,Me=Ie(y),Oe=Ae({},m,{expanded:k,focused:H,selected:Q,disabled:W,indentationAtItemLevel:o}),st=Nz(Oe),dt=Ce.groupTransition??void 0,Be=_s({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),en=Te=>{c==="iconContainer"&&me(Te)},wt=k?Ce.collapseIcon:Ce.expandIcon,Pe=_s({elementType:wt,ownerState:{},externalSlotProps:Te=>k?Ae({},ti(n.slotProps.collapseIcon,Te),ti(A?.collapseIcon,Te)):Ae({},ti(n.slotProps.expandIcon,Te),ti(A?.expandIcon,Te)),additionalProps:{onClick:en}}),ar=ur(Pe,kz),dn=Me&&wt?E.jsx(wt,Ae({},ar)):null,Ve=Me?void 0:Ce.endIcon,Xn=_s({elementType:Ve,ownerState:{},externalSlotProps:Te=>Me?{}:Ae({},ti(n.slotProps.endIcon,Te),ti(A?.endIcon,Te))}),an=ur(Xn,Rz),on=Ve?E.jsx(Ve,Ae({},an)):null,Ye=Ce.icon,Ct=_s({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),Sr=ur(Ct,Iz),ja=Ye?E.jsx(Ye,Ae({},Sr)):null;let Rt;Q?Rt=!0:l||W?Rt=void 0:Rt=!1;function ue(Te){!H&&(!W||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&Ed(Te.relatedTarget,Ne.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&Ed(Te.target,Ne.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const Fe=Te=>{ne?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},nt=lE({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Nt={rootRefObject:Ne,contentRefObject:ce,interactions:{handleSaveItemLabel:le,handleCancelItemLabelEditing:G}},Gn=P.root?.(Ae({},Nt,{externalEventHandlers:pa(K)}))??{},gn=P.content?.(Ae({},Nt,{externalEventHandlers:pa(x)}))??{},Sn=P.dragAndDropOverlay?.(Ae({},Nt,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Nt,{externalEventHandlers:{}}))??{};return E.jsx(AE,{itemId:D,children:E.jsxs(Oz,Ae({className:Pn(st.root,b),role:"treeitem","aria-expanded":Me?k:void 0,"aria-selected":Rt,"aria-disabled":W||void 0,id:nt,tabIndex:Dt},K,{ownerState:Oe,onFocus:ue,onBlur:ve,onKeyDown:Fe,ref:w,style:o?Ae({},K.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):K.style},Gn,{children:[E.jsx(Lz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:M,itemId:D,onClick:L,onMouseDown:I,icon:ja,expansionIcon:dn,displayIcon:on,ownerState:Oe},x,gn,Sn.action==null?{}:{dragAndDropOverlayProps:Sn},_e.value==null?{}:{labelInputProps:_e},{ref:te})),y&&E.jsx(Mz,Ae({as:dt},Be,{children:y}))]}))})}),$z=["ownerState"];function Fz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const l=e?.item??Pz,c=_s({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=ur(c,$z),f=N.useMemo(()=>o?E.jsx(wR,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return E.jsx(l,Ae({},d,{children:f}))}function wR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return E.jsx(N.Fragment,{children:t.map(a=>E.jsx(Fz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const jz=(e,t)=>{const n=N.useRef({}),[r,a]=N.useState(()=>{const o={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},o[c]=d.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,l])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[o]:d}))}}]}))},Bz=["slots","slotProps","apiRef","experimentalFeatures"],Uz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,l=ur(e.props,Bz);const c={};o.forEach(y=>{Object.assign(c,y.params)});const d={},f={};Object.keys(l).forEach(y=>{const b=l[y];c[y]?d[y]=b:f[y]=b});const p=a??{},m=o.reduce((y,b)=>b.getDefaultizedParams?b.getDefaultizedParams({params:y,experimentalFeatures:p}):y,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Hz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const y=m.itemPlugin({props:a,rootRef:o,contentRef:l});y?.rootRef&&(o=y.rootRef),y?.contentRef&&(l=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(b=>{d[b]=!0}))});const f=m=>y=>{const b={};return c.forEach(T=>{const A=T[m];A!=null&&Object.assign(b,A(y))}),b},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let l=o;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let o=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let zz=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 l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<o.length;l+=1){const c=o[l];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 Gz=e=>e.isPropagationStopped!==void 0,NR=()=>{const[e]=N.useState(()=>new zz),t=N.useCallback((...r)=>{const[a,o,l={}]=r;l.defaultMuiPrevented=!1,!(Gz(l)&&l.isPropagationStopped())&&e.emit(a,o,l)},[e]),n=N.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};NR.params={};const OR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};OR.params={};const kE=({params:e,state:t,setState:n})=>{N.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??uB()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};kE.params={id:!0};kE.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Vz=[NR,OR,kE];function qz(e){const t=N.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Yz=({plugins:e,rootRef:t,props:n})=>{const r=[...Vz,...e],{pluginParams:a,forwardedProps:o,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Uz({plugins:r,props:n}),p=jz(r,a),m=N.useRef({}).current,y=qz(l),b=N.useRef(null),T=si(b,t),A=Hz({plugins:r,instance:m,publicAPI:y,rootRef:b}),[C,x]=N.useState(()=>{const M={};return r.forEach(L=>{L.getInitialState&&Object.assign(M,L.getInitialState(a))}),M}),D=[],S=M=>{const L=M({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:b,models:p,plugins:r});L.getRootProps&&D.push(L.getRootProps),L.publicAPI&&Object.assign(y,L.publicAPI),L.instance&&Object.assign(m,L.instance),L.contextValue&&Object.assign(A,L.contextValue)};return r.forEach(S),{getRootProps:(M={})=>{const L=Ae({role:"tree"},o,M,{ref:T});return D.forEach(I=>{Object.assign(L,I(M))}),L},rootRef:T,contextValue:A,instance:m}};function Qz(e){const{value:t,children:n}=e;return E.jsx(O3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Kz=AR(),Wz=e=>{const{classes:t}=e;return Bs({root:["root"]},XH,t)},Xz=Jt("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Zz=N.forwardRef(function(e,t){const n=Kz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Yz({plugins:Tz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Wz(n),f=l?.root??Xz,p=_s({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return E.jsx(Qz,{value:a,children:E.jsx(f,Ae({},p,{children:E.jsx(wR,{slots:l,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function LR({items:e,defaultExpandedItems:t,navigate:n}){return E.jsx(Zz,{items:rG(e,n),defaultExpandedItems:t,slots:{item:nG}})}const Jz=$U(kd);function eG(e){const t=xU({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return E.jsx(Jz,{style:t,...e})}function tG({item:e,...t}){const n=E.jsxs(QH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&E.jsx(mB,{})||e.fileType==="notebook"&&E.jsx(gB,{})||e.fileType==="model"&&E.jsx(jU,{})||e.fileType=="database"&&E.jsx(FU,{})||E.jsx(C3,{}),E.jsx(ze,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?E.jsx(Er,{title:e.error,placement:"right",children:n}):n}const nG=N.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:y,status:b,publicAPI:T}=pB({id:n,itemId:r,children:o,label:a,disabled:l,rootRef:t}),A=T.getItem(r);return b.selected=!1,b.focused=!1,E.jsx(AE,{itemId:r,children:E.jsxs(qH,{...d(c),children:[E.jsxs(YH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[E.jsx(KH,{...m(),children:E.jsx(WH,{status:b})}),E.jsx(tG,{...p({item:A})})]}),o&&E.jsx(eG,{...y()})]})})});function rG(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((l,c)=>{c===o.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),MR(n,"",t)}function MR(e,t,n){const r=[];return e.forEach((a,o)=>{const l=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+o,d):void 0,selectable:l==="model"||l==="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:MR(a,t,n)})}),r}const aG=new gm(new rr),iG=["notebooks/","models/"];function oG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ta(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["models",t,n,r],queryFn:d=>aG.listModels(t,n,r,d)});return E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Semantic Models"}),E.jsxs(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&E.jsx(fr,{text:"Fetching Models..."}),o&&E.jsx(nr,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&E.jsx(LR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:iG}),c&&a.data.length===0&&E.jsx(ze,{variant:"body2",children:"No models found"})]})]})})}const sG=new Zk(new rr),lG=["notebooks/"];function cG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ta(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["notebooks",t,n,r],queryFn:d=>sG.listNotebooks(t,n,r,d)});return E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Notebooks"}),E.jsxs(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&E.jsx(fr,{text:"Fetching Notebooks..."}),o&&E.jsx(nr,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&E.jsx(LR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:lG,navigate:e}),c&&a.data.length===0&&E.jsx(ze,{variant:"body2",children:"No notebooks found"})]})]})})}const uG=new Z9(new rr);function dG(){const{projectName:e,packageName:t,versionId:n}=ta(),{data:r,isError:a,isLoading:o,error:l}=mr({queryKey:["schedules",e,t,n],queryFn:c=>uG.listSchedules(e,t,n,c)});return o?E.jsx(fr,{text:"Fetching Schedules..."}):a?E.jsx(nr,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"Scheduler"}),E.jsx(at,{sx:{maxHeight:"200px",overflowY:"auto"},children:E.jsx(pb,{component:Ph,children:E.jsxs(rd,{sx:{minWidth:300},size:"small",children:[E.jsx(sp,{children:E.jsxs(ri,{children:[E.jsx(Ut,{align:"left",children:"Resource"}),E.jsx(Ut,{align:"left",children:"Schedule"}),E.jsx(Ut,{align:"left",children:"Action"}),E.jsx(Ut,{align:"left",children:"Connection"}),E.jsx(Ut,{align:"left",children:"Last Run"}),E.jsx(Ut,{align:"left",children:"Status"})]})}),E.jsx(ad,{children:r.data.map(c=>E.jsxs(ri,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[E.jsx(Ut,{align:"left",children:c.resource}),E.jsx(Ut,{align:"left",children:c.schedule}),E.jsx(Ut,{align:"left",children:c.action}),E.jsx(Ut,{align:"left",children:c.connection}),E.jsx(Ut,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),E.jsx(Ut,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}function fG({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[a,o]=Le.useState(!1),[l,c]=Le.useState(!1),[d,f]=Le.useState(!1),[p,m]=Le.useState(),[y,b]=Le.useState(),[T,A]=Le.useState(!1),{packageName:C,projectName:x}=ta(),D=nN({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return N.useEffect(()=>{e.type==="code"&&pd(e.text,"malloy").then(S=>{m(S)})},[e]),N.useEffect(()=>{pd(D,"typescript").then(S=>{b(S)})},[D]),e.type==="markdown"&&E.jsx(lA,{children:E.jsx(at,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:E.jsx(oE,{children:e.text})})})||e.type==="code"&&E.jsxs(lA,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&E.jsx(An,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&E.jsx(cA,{sx:{position:"relative",padding:"0"},children:E.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[E.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50?`${p.substring(0,50)}...`:p},style:{fontFamily:"monospace",fontSize:"14px",color:"#666666",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),E.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>A(!0),children:E.jsx(vS,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),E.jsxs(Co,{open:T,onClose:()=>A(!1),maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[E.jsxs(Do,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Data Sources",E.jsx(xn,{onClick:()=>A(!1),sx:{color:"#666666"},children:E.jsx(Lu,{})})]}),E.jsx(ko,{children:E.jsx(m3,{sourceAndPaths:e.newSources.map(S=>({sourceInfo:JSON.parse(S),modelPath:t}))})})]}),E.jsxs(Co,{open:a,onClose:()=>o(!1),maxWidth:"lg",fullWidth:!0,children:[E.jsxs(Do,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",E.jsx(xn,{onClick:()=>o(!1),sx:{color:"#666666"},children:E.jsx(Lu,{})})]}),E.jsx(ko,{children:E.jsx("pre",{className:"code-display",dangerouslySetInnerHTML:{__html:p}})})]}),E.jsxs(Co,{open:l,onClose:()=>c(!1),maxWidth:"lg",fullWidth:!0,children:[E.jsxs(Do,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",E.jsx(xn,{onClick:()=>c(!1),sx:{color:"#666666"},children:E.jsx(Lu,{})})]}),E.jsx(ko,{children:E.jsxs(An,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[E.jsx(ze,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:y}}),E.jsx(Er,{title:"Copy Embeddable Code",children:E.jsx(xn,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(D)},children:E.jsx(LD,{})})})]})})]}),E.jsxs(Co,{open:d,onClose:()=>f(!1),maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[E.jsxs(Do,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Results",E.jsx(xn,{onClick:()=>f(!1),sx:{color:"#666666"},children:E.jsx(Lu,{})})]}),E.jsx(ko,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:E.jsx(Oy,{result:e.result,minHeight:800,maxHeight:800,hideToggle:!0})})]}),e.result&&E.jsxs(cA,{sx:{position:"relative"},children:[E.jsx(at,{sx:{paddingTop:"24px","& *":{scrollbarWidth:"thin",scrollbarColor:"#c1c1c1 #f1f1f1","&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}}}},children:E.jsx(Oy,{result:e.result,minHeight:300,maxHeight:1e3,hideToggle:!0})}),E.jsx(at,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),E.jsxs(An,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&E.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:S=>{S.stopPropagation(),o(!0)},children:E.jsx(y3,{sx:{fontSize:"18px",color:"#666666"}})}),E.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>f(!0),children:E.jsx(vS,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const hG=new Zk(new rr);function PR({notebookPath:e,hideResultIcons:t,hideEmbeddingIcons:n}){const{projectName:r,packageName:a,versionId:o}=ta(),{data:l,isSuccess:c,isError:d,error:f}=mr({queryKey:["notebook",r,a,e,o],queryFn:async p=>(await hG.getNotebook(r,a,e,o,p)).data});return E.jsx(q6,{children:E.jsx(Y6,{children:E.jsxs(An,{spacing:3,component:"section",children:[!c&&!d&&E.jsx(fr,{text:"Fetching Notebook..."}),c&&l.notebookCells?.map((p,m)=>E.jsx(fG,{cell:p,notebookPath:e,hideCodeCellIcon:t,hideEmbeddingIcon:n},m)),d&&f.status===404&&E.jsxs(ze,{variant:"body2",sx:{color:"#666666"},children:[E.jsx("code",{children:`${r} > ${a} > ${e}`})," ","not found."]}),d&&f.status!==404&&E.jsx(nr,{error:f,context:`${r} > ${a} > ${e}`})]})})})}const pG=zt(E.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let mG=class Jh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Jh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
164
|
+
`+t.value:`>>>malloy
|
|
165
|
+
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
166
|
+
`+t.value+`
|
|
167
|
+
`).join(`
|
|
168
|
+
`)}static newWorkbook(t){return new Jh(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new Jh(t,r)}};const $R=N.createContext(void 0),gG=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return E.jsx($R.Provider,{value:r,children:n})},RE=()=>{const e=N.useContext($R);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},Dh=zt(E.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),fC=zt(E.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"}));const Rm=function(e){if(e==null)return vG;if(typeof e=="function")return Im(e);if(typeof e=="object")return Array.isArray(e)?yG(e):bG(e);if(typeof e=="string")return EG(e);throw new Error("Expected function, string, or object as test")};function yG(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rm(e[n]);return Im(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function bG(e){const t=e;return Im(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function EG(e){return Im(t);function t(n){return n&&n.type===e}}function Im(e){return t;function t(n,r,a){return!!(TG(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function vG(){return!0}function TG(e){return e!==null&&typeof e=="object"&&"type"in e}const FR=[],_G=!0,Fp=!1,Yu="skip";function jR(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Rm(a),l=r?-1:1;c(e,void 0,[])();function c(d,f,p){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=FR,T,A,C;if((!t||o(d,f,p[p.length-1]||void 0))&&(b=xG(n(d,p)),b[0]===Fp))return b;if("children"in d&&d.children){const x=d;if(x.children&&b[0]!==Yu)for(A=(r?x.children.length:-1)+l,C=p.concat(x);A>-1&&A<x.children.length;){const D=x.children[A];if(T=c(D,A,C)(),T[0]===Fp)return T;A=typeof T[1]=="number"?T[1]:A+l}}return b}}}function xG(e){return Array.isArray(e)?e:typeof e=="number"?[_G,e]:e==null?FR:[e]}function Pr(e,t,n,r){let a,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,a=n):(o=t,l=n,a=r),jR(e,o,c,a);function c(d,f){const p=f[f.length-1],m=p?p.children.indexOf(d):void 0;return l(d,m,p)}}const AG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,SG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,CG=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{Pr(n,"blockquote",(r,a,o)=>{let l="",c="",d=!0,f=r.children.map(p=>{if(d&&p.type==="paragraph"){const m=p.children[0],y=m.type==="text"?m.value:"",b=e?SG:AG,T=y.match(b);if(T&&(d=!1,l=T[1].toLocaleLowerCase(),c=e&&T[2]||l.toLocaleUpperCase(),y.includes(`
|
|
169
|
+
`)&&(p.children[0]={type:"text",value:y.replace(b,"").replace(/^\n+/,"")}),!y.includes(`
|
|
170
|
+
`))){const A=[];p.children.forEach((C,x)=>{x!=0&&(x==1&&C.type==="break"||A.push(C))}),p.children=[...A]}}return p});l&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${l}`,dir:"auto"}},f.unshift({type:"paragraph",children:[DG(l),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...f]})};function DG(e){let t=kG[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 kG={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 RG(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 BR(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?BR(t.parentElement):null}function IG(e){var t=n=>{var r=BR(n.target);r&&(r.classList.add("active"),RG(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.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 ea(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function va(e,t){return e.length>0?(ea(e,e.length,0,t),e):t}const hC={}.hasOwnProperty;function UR(e){const t={};let n=-1;for(;++n<e.length;)wG(t,e[n]);return t}function wG(e,t){let n;for(n in t){const r=(hC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){hC.call(r,o)||(r[o]=[]);const l=a[o];NG(r[o],Array.isArray(l)?l:l?[l]:[])}}}function NG(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ea(e,0,0,r)}const _r=zo(/[A-Za-z]/),dr=zo(/[\dA-Za-z]/),OG=zo(/[#-'*+\--9=?A-Z^-~]/);function jp(e){return e!==null&&(e<32||e===127)}const Ky=zo(/\d/),LG=zo(/[\dA-Fa-f]/),MG=zo(/[!-/:-@[-`{-~]/);function Xe(e){return e!==null&&e<-2}function Zt(e){return e!==null&&(e<0||e===32)}function _t(e){return e===-2||e===-1||e===32}const wm=zo(/\p{P}|\p{S}/u),Ms=zo(/\s/);function zo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const PG={tokenize:HG,partial:!0},HR={tokenize:zG,partial:!0},zR={tokenize:GG,partial:!0},GR={tokenize:VG,partial:!0},$G={tokenize:qG,partial:!0},VR={name:"wwwAutolink",tokenize:BG,previous:YR},qR={name:"protocolAutolink",tokenize:UG,previous:QR},qi={name:"emailAutolink",tokenize:jG,previous:KR},ui={};function FG(){return{text:ui}}let ss=48;for(;ss<123;)ui[ss]=qi,ss++,ss===58?ss=65:ss===91&&(ss=97);ui[43]=qi;ui[45]=qi;ui[46]=qi;ui[95]=qi;ui[72]=[qi,qR];ui[104]=[qi,qR];ui[87]=[qi,VR];ui[119]=[qi,VR];function jG(e,t,n){const r=this;let a,o;return l;function l(m){return!Wy(m)||!KR.call(r,r.previous)||IE(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Wy(m)?(e.consume(m),c):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check($G,p,f)(m):m===45||m===95||dr(m)?(o=!0,e.consume(m),d):p(m)}function f(m){return e.consume(m),a=!0,d}function p(m){return o&&a&&_r(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function BG(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!YR.call(r,r.previous)||IE(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(PG,e.attempt(HR,e.attempt(zR,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function UG(e,t,n){const r=this;let a="",o=!1;return l;function l(m){return(m===72||m===104)&&QR.call(r,r.previous)&&!IE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(_r(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const y=a.toLowerCase();if(y==="http"||y==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),o?f:(o=!0,d)):n(m)}function f(m){return m===null||jp(m)||Zt(m)||Ms(m)||wm(m)?n(m):e.attempt(HR,e.attempt(zR,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function HG(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function zG(e,t,n){let r,a,o;return l;function l(f){return f===46||f===95?e.check(GR,d,c)(f):f===null||Zt(f)||Ms(f)||f!==45&&wm(f)?d(f):(o=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function d(f){return a||r||!o?n(f):t(f)}}function GG(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(GR,t,o)(l):l===null||Zt(l)||Ms(l)?t(l):(e.consume(l),a)}function o(l){return l===41&&r++,e.consume(l),a}}function VG(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||Zt(c)||Ms(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Zt(c)||Ms(c)?t(c):r(c)}function o(c){return _r(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):_r(c)?(e.consume(c),l):n(c)}}function qG(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return dr(o)?n(o):t(o)}}function YR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Zt(e)}function QR(e){return!_r(e)}function KR(e){return!(e===47||Wy(e))}function Wy(e){return e===43||e===45||e===46||e===95||dr(e)}function IE(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 St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(d){return _t(d)?(e.enter(n),c(d)):t(d)}function c(d){return _t(d)&&o++<a?(e.consume(d),c):(e.exit(n),t(d))}}function Oa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xd={partial:!0,tokenize:YG};function YG(e,t,n){return r;function r(o){return _t(o)?St(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Xe(o)?t(o):n(o)}}const QG={tokenize:nV,partial:!0};function KG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JG,continuation:{tokenize:eV},exit:tV}},text:{91:{name:"gfmFootnoteCall",tokenize:ZG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WG,resolveTo:XG}}}}function WG(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Oa(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function XG(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)},l={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",l,t],["exit",l,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 ZG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(o>999||m===93&&!l||m===null||m===91||Zt(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return a.includes(Oa(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Zt(m)||(l=!0),o++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function JG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(T)}function p(T){if(l>999||T===93&&!c||T===null||T===91||Zt(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return o=Oa(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Zt(T)||(c=!0),l++,e.consume(T),T===92?m:p}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,p):p(T)}function y(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(o)||a.push(o),St(e,b,"gfmFootnoteDefinitionWhitespace")):n(T)}function b(T){return t(T)}}function eV(e,t,n){return e.check(Xd,t,e.attempt(QG,t,n))}function tV(e){e.exit("gfmFootnoteDefinition")}function nV(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function ec(e){if(e===null||Zt(e)||Ms(e))return 1;if(wm(e))return 2}function Nm(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 rV(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,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let d=c;for(;d--;)if(o[d][0]==="exit"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[d][1].end.offset-o[d][1].start.offset){o[c][1].type="strikethroughSequence",o[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[d][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[d][1].end),end:Object.assign({},o[c][1].start)},m=[["enter",f,l],["enter",o[d][1],l],["exit",o[d][1],l],["enter",p,l]],y=l.parser.constructs.insideSpan.null;y&&ea(m,m.length,0,Nm(y,o.slice(d+1,c),l)),ea(m,m.length,0,[["exit",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",f,l]]),ea(o,d-1,c-d+3,m),c=d+m.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,l,c){const d=this.previous,f=this.events;let p=0;return m;function m(b){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(b):(o.enter("strikethroughSequenceTemporary"),y(b))}function y(b){const T=ec(d);if(b===126)return p>1?c(b):(o.consume(b),p++,y);if(p<2&&!t)return c(b);const A=o.exit("strikethroughSequenceTemporary"),C=ec(b);return A._open=!C||C===2&&!!T,A._close=!T||T===2&&!!C,l(b)}}}let aV=class{constructor(){this.map=[]}add(t,n,r){iV(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[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 iV(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 oV(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 sV(){return{flow:{null:{name:"table",tokenize:lV,resolveAll:cV}}}}function lV(e,t,n){const r=this;let a=0,o=0,l;return c;function c(k){let H=r.events.length-1;for(;H>-1;){const re=r.events[H][1].type;if(re==="lineEnding"||re==="linePrefix")H--;else break}const Q=H>-1?r.events[H][1].type:null,W=Q==="tableHead"||Q==="tableRow"?I:d;return W===I&&r.parser.lazy[r.now().line]?n(k):W(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),f(k)}function f(k){return k===124||(l=!0,o+=1),p(k)}function p(k){return k===null?n(k):Xe(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b):n(k):_t(k)?St(e,p,"whitespace")(k):(o+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||Zt(k)?(e.exit("data"),p(k)):(e.consume(k),k===92?y:m)}function y(k){return k===92||k===124?(e.consume(k),m):m(k)}function b(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_t(k)?St(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):L(k)}function A(k){return _t(k)?St(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||Xe(k)?M(k):L(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),D(k)):L(k)}function D(k){return k===45?(e.consume(k),D):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return _t(k)?St(e,M,"whitespace")(k):M(k)}function M(k){return k===124?T(k):k===null||Xe(k)?!l||a!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):L(k)}function L(k){return n(k)}function I(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||Xe(k)?(e.exit("tableRow"),t(k)):_t(k)?St(e,V,"whitespace")(k):(e.enter("data"),ne(k))}function ne(k){return k===null||k===124||Zt(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?K:ne)}function K(k){return k===92||k===124?(e.consume(k),ne):ne(k)}}function cV(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,p,m;const y=new aV;for(;++n<e.length;){const b=e[n],T=b[1];b[0]==="enter"?T.type==="tableHead"?(c=!1,d!==0&&(pC(y,t,d,f,p),p=void 0,d=0),f={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},y.add(n,0,[["enter",f,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},y.add(n,0,[["enter",p,t]])),a=T.type==="tableDelimiterRow"?2:p?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],m=kh(y,t,o,a,void 0,m),o=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],m=kh(y,t,o,a,void 0,m)),o=l,l=[o[1],n,0,0])):T.type==="tableHead"?(c=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,o[1]!==0?(l[0]=l[1],m=kh(y,t,o,a,n,m)):l[1]!==0&&(m=kh(y,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&pC(y,t,d,f,p),y.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=oV(t.events,n))}return e}function kh(e,t,n,r,a,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Fl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const d=Fl(t.events,n[1]);if(o={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const f=Fl(t.events,n[2]),p=Fl(t.events,n[3]),m={type:c,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const y=t.events[n[2]],b=t.events[n[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(o.end=Object.assign({},Fl(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function pC(e,t,n,r,a){const o=[],l=Fl(t.events,n);a&&(a.end=Object.assign({},l),o.push(["exit",a,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Fl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const uV={name:"tasklistCheck",tokenize:fV};function dV(){return{text:{91:uV}}}function fV(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),o)}function o(d){return Zt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Xe(d)?t(d):_t(d)?e.check({tokenize:hV},t,n)(d):n(d)}}function hV(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function pV(e){return UR([FG(),KG(),rV(e),sV(),dV()])}function mV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function gV(e,t,n){const r=Rm((n||{}).ignore||[]),a=yV(t);let o=-1;for(;++o<a.length;)jR(e,"text",l);function l(d,f){let p=-1,m;for(;++p<f.length;){const y=f[p],b=m?m.children:void 0;if(r(y,b?b.indexOf(y):void 0,m))return;m=y}if(m)return c(d,f)}function c(d,f){const p=f[f.length-1],m=a[o][0],y=a[o][1];let b=0;const T=p.children.indexOf(d);let A=!1,C=[];m.lastIndex=0;let x=m.exec(d.value);for(;x;){const D=x.index,S={index:x.index,input:x.input,stack:[...f,d]};let M=y(...x,S);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?m.lastIndex=D+1:(b!==D&&C.push({type:"text",value:d.value.slice(b,D)}),Array.isArray(M)?C.push(...M):M&&C.push(M),b=D+x[0].length,A=!0),!m.global)break;x=m.exec(d.value)}return A?(b<d.value.length&&C.push({type:"text",value:d.value.slice(b)}),p.children.splice(T,1,...C)):C=[d],T+C.length}}function yV(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([bV(a[0]),EV(a[1])])}return t}function bV(e){return typeof e=="string"?new RegExp(mV(e),"g"):e}function EV(e){return typeof e=="function"?e:function(){return e}}const w1="phrasing",N1=["autolink","link","image","label"];function vV(){return{transforms:[DV],enter:{literalAutolink:_V,literalAutolinkEmail:O1,literalAutolinkHttp:O1,literalAutolinkWww:O1},exit:{literalAutolink:CV,literalAutolinkEmail:SV,literalAutolinkHttp:xV,literalAutolinkWww:AV}}}function TV(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:w1,notInConstruct:N1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:w1,notInConstruct:N1},{character:":",before:"[ps]",after:"\\/",inConstruct:w1,notInConstruct:N1}]}}function _V(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function O1(e){this.config.enter.autolinkProtocol.call(this,e)}function xV(e){this.config.exit.autolinkProtocol.call(this,e)}function AV(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 SV(e){this.config.exit.autolinkEmail.call(this,e)}function CV(e){this.exit(e)}function DV(e){gV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kV],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,RV]],{ignore:["link","linkReference"]})}function kV(e,t,n,r,a){let o="";if(!WR(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!IV(n)))return!1;const l=wV(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function RV(e,t,n,r){return!WR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function IV(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 wV(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=_p(e,"(");let o=_p(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 WR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ms(n)||wm(n))&&(!t||n!==47)}XR.peek=BV;function NV(){this.buffer()}function OV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function LV(){this.buffer()}function MV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function PV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $V(e){this.exit(e)}function FV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jV(e){this.exit(e)}function BV(){return"["}function XR(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),l(),o+=a.move("]"),o}function UV(){return{enter:{gfmFootnoteCallString:NV,gfmFootnoteCall:OV,gfmFootnoteDefinitionLabelString:LV,gfmFootnoteDefinition:MV},exit:{gfmFootnoteCallString:PV,gfmFootnoteCall:$V,gfmFootnoteDefinitionLabelString:FV,gfmFootnoteDefinition:jV}}}function HV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:XR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,l){const c=o.createTracker(l);let d=c.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return d+=c.move(o.safe(o.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
171
|
+
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?ZR:zV))),f(),d}}function zV(e,t,n){return t===0?e:ZR(e,t,n)}function ZR(e,t,n){return(n?"":" ")+e}const GV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];JR.peek=KV;function VV(){return{canContainEols:["delete"],enter:{strikethrough:YV},exit:{strikethrough:QV}}}function qV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:GV}],handlers:{delete:JR}}}function YV(e){this.enter({type:"delete",children:[]},e)}function QV(e){this.exit(e)}function JR(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),o(),l}function KV(){return"~"}function WV(e){return e.length}function XV(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||WV,o=[],l=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const A=[],C=[];let x=-1;for(e[p].length>f&&(f=e[p].length);++x<e[p].length;){const D=ZV(e[p][x]);if(n.alignDelimiters!==!1){const S=a(D);C[x]=S,(d[x]===void 0||S>d[x])&&(d[x]=S)}A.push(D)}l[p]=A,c[p]=C}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)o[m]=mC(r[m]);else{const A=mC(r);for(;++m<f;)o[m]=A}m=-1;const y=[],b=[];for(;++m<f;){const A=o[m];let C="",x="";A===99?(C=":",x=":"):A===108?C=":":A===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-x.length);const S=C+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=C.length+D+x.length,D>d[m]&&(d[m]=D),b[m]=D),y[m]=S}l.splice(1,0,y),c.splice(1,0,b),p=-1;const T=[];for(;++p<l.length;){const A=l[p],C=c[p];m=-1;const x=[];for(;++m<f;){const D=A[m]||"";let S="",M="";if(n.alignDelimiters!==!1){const L=d[m]-(C[m]||0),I=o[m];I===114?S=" ".repeat(L):I===99?L%2?(S=" ".repeat(L/2+.5),M=" ".repeat(L/2-.5)):(S=" ".repeat(L/2),M=S):M=" ".repeat(L)}n.delimiterStart!==!1&&!m&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&x.push(" "),n.alignDelimiters!==!1&&x.push(S),x.push(D),n.alignDelimiters!==!1&&x.push(M),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&x.push("|")}T.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return T.join(`
|
|
172
|
+
`)}function ZV(e){return e==null?"":String(e)}function mC(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 JV(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),eq);return a(),l}function eq(e,t,n){return">"+(n?"":" ")+e}function tq(e,t){return gC(e,t.inConstruct,!0)&&!gC(e,t.notInConstruct,!1)}function gC(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 yC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
173
|
+
`&&tq(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
174
|
+
`}function nq(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>l&&(l=o):o=1,a=r+t.length,r=n.indexOf(t,a);return l}function rq(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 aq(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 iq(e,t,n,r){const a=aq(n),o=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(rq(e,n)){const m=n.enter("codeIndented"),y=n.indentLines(o,oq);return m(),y}const c=n.createTracker(r),d=a.repeat(Math.max(nq(o,a)+1,3)),f=n.enter("codeFenced");let p=c.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
175
|
+
`,encode:["`"],...c.current()})),m()}return p+=c.move(`
|
|
176
|
+
`),o&&(p+=c.move(o+`
|
|
177
|
+
`)),p+=c.move(d),f(),p}function oq(e,t,n){return(n?"":" ")+e}function wE(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 sq(e,t,n,r){const a=wE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
178
|
+
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),l(),f}function lq(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 Rd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bp(e,t,n){const r=ec(e),a=ec(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}}eI.peek=cq;function eI(e,t,n,r){const a=lq(n),o=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Bp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Rd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Bp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Rd(m));const b=l.move(a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+b}function cq(e,t,n){return n.options.emphasis||"*"}const uq={};function NE(e,t){const n=uq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tI(e,r,a)}function tI(e,t,n){if(dq(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 bC(e.children,t,n)}return Array.isArray(e)?bC(e,t,n):""}function bC(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=tI(e[a],t,n);return r.join("")}function dq(e){return!!(e&&typeof e=="object")}function fq(e,t){let n=!1;return Pr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fp}),!!((!e.depth||e.depth<3)&&NE(e)&&(t.options.setext||n))}function hq(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(fq(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),y=n.containerPhrasing(e,{...o.current(),before:`
|
|
179
|
+
`,after:`
|
|
180
|
+
`});return m(),p(),y+`
|
|
181
|
+
`+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
182
|
+
`))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");o.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
183
|
+
`,...o.current()});return/^[\t ]/.test(f)&&(f=Rd(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}nI.peek=pq;function nI(e){return e.value||""}function pq(){return"<"}rI.peek=mq;function rI(e,t,n,r){const a=wE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),l(),f}function mq(){return"!"}aI.peek=gq;function aI(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function gq(){return"!"}iI.peek=yq;function iI(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 l=n.unsafe[o],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function yq(){return"`"}function oI(e,t){const n=NE(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))}sI.peek=bq;function sI(e,t,n,r){const a=wE(n),o=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(oI(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),c(),n.stack=p,m}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${o}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),d()),f+=l.move(")"),c(),f}function bq(e,t,n){return oI(e,n)?"<":"["}lI.peek=Eq;function lI(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function Eq(){return"["}function OE(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 vq(e){const t=OE(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 Tq(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 cI(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 _q(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Tq(n):OE(n);const c=e.ordered?l==="."?")":".":vq(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&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&&(d=!0),cI(n)===l&&p){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,a(),f}function xq(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 Aq(e,t,n,r){const a=xq(n);let o=n.bulletCurrent||OE(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 l=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(l-o.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),p);return d(),f;function p(m,y,b){return y?(b?"":" ".repeat(l))+m:(b?o:o+" ".repeat(l-o.length))+m}}function Sq(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),a(),l}const Cq=Rm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Dq(e,t,n,r){return(e.children.some(function(a){return Cq(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function kq(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}uI.peek=Rq;function uI(e,t,n,r){const a=kq(n),o=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Bp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Rd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Bp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Rd(m));const b=l.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+b}function Rq(e,t,n){return n.options.strong||"*"}function Iq(e,t,n,r){return n.safe(e.value,r)}function wq(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 Nq(e,t,n){const r=(cI(n)+(n.options.ruleSpaces?" ":"")).repeat(wq(n));return n.options.ruleSpaces?r.slice(0,-1):r}const dI={blockquote:JV,break:yC,code:iq,definition:sq,emphasis:eI,hardBreak:yC,heading:hq,html:nI,image:rI,imageReference:aI,inlineCode:iI,link:sI,linkReference:lI,list:_q,listItem:Aq,paragraph:Sq,root:Dq,strong:uI,text:Iq,thematicBreak:Nq};function Oq(){return{enter:{table:Lq,tableData:EC,tableHeader:EC,tableRow:Pq},exit:{codeText:$q,table:Mq,tableData:L1,tableHeader:L1,tableRow:L1}}}function Lq(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 Mq(e){this.exit(e),this.data.inTable=void 0}function Pq(e){this.enter({type:"tableRow",children:[]},e)}function L1(e){this.exit(e)}function EC(e){this.enter({type:"tableCell",children:[]},e)}function $q(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Fq));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Fq(e,t){return t==="|"?t:e}function jq(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
184
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:l,tableCell:d,tableRow:c}};function l(b,T,A,C){return f(p(b,A,C),b.align)}function c(b,T,A,C){const x=m(b,A,C),D=f([x]);return D.slice(0,D.indexOf(`
|
|
185
|
+
`))}function d(b,T,A,C){const x=A.enter("tableCell"),D=A.enter("phrasing"),S=A.containerPhrasing(b,{...C,before:o,after:o});return D(),x(),S}function f(b,T){return XV(b,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function p(b,T,A){const C=b.children;let x=-1;const D=[],S=T.enter("table");for(;++x<C.length;)D[x]=m(C[x],T,A);return S(),D}function m(b,T,A){const C=b.children;let x=-1;const D=[],S=T.enter("tableRow");for(;++x<C.length;)D[x]=d(C[x],b,T,A);return S(),D}function y(b,T,A){let C=dI.inlineCode(b,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Bq(){return{exit:{taskListCheckValueChecked:vC,taskListCheckValueUnchecked:vC,paragraph:Hq}}}function Uq(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zq}}}function vC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Hq(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,l;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){l=c;break}}l===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 zq(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let d=dI.listItem(e,t,n,{...r,...c.current()});return o&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(p){return p+l}}function Gq(){return[vV(),UV(),VV(),Oq(),Bq()]}function Vq(e){return{extensions:[TV(),HV(e),qV(),jq(e),Uq()]}}const qq={};function Yq(e){const t=this,n=e||qq,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(pV(n)),o.push(Gq()),l.push(Vq(n))}function TC(e){if(e)throw e}var M1,_C;function Qq(){if(_C)return M1;_C=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var m;for(m in d);return typeof m>"u"||e.call(d,m)},l=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},c=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return M1=function d(){var f,p,m,y,b,T,A=arguments[0],C=1,x=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<x;++C)if(f=arguments[C],f!=null)for(p in f)m=c(A,p),y=c(f,p),A!==y&&(D&&y&&(o(y)||(b=a(y)))?(b?(b=!1,T=m&&a(m)?m:[]):T=m&&o(m)?m:{},l(A,{name:p,newValue:d(D,T,y)})):typeof y<"u"&&l(A,{name:p,newValue:y}));return A},M1}var Kq=Qq();const P1=Cm(Kq);function Xy(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 Wq=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function Xq(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...f){const p=e[++o];let m=-1;if(d){l(d);return}for(;++m<a.length;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,p?Zq(p,c)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Zq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(f){const p=f;if(c&&n)throw p;return a(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(o,a):d instanceof Error?a(d):o(d))}function a(l,...c){n||(n=!0,t(l,...c))}function o(l){a(null,l)}}const Ja={basename:Jq,dirname:eY,extname:tY,join:nY,sep:"/"};function Jq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zd(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 l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function eY(e){if(Zd(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 tY(e){Zd(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!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 nY(...e){let t=-1,n;for(;++t<e.length;)Zd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":rY(n)}function rY(e){Zd(e);const t=e.codePointAt(0)===47;let n=aY(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function aY(e,t){let n="",r=0,a=-1,o=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||o===1))if(a!==l-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(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function Zd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iY={cwd:oY};function oY(){return"/"}function Zy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sY(e){if(typeof e=="string")e=new URL(e);else if(!Zy(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 lY(e)}function lY(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 Qu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xC(e.position):"start"in e||"end"in e?xC(e):"line"in e||"column"in e?Jy(e):""}function Jy(e){return AC(e&&e.line)+":"+AC(e&&e.column)}function xC(e){return Jy(e&&e.start)+"-"+Jy(e&&e.end)}function AC(e){return e&&typeof e=="number"?e:1}let hr=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!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&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.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=Qu(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=l&&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}};hr.prototype.file="";hr.prototype.name="";hr.prototype.reason="";hr.prototype.message="";hr.prototype.stack="";hr.prototype.column=void 0;hr.prototype.line=void 0;hr.prototype.ancestors=void 0;hr.prototype.cause=void 0;hr.prototype.fatal=void 0;hr.prototype.place=void 0;hr.prototype.ruleId=void 0;hr.prototype.source=void 0;const $1=["history","path","basename","stem","extname","dirname"];let fI=class{constructor(t){let n;t?Zy(t)?n={path:t}:typeof t=="string"||cY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":iY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$1.length;){const o=$1[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)$1.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Ja.basename(this.path):void 0}set basename(t){j1(t,"basename"),F1(t,"basename"),this.path=Ja.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ja.dirname(this.path):void 0}set dirname(t){SC(this.basename,"dirname"),this.path=Ja.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ja.extname(this.path):void 0}set extname(t){if(F1(t,"extname"),SC(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=Ja.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Zy(t)&&(t=sY(t)),j1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ja.basename(this.path,this.extname):void 0}set stem(t){j1(t,"stem"),F1(t,"stem"),this.path=Ja.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 hr(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 F1(e,t){if(e&&e.includes(Ja.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ja.sep+"`")}function j1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function SC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uY={}.hasOwnProperty;let dY=class hI extends Wq{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=Xq()}copy(){const t=new hI;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(P1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(H1("data",this.frozen),this.namespace[t]=n,this):uY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(H1("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=Rh(t),r=this.parser||this.Parser;return B1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),B1("process",this.parser||this.Parser),U1("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const c=Rh(t),d=r.parse(c);r.run(d,c,function(p,m,y){if(p||!m||!y)return f(p);const b=m,T=r.stringify(b,y);pY(T)?y.value=T:y.result=T,f(p,y)});function f(p,m){p||!m?l(p):o?o(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),B1("processSync",this.parser||this.Parser),U1("processSync",this.compiler||this.Compiler),this.process(t,a),DC("processSync","process",n),r;function a(o,l){n=!0,TC(o),r=l}}run(t,n,r){CC(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(l,c){const d=Rh(n);a.run(t,d,f);function f(p,m,y){const b=m||t;p?c(p):l?l(b):r(void 0,b,y)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),DC("runSync","run",r),a;function o(l,c){TC(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=Rh(n),a=this.compiler||this.Compiler;return U1("stringify",a),CC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(H1("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...m]=f;d(p,m)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))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(f.plugins),f.settings&&(a.settings=P1(!0,a.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const m=f[p];o(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let m=-1,y=-1;for(;++m<r.length;)if(r[m][0]===f){y=m;break}if(y===-1)r.push([f,...p]);else if(p.length>0){let[b,...T]=p;const A=r[y][1];Xy(A)&&Xy(b)&&(b=P1(!0,A,b)),r[y]=[f,b,...T]}}}};const fY=new dY().freeze();function B1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function U1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function H1(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 CC(e){if(!Xy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function DC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rh(e){return hY(e)?e:new fI(e)}function hY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pY(e){return typeof e=="string"||mY(e)}function mY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function pI(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 kC=document.createElement("i");function LE(e){const t="&"+e+";";kC.innerHTML=t;const n=kC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const gY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yY(e){return e.replace(gY,bY)}function bY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return pI(n.slice(a?2:1),a?16:10)}return LE(n)||e}let EY=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&&_u(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),_u(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_u(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);_u(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_u(this.left,n.reverse())}}};function _u(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 mI(e){const t={};let n=-1,r,a,o,l,c,d,f;const p=new EY(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"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,vY(p,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=p.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[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 ea(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function vY(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let p,m,y=-1,b=n,T=0,A=0;const C=[A];for(;b;){for(;e.get(++a)[1]!==b;);o.push(a),b._tokenizer||(p=r.sliceStream(b),b.next||p.push(null),m&&l.defineSkip(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(A=y+1,C.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),y=C.length;y--;){const x=c.slice(C[y],C[y+1]),D=o.pop();d.push([D,D+x.length-1]),e.splice(D,2,x)}for(d.reverse(),y=-1;++y<d.length;)f[T+d[y][0]]=T+d[y][1],T+=d[y][1]-d[y][0]-1;return f}function TY(e){for(;!mI(e););return e}const _Y={tokenize:xY};function xY(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"),St(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Xe(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const AY={tokenize:SY},RC={tokenize:CY};function SY(e){const t=this,n=[];let r=0,a,o,l;return c;function c(S){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const M=t.events.length;let L=M,I;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){I=t.events[L][1].end;break}x(r);let V=M;for(;V<t.events.length;)t.events[V][1].end={...I},V++;return ea(t.events,L+1,0,t.events.slice(M)),t.events.length=V,f(S)}return c(S)}function f(S){if(r===n.length){if(!a)return y(S);if(a.currentConstruct&&a.currentConstruct.concrete)return T(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(RC,p,m)(S)}function p(S){return a&&D(),x(r),y(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(S)}function y(S){return t.containerState={},e.attempt(RC,b,T)(S)}function b(S){return r++,n.push([t.currentConstruct,t.containerState]),y(S)}function T(S){if(S===null){a&&D(),x(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),A(S)}function A(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return Xe(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(S),A)}function C(S,M){const L=t.sliceStream(S);if(M&&L.push(null),S.previous=o,o&&(o.next=S),o=S,a.defineSkip(S.start),a.write(L),t.parser.lazy[S.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<l&&(!a.events[I][1].end||a.events[I][1].end.offset>l))return;const V=t.events.length;let ne=V,K,k;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(K){k=t.events[ne][1].end;break}K=!0}for(x(r),I=V;I<t.events.length;)t.events[I][1].end={...k},I++;ea(t.events,ne+1,0,t.events.slice(V)),t.events.length=I}}function x(S){let M=n.length;for(;M-- >S;){const L=n[M];t.containerState=L[1],L[0].exit.call(t,e)}n.length=S}function D(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function CY(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const DY={resolve:RY,tokenize:IY},kY={partial:!0,tokenize:wY};function RY(e){return mI(e),e}function IY(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):Xe(c)?e.check(kY,l,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function wY(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,o,"linePrefix")}function o(l){if(l===null||Xe(l))return n(l);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(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}const NY={tokenize:OY};function OY(e){const t=this,n=e.attempt(Xd,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(DY,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 LY={resolveAll:yI()},MY=gI("string"),PY=gI("text");function gI(e){return{resolveAll:yI(e==="text"?$Y:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,c);return l;function l(p){return f(p)?o(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const m=a[p];let y=-1;if(m)for(;++y<m.length;){const b=m[y];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function yI(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 $Y(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,l=-1,c=0,d;for(;o--;){const f=a[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const bI={continuation:{tokenize:jY},exit:BY,name:"blockQuote",tokenize:FY};function FY(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return _t(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function jY(e,t,n){const r=this;return a;function a(l){return _t(l)?St(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(bI,t,n)(l)}}function BY(e){e.exit("blockQuote")}const ep={name:"thematicBreak",tokenize:UY};function UY(e,t,n){let r=0,a;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Xe(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),_t(f)?St(e,c,"whitespace")(f):c(f))}}const wr={continuation:{tokenize:VY},exit:YY,name:"list",tokenize:GY},HY={partial:!0,tokenize:QY},zY={partial:!0,tokenize:qY};function GY(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,l=0;return c;function c(b){const T=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Ky(b)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(ep,n,f)(b):f(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return Ky(b)&&++l<10?(e.consume(b),d):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),f(b)):n(b)}function f(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(Xd,r.interrupt?n:p,e.attempt(HY,y,m))}function p(b){return r.containerState.initialBlankLine=!0,o++,y(b)}function m(b){return _t(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):n(b)}function y(b){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function VY(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xd,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!_t(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(zY,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(wr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function qY(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function YY(e){e.exit(this.containerState.type)}function QY(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!_t(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}function EI(e,t,n,r,a,o,l,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return m;function m(x){return x===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(x),e.exit(o),y):x===null||x===32||x===41||jp(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(x))}function y(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===62?(e.exit("chunkString"),e.exit(c),y(x)):x===null||x===60||Xe(x)?n(x):(e.consume(x),x===92?T:b)}function T(x){return x===60||x===62||x===92?(e.consume(x),b):b(x)}function A(x){return!p&&(x===null||x===41||Zt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):p<f&&x===40?(e.consume(x),p++,A):x===41?(e.consume(x),p--,A):x===null||x===32||x===40||jp(x)?n(x):(e.consume(x),x===92?C:A)}function C(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function vI(e,t,n,r,a,o){const l=this;let c=0,d;return f;function f(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(o),p}function p(b){return c>999||b===null||b===91||b===93&&!d||b===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(o),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):Xe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||Xe(b)||c++>999?(e.exit("chunkString"),p(b)):(e.consume(b),d||(d=!_t(b)),b===92?y:m)}function y(b){return b===91||b===92||b===93?(e.consume(b),c++,m):m(b)}}function TI(e,t,n,r,a,o){let l;return c;function c(y){return y===34||y===39||y===40?(e.enter(r),e.enter(a),e.consume(y),e.exit(a),l=y===40?41:y,d):n(y)}function d(y){return y===l?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):(e.enter(o),f(y))}function f(y){return y===l?(e.exit(o),d(l)):y===null?n(y):Xe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),St(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===l||y===null||Xe(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?m:p)}function m(y){return y===l||y===92?(e.consume(y),p):p(y)}}function Ku(e,t){let n;return r;function r(a){return Xe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):_t(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const KY={name:"definition",tokenize:XY},WY={partial:!0,tokenize:ZY};function XY(e,t,n){const r=this;let a;return o;function o(b){return e.enter("definition"),l(b)}function l(b){return vI.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function c(b){return a=Oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return Zt(b)?Ku(e,f)(b):f(b)}function f(b){return EI(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(WY,m,m)(b)}function m(b){return _t(b)?St(e,y,"whitespace")(b):y(b)}function y(b){return b===null||Xe(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function ZY(e,t,n){return r;function r(c){return Zt(c)?Ku(e,a)(c):n(c)}function a(c){return TI(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return _t(c)?St(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Xe(c)?t(c):n(c)}}const z1={name:"codeIndented",tokenize:eQ},JY={partial:!0,tokenize:tQ};function eQ(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),St(e,o,"linePrefix",5)(f)}function o(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Xe(f)?e.attempt(JY,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Xe(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function tQ(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):St(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Xe(l)?a(l):n(l)}}const IC={partial:!0,tokenize:rQ},wC={concrete:!0,name:"codeFenced",tokenize:nQ};function nQ(e,t,n){const r=this,a={partial:!0,tokenize:L};let o=0,l=0,c;return d;function d(I){return f(I)}function f(I){const V=r.events[r.events.length-1];return o=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,c=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(I)}function p(I){return I===c?(l++,e.consume(I),p):l<3?n(I):(e.exit("codeFencedFenceSequence"),_t(I)?St(e,m,"whitespace")(I):m(I))}function m(I){return I===null||Xe(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(IC,A,M)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===null||Xe(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(I)):_t(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,b,"whitespace")(I)):I===96&&I===c?n(I):(e.consume(I),y)}function b(I){return I===null||Xe(I)?m(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(I))}function T(I){return I===null||Xe(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(I)):I===96&&I===c?n(I):(e.consume(I),T)}function A(I){return e.attempt(a,M,C)(I)}function C(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return o>0&&_t(I)?St(e,D,"linePrefix",o+1)(I):D(I)}function D(I){return I===null||Xe(I)?e.check(IC,A,M)(I):(e.enter("codeFlowValue"),S(I))}function S(I){return I===null||Xe(I)?(e.exit("codeFlowValue"),D(I)):(e.consume(I),S)}function M(I){return e.exit("codeFenced"),t(I)}function L(I,V,ne){let K=0;return k;function k(me){return I.enter("lineEnding"),I.consume(me),I.exit("lineEnding"),H}function H(me){return I.enter("codeFencedFence"),_t(me)?St(I,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):Q(me)}function Q(me){return me===c?(I.enter("codeFencedFenceSequence"),W(me)):ne(me)}function W(me){return me===c?(K++,I.consume(me),W):K>=l?(I.exit("codeFencedFenceSequence"),_t(me)?St(I,re,"whitespace")(me):re(me)):ne(me)}function re(me){return me===null||Xe(me)?(I.exit("codeFencedFence"),V(me)):ne(me)}}}function rQ(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const NC={name:"setextUnderline",resolveTo:aQ,tokenize:iQ};function aQ(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 l={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",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function iQ(e,t,n){const r=this;let a;return o;function o(f){let p=r.events.length,m;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){m=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),_t(f)?St(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Xe(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const oQ=["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"],OC=["pre","script","style","textarea"],sQ={concrete:!0,name:"htmlFlow",resolveTo:uQ,tokenize:dQ},lQ={partial:!0,tokenize:hQ},cQ={partial:!0,tokenize:fQ};function uQ(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 dQ(e,t,n){const r=this;let a,o,l,c,d;return f;function f(w){return p(w)}function p(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),m}function m(w){return w===33?(e.consume(w),y):w===47?(e.consume(w),o=!0,A):w===63?(e.consume(w),a=3,r.interrupt?t:P):_r(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function y(w){return w===45?(e.consume(w),a=2,b):w===91?(e.consume(w),a=5,c=0,T):_r(w)?(e.consume(w),a=4,r.interrupt?t:P):n(w)}function b(w){return w===45?(e.consume(w),r.interrupt?t:P):n(w)}function T(w){const te="CDATA[";return w===te.charCodeAt(c++)?(e.consume(w),c===te.length?r.interrupt?t:Q:T):n(w)}function A(w){return _r(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function C(w){if(w===null||w===47||w===62||Zt(w)){const te=w===47,Ce=l.toLowerCase();return!te&&!o&&OC.includes(Ce)?(a=1,r.interrupt?t(w):Q(w)):oQ.includes(l.toLowerCase())?(a=6,te?(e.consume(w),x):r.interrupt?t(w):Q(w)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):o?D(w):S(w))}return w===45||dr(w)?(e.consume(w),l+=String.fromCharCode(w),C):n(w)}function x(w){return w===62?(e.consume(w),r.interrupt?t:Q):n(w)}function D(w){return _t(w)?(e.consume(w),D):k(w)}function S(w){return w===47?(e.consume(w),k):w===58||w===95||_r(w)?(e.consume(w),M):_t(w)?(e.consume(w),S):k(w)}function M(w){return w===45||w===46||w===58||w===95||dr(w)?(e.consume(w),M):L(w)}function L(w){return w===61?(e.consume(w),I):_t(w)?(e.consume(w),L):S(w)}function I(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),d=w,V):_t(w)?(e.consume(w),I):ne(w)}function V(w){return w===d?(e.consume(w),d=null,K):w===null||Xe(w)?n(w):(e.consume(w),V)}function ne(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Zt(w)?L(w):(e.consume(w),ne)}function K(w){return w===47||w===62||_t(w)?S(w):n(w)}function k(w){return w===62?(e.consume(w),H):n(w)}function H(w){return w===null||Xe(w)?Q(w):_t(w)?(e.consume(w),H):n(w)}function Q(w){return w===45&&a===2?(e.consume(w),G):w===60&&a===1?(e.consume(w),le):w===62&&a===4?(e.consume(w),Ne):w===63&&a===3?(e.consume(w),P):w===93&&a===5?(e.consume(w),ye):Xe(w)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(lQ,ce,W)(w)):w===null||Xe(w)?(e.exit("htmlFlowData"),W(w)):(e.consume(w),Q)}function W(w){return e.check(cQ,re,ce)(w)}function re(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),me}function me(w){return w===null||Xe(w)?W(w):(e.enter("htmlFlowData"),Q(w))}function G(w){return w===45?(e.consume(w),P):Q(w)}function le(w){return w===47?(e.consume(w),l="",se):Q(w)}function se(w){if(w===62){const te=l.toLowerCase();return OC.includes(te)?(e.consume(w),Ne):Q(w)}return _r(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),se):Q(w)}function ye(w){return w===93?(e.consume(w),P):Q(w)}function P(w){return w===62?(e.consume(w),Ne):w===45&&a===2?(e.consume(w),P):Q(w)}function Ne(w){return w===null||Xe(w)?(e.exit("htmlFlowData"),ce(w)):(e.consume(w),Ne)}function ce(w){return e.exit("htmlFlow"),t(w)}}function fQ(e,t,n){const r=this;return a;function a(l){return Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function hQ(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Xd,t,n)}}const pQ={name:"headingAtx",resolve:mQ,tokenize:gQ};function mQ(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"},ea(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function gQ(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||Zt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Xe(p)?(e.exit("atxHeading"),t(p)):_t(p)?St(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||Zt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const _I={name:"characterEscape",tokenize:yQ};function yQ(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 MG(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const xI={name:"characterReference",tokenize:bQ};function bQ(e,t,n){const r=this;let a=0,o,l;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=dr,p(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=LG,p):(e.enter("characterReferenceValue"),o=7,l=Ky,p(m))}function p(m){if(m===59&&a){const y=e.exit("characterReferenceValue");return l===dr&&!LE(r.sliceSerialize(y))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<o?(e.consume(m),p):n(m)}}const EQ={name:"codeText",previous:TQ,resolve:vQ,tokenize:_Q};function vQ(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 TQ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _Q(e,t,n){let r=0,a,o;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),r++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(o=e.enter("codeTextSequence"),a=0,p(m)):Xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Xe(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function p(m){return m===96?(e.consume(m),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(o.type="codeTextData",f(m))}}const eb={name:"attention",resolveAll:xQ,tokenize:AQ};function xQ(e,t){let n=-1,r,a,o,l,c,d,f,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;d=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 m={...e[r][1].end},y={...e[n][1].start};LC(m,-d),LC(y,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=va(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=va(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=va(f,Nm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=va(f,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=va(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ea(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function AQ(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ec(r);let o;return l;function l(d){return o=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===o)return e.consume(d),c;const f=e.exit("attentionSequence"),p=ec(d),m=!p||p===2&&a||n.includes(d),y=!a||a===2&&p||n.includes(r);return f._open=!!(o===42?m:m&&(a||!y)),f._close=!!(o===42?y:y&&(p||!m)),t(d)}}function LC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ME={name:"labelEnd",resolveAll:kQ,resolveTo:RQ,tokenize:IQ},SQ={tokenize:wQ},CQ={tokenize:NQ},DQ={tokenize:OQ};function kQ(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&&ea(e,0,e.length,n),e}function RQ(e,t){let n=e.length,r=0,a,o,l,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(l){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"&&(l=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=va(c,e.slice(o+1,o+r+3)),c=va(c,[["enter",p,t]]),c=va(c,Nm(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=va(c,[["exit",p,t],e[l-2],e[l-1],["exit",f,t]]),c=va(c,e.slice(l+1)),c=va(c,[["exit",d,t]]),ea(e,o,e.length,c),e}function IQ(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(y){return o?o._inactive?m(y):(l=r.parser.defined.includes(Oa(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):n(y)}function d(y){return y===40?e.attempt(SQ,p,l?p:m)(y):y===91?e.attempt(CQ,p,l?f:m)(y):l?p(y):m(y)}function f(y){return e.attempt(DQ,p,m)(y)}function p(y){return t(y)}function m(y){return o._balanced=!0,n(y)}}function wQ(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return Zt(m)?Ku(e,o)(m):o(m)}function o(m){return m===41?p(m):EI(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return Zt(m)?Ku(e,d)(m):p(m)}function c(m){return n(m)}function d(m){return m===34||m===39||m===40?TI(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function f(m){return Zt(m)?Ku(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function NQ(e,t,n){const r=this;return a;function a(c){return vI.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(Oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function OQ(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 LQ={name:"hardBreakEscape",tokenize:MQ};function MQ(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Xe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const PQ={name:"labelStartLink",resolveAll:ME.resolveAll,tokenize:$Q};function $Q(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const FQ={name:"autolink",tokenize:jQ};function jQ(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(b){return _r(b)?(e.consume(b),l):b===64?n(b):f(b)}function l(b){return b===43||b===45||b===46||dr(b)?(r=1,c(b)):f(b)}function c(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||dr(b))&&r++<32?(e.consume(b),c):(r=0,f(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||jp(b)?n(b):(e.consume(b),d)}function f(b){return b===64?(e.consume(b),p):OG(b)?(e.consume(b),f):n(b)}function p(b){return dr(b)?m(b):n(b)}function m(b){return b===46?(e.consume(b),r=0,p):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):y(b)}function y(b){if((b===45||dr(b))&&r++<63){const T=b===45?y:m;return e.consume(b),T}return n(b)}}const BQ={name:"htmlText",tokenize:UQ};function UQ(e,t,n){const r=this;let a,o,l;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),L):P===63?(e.consume(P),S):_r(P)?(e.consume(P),ne):n(P)}function f(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),o=0,T):_r(P)?(e.consume(P),D):n(P)}function p(P){return P===45?(e.consume(P),b):n(P)}function m(P){return P===null?n(P):P===45?(e.consume(P),y):Xe(P)?(l=m,le(P)):(e.consume(P),m)}function y(P){return P===45?(e.consume(P),b):m(P)}function b(P){return P===62?G(P):P===45?y(P):m(P)}function T(P){const Ne="CDATA[";return P===Ne.charCodeAt(o++)?(e.consume(P),o===Ne.length?A:T):n(P)}function A(P){return P===null?n(P):P===93?(e.consume(P),C):Xe(P)?(l=A,le(P)):(e.consume(P),A)}function C(P){return P===93?(e.consume(P),x):A(P)}function x(P){return P===62?G(P):P===93?(e.consume(P),x):A(P)}function D(P){return P===null||P===62?G(P):Xe(P)?(l=D,le(P)):(e.consume(P),D)}function S(P){return P===null?n(P):P===63?(e.consume(P),M):Xe(P)?(l=S,le(P)):(e.consume(P),S)}function M(P){return P===62?G(P):S(P)}function L(P){return _r(P)?(e.consume(P),I):n(P)}function I(P){return P===45||dr(P)?(e.consume(P),I):V(P)}function V(P){return Xe(P)?(l=V,le(P)):_t(P)?(e.consume(P),V):G(P)}function ne(P){return P===45||dr(P)?(e.consume(P),ne):P===47||P===62||Zt(P)?K(P):n(P)}function K(P){return P===47?(e.consume(P),G):P===58||P===95||_r(P)?(e.consume(P),k):Xe(P)?(l=K,le(P)):_t(P)?(e.consume(P),K):G(P)}function k(P){return P===45||P===46||P===58||P===95||dr(P)?(e.consume(P),k):H(P)}function H(P){return P===61?(e.consume(P),Q):Xe(P)?(l=H,le(P)):_t(P)?(e.consume(P),H):K(P)}function Q(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,W):Xe(P)?(l=Q,le(P)):_t(P)?(e.consume(P),Q):(e.consume(P),re)}function W(P){return P===a?(e.consume(P),a=void 0,me):P===null?n(P):Xe(P)?(l=W,le(P)):(e.consume(P),W)}function re(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Zt(P)?K(P):(e.consume(P),re)}function me(P){return P===47||P===62||Zt(P)?K(P):n(P)}function G(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),se}function se(P){return _t(P)?St(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ye(P)}function ye(P){return e.enter("htmlTextData"),l(P)}}const HQ={name:"labelStartImage",resolveAll:ME.resolveAll,tokenize:zQ};function zQ(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"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const G1={name:"lineEnding",tokenize:GQ};function GQ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const VQ={42:wr,43:wr,45:wr,48:wr,49:wr,50:wr,51:wr,52:wr,53:wr,54:wr,55:wr,56:wr,57:wr,62:bI},qQ={91:KY},YQ={[-2]:z1,[-1]:z1,32:z1},QQ={35:pQ,42:ep,45:[NC,ep],60:sQ,61:NC,95:ep,96:wC,126:wC},KQ={38:xI,92:_I},WQ={[-5]:G1,[-4]:G1,[-3]:G1,33:HQ,38:xI,42:eb,60:[FQ,BQ],91:PQ,92:[LQ,_I],93:ME,95:eb,96:EQ},XQ={null:[eb,LY]},ZQ={null:[42,95]},JQ={null:[]},eK=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ZQ,contentInitial:qQ,disable:JQ,document:VQ,flow:QQ,flowInitial:YQ,insideSpan:XQ,string:KQ,text:WQ},Symbol.toStringTag,{value:"Module"}));function tK(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 l=[],c=[];const d={attempt:V(L),check:V(I),consume:D,enter:S,exit:M,interrupt:V(I,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:m};let p=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function m(H){return l=va(l,H),C(),l[l.length-1]!==null?[]:(ne(t,0),f.events=Nm(o,f.events,f),f.events)}function y(H,Q){return rK(b(H),Q)}function b(H){return nK(l,H)}function T(){const{_bufferIndex:H,_index:Q,line:W,column:re,offset:me}=r;return{_bufferIndex:H,_index:Q,line:W,column:re,offset:me}}function A(H){a[H.line]=H.column,k()}function C(){let H;for(;r._index<l.length;){const Q=l[r._index];if(typeof Q=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<Q.length;)x(Q.charCodeAt(r._bufferIndex));else x(Q)}}function x(H){p=p(H)}function D(H){Xe(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,k()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=H}function S(H,Q){const W=Q||{};return W.type=H,W.start=T(),f.events.push(["enter",W,f]),c.push(W),W}function M(H){const Q=c.pop();return Q.end=T(),f.events.push(["exit",Q,f]),Q}function L(H,Q){ne(H,Q.from)}function I(H,Q){Q.restore()}function V(H,Q){return W;function W(re,me,G){let le,se,ye,P;return Array.isArray(re)?ce(re):"tokenize"in re?ce([re]):Ne(re);function Ne(Ie){return Me;function Me(Oe){const st=Oe!==null&&Ie[Oe],dt=Oe!==null&&Ie.null,Be=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return ce(Be)(Oe)}}function ce(Ie){return le=Ie,se=0,Ie.length===0?G:w(Ie[se])}function w(Ie){return Me;function Me(Oe){return P=K(),ye=Ie,Ie.partial||(f.currentConstruct=Ie),Ie.name&&f.parser.constructs.disable.null.includes(Ie.name)?Ce():Ie.tokenize.call(Q?Object.assign(Object.create(f),Q):f,d,te,Ce)(Oe)}}function te(Ie){return H(ye,P),me}function Ce(Ie){return P.restore(),++se<le.length?w(le[se]):G}}}function ne(H,Q){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&ea(f.events,Q,f.events.length-Q,H.resolve(f.events.slice(Q),f)),H.resolveTo&&(f.events=H.resolveTo(f.events,f))}function K(){const H=T(),Q=f.previous,W=f.currentConstruct,re=f.events.length,me=Array.from(c);return{from:re,restore:G};function G(){r=H,f.previous=Q,f.currentConstruct=W,f.events.length=re,c=me,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function nK(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function rK(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
186
|
+
`;break}case-3:{l=`\r
|
|
187
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function aK(e){const t={constructs:UR([eK,...(e||{}).extensions||[]]),content:n(_Y),defined:[],document:n(AY),flow:n(NY),lazy:{},string:n(MY),text:n(PY)};return t;function n(r){return a;function a(o){return tK(t,r,o)}}}const MC=/[\0\t\n\r]/g;function iK(){let e=1,t="",n=!0,r;return a;function a(o,l,c){const d=[];let f,p,m,y,b;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),m=0,t="",n&&(o.charCodeAt(0)===65279&&m++,n=void 0);m<o.length;){if(MC.lastIndex=m,f=MC.exec(o),y=f&&f.index!==void 0?f.index:o.length,b=o.charCodeAt(y),!f){t=o.slice(m);break}if(b===10&&m===y&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<y&&(d.push(o.slice(m,y)),e+=y-m),b){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=y+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const AI={}.hasOwnProperty;function oK(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sK(n)(TY(aK(n).document().write(iK()(e,t,!0))))}function sK(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(an),autolinkProtocol:K,autolinkEmail:K,atxHeading:o(ar),blockQuote:o(dt),characterEscape:K,characterReference:K,codeFenced:o(Be),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Be,l),codeText:o(en,l),codeTextData:K,data:K,codeFlowValue:K,definition:o(wt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Pe),hardBreakEscape:o(dn),hardBreakTrailing:o(dn),htmlFlow:o(Ve,l),htmlFlowData:K,htmlText:o(Ve,l),htmlTextData:K,image:o(Xn),label:l,link:o(an),listItem:o(Ye),listItemValue:y,listOrdered:o(on,m),listUnordered:o(on),paragraph:o(Ct),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ar),strong:o(Sr),thematicBreak:o(Rt)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:st,autolinkProtocol:Oe,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:Ie,characterReference:Me,codeFenced:d(C),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:k,codeIndented:d(x),codeText:d(me),codeTextData:k,data:k,definition:d(),definitionDestinationString:M,definitionLabelString:D,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(Q),hardBreakTrailing:d(Q),htmlFlow:d(W),htmlFlowData:k,htmlText:d(re),htmlTextData:k,image:d(le),label:ye,labelText:se,lineEnding:H,link:d(G),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:te,resourceDestinationString:P,resourceTitleString:Ne,resource:ce,setextHeading:d(ne),setextHeadingLineSequence:V,setextHeadingText:I,strong:d(),thematicBreak:d()}};SI(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ve={type:"root",children:[]};const Fe={stack:[ve],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:p,data:n},nt=[];let Dt=-1;for(;++Dt<ue.length;)if(ue[Dt][1].type==="listOrdered"||ue[Dt][1].type==="listUnordered")if(ue[Dt][0]==="enter")nt.push(Dt);else{const Nt=nt.pop();Dt=a(ue,Nt,Dt)}for(Dt=-1;++Dt<ue.length;){const Nt=t[ue[Dt][0]];AI.call(Nt,ue[Dt][1].type)&&Nt[ue[Dt][1].type].call(Object.assign({sliceSerialize:ue[Dt][2].sliceSerialize},Fe),ue[Dt][1])}if(Fe.tokenStack.length>0){const Nt=Fe.tokenStack[Fe.tokenStack.length-1];(Nt[1]||PC).call(Fe,void 0,Nt[0])}for(ve.position={start:To(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:To(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)ve=t.transforms[Dt](ve)||ve;return ve}function a(ue,ve,Fe){let nt=ve-1,Dt=-1,Nt=!1,Gn,gn,Sn,_e;for(;++nt<=Fe;){const Te=ue[nt];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Dt++:Dt--,_e=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(Gn&&!_e&&!Dt&&!Sn&&(Sn=nt),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!Dt&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Dt===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(Gn){let ot=nt;for(gn=void 0;ot--;){const We=ue[ot];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;gn&&(ue[gn][1].type="lineEndingBlank",Nt=!0),We[1].type="lineEnding",gn=ot}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}Sn&&(!gn||Sn<gn)&&(Gn._spread=!0),Gn.end=Object.assign({},gn?ue[gn][1].start:Te[1].end),ue.splice(gn||nt,0,["exit",Gn,Te[2]]),nt++,Fe++}if(Te[1].type==="listItemPrefix"){const ot={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};Gn=ot,ue.splice(nt,0,["enter",ot,Te[2]]),nt++,Fe++,Sn=void 0,_e=!0}}}return ue[ve][1]._spread=Nt,Fe}function o(ue,ve){return Fe;function Fe(nt){c.call(this,ue(nt),nt),ve&&ve.call(this,nt)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ue,ve,Fe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ve,Fe||void 0]),ue.position={start:To(ve.start),end:void 0}}function d(ue){return ve;function ve(Fe){ue&&ue.call(this,Fe),f.call(this,Fe)}}function f(ue,ve){const Fe=this.stack.pop(),nt=this.tokenStack.pop();if(nt)nt[0].type!==ue.type&&(ve?ve.call(this,ue,nt[0]):(nt[1]||PC).call(this,ue,nt[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Qu({start:ue.start,end:ue.end})+"): it’s not open");Fe.position.end=To(ue.end)}function p(){return NE(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=ue}function T(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=ue}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ve=this.resume(),Fe=this.stack[this.stack.length-1];Fe.label=ve,Fe.identifier=Oa(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function M(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function L(ue){const ve=this.stack[this.stack.length-1];if(!ve.depth){const Fe=this.sliceSerialize(ue).length;ve.depth=Fe}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function V(ue){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function K(ue){const ve=this.stack[this.stack.length-1].children;let Fe=ve[ve.length-1];(!Fe||Fe.type!=="text")&&(Fe=ja(),Fe.position={start:To(ue.start),end:void 0},ve.push(Fe)),this.stack.push(Fe)}function k(ue){const ve=this.stack.pop();ve.value+=this.sliceSerialize(ue),ve.position.end=To(ue.end)}function H(ue){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Fe=ve.children[ve.children.length-1];Fe.position.end=To(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(K.call(this,ue),k.call(this,ue))}function Q(){this.data.atHardBreak=!0}function W(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function re(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function me(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function G(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function le(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function se(ue){const ve=this.sliceSerialize(ue),Fe=this.stack[this.stack.length-2];Fe.label=yY(ve),Fe.identifier=Oa(ve).toLowerCase()}function ye(){const ue=this.stack[this.stack.length-1],ve=this.resume(),Fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Fe.type==="link"){const nt=ue.children;Fe.children=nt}else Fe.alt=ve}function P(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function Ne(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function ce(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function te(ue){const ve=this.resume(),Fe=this.stack[this.stack.length-1];Fe.label=ve,Fe.identifier=Oa(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ce(ue){this.data.characterReferenceType=ue.type}function Ie(ue){const ve=this.sliceSerialize(ue),Fe=this.data.characterReferenceType;let nt;Fe?(nt=pI(ve,Fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):nt=LE(ve);const Dt=this.stack[this.stack.length-1];Dt.value+=nt}function Me(ue){const ve=this.stack.pop();ve.position.end=To(ue.end)}function Oe(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(ue)}function st(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(ue)}function dt(){return{type:"blockquote",children:[]}}function Be(){return{type:"code",lang:null,meta:null,value:""}}function en(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function ar(){return{type:"heading",depth:0,children:[]}}function dn(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function Xn(){return{type:"image",title:null,url:"",alt:null}}function an(){return{type:"link",title:null,url:"",children:[]}}function on(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ye(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function Sr(){return{type:"strong",children:[]}}function ja(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function To(e){return{line:e.line,column:e.column,offset:e.offset}}function SI(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?SI(e,r):lK(e,r)}}function lK(e,t){let n;for(n in t)if(AI.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 PC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qu({start:t.start,end:t.end})+") is still open")}function cK(e){const t=this;t.parser=n;function n(r){return oK(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const CI=-1,Om=0,Wu=1,Up=2,PE=3,$E=4,FE=5,jE=6,DI=7,kI=8,$C=typeof self=="object"?self:globalThis,uK=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case Om:case CI:return n(l,a);case Wu:{const c=n([],a);for(const d of l)c.push(r(d));return c}case Up:{const c=n({},a);for(const[d,f]of l)c[r(d)]=r(f);return c}case PE:return n(new Date(l),a);case $E:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case FE:{const c=n(new Map,a);for(const[d,f]of l)c.set(r(d),r(f));return c}case jE:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case DI:{const{name:c,message:d}=l;return n(new $C[c](d),a)}case kI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new $C[o](l),a)};return r},FC=e=>uK(new Map,e)(0),Nl="",{toString:dK}={},{keys:fK}=Object,xu=e=>{const t=typeof e;if(t!=="object"||!e)return[Om,t];const n=dK.call(e).slice(8,-1);switch(n){case"Array":return[Wu,Nl];case"Object":return[Up,Nl];case"Date":return[PE,Nl];case"RegExp":return[$E,Nl];case"Map":return[FE,Nl];case"Set":return[jE,Nl];case"DataView":return[Wu,n]}return n.includes("Array")?[Wu,n]:n.includes("Error")?[DI,n]:[Up,n]},Ih=([e,t])=>e===Om&&(t==="function"||t==="symbol"),hK=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},o=l=>{if(n.has(l))return n.get(l);let[c,d]=xu(l);switch(c){case Om:{let p=l;switch(d){case"bigint":c=kI,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);p=null;break;case"undefined":return a([CI],l)}return a([c,p],l)}case Wu:{if(d){let y=l;return d==="DataView"?y=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(l)),a([d,[...y]],l)}const p=[],m=a([c,p],l);for(const y of l)p.push(o(y));return m}case Up:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const p=[],m=a([c,p],l);for(const y of fK(l))(e||!Ih(xu(l[y])))&&p.push([o(y),o(l[y])]);return m}case PE:return a([c,l.toISOString()],l);case $E:{const{source:p,flags:m}=l;return a([c,{source:p,flags:m}],l)}case FE:{const p=[],m=a([c,p],l);for(const[y,b]of l)(e||!(Ih(xu(y))||Ih(xu(b))))&&p.push([o(y),o(b)]);return m}case jE:{const p=[],m=a([c,p],l);for(const y of l)(e||!Ih(xu(y)))&&p.push(o(y));return m}}const{message:f}=l;return a([c,{name:d,message:f}],l)};return o},jC=(e,{json:t,lossy:n}={})=>{const r=[];return hK(!(t||n),!!t,new Map,r)(e),r},Ps=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?FC(jC(e,t)):structuredClone(e):(e,t)=>FC(jC(e,t));function uc(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&dr(e.charCodeAt(n+1))&&dr(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function pK(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 mK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gK(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||pK,r=e.options.footnoteBackLabel||mK,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const p=e.all(f),m=String(f.identifier).toUpperCase(),y=uc(m.toLowerCase());let b=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++b<=A;){T.length>0&&T.push({type:"text",value:" "});let D=typeof n=="string"?n:n(d,b);typeof D=="string"&&(D={type:"text",value:D}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,b),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...T)}else p.push(...T);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ps(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
188
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
189
|
+
`}]}}function yK(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 bK(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
190
|
+
`}]}function EK(e,t){const n=t.value?t.value+`
|
|
191
|
+
`:"",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 vK(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TK(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _K(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=uc(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,c+=1,e.footnoteCounts.set(r,c);const d={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(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function xK(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 AK(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function RI(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 l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function SK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return RI(e,t);const a={src:uc(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 CK(e,t){const n={src:uc(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 DK(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 kK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return RI(e,t);const a={href:uc(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 RK(e,t){const n={href:uc(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 IK(e,t,n){const r=e.all(t),a=n?wK(n):II(t),o={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.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")&&l.push({type:"text",value:`
|
|
192
|
+
`}),p.type==="element"&&p.tagName==="p"&&!a?l.push(...p.children):l.push(p)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
193
|
+
`});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function wK(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=II(n[r])}return t}function II(e){return e.spread??e.children.length>1}function NK(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 l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.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 OK(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LK(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function MK(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Lm=wI("end"),di=wI("start");function wI(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 PK(e){const t=di(e),n=Lm(e);if(t&&n)return{start:t,end:n}}function $K(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=di(t.children[1]),d=Lm(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function FK(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,l=o?o.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],m={},y=o?o[c]:void 0;y&&(m.align=y);let b={type:"element",tagName:a,properties:m,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),d.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function jK(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BK(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(BC(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(BC(t.slice(a),a>0,!1)),o.join("")}function BC(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 UK(e,t){const n={type:"text",value:BK(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function HK(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zK={blockquote:yK,break:bK,code:EK,delete:vK,emphasis:TK,footnoteReference:_K,heading:xK,html:AK,imageReference:SK,image:CK,inlineCode:DK,linkReference:kK,link:RK,listItem:IK,list:NK,paragraph:OK,root:LK,strong:MK,table:$K,tableCell:jK,tableRow:FK,text:UK,thematicBreak:HK,toml:wh,yaml:wh,definition:wh,footnoteDefinition:wh};function wh(){}const tb={}.hasOwnProperty,GK={};function VK(e,t){const n=t||GK,r=new Map,a=new Map,o=new Map,l={...zK,...n.handlers},c={all:f,applyData:YK,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:l,one:d,options:n,patch:qK,wrap:KK};return Pr(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?r:a,y=String(p.identifier).toUpperCase();m.has(y)||m.set(y,p)}}),c;function d(p,m){const y=p.type,b=c.handlers[y];if(tb.call(c.handlers,y)&&b)return b(c,p,m);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in p){const{children:T,...A}=p,C=Ps(A);return C.children=c.all(p),C}return Ps(p)}return(c.options.unknownHandler||QK)(c,p,m)}function f(p){const m=[];if("children"in p){const y=p.children;let b=-1;for(;++b<y.length;){const T=c.one(y[b],p);if(T){if(b&&y[b-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=UC(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=UC(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function qK(e,t){e.position&&(t.position=PK(e))}function YK(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 l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Ps(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function QK(e,t){const n=t.data||{},r="value"in t&&!(tb.call(n,"hProperties")||tb.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 KK(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
194
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
195
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
196
|
+
`}),n}function UC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function HC(e,t){const n=VK(e,t),r=n.one(e,void 0),a=gK(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
|
|
197
|
+
`},a),o}function WK(e,t){return e&&"run"in e?async function(n,r){const a=HC(n,{file:r,...t});await e.run(a,r)}:function(n,r){return HC(n,{file:r,...e||t})}}var Ol={},V1,zC;function XK(){if(zC)return V1;zC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
198
|
+
`,f="/",p="*",m="",y="comment",b="declaration";V1=function(A,C){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];C=C||{};var x=1,D=1;function S(W){var re=W.match(t);re&&(x+=re.length);var me=W.lastIndexOf(d);D=~me?W.length-me:D+W.length}function M(){var W={line:x,column:D};return function(re){return re.position=new L(W),ne(),re}}function L(W){this.start=W,this.end={line:x,column:D},this.source=C.source}L.prototype.content=A;function I(W){var re=new Error(C.source+":"+x+":"+D+": "+W);if(re.reason=W,re.filename=C.source,re.line=x,re.column=D,re.source=A,!C.silent)throw re}function V(W){var re=W.exec(A);if(re){var me=re[0];return S(me),A=A.slice(me.length),re}}function ne(){V(n)}function K(W){var re;for(W=W||[];re=k();)re!==!1&&W.push(re);return W}function k(){var W=M();if(!(f!=A.charAt(0)||p!=A.charAt(1))){for(var re=2;m!=A.charAt(re)&&(p!=A.charAt(re)||f!=A.charAt(re+1));)++re;if(re+=2,m===A.charAt(re-1))return I("End of comment missing");var me=A.slice(2,re-2);return D+=2,S(me),A=A.slice(re),D+=2,W({type:y,comment:me})}}function H(){var W=M(),re=V(r);if(re){if(k(),!V(a))return I("property missing ':'");var me=V(o),G=W({type:b,property:T(re[0].replace(e,m)),value:me?T(me[0].replace(e,m)):m});return V(l),G}}function Q(){var W=[];K(W);for(var re;re=H();)re!==!1&&(W.push(re),K(W));return W}return ne(),Q()};function T(A){return A?A.replace(c,m):m}return V1}var GC;function ZK(){if(GC)return Ol;GC=1;var e=Ol&&Ol.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=n;var t=e(XK());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var l=(0,t.default)(r),c=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?a(f,p,d):p&&(o=o||{},o[f]=p)}}),o}return Ol}var Au={},VC;function JK(){if(VC)return Au;VC=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},l=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,l))};return Au.camelCase=d,Au}var Su,qC;function eW(){if(qC)return Su;qC=1;var e=Su&&Su.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(ZK()),n=JK();function r(a,o){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,o)]=d)}),l}return r.default=r,Su=r,Su}var tW=eW();const nW=Cm(tW),rW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iW={};function YC(e,t){return(iW.jsx?aW:rW).test(e)}const oW={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"},BE={}.hasOwnProperty,sW=new Map,lW=/[A-Z]/g,cW=new Set(["table","tbody","thead","tfoot","tr"]),uW=new Set(["td","th"]),NI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dW(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=EW(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=bW(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"?Gi:ic,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=OI(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function OI(e,t,n){if(t.type==="element")return fW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mW(e,t,n);if(t.type==="mdxjsEsm")return pW(e,t);if(t.type==="root")return gW(e,t,n);if(t.type==="text")return yW(e,t)}function fW(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Gi,e.schema=a),e.ancestors.push(t);const o=MI(e,t.tagName,!1),l=vW(e,t);let c=HE(e,t);return cW.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Ud(d):!0})),LI(e,l,o,t),UE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function hW(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)}Id(e,t.position)}function pW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Id(e,t.position)}function mW(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Gi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:MI(e,t.name,!0),l=TW(e,t),c=HE(e,t);return LI(e,l,o,t),UE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function gW(e,t,n){const r={};return UE(r,HE(e,t)),e.create(t,e.Fragment,r,n)}function yW(e,t){return t.value}function LI(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function UE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bW(e,t,n){return r;function r(a,o,l,c){const d=Array.isArray(l.children)?n:t;return c?d(o,l,c):d(o,l)}}function EW(e,t){return n;function n(r,a,o,l){const c=Array.isArray(o.children),d=di(r);return t(a,o,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function vW(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&BE.call(t.properties,a)){const o=_W(e,a,t.properties[a]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&uW.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function TW(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 l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Id(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 l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Id(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function HE(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:sW;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const c=OI(e,o,l);c!==void 0&&n.push(c)}return n}function _W(e,t,n){const r=Hd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?im(n):om(n)),r.property==="style"){let a=typeof n=="object"?n:xW(e,String(n));return e.stylePropertyNameCase==="css"&&(a=AW(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?oW[r.property]||r.property:r.attribute,n]}}function xW(e,t){try{return nW(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new hr("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=NI+"#cannot-parse-style-attribute",a}}function MI(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const c=YC(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=YC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return BE.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Id(e)}function Id(e,t){const n=new hr("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=NI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function AW(e){const t={};let n;for(n in e)BE.call(e,n)&&(t[SW(n)]=e[n]);return t}function SW(e){let t=e.replace(lW,CW);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function CW(e){return"-"+e.toLowerCase()}const q1={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"]},DW="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",QC=[],KC={allowDangerousHtml:!0},kW=/^(https?|ircs?|mailto|xmpp)$/i,RW=[{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 IW(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,l=e.disallowedElements,c=e.rehypePlugins||QC,d=e.remarkPlugins||QC,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...KC}:KC,p=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||wW,b=fY().use(cK).use(d).use(WK,f).use(c),T=new fI;typeof r=="string"&&(T.value=r);for(const D of RW)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+DW+D.id,void 0);const A=b.parse(T);let C=b.runSync(A,T);return a&&(C={type:"element",tagName:"div",properties:{className:a},children:C.type==="root"?C.children:[C]}),Pr(C,x),dW(C,{Fragment:E.Fragment,components:o,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function x(D,S,M){if(D.type==="raw"&&M&&typeof S=="number")return p?M.children.splice(S,1):M.children[S]={type:"text",value:D.value},S;if(D.type==="element"){let L;for(L in q1)if(Object.hasOwn(q1,L)&&Object.hasOwn(D.properties,L)){const I=D.properties[L],V=q1[L];(V===null||V.includes(D.tagName))&&(D.properties[L]=y(String(I||""),L,D))}}if(D.type==="element"){let L=t?!t.includes(D.tagName):l?l.includes(D.tagName):!1;if(!L&&n&&typeof S=="number"&&(L=!n(D,S,M)),L&&M&&typeof S=="number")return m&&D.children?M.children.splice(S,1,...D.children):M.children.splice(S,1),S}}}function wW(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||kW.test(e.slice(0,t))?e:""}const NW=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]),un="�";var $;(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"})($||($={}));const Ir={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function PI(e){return e>=55296&&e<=57343}function OW(e){return e>=56320&&e<=57343}function LW(e,t){return(e-55296)*1024+9216+t}function $I(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function FI(e){return e>=64976&&e<=65007||NW.has(e)}var fe;(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"})(fe||(fe={}));const MW=65536;let PW=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=MW,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,l=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,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(OW(n))return this.pos++,this._addGap(),LW(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(fe.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,$.EOF;const r=this.html.charCodeAt(n);return r===$.CARRIAGE_RETURN?$.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,$.EOF;let t=this.html.charCodeAt(this.pos);return t===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):t===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,PI(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===$.LINE_FEED||t===$.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){$I(t)?this._err(fe.controlCharacterInInputStream):FI(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var bt;(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"})(bt||(bt={}));function jI(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 $W=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 FW(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$W.get(e))!==null&&t!==void 0?t:e}var Wn;(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"})(Wn||(Wn={}));const jW=32;var No;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(No||(No={}));function nb(e){return e>=Wn.ZERO&&e<=Wn.NINE}function BW(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_F||e>=Wn.LOWER_A&&e<=Wn.LOWER_F}function UW(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_Z||e>=Wn.LOWER_A&&e<=Wn.LOWER_Z||nb(e)}function HW(e){return e===Wn.EQUALS||UW(e)}var Qn;(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"})(Qn||(Qn={}));var $i;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})($i||($i={}));let zW=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$i.Strict}startEntity(t){this.decodeMode=t,this.state=Qn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qn.EntityStart:return t.charCodeAt(n)===Wn.NUM?(this.state=Qn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qn.NamedEntity,this.stateNamedEntity(t,n));case Qn.NumericStart:return this.stateNumericStart(t,n);case Qn.NumericDecimal:return this.stateNumericDecimal(t,n);case Qn.NumericHex:return this.stateNumericHex(t,n);case Qn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|jW)===Wn.LOWER_X?(this.state=Qn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qn.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(nb(a)||BW(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(nb(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===Wn.SEMI)this.consumed+=1;else if(this.decodeMode===$i.Strict)return 0;return this.emitCodePoint(FW(this.result),this.consumed),this.errors&&(t!==Wn.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&No.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=GW(r,a,this.treeIndex+Math.max(1,o),l),this.treeIndex<0)return this.result===0||this.decodeMode===$i.Attribute&&(o===0||HW(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&No.VALUE_LENGTH)>>14,o!==0){if(l===Wn.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==$i.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]&No.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]&~No.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Qn.NamedEntity:return this.result!==0&&(this.decodeMode!==$i.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qn.NumericDecimal:return this.emitNumericEntity(0,2);case Qn.NumericHex:return this.emitNumericEntity(0,3);case Qn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qn.EntityStart:return 0}}};function GW(e,t,n,r){const a=(t&No.BRANCH_LENGTH)>>7,o=t&No.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const d=r-o;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+a]}return-1}var xe;(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/"})(xe||(xe={}));var ks;(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"})(ks||(ks={}));var Ta;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ta||(Ta={}));var J;(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"})(J||(J={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const VW=new Map([[J.A,_.A],[J.ADDRESS,_.ADDRESS],[J.ANNOTATION_XML,_.ANNOTATION_XML],[J.APPLET,_.APPLET],[J.AREA,_.AREA],[J.ARTICLE,_.ARTICLE],[J.ASIDE,_.ASIDE],[J.B,_.B],[J.BASE,_.BASE],[J.BASEFONT,_.BASEFONT],[J.BGSOUND,_.BGSOUND],[J.BIG,_.BIG],[J.BLOCKQUOTE,_.BLOCKQUOTE],[J.BODY,_.BODY],[J.BR,_.BR],[J.BUTTON,_.BUTTON],[J.CAPTION,_.CAPTION],[J.CENTER,_.CENTER],[J.CODE,_.CODE],[J.COL,_.COL],[J.COLGROUP,_.COLGROUP],[J.DD,_.DD],[J.DESC,_.DESC],[J.DETAILS,_.DETAILS],[J.DIALOG,_.DIALOG],[J.DIR,_.DIR],[J.DIV,_.DIV],[J.DL,_.DL],[J.DT,_.DT],[J.EM,_.EM],[J.EMBED,_.EMBED],[J.FIELDSET,_.FIELDSET],[J.FIGCAPTION,_.FIGCAPTION],[J.FIGURE,_.FIGURE],[J.FONT,_.FONT],[J.FOOTER,_.FOOTER],[J.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[J.FORM,_.FORM],[J.FRAME,_.FRAME],[J.FRAMESET,_.FRAMESET],[J.H1,_.H1],[J.H2,_.H2],[J.H3,_.H3],[J.H4,_.H4],[J.H5,_.H5],[J.H6,_.H6],[J.HEAD,_.HEAD],[J.HEADER,_.HEADER],[J.HGROUP,_.HGROUP],[J.HR,_.HR],[J.HTML,_.HTML],[J.I,_.I],[J.IMG,_.IMG],[J.IMAGE,_.IMAGE],[J.INPUT,_.INPUT],[J.IFRAME,_.IFRAME],[J.KEYGEN,_.KEYGEN],[J.LABEL,_.LABEL],[J.LI,_.LI],[J.LINK,_.LINK],[J.LISTING,_.LISTING],[J.MAIN,_.MAIN],[J.MALIGNMARK,_.MALIGNMARK],[J.MARQUEE,_.MARQUEE],[J.MATH,_.MATH],[J.MENU,_.MENU],[J.META,_.META],[J.MGLYPH,_.MGLYPH],[J.MI,_.MI],[J.MO,_.MO],[J.MN,_.MN],[J.MS,_.MS],[J.MTEXT,_.MTEXT],[J.NAV,_.NAV],[J.NOBR,_.NOBR],[J.NOFRAMES,_.NOFRAMES],[J.NOEMBED,_.NOEMBED],[J.NOSCRIPT,_.NOSCRIPT],[J.OBJECT,_.OBJECT],[J.OL,_.OL],[J.OPTGROUP,_.OPTGROUP],[J.OPTION,_.OPTION],[J.P,_.P],[J.PARAM,_.PARAM],[J.PLAINTEXT,_.PLAINTEXT],[J.PRE,_.PRE],[J.RB,_.RB],[J.RP,_.RP],[J.RT,_.RT],[J.RTC,_.RTC],[J.RUBY,_.RUBY],[J.S,_.S],[J.SCRIPT,_.SCRIPT],[J.SEARCH,_.SEARCH],[J.SECTION,_.SECTION],[J.SELECT,_.SELECT],[J.SOURCE,_.SOURCE],[J.SMALL,_.SMALL],[J.SPAN,_.SPAN],[J.STRIKE,_.STRIKE],[J.STRONG,_.STRONG],[J.STYLE,_.STYLE],[J.SUB,_.SUB],[J.SUMMARY,_.SUMMARY],[J.SUP,_.SUP],[J.TABLE,_.TABLE],[J.TBODY,_.TBODY],[J.TEMPLATE,_.TEMPLATE],[J.TEXTAREA,_.TEXTAREA],[J.TFOOT,_.TFOOT],[J.TD,_.TD],[J.TH,_.TH],[J.THEAD,_.THEAD],[J.TITLE,_.TITLE],[J.TR,_.TR],[J.TRACK,_.TRACK],[J.TT,_.TT],[J.U,_.U],[J.UL,_.UL],[J.SVG,_.SVG],[J.VAR,_.VAR],[J.WBR,_.WBR],[J.XMP,_.XMP]]);function dc(e){var t;return(t=VW.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Se=_,qW={[xe.HTML]:new Set([Se.ADDRESS,Se.APPLET,Se.AREA,Se.ARTICLE,Se.ASIDE,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BLOCKQUOTE,Se.BODY,Se.BR,Se.BUTTON,Se.CAPTION,Se.CENTER,Se.COL,Se.COLGROUP,Se.DD,Se.DETAILS,Se.DIR,Se.DIV,Se.DL,Se.DT,Se.EMBED,Se.FIELDSET,Se.FIGCAPTION,Se.FIGURE,Se.FOOTER,Se.FORM,Se.FRAME,Se.FRAMESET,Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6,Se.HEAD,Se.HEADER,Se.HGROUP,Se.HR,Se.HTML,Se.IFRAME,Se.IMG,Se.INPUT,Se.LI,Se.LINK,Se.LISTING,Se.MAIN,Se.MARQUEE,Se.MENU,Se.META,Se.NAV,Se.NOEMBED,Se.NOFRAMES,Se.NOSCRIPT,Se.OBJECT,Se.OL,Se.P,Se.PARAM,Se.PLAINTEXT,Se.PRE,Se.SCRIPT,Se.SECTION,Se.SELECT,Se.SOURCE,Se.STYLE,Se.SUMMARY,Se.TABLE,Se.TBODY,Se.TD,Se.TEMPLATE,Se.TEXTAREA,Se.TFOOT,Se.TH,Se.THEAD,Se.TITLE,Se.TR,Se.TRACK,Se.UL,Se.WBR,Se.XMP]),[xe.MATHML]:new Set([Se.MI,Se.MO,Se.MN,Se.MS,Se.MTEXT,Se.ANNOTATION_XML]),[xe.SVG]:new Set([Se.TITLE,Se.FOREIGN_OBJECT,Se.DESC]),[xe.XLINK]:new Set,[xe.XML]:new Set,[xe.XMLNS]:new Set},rb=new Set([Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;const YW=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 j;(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"})(j||(j={}));const Rn={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function QW(e){return e>=$.DIGIT_0&&e<=$.DIGIT_9}function $u(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function KW(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z}function xo(e){return KW(e)||$u(e)}function WC(e){return xo(e)||QW(e)}function Nh(e){return e+32}function BI(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function XC(e){return BI(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}function WW(e){return e===$.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:PI(e)?fe.surrogateCharacterReference:FI(e)?fe.noncharacterCharacterReference:$I(e)||e===$.CARRIAGE_RETURN?fe.controlCharacterReference:null}let XW=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=j.DATA,this.returnState=j.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new PW(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new zW(YW,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=WW(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:bt.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:bt.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:bt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:bt.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(jI(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(fe.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=dc(t.tagName),t.type===bt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.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 bt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case bt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case bt.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:bt.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=BI(t)?bt.WHITESPACE_CHARACTER:t===$.NULL?bt.NULL_CHARACTER:bt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(bt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?$i.Attribute:$i.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case j.DATA:{this._stateData(t);break}case j.RCDATA:{this._stateRcdata(t);break}case j.RAWTEXT:{this._stateRawtext(t);break}case j.SCRIPT_DATA:{this._stateScriptData(t);break}case j.PLAINTEXT:{this._statePlaintext(t);break}case j.TAG_OPEN:{this._stateTagOpen(t);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case j.TAG_NAME:{this._stateTagName(t);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case j.BOGUS_COMMENT:{this._stateBogusComment(t);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case j.COMMENT_START:{this._stateCommentStart(t);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case j.COMMENT:{this._stateComment(t);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case j.COMMENT_END:{this._stateCommentEnd(t);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case j.DOCTYPE:{this._stateDoctype(t);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case j.CDATA_SECTION:{this._stateCdataSection(t);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case $.AMPERSAND:{this._startCharacterReference();break}case $.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(xo(t))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case $.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case $.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(xo(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint($u(t)?Nh(t):t)}}_stateRcdataLessThanSign(t){t===$.SOLIDUS?this.state=j.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){xo(t)?(this.state=j.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=j.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 $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=j.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=j.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=j.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===$.SOLIDUS?this.state=j.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){xo(t)?(this.state=j.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case $.SOLIDUS:{this.state=j.SCRIPT_DATA_END_TAG_OPEN;break}case $.EXCLAMATION_MARK:{this.state=j.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=j.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){xo(t)?(this.state=j.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===$.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:xo(t)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){xo(t)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&XC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===$.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&XC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this._leaveAttrName(),this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._leaveAttrName(),this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=un;break}default:this.currentAttr.name+=String.fromCodePoint($u(t)?Nh(t):t)}}_stateAfterAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.EQUALS_SIGN:{this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{this.state=j.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this.state=j.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=j.DATA,this.emitCurrentTagToken();break}default:this.state=j.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case $.APOSTROPHE:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this._leaveAttrValue(),this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case $.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=un;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ir.DASH_DASH,!0)?(this._createCommentToken(Ir.DASH_DASH.length+1),this.state=j.COMMENT_START):this._consumeSequenceIfMatch(Ir.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ir.DOCTYPE.length+1),this.state=j.DOCTYPE):this._consumeSequenceIfMatch(Ir.CDATA_START,!0)?this.inForeignNode?this.state=j.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(Ir.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_START_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END_DASH;break}case $.LESS_THAN_SIGN:{n.data+="<",this.state=j.COMMENT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=un;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case $.EXCLAMATION_MARK:{n.data+="!",this.state=j.COMMENT_LESS_THAN_SIGN_BANG;break}case $.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=j.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=j.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==$.GREATER_THAN_SIGN&&t!==$.EOF&&this._err(fe.nestedComment),this.state=j.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EXCLAMATION_MARK:{this.state=j.COMMENT_END_BANG;break}case $.HYPHEN_MINUS:{n.data+="-";break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{n.data+="--!",this.state=j.COMMENT_END_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=j.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if($u(t))this._createDoctypeToken(String.fromCharCode(Nh(t))),this.state=j.DOCTYPE_NAME;else switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(un),this.state=j.DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.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=j.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.AFTER_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=un;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint($u(t)?Nh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ir.PUBLIC,!1)?this.state=j.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ir.SYSTEM,!1)?this.state=j.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.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 $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.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 $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.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 $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.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 $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.NULL:{this._err(fe.unexpectedNullCharacter);break}case $.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case $.RIGHT_SQUARE_BRACKET:{this.state=j.CDATA_SECTION_BRACKET;break}case $.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===$.RIGHT_SQUARE_BRACKET?this.state=j.CDATA_SECTION_END:(this._emitChars("]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA;break}case $.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=j.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($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&WC(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){WC(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===$.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const UI=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),ZC=new Set([...UI,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),Hp=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),ZW=new Set([...Hp,_.OL,_.UL]),JW=new Set([...Hp,_.BUTTON]),JC=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),e2=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),eX=new Set([_.TR,_.TEMPLATE,_.HTML]),tX=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),nX=new Set([_.TABLE,_.TEMPLATE,_.HTML]),rX=new Set([_.TD,_.TH]);let aX=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xe.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])!==xe.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(rb,xe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(rX,xe.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(nX,xe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tX,xe.HTML)}clearBackToTableRowContext(){this.clearBackTo(eX,xe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case xe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case xe.SVG:{if(e2.has(a))return!1;break}case xe.MATHML:{if(JC.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Hp)}hasInListItemScope(t){return this.hasInDynamicScope(t,ZW)}hasInButtonScope(t){return this.hasInDynamicScope(t,JW)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case xe.HTML:{if(rb.has(n))return!0;if(Hp.has(n))return!1;break}case xe.SVG:{if(e2.has(n))return!1;break}case xe.MATHML:{if(JC.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===xe.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&UI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ZC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ZC.has(this.currentTagId);)this.pop()}};var ni;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ni||(ni={}));const t2={type:ni.Marker};let iX=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ni.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===l){const p=this.treeAdapter.getAttrList(f);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(l=>[l.name,l.value]));let o=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(t2)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ni.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ni.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(t2);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ni.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ni.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ni.Element&&n.element===t)}};const Ao={createDocument(){return{nodeName:"#document",mode:Ta.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};Ao.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(Ao.isTextNode(n)){n.value+=t;return}}Ao.appendChild(e,Ao.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ao.isTextNode(r)?r.value+=t:Ao.insertBefore(e,Ao.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}}},HI="html",oX="about:legacy-compat",sX="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",zI=["+//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//"],lX=[...zI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],cX=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),GI=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],uX=[...GI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function n2(e,t){return t.some(n=>e.startsWith(n))}function dX(e){return e.name===HI&&e.publicId===null&&(e.systemId===null||e.systemId===oX)}function fX(e){if(e.name!==HI)return Ta.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===sX)return Ta.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),cX.has(n))return Ta.QUIRKS;let r=t===null?lX:zI;if(n2(n,r))return Ta.QUIRKS;if(r=t===null?GI:uX,n2(n,r))return Ta.LIMITED_QUIRKS}return Ta.NO_QUIRKS}const r2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},hX="definitionurl",pX="definitionURL",mX=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])),gX=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xe.XMLNS}]]),yX=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])),bX=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function EX(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:n})=>n===ks.COLOR||n===ks.SIZE||n===ks.FACE)||bX.has(t)}function VI(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===hX){e.attrs[t].name=pX;break}}function qI(e){for(let t=0;t<e.attrs.length;t++){const n=mX.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function zE(e){for(let t=0;t<e.attrs.length;t++){const n=gX.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 vX(e){const t=yX.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=dc(e.tagName))}function TX(e,t){return t===xe.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function _X(e,t,n){if(t===xe.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ks.ENCODING){const a=n[r].value.toLowerCase();return a===r2.TEXT_HTML||a===r2.APPLICATION_XML}}return t===xe.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function xX(e,t,n,r){return(!r||r===xe.HTML)&&_X(e,t,n)||(!r||r===xe.MATHML)&&TX(e,t)}const AX="hidden",SX=8,CX=3;var B;(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"})(B||(B={}));const DX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},YI=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),a2={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ao,onParseError:null};class i2{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.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={...a2,...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 XW(this.options,this),this.activeFormattingElements=new iX(this.treeAdapter),this.fragmentContextID=r?dc(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new aX(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={...a2,...n};t??(t=r.treeAdapter.createElement(J.TEMPLATE,xe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",xe.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===_.TEMPLATE&&o.tmplInsertionModeStack.unshift(B.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:DX,l={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(l)}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,l;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,l=this.fragmentContextID):{current:o,currentTagId:l}=this.openElements,this._setContextModes(o,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===xe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,xe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=Rn.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)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xe.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=Rn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=Rn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=Rn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=Rn.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(l=>this.treeAdapter.isDocumentTypeNode(l));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,xe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,xe.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(J.HTML,xe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,l=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,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===bt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===xe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,xe.HTML)}_processToken(t){switch(t.type){case bt.CHARACTER:{this.onCharacter(t);break}case bt.NULL_CHARACTER:{this.onNullCharacter(t);break}case bt.COMMENT:{this.onComment(t);break}case bt.DOCTYPE:{this.onDoctype(t);break}case bt.START_TAG:{this._processStartTag(t);break}case bt.END_TAG:{this.onEndTag(t);break}case bt.EOF:{this.onEof(t);break}case bt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return xX(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ni.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=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=B.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=B.IN_TABLE;return}case _.BODY:{this.insertionMode=B.IN_BODY;return}case _.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return YI.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===xe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return qW[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){rJ(this,t);return}switch(this.insertionMode){case B.INITIAL:{Cu(this,t);break}case B.BEFORE_HTML:{Xu(this,t);break}case B.BEFORE_HEAD:{Zu(this,t);break}case B.IN_HEAD:{Ju(this,t);break}case B.IN_HEAD_NO_SCRIPT:{ed(this,t);break}case B.AFTER_HEAD:{td(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{KI(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_TABLE_TEXT:{tw(this,t);break}case B.IN_COLUMN_GROUP:{zp(this,t);break}case B.AFTER_BODY:{Gp(this,t);break}case B.AFTER_AFTER_BODY:{tp(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nJ(this,t);return}switch(this.insertionMode){case B.INITIAL:{Cu(this,t);break}case B.BEFORE_HTML:{Xu(this,t);break}case B.BEFORE_HEAD:{Zu(this,t);break}case B.IN_HEAD:{Ju(this,t);break}case B.IN_HEAD_NO_SCRIPT:{ed(this,t);break}case B.AFTER_HEAD:{td(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_COLUMN_GROUP:{zp(this,t);break}case B.AFTER_BODY:{Gp(this,t);break}case B.AFTER_AFTER_BODY:{tp(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ab(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{ab(this,t);break}case B.IN_TABLE_TEXT:{Du(this,t);break}case B.AFTER_BODY:{LX(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{MX(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{PX(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case B.IN_TABLE_TEXT:{Du(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?aJ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Cu(this,t);break}case B.BEFORE_HTML:{$X(this,t);break}case B.BEFORE_HEAD:{jX(this,t);break}case B.IN_HEAD:{Fa(this,t);break}case B.IN_HEAD_NO_SCRIPT:{HX(this,t);break}case B.AFTER_HEAD:{GX(this,t);break}case B.IN_BODY:{pr(this,t);break}case B.IN_TABLE:{tc(this,t);break}case B.IN_TABLE_TEXT:{Du(this,t);break}case B.IN_CAPTION:{BZ(this,t);break}case B.IN_COLUMN_GROUP:{qE(this,t);break}case B.IN_TABLE_BODY:{$m(this,t);break}case B.IN_ROW:{Fm(this,t);break}case B.IN_CELL:{zZ(this,t);break}case B.IN_SELECT:{aw(this,t);break}case B.IN_SELECT_IN_TABLE:{VZ(this,t);break}case B.IN_TEMPLATE:{YZ(this,t);break}case B.AFTER_BODY:{KZ(this,t);break}case B.IN_FRAMESET:{WZ(this,t);break}case B.AFTER_FRAMESET:{ZZ(this,t);break}case B.AFTER_AFTER_BODY:{eJ(this,t);break}case B.AFTER_AFTER_FRAMESET:{tJ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?iJ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Cu(this,t);break}case B.BEFORE_HTML:{FX(this,t);break}case B.BEFORE_HEAD:{BX(this,t);break}case B.IN_HEAD:{UX(this,t);break}case B.IN_HEAD_NO_SCRIPT:{zX(this,t);break}case B.AFTER_HEAD:{VX(this,t);break}case B.IN_BODY:{Pm(this,t);break}case B.TEXT:{IZ(this,t);break}case B.IN_TABLE:{wd(this,t);break}case B.IN_TABLE_TEXT:{Du(this,t);break}case B.IN_CAPTION:{UZ(this,t);break}case B.IN_COLUMN_GROUP:{HZ(this,t);break}case B.IN_TABLE_BODY:{ib(this,t);break}case B.IN_ROW:{rw(this,t);break}case B.IN_CELL:{GZ(this,t);break}case B.IN_SELECT:{iw(this,t);break}case B.IN_SELECT_IN_TABLE:{qZ(this,t);break}case B.IN_TEMPLATE:{QZ(this,t);break}case B.AFTER_BODY:{sw(this,t);break}case B.IN_FRAMESET:{XZ(this,t);break}case B.AFTER_FRAMESET:{JZ(this,t);break}case B.AFTER_AFTER_BODY:{tp(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{Cu(this,t);break}case B.BEFORE_HTML:{Xu(this,t);break}case B.BEFORE_HEAD:{Zu(this,t);break}case B.IN_HEAD:{Ju(this,t);break}case B.IN_HEAD_NO_SCRIPT:{ed(this,t);break}case B.AFTER_HEAD:{td(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{JI(this,t);break}case B.TEXT:{wZ(this,t);break}case B.IN_TABLE_TEXT:{Du(this,t);break}case B.IN_TEMPLATE:{ow(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{VE(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===$.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 B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{QI(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Y1(this,t);break}case B.IN_TABLE_TEXT:{ew(this,t);break}}}}function kX(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):ZI(e,t),n}function RX(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 IX(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,l=a;l!==n;o++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&o>=CX;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=wX(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function wX(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 NX(e,t,n){const r=e.treeAdapter.getTagName(t),a=dc(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&o===xe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function OX(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 GE(e,t){for(let n=0;n<SX;n++){const r=kX(e,t);if(!r)break;const a=RX(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=IX(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),l&&NX(e,l,o),OX(e,a,r)}}function ab(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function LX(e,t){e._appendCommentNode(t,e.openElements.items[0])}function MX(e,t){e._appendCommentNode(t,e.document)}function VE(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],l=e.treeAdapter.getNodeSourceCodeLocation(o);l&&!l.endTag&&e._setEndLocation(o,t)}}}}function PX(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ta.QUIRKS:fX(t);dX(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function Cu(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ta.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function $X(e,t){t.tagID===_.HTML?(e._insertElement(t,xe.HTML),e.insertionMode=B.BEFORE_HEAD):Xu(e,t)}function FX(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&Xu(e,t)}function Xu(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function jX(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.HEAD:{e._insertElement(t,xe.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:Zu(e,t)}}function BX(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?Zu(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Zu(e,t){e._insertFakeElement(J.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function Fa(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,Rn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Rn.RAWTEXT):(e._insertElement(t,xe.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,Rn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,Rn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Ju(e,t)}}function UX(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{Ju(e,t);break}case _.TEMPLATE:{zs(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function zs(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Ju(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function HX(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Fa(e,t);break}case _.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:ed(e,t)}}function zX(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case _.BR:{ed(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function ed(e,t){const n=t.type===bt.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function GX(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.BODY:{e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Fa(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:td(e,t)}}function VX(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{td(e,t);break}case _.TEMPLATE:{zs(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function td(e,t){e._insertFakeElement(J.BODY,_.BODY),e.insertionMode=B.IN_BODY,Mm(e,t)}function Mm(e,t){switch(t.type){case bt.CHARACTER:{KI(e,t);break}case bt.WHITESPACE_CHARACTER:{QI(e,t);break}case bt.COMMENT:{ab(e,t);break}case bt.START_TAG:{pr(e,t);break}case bt.END_TAG:{Pm(e,t);break}case bt.EOF:{JI(e,t);break}}}function QI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function KI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function qX(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function YX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function QX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET)}function KX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function WX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,xe.HTML)}function XX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ZX(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),n||(e.formElement=e.openElements.current))}function JX(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function eZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.tokenizer.state=Rn.PLAINTEXT}function tZ(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1}function nZ(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(GE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function aZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(GE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function oZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ta.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function WI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function XI(e){const t=jI(e,ks.TYPE);return t!=null&&t.toLowerCase()===AX}function sZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),XI(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function lZ(e,t){e._appendElement(t,xe.HTML),t.ackSelfClosing=!0}function cZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uZ(e,t){t.tagName=J.IMG,t.tagID=_.IMG,WI(e,t)}function dZ(e,t){e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Rn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function fZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Rn.RAWTEXT)}function hZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Rn.RAWTEXT)}function o2(e,t){e._switchToTextParsing(t,Rn.RAWTEXT)}function pZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function mZ(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function gZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,xe.HTML)}function yZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,xe.HTML)}function bZ(e,t){e._reconstructActiveFormattingElements(),VI(t),zE(t),t.selfClosing?e._appendElement(t,xe.MATHML):e._insertElement(t,xe.MATHML),t.ackSelfClosing=!0}function EZ(e,t){e._reconstructActiveFormattingElements(),qI(t),zE(t),t.selfClosing?e._appendElement(t,xe.SVG):e._insertElement(t,xe.SVG),t.ackSelfClosing=!0}function s2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function pr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{rZ(e,t);break}case _.A:{nZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{WX(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{KX(e,t);break}case _.LI:case _.DD:case _.DT:{JX(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{WI(e,t);break}case _.HR:{cZ(e,t);break}case _.RB:case _.RTC:{gZ(e,t);break}case _.RT:case _.RP:{yZ(e,t);break}case _.PRE:case _.LISTING:{XX(e,t);break}case _.XMP:{fZ(e,t);break}case _.SVG:{EZ(e,t);break}case _.HTML:{qX(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Fa(e,t);break}case _.BODY:{YX(e,t);break}case _.FORM:{ZX(e,t);break}case _.NOBR:{aZ(e,t);break}case _.MATH:{bZ(e,t);break}case _.TABLE:{oZ(e,t);break}case _.INPUT:{sZ(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{lZ(e,t);break}case _.IMAGE:{uZ(e,t);break}case _.BUTTON:{tZ(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{iZ(e,t);break}case _.IFRAME:{hZ(e,t);break}case _.SELECT:{pZ(e,t);break}case _.OPTION:case _.OPTGROUP:{mZ(e,t);break}case _.NOEMBED:case _.NOFRAMES:{o2(e,t);break}case _.FRAMESET:{QX(e,t);break}case _.TEXTAREA:{dZ(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?o2(e,t):s2(e,t);break}case _.PLAINTEXT:{eZ(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:s2(e,t)}}function vZ(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function TZ(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,sw(e,t))}function _Z(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function xZ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function AZ(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(J.P,_.P),e._closePElement()}function SZ(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function CZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function DZ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function kZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function RZ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function ZI(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,l))break}}function Pm(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{GE(e,t);break}case _.P:{AZ(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{_Z(e,t);break}case _.LI:{SZ(e);break}case _.DD:case _.DT:{CZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{DZ(e);break}case _.BR:{RZ(e);break}case _.BODY:{vZ(e,t);break}case _.HTML:{TZ(e,t);break}case _.FORM:{xZ(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{kZ(e,t);break}case _.TEMPLATE:{zs(e,t);break}default:ZI(e,t)}}function JI(e,t){e.tmplInsertionModeStack.length>0?ow(e,t):VE(e,t)}function IZ(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wZ(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Y1(e,t){if(e.openElements.currentTagId!==void 0&&YI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case bt.CHARACTER:{tw(e,t);break}case bt.WHITESPACE_CHARACTER:{ew(e,t);break}}else Jd(e,t)}function NZ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CAPTION}function OZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function LZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,_.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,qE(e,t)}function MZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_TABLE_BODY}function PZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,_.TBODY),e.insertionMode=B.IN_TABLE_BODY,$m(e,t)}function $Z(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function FZ(e,t){XI(t)?e._appendElement(t,xe.HTML):Jd(e,t),t.ackSelfClosing=!0}function jZ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,xe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tc(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{PZ(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Fa(e,t);break}case _.COL:{LZ(e,t);break}case _.FORM:{jZ(e,t);break}case _.TABLE:{$Z(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{MZ(e,t);break}case _.INPUT:{FZ(e,t);break}case _.CAPTION:{NZ(e,t);break}case _.COLGROUP:{OZ(e,t);break}default:Jd(e,t)}}function wd(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{zs(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Jd(e,t)}}function Jd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Mm(e,t),e.fosterParentingEnabled=n}function ew(e,t){e.pendingCharacterTokens.push(t)}function tw(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Du(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Jd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const nw=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function BZ(e,t){const n=t.tagID;nw.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,tc(e,t)):pr(e,t)}function UZ(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===_.TABLE&&wd(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Pm(e,t)}}function qE(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.COL:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Fa(e,t);break}default:zp(e,t)}}function HZ(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TEMPLATE:{zs(e,t);break}case _.COL:break;default:zp(e,t)}}function zp(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function $m(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,_.TR),e.insertionMode=B.IN_ROW,Fm(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,tc(e,t));break}default:tc(e,t)}}function ib(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,wd(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:wd(e,t)}}function Fm(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,$m(e,t));break}default:tc(e,t)}}function rw(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,ib(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,ib(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:wd(e,t)}}function zZ(e,t){const n=t.tagID;nw.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),Fm(e,t)):pr(e,t)}function GZ(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),rw(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:Pm(e,t)}}function aw(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Fa(e,t);break}}}function iw(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{zs(e,t);break}}}function VZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):aw(e,t)}function qZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):iw(e,t)}function YZ(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Fa(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,tc(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,qE(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,$m(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,Fm(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,pr(e,t)}}function QZ(e,t){t.tagID===_.TEMPLATE&&zs(e,t)}function ow(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):VE(e,t)}function KZ(e,t){t.tagID===_.HTML?pr(e,t):Gp(e,t)}function sw(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Gp(e,t)}function Gp(e,t){e.insertionMode=B.IN_BODY,Mm(e,t)}function WZ(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.FRAMESET:{e._insertElement(t,xe.HTML);break}case _.FRAME:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Fa(e,t);break}}}function XZ(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function ZZ(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.NOFRAMES:{Fa(e,t);break}}}function JZ(e,t){t.tagID===_.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function eJ(e,t){t.tagID===_.HTML?pr(e,t):tp(e,t)}function tp(e,t){e.insertionMode=B.IN_BODY,Mm(e,t)}function tJ(e,t){switch(t.tagID){case _.HTML:{pr(e,t);break}case _.NOFRAMES:{Fa(e,t);break}}}function nJ(e,t){t.chars=un,e._insertCharacters(t)}function rJ(e,t){e._insertCharacters(t),e.framesetOk=!1}function lw(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==xe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function aJ(e,t){if(EX(t))lw(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===xe.MATHML?VI(t):r===xe.SVG&&(vX(t),qI(t)),zE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function iJ(e,t){if(t.tagID===_.P||t.tagID===_.BR){lw(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)===xe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const xs={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/"},l2=/[#.]/g;function oJ(e,t){const n=e||"",r={};let a=0,o,l;for(;a<n.length;){l2.lastIndex=a;const c=l2.exec(n),d=n.slice(a,c?c.index:n.length);d&&(o?o==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(o=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function cw(e,t,n){const r=n?uJ(n):void 0;function a(o,l,...c){let d;if(o==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=oJ(o,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,sJ(l))c.unshift(l);else for(const[m,y]of Object.entries(l))lJ(e,d.properties,m,y)}for(const f of c)ob(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function sJ(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 l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function lJ(e,t,n,r){const a=Hd(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=vy(r):a.commaSeparated?o=Ey(r):a.commaOrSpaceSeparated?o=vy(Ey(r).join(" ")):o=c2(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?cJ(r):String(r);if(Array.isArray(o)){const l=[];for(const c of o)l.push(c2(a,a.property,c));o=l}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function ob(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)ob(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ob(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||fd(n)===fd(t)))return!0}return n}function cJ(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function uJ(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const dJ=["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"],fJ=cw(ic,"div"),hJ=cw(Gi,"g",dJ);function pJ(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=u2(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>o)return{line:l+1,column:o-(l>0?n[l-1]:0)+1,offset:o};l++}}}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],d=u2(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(o.line>1?n[o.line-2]:0)+o.column-1;if(l<n[o.line-1])return l}}}function u2(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
199
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const uw={}.hasOwnProperty,mJ=Object.prototype;function gJ(e,t){const n=t||{};return YE({file:n.file||void 0,location:!1,schema:n.space==="svg"?Gi:ic,verbose:n.verbose||!1},e)}function YE(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},np(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:dw(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),l=pJ(o),c=l.toPoint(0),d=l.toPoint(o.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},np(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},np(e,r,n),n}default:return n=yJ(e,t),n}}function dw(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=YE(e,t[n]);r.push(a)}return r}function yJ(e,t){const n=e.schema;e.schema=t.namespaceURI===xs.svg?Gi:ic;let r=-1;const a={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;uw.call(mJ,c)||(a[c]=l.value)}const o=(e.schema.space==="svg"?hJ:fJ)(t.tagName,a,dw(e,t.childNodes));if(np(e,t,o),o.tagName==="template"){const l=t,c=l.sourceCodeLocation,d=c&&c.startTag&&Bl(c.startTag),f=c&&c.endTag&&Bl(c.endTag),p=YE(e,l.content);d&&f&&e.file&&(p.position={start:d.end,end:f.start}),o.content=p}return e.schema=n,o}function np(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=bJ(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function bJ(e,t,n){const r=Bl(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 l;if(n.attrs)for(l in n.attrs)uw.call(n.attrs,l)&&(o[Hd(e.schema,l).property]=Bl(n.attrs[l]));n.startTag;const c=Bl(n.startTag),d=n.endTag?Bl(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=o,t.data={position:f}}}return r}function Bl(e){const t=d2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=d2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function d2(e){return e.line&&e.column?e:void 0}let ef=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ef.prototype.property={};ef.prototype.normal={};ef.prototype.space=null;function fw(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 ef(n,r,t)}function sb(e){return e.toLowerCase()}let Ca=class{constructor(t,n){this.property=t,this.attribute=n}};Ca.prototype.space=null;Ca.prototype.boolean=!1;Ca.prototype.booleanish=!1;Ca.prototype.overloadedBoolean=!1;Ca.prototype.number=!1;Ca.prototype.commaSeparated=!1;Ca.prototype.spaceSeparated=!1;Ca.prototype.commaOrSpaceSeparated=!1;Ca.prototype.mustUseProperty=!1;Ca.prototype.defined=!1;let EJ=0;const ct=Gs(),Mn=Gs(),hw=Gs(),Re=Gs(),rn=Gs(),Yl=Gs(),Kr=Gs();function Gs(){return 2**++EJ}const lb=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:Mn,commaOrSpaceSeparated:Kr,commaSeparated:Yl,number:Re,overloadedBoolean:hw,spaceSeparated:rn},Symbol.toStringTag,{value:"Module"})),Q1=Object.keys(lb);let QE=class extends Ca{constructor(t,n,r,a){let o=-1;if(super(t,n),f2(this,"space",a),typeof r=="number")for(;++o<Q1.length;){const l=Q1[o];f2(this,Q1[o],(r&lb[l])===lb[l])}}};QE.prototype.defined=!0;function f2(e,t,n){n&&(e[t]=n)}const vJ={}.hasOwnProperty;function fc(e){const t={},n={};let r;for(r in e.properties)if(vJ.call(e.properties,r)){const a=e.properties[r],o=new QE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[sb(r)]=r,n[sb(o.attribute)]=r}return new ef(t,n,e.space)}const pw=fc({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}}),mw=fc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function gw(e,t){return t in e?e[t]:t}function yw(e,t){return gw(e,t.toLowerCase())}const bw=fc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yw,properties:{xmlns:null,xmlnsXLink:null}}),Ew=fc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:rn,ariaCurrent:null,ariaDescribedBy:rn,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:rn,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:rn,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rn,ariaLevel:Re,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:rn,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:rn,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Mn,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),TJ=fc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yw,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yl,acceptCharset:rn,accessKey:rn,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:rn,autoFocus:ct,autoPlay:ct,blocking:rn,capture:null,charSet:null,checked:ct,cite:null,className:rn,cols:Re,colSpan:null,content:null,contentEditable:Mn,controls:ct,controlsList:rn,coords:Re|Yl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:hw,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:rn,height:Re,hidden:ct,high:Re,href:null,hrefLang:null,htmlFor:rn,httpEquiv:rn,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:rn,itemRef:rn,itemScope:ct,itemType:rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,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:Re,pattern:null,ping:rn,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:rn,required:ct,reversed:ct,rows:Re,rowSpan:Re,sandbox:rn,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:Mn,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rn,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,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:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:Re,security:null,unselectable:null}}),_J=fc({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:gw,properties:{about:Kr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,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:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,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:Yl,g2:Yl,glyphName:Yl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Kr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,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:Re,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:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kr,rev:Kr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kr,requiredFeatures:Kr,requiredFonts:Kr,requiredFormats:Kr,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:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Kr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xJ=fw([mw,pw,bw,Ew,TJ],"html"),vw=fw([mw,pw,bw,Ew,_J],"svg"),AJ=/^data[-\w.:]+$/i,h2=/-[a-z]/g,SJ=/[A-Z]/g;function CJ(e,t){const n=sb(t);let r=t,a=Ca;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AJ.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(h2,kJ);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!h2.test(o)){let l=o.replace(SJ,DJ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=QE}return new a(r,t)}function DJ(e){return"-"+e.toLowerCase()}function kJ(e){return e.charAt(1).toUpperCase()}const RJ={},IJ={}.hasOwnProperty,Tw=am("type",{handlers:{root:NJ,element:$J,text:MJ,comment:PJ,doctype:LJ}});function wJ(e,t){const n=(t||RJ).space;return Tw(e,n==="svg"?vw:xJ)}function NJ(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=KE(e.children,n,t),hc(e,n),n}function OJ(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=KE(e.children,n,t),hc(e,n),n}function LJ(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return hc(e,t),t}function MJ(e){const t={nodeName:"#text",value:e.value,parentNode:null};return hc(e,t),t}function PJ(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return hc(e,t),t}function $J(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=vw);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&IJ.call(e.properties,o)){const d=FJ(r,o,e.properties[o]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:xs[l],childNodes:[],parentNode:null};return c.childNodes=KE(e.children,c,r),hc(e,c),e.tagName==="template"&&e.content&&(c.content=OJ(e.content,r)),c}function FJ(e,t,n){const r=CJ(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?im(n):om(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=xs[r.space]}return a}function KE(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=Tw(e[r],n);o.parentNode=t,a.push(o)}return a}function hc(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 jJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,BJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),p2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function _w(e,t){const n=WJ(e),r=am("type",{handlers:{root:UJ,element:HJ,text:zJ,comment:Aw,doctype:GJ,raw:qJ},unknown:YJ}),a={parser:n?new i2(p2):i2.getFragmentParser(void 0,p2),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),pc(a,di());const o=n?a.parser.document:a.parser.getFragment(),l=gJ(o,{file:a.options.file});return a.stitches&&Pr(l,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=p.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function xw(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function UJ(e,t){xw(e.children,t)}function HJ(e,t){QJ(e,t),xw(e.children,t),KJ(e,t)}function zJ(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:bt.CHARACTER,chars:e.value,location:tf(e)};pc(t,di(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function GJ(e,t){const n={type:bt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tf(e)};pc(t,di(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function VJ(e,t){t.stitches=!0;const n=XJ(e);if("children"in e&&"children"in n){const r=_w({type:"root",children:e.children},t.options);n.children=r.children}Aw({type:"comment",value:{stitch:n}},t)}function Aw(e,t){const n=e.value,r={type:bt.COMMENT,data:n,location:tf(e)};pc(t,di(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function qJ(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,Sw(t,di(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jJ,"<$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 YJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))VJ(n,t);else{let r="";throw BJ.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 pc(e,t){Sw(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=Rn.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 Sw(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 QJ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Rn.PLAINTEXT)return;pc(t,di(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:xs.html;a===xs.html&&n==="svg"&&(a=xs.svg);const o=wJ({...e,children:[]},{space:a===xs.svg?"svg":"html"}),l={type:bt.START_TAG,tagName:n,tagID:dc(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:tf(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function KJ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&tk.includes(n)||t.parser.tokenizer.state===Rn.PLAINTEXT)return;pc(t,Lm(e));const r={type:bt.END_TAG,tagName:n,tagID:dc(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tf(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Rn.RCDATA||t.parser.tokenizer.state===Rn.RAWTEXT||t.parser.tokenizer.state===Rn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Rn.DATA)}function WJ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function tf(e){const t=di(e)||{line:void 0,column:void 0,offset:void 0},n=Lm(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 XJ(e){return"children"in e?Ps({...e,children:[]}):Ps(e)}function ZJ(e){return function(t,n){return _w(t,{...e,file:n})}}var JJ=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],eee=e=>e;const tee=Le.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:l=!1,skipHtml:c=!0,onScroll:d,onMouseOver:f,pluginsFilter:p,wrapperElement:m={},warpperElement:y={},urlTransform:b}=e,T=ur(e,JJ),A=Le.useRef(null);N.useImperativeHandle(t,()=>Ae({},e,{mdp:A}),[A,e]);var C=(n||"")+" "+(r||"");IG(A);var x=[...T.rehypePlugins||[]],D={allowElement:(L,I,V)=>T.allowElement?T.allowElement(L,I,V):/^[A-Za-z0-9]+$/.test(L.tagName)};c||x.push(ZJ);var S=[CG,...T.remarkPlugins||[],Yq],M=Ae({},y,m);return E.jsx("div",Ae({ref:A,onScroll:d,onMouseOver:f},M,{className:C,style:o,children:E.jsx(IW,Ae({},D,T,{skipHtml:!c,urlTransform:b||eee,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",S):S,children:a||""}))}))});var rp={},cb={};function nee(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),l=n[o]||(n[o]={chars:{}});a&&(l.self=e),n=l.chars}}function m2(e){if(e.length===0)return rp;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];nee(a,t)}return t}function ree(e){if(e.length===0)return cb;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Oh={},g2={type:"String",optional:!0};function aee(e){var t={type:"NoArgument",optional:!1};function n(l){if(t.type&&t.type!==l&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(l,'".'));t.type=l}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 iee(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 l=0,c=o;l<c.length;l++){var d=c[l];(t[d]||(t[d]=[])).push(a)}}return t}function y2(e){for(var t=iee(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],l=t[o];l&&(n[o]=aee(l))}return n}var nc=function(){return nc=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},nc.apply(this,arguments)},oee={},ub={wildcard:!0};function see(e){return e?typeof e=="boolean"?ub:e:oee}function lee(e,t){return function(n,r){return t(e(n),e(r))}}function cee(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 b2(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Ll(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=nc({},t),a=0,o=Object.entries(n);a<o.length;a++){var l=o[a],c=l[0],d=l[1];if(c!=="latest"){var f=e[c];r[c]=f(t[c],d)}}return r}}function Li(e,t){return t!==void 0?t:e}function Lh(e,t){return t?e?e.concat(t):t:e}function E2(e,t){if(!t)return e;if(!e)return t;for(var n=nc({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],l=o[0],c=o[1];if(!c){delete n[l];continue}var d=e[l];if(!d){n[l]=c;continue}n[l]=d.concat(c)}return n}var Rs=cee(Ll({baseSyntax:Li,modules:Lh,tag:b2(ub,Ll({wildcard:Li})),ids:Li,classNames:Li,namespace:b2(ub,Ll({wildcard:Li})),combinators:Lh,attributes:Ll({operators:Lh,caseSensitivityModifiers:Lh,unknownCaseSensitivityModifiers:Li}),pseudoClasses:Ll({unknown:Li,definitions:E2}),pseudoElements:Ll({unknown:Li,notation:Li,definitions:lee(function(e){return Array.isArray(e)?{NoArgument:e}:e},E2)})})),Cw={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},Dw=Rs(Cw,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),db=Rs(Dw,{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"]}}}),kw=Rs(db,{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"]}}}),Vp={"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"]}}}},Rw=nc(nc({},kw),{modules:Object.entries(Vp).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),uee=Rs(Rw,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),fb={css1:Cw,css2:Dw,css3:db,"selectors-3":db,"selectors-4":kw,latest:Rw,progressive:uee};function dee(){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=fb[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var l=o.pseudoClasses.definitions;if(l)for(var c=0,d=Object.entries(l);c<d.length;c++)for(var f=d[c],p=f[1],m=0,y=p;m<y.length;m++){var b=y[m];e.pseudoClasses[b]||(e.pseudoClasses[b]=[]),e.pseudoClasses[b].includes(a)||e.pseudoClasses[b].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var l=o.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var T=0,A=l;T<A.length;T++){var C=A[T];e.pseudoElements[C]||(e.pseudoElements[C]=[]),e.pseudoElements[C].includes(a)||e.pseudoElements[C].push(a)}else for(var x=0,D=Object.values(l);x<D.length;x++)for(var p=D[x],S=0,M=p;S<M.length;S++){var L=M[S];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(a)||e.pseudoElements[L].push(a)}}}for(var I=0,V=Object.entries(Vp);I<V.length;I++){var ne=V[I],K=ne[0],k=ne[1];if(k.pseudoClasses&&typeof k.pseudoClasses=="object"){var l=k.pseudoClasses.definitions;if(l)for(var H=0,Q=Object.values(l);H<Q.length;H++)for(var p=Q[H],W=0,re=p;W<re.length;W++){var me=re[W];e.pseudoClasses[me]||(e.pseudoClasses[me]=[]),e.pseudoClasses[me].includes(K)||e.pseudoClasses[me].push(K)}}if(k.pseudoElements&&typeof k.pseudoElements=="object"){var l=k.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var G=0,le=l;G<le.length;G++){var se=le[G];e.pseudoElements[se]||(e.pseudoElements[se]=[]),e.pseudoElements[se].includes(K)||e.pseudoElements[se].push(K)}else for(var ye=0,P=Object.values(l);ye<P.length;ye++)for(var p=P[ye],Ne=0,ce=p;Ne<ce.length;Ne++){var w=ce[Ne];e.pseudoElements[w]||(e.pseudoElements[w]=[]),e.pseudoElements[w].includes(K)||e.pseudoElements[w].push(K)}}}return e}var v2=dee();function ku(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function T2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Ru(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var fee={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},hee={'"':!0,"'":!0},K1={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},pee=6,W1="css-selector-parser parse error: ";function mee(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,l=e.modules,c=typeof n=="object"?n:fb[n];if(c.baseSyntax&&(c=Rs(fb[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var d=0,f=c.modules;d<f.length;d++){var p=f[d],m=Vp[p];m&&(c=Rs(m,c))}if(l&&l.length>0)for(var y=0,b=l;y<b.length;y++){var T=b[y],m=Vp[T];m&&(c=Rs(m,c))}var A=c.tag?[!0,!!see(c.tag).wildcard]:[!1,!1],C=A[0],x=A[1],D=!!c.ids,S=!!c.classNames,M=!!c.namespace,L=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(M&&!C)throw new Error("".concat(W1,"Namespaces cannot be enabled while tags are disabled."));var I=!!r,V=c.combinators?m2(c.combinators):rp,ne=c.attributes?[!0,c.attributes.operators?m2(c.attributes.operators):rp,c.attributes.caseSensitivityModifiers?ree(c.attributes.caseSensitivityModifiers):cb,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,rp,cb,!1],K=ne[0],k=ne[1],H=ne[2],Q=ne[3],W=Q||Object.keys(H).length>0,re=c.pseudoClasses?[!0,c.pseudoClasses.definitions?y2(c.pseudoClasses.definitions):Oh,c.pseudoClasses.unknown==="accept"]:[!1,Oh,!1],me=re[0],G=re[1],le=re[2],se=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?y2(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Oh,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Oh,!1],ye=se[0],P=se[1],Ne=se[2],ce=se[3],w=se[4],te="",Ce=te.length,Ie=0,Me="",Oe=function(_e){return Me===_e},st=function(){return Oe("*")||ku(Me)},dt=function(_e){Ie=_e,Me=te.charAt(Ie)},Be=function(){Ie++,Me=te.charAt(Ie)},en=function(){var _e=Me;return Ie++,Me=te.charAt(Ie),_e};function wt(_e){var Te=Math.min(Ce-1,Ie),ot=new Error("".concat(W1).concat(_e," Pos: ").concat(Te,"."));throw ot.position=Te,ot.name="ParserError",ot}function Pe(_e,Te){if(!_e)return wt(Te)}var ar=function(){Pe(Ie<Ce,"Unexpected end of input.")},dn=function(){return Ie>=Ce},Ve=function(_e){Pe(Ie<Ce,'Expected "'.concat(_e,'" but end of input reached.')),Pe(Me===_e,'Expected "'.concat(_e,'" but "').concat(Me,'" found.')),Ie++,Me=te.charAt(Ie)};function Xn(_e){var Te=an(_e,Ie);if(Te)return Ie+=Te.length,Me=te.charAt(Ie),Te}function an(_e,Te){var ot=te.charAt(Te),We=_e[ot];if(We){var Cn=an(We.chars,Te+1);if(Cn)return Cn;if(We.self)return We.self}}function on(){for(var _e=en(),Te=1;Ru(Me)&&Te<pee;)_e+=en(),Te++;return ja(),String.fromCharCode(parseInt(_e,16))}function Ye(_e){var Te="";for(Ve(_e);Ie<Ce;){if(Oe(_e))return Be(),Te;Oe("\\")?(Be(),Oe(_e)?(Te+=_e,Be()):Me===`
|
|
200
|
+
`||Me==="\f"?Be():Me==="\r"?(Be(),Oe(`
|
|
201
|
+
`)&&Be()):Ru(Me)?Te+=on():(Te+=Me,Be())):(Te+=Me,Be())}return Te}function Ct(){if(!ku(Me))return null;for(var _e="";Oe("-");)_e+=Me,Be();for(_e==="-"&&!T2(Me)&&!Oe("\\")&&wt("Identifiers cannot consist of a single hyphen."),o&&_e.length>=2&&wt("Identifiers cannot start with two hyphens with strict mode on."),K1[Me]&&wt("Identifiers cannot start with hyphens followed by digits.");Ie<Ce;)if(T2(Me))_e+=en();else if(Oe("\\"))Be(),ar(),Ru(Me)?_e+=on():_e+=en();else break;return _e}function Sr(){for(var _e="";Ie<Ce&&!Oe(")");)if(Oe("\\")){if(Be(),dn()&&!o)return(_e+"\\").trim();ar(),Ru(Me)?_e+=on():_e+=en()}else _e+=en();return _e.trim()}function ja(){if(Me===" "||Me===" "||Me==="\f"||Me===`
|
|
202
|
+
`){Be();return}Me==="\r"&&Be(),Me===`
|
|
203
|
+
`&&Be()}function Rt(){for(;fee[Me];)Be()}function ue(_e){_e===void 0&&(_e=!1),Rt();for(var Te=[Sn(_e)];Oe(",");)Be(),Rt(),Te.push(Sn(_e));return{type:"Selector",rules:Te}}function ve(){Ve("["),Rt();var _e;if(Oe("|")){Pe(M,"Namespaces are not enabled."),Be();var Te=Ct();Pe(Te,"Expected attribute name."),_e={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(Oe("*")){Pe(M,"Namespaces are not enabled."),Pe(L,"Wildcard namespace is not enabled."),Be(),Ve("|");var ot=Ct();Pe(ot,"Expected attribute name."),_e={type:"Attribute",name:ot,namespace:{type:"WildcardNamespace"}}}else{var We=Ct();if(Pe(We,"Expected attribute name."),_e={type:"Attribute",name:We},Oe("|")){var Cn=Ie;if(Be(),ku(Me)){Pe(M,"Namespaces are not enabled.");var Fr=Ct();Pe(Fr,"Expected attribute name."),_e={type:"Attribute",name:Fr,namespace:{type:"NamespaceName",name:We}}}else dt(Cn)}}if(Pe(_e.name,"Expected attribute name."),Rt(),dn()&&!o)return _e;if(Oe("]"))Be();else{if(_e.operator=Xn(k),Pe(_e.operator,"Expected a valid attribute selector operator."),Rt(),ar(),hee[Me])_e.value={type:"String",value:Ye(Me)};else if(I&&Oe("$")){Be();var gr=Ct();Pe(gr,"Expected substitute name."),_e.value={type:"Substitution",name:gr}}else{var ir=Ct();Pe(ir,"Expected attribute value."),_e.value={type:"String",value:ir}}if(Rt(),dn()&&!o)return _e;if(!Oe("]")){var or=Ct();if(Pe(or,"Expected end of attribute selector."),_e.caseSensitivityModifier=or,Pe(W,"Attribute case sensitivity modifiers are not enabled."),Pe(Q||H[_e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Rt(),dn()&&!o)return _e}Ve("]")}return _e}function Fe(){for(var _e="";K1[Me];)_e+=en();return Pe(_e!=="","Formula parse error."),parseInt(_e)}var nt=function(){return Oe("-")||Oe("+")||K1[Me]};function Dt(){if(Oe("e")||Oe("o")){var _e=Ct();if(_e==="even")return Rt(),[2,0];if(_e==="odd")return Rt(),[2,1]}var Te=null,ot=1;if(Oe("-")&&(Be(),ot=-1),nt()&&(Oe("+")&&Be(),Te=Fe(),!Oe("\\")&&!Oe("n")))return[0,Te*ot];Te===null&&(Te=1),Te*=ot;var We;if(Oe("\\")?(Be(),Ru(Me)?We=on():We=en()):We=en(),Pe(We==="n",'Formula parse error: expected "n".'),Rt(),Oe("+")||Oe("-")){var Cn=Oe("+")?1:-1;return Be(),Rt(),[Te,Cn*Fe()]}else return[Te,0]}function Nt(_e,Te,ot){var We;if(Oe("(")){if(Be(),Rt(),I&&Oe("$")){Be();var Cn=Ct();Pe(Cn,"Expected substitute name."),We={type:"Substitution",name:Cn}}else if(ot.type==="String")We={type:"String",value:Sr()},Pe(We.value,"Expected ".concat(Te," argument value."));else if(ot.type==="Selector")We=ue(!0);else if(ot.type==="Formula"){var Fr=Dt(),gr=Fr[0],ir=Fr[1];if(We={type:"Formula",a:gr,b:ir},ot.ofSelector&&(Rt(),Oe("o")||Oe("\\"))){var or=Ct();Pe(or==="of","Formula of selector parse error."),Rt(),We={type:"FormulaOfSelector",a:gr,b:ir,selector:Sn()}}}else return wt("Invalid ".concat(Te," signature."));if(Rt(),dn()&&!o)return We;Ve(")")}else Pe(ot.optional,"Argument is required for ".concat(Te,' "').concat(_e,'".'));return We}function Gn(){if(Oe("*"))return Pe(x,"Wildcard tag name is not enabled."),Be(),{type:"WildcardTag"};if(ku(Me)){Pe(C,"Tag names are not enabled.");var _e=Ct();return Pe(_e,"Expected tag name."),{type:"TagName",name:_e}}else return wt("Expected tag name.")}function gn(){if(Oe("*")){var _e=Ie;if(Be(),!Oe("|")||(Be(),!st()))return dt(_e),Gn();Pe(M,"Namespaces are not enabled."),Pe(L,"Wildcard namespace is not enabled.");var Te=Gn();return Te.namespace={type:"WildcardNamespace"},Te}else if(Oe("|")){Pe(M,"Namespaces are not enabled."),Be();var Te=Gn();return Te.namespace={type:"NoNamespace"},Te}else if(ku(Me)){var ot=Ct();if(Pe(ot,"Expected tag name."),!Oe("|"))return Pe(C,"Tag names are not enabled."),{type:"TagName",name:ot};var _e=Ie;if(Be(),!st())return dt(_e),{type:"TagName",name:ot};Pe(M,"Namespaces are not enabled.");var Te=Gn();return Te.namespace={type:"NamespaceName",name:ot},Te}else return wt("Expected tag name.")}function Sn(_e){var Te,ot;_e===void 0&&(_e=!1);var We={type:"Rule",items:[]};if(_e){var Cn=Xn(V);Cn&&(We.combinator=Cn,Rt())}for(;Ie<Ce;)if(st())Pe(We.items.length===0,"Unexpected tag/namespace start."),We.items.push(gn());else if(Oe("|")){var Fr=Ie;if(Be(),st())Pe(We.items.length===0,"Unexpected tag/namespace start."),dt(Fr),We.items.push(gn());else{dt(Fr);break}}else if(Oe(".")){Pe(S,"Class names are not enabled."),Be();var gr=Ct();Pe(gr,"Expected class name."),We.items.push({type:"ClassName",name:gr})}else if(Oe("#")){Pe(D,"IDs are not enabled."),Be();var ir=Ct();Pe(ir,"Expected ID name."),We.items.push({type:"Id",name:ir})}else if(Oe("["))Pe(K,"Attributes are not enabled."),We.items.push(ve());else if(Oe(":")){var or=!1,Ba=!1;Be(),Oe(":")&&(Pe(ye,"Pseudo elements are not enabled."),Pe(Ne,"Pseudo elements double colon notation is not enabled."),or=!0,Be());var fn=Ct();if(Pe(or||fn,"Expected pseudo-class name."),Pe(!or||fn,"Expected pseudo-element name."),Pe(fn,"Expected pseudo-class name."),!(!or||w||Object.prototype.hasOwnProperty.call(ce,fn))){var jr=v2.pseudoElements[fn],Da='Unknown pseudo-element "'.concat(fn,'"');jr&&jr.length>0&&(Da+=". It is defined in: ".concat(jr.join(", "))),wt(Da+".")}if(Ba=ye&&(or||!or&&P&&Object.prototype.hasOwnProperty.call(ce,fn)),Ba){var z=(Te=ce[fn])!==null&&Te!==void 0?Te:w&&g2,X={type:"PseudoElement",name:fn},ie=Nt(fn,"pseudo-element",z);ie&&(Pe(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),X.argument=ie),We.items.push(X)}else{Pe(me,"Pseudo-classes are not enabled.");var z=(ot=G[fn])!==null&&ot!==void 0?ot:le&&g2;if(!z){var jr=v2.pseudoClasses[fn],Da='Unknown pseudo-class: "'.concat(fn,'"');jr&&jr.length>0&&(Da+=". It is defined in: ".concat(jr.join(", "))),wt(Da+".")}var ie=Nt(fn,"pseudo-class",z),Ee={type:"PseudoClass",name:fn};ie&&(Ee.argument=ie),We.items.push(Ee)}}else break;if(We.items.length===0)return dn()?wt("Expected rule but end of input reached."):wt('Expected rule but "'.concat(Me,'" found.'));if(Rt(),!dn()&&!Oe(",")&&!Oe(")")){var Cn=Xn(V);Rt(),We.nestedRule=Sn(),We.nestedRule.combinator=Cn}return We}return function(_e){if(typeof _e!="string")throw new Error("".concat(W1,"Expected string input."));return te=_e,Ce=te.length,Ie=0,Me=te.charAt(0),ue()}}const gee=mee({syntax:"selectors-4"});function yee(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return gee(e)}const Iw="֑-߿יִ-﷽ﹰ-ﻼ",ww="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",bee=new RegExp("^[^"+ww+"]*["+Iw+"]"),Eee=new RegExp("^[^"+Iw+"]*["+ww+"]");function vee(e){const t=String(e||"");return bee.test(t)?"rtl":Eee.test(t)?"ltr":"neutral"}function Nw(e){return"children"in e?Ow(e):"value"in e?e.value:""}function Tee(e){return e.type==="text"?e.value:"children"in e?Ow(e):""}function Ow(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Tee(e.children[t]);return n.join("")}function _ee(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let l;if(t.type==="element"){const f=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",m=_2(t);f!=null&&(e.language=String(f)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Gi),m==="rtl"?l=m:m==="ltr"||m!=="auto"&&t.tagName==="html"||m!=="auto"&&t.tagName==="input"&&p==="tel"?l="ltr":(m==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?l=X1(Nw(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?l=t.properties.value?X1(String(t.properties.value)):"ltr":Pr(t,d)),l&&(e.direction=l)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function d(f){if(f.type==="text")return l=X1(f.value),l?Fp:void 0;if(f!==t&&f.type==="element"&&(f.tagName==="bdi"||f.tagName==="script"||f.tagName==="style"||f.tagName==="textare"||_2(f)))return Yu}}function X1(e){const t=vee(e);return t==="neutral"?void 0:t}function _2(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 xee(e,t,n){const r=Hd(n,e.name),a=t.properties[r.property];let o=Aee(a,r);if(!e.value)return o!==void 0;e.value.type;let l=e.value.value;if(e.caseSensitivityModifier==="i"&&(l=l.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return l===o;case"$=":return l===o.slice(-l.length);case"*=":return o.includes(l);case"^=":return l===o.slice(0,l.length);case"|=":return l===o||l===o.slice(0,l.length)&&o.charAt(l.length)==="-";case"~=":return l===o||vy(o).includes(l)}return!1}function Aee(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?im:om)(e)}else return String(e)}const See=[];function Cee(e,t){return(t.properties.className||See).includes(e.name)}function Dee(e,t){return t.properties.id===e.name}function kee(e,t){return e.name===t.tagName}function Ree(e,t){return function(n,r){let a=x2(n,"tag");const o=x2(r??"*","range"),l=[];let c=-1;for(;++c<o.length;){const d=o[c].toLowerCase();let f=-1;const p=[];for(;++f<a.length;)e(a[f].toLowerCase(),d)?l.push(a[f]):p.push(a[f]);a=p}return l}}const Iee=Ree(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 x2(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 wee=new Set([9,10,12,13,32]),A2=48,Nee=57;function Oee(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=l();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=l()):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 l(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=A2&&e.charCodeAt(t)<=Nee;)f=f*10+(e.charCodeAt(t)-A2),t++;return t===d?null:f}function c(){for(;t<e.length&&wee.has(e.charCodeAt(t));)t++}}var S2,C2;function Lee(){return C2||(C2=1,S2={trueFunc:function(){return!0},falseFunc:function(){return!1}}),S2}var Mee=Lee();const D2=Cm(Mee);function Pee(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return D2.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?D2.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 k2(e){return Pee(Oee(e))}const $ee={}.hasOwnProperty;function $s(e,t){const n=e.type==="element"&&$ee.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Fee=k2.default||k2,jee=am("name",{handlers:{"any-link":Bee,blank:Uee,checked:Hee,dir:zee,disabled:Lw,empty:Gee,enabled:Vee,"first-child":qee,"first-of-type":Yee,has:Qee,is:Mw,lang:Wee,"last-child":Xee,"last-of-type":Zee,not:Jee,"nth-child":ete,"nth-last-child":tte,"nth-last-of-type":nte,"nth-of-type":rte,"only-child":ate,"only-of-type":ite,optional:ote,"read-only":ste,"read-write":Pw,required:$w,root:lte,scope:cte},invalid:Kee,unknown:ute});function Bee(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&$s(t,"href")}function fi(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Uee(e,t){return!Fw(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Ud(r)}}function Hee(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&$s(t,"checked")):t.tagName==="option"?$s(t,"selected"):!1}function zee(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function Lw(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")&&$s(t,"disabled")}function Gee(e,t){return!Fw(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Vee(e,t){return!Lw(e,t)}function qee(e,t,n,r,a){return fi(a,e),a.elementIndex===0}function Yee(e,t,n,r,a){return fi(a,e),a.typeIndex===0}function jm(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=Fee(n.a+"n+"+n.b),e._cachedFn=t}return t}function Qee(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 WE(o,{type:"root",children:t.children}),o.results.length>0}function Kee(){}function Mw(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 WE(o,t),o.results[0]===t}function Wee(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&Iee(a.language,Ey(e.argument.value)).length>0}function Xee(e,t,n,r,a){return fi(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Zee(e,t,n,r,a){return fi(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Jee(e,t,n,r,a){return!Mw(e,t,n,r,a)}function ete(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function tte(e,t,n,r,a){const o=jm(e);return fi(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function nte(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function rte(e,t,n,r,a){const o=jm(e);return fi(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function ate(e,t,n,r,a){return fi(a,e),a.elementCount===1}function ite(e,t,n,r,a){return fi(a,e),a.typeCount===1}function ote(e,t){return!$w(e,t)}function ste(e,t,n,r,a){return!Pw(e,t,n,r,a)}function Pw(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!$s(t,"readOnly")&&!$s(t,"disabled"):!!a.editableOrEditingHost}function $w(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&$s(t,"required")}function lte(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 cte(e,t,n,r,a){return a.scopeElements.includes(t)}function Fw(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function ute(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function dte(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!xee(o,t,a.schema))return!1}else if(o.type==="Id"){if(!Dee(o,t))return!1}else if(o.type==="ClassName"){if(!Cee(o,t))return!1}else if(o.type==="PseudoClass"){if(!jee(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!kee(o,t))return!1}return!0}const fte=[];function WE(e,t){t&&jw(e,[],t,void 0,void 0,t)}function Z1(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function hte(e,t,n,r){const a=ap(t.descendant,t.directChild);let o,l=-1;const c={count:0,types:new Map},d={count:0,types:new Map};for(;++l<n.children.length;)R2(c,n.children[l]);for(l=-1;++l<n.children.length;){const f=n.children[l],p=f.type==="element"?f.tagName.toUpperCase():void 0;if(e.elementIndex=d.count,e.typeIndex=p&&d.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in f){const m=ap(a,o),y=jw(e,m,n.children[l],l,n,r);o=ap(y.generalSibling,y.adjacentSibling)}if(e.one&&e.found)break;R2(d,n.children[l])}}function pte(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let l=-1;for(;++l<t.length;){const c=t[l];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(dte(c,n,r,a,e)){const d=c.nestedRule;if(d){const f=d.combinator==="+"?"adjacentSibling":d.combinator==="~"?"generalSibling":d.combinator===">"?"directChild":"descendant";Z1(o,f,d)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Z1(o,"descendant",c):c.combinator==="~"&&Z1(o,"generalSibling",c)}return o}function ap(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:fte}function R2(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 jw(e,t,n,r,a,o){let l={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=_ee(e,n);if(n.type==="element"){let d=e.rootQuery.rules;a&&a!==o&&(d=e.rootQuery.rules.filter(f=>f.combinator===void 0||f.combinator===">"&&a===o)),l=pte(e,ap(t,d),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&hte(e,l,n,o),c(),l}function mte(e,t,n){const r=gte(e,t);return WE(r,t||void 0),r.results}function gte(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:yee(e),schema:ic,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Bw=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Bw(n.children))}),t),yte=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=mte(t,r);a&&a.length>0&&Pr(r,a,(o,l,c)=>{n(o,l,c)});return}Pr(r,(a,o,l)=>{n(a,o,l)})}}},bte=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Ete=(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]}},Uw=(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?Uw(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},I2=({value:e=""})=>{const t=bte(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},w2=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},vte=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Pr(r,"element",(a,o,l)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&l&&Array.isArray(l.children)&&l.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const d=Ete(l.children,o);if(d){const f=I2(d);Object.keys(f).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=w2(c.properties,f,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)&&l&&Array.isArray(l.children)&&typeof o=="number"){const c=Uw(l.children,o,"",n);if(c){const d=I2(c);Object.keys(d).length>0&&(a.properties=w2(a.properties,d,t))}}})}};var Tte=function(e){return t=>{Pr(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ae({},n.properties,{"data-meta":String(n.data.meta)}))})}},_te=function(e){return t=>{Pr(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 xte=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Pr(r,(a,o,l)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(d=>{if(d.type==="raw"||d.type==="comment"){let f=(d.value||"").trim();if(f=f.replace(/^<!--(.*?)-->/,"$1"),f===t)return c=!0,!1;if(f===n)return c=!1,!1}return!c})}})}};var Ate={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 Ste(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 Cte=/[\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,Dte=Object.hasOwnProperty;let kte=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=Rte(t,n===!0);const o=a;for(;Dte.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 Rte(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Cte,"").replace(/ /g,"-"))}function Hw(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 Ite={},N2=new kte;function wte(e){const t=(e||Ite).prefix||"";return function(n){N2.reset(),Pr(n,"element",function(r){Hw(r)&&!r.properties.id&&(r.properties.id=t+N2.slug(Nw(r)))})}}const zw=function(e){if(e==null)return Lte;if(typeof e=="string")return Ote(e);if(typeof e=="object")return Nte(e);if(typeof e=="function")return XE(e);throw new Error("Expected function, string, or array as `test`")};function Nte(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=zw(e[n]);return XE(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Ote(e){return XE(t);function t(n){return n.tagName===e}}function XE(e){return t;function t(n,r,a){return!!(Mte(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Lte(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Mte(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const O2={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Pte={};function $te(e){const t=e||Pte;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,l=t.group,c=zw(t.test);let d;return a==="after"||a==="before"?d=p:a==="wrap"?d=m:(d=f,n||(n={ariaHidden:"true",tabIndex:-1})),function(y){Pr(y,"element",function(b,T,A){if(Hw(b)&&b.properties.id&&c(b,T,A))return Object.assign(b.properties,Mh(r,b)),d(b,T,A)})};function f(y){const b=L2(o||O2,y);return y.children[a==="prepend"?"unshift":"push"](J1(y,Mh(n,y),b)),[Yu]}function p(y,b,T){if(typeof b!="number"||!T)return;const A=L2(o||O2,y),C=J1(y,Mh(n,y),A);let x=a==="before"?[C,y]:[y,C];if(l){const D=Gw(l,y);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return T.children.splice(b,1,...x),[Yu,b+x.length]}function m(y){let b=y.children,T=[];return typeof o=="function"?(b=[],T=o(y)):o&&(T=ZE(o)),y.children=[J1(y,Mh(n,y),Array.isArray(T)?[...b,...T]:[...b,T])],[Yu]}}function ZE(e){return Ps(e)}function J1(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function L2(e,t){const n=Gw(e,t);return Array.isArray(n)?n:[n]}function Gw(e,t){return typeof e=="function"?e(t):ZE(e)}function Mh(e,t){return typeof e=="function"?e(t):e?ZE(e):{}}var Fte=(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=Ae({class:"anchor"},o.properties),o.children=[Ate])}if(n.type==="element"&&n.tagName==="pre"&&!e){var l=Bw(n.children);n.children.push(Ste(l))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},jte=[wte,$te,xte];const Vw=Le.forwardRef((e,t)=>{var n,r=[Tte,_te,...jte,[yte,{rewrite:Fte((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[vte,{properties:"attr"}],...e.rehypePlugins||[]];return E.jsx(tee,Ae({},e,{rehypePlugins:r,ref:t}))});function Bte(e,t){return Ae({},e,t)}var mc=Le.createContext({markdown:""});function qw(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ae({},t,qw(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function Yw(e,t,n,r,a){t===void 0&&(t=[]);var o=qw(t||[]),l=[];if(e.altKey&&l.push("alt"),e.shiftKey&&l.push("shift"),e.metaKey&&l.push("cmd"),e.ctrlKey&&l.push("ctrl"),l.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&l.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&l.push("escape"),!(l.length<1)){var c=!!o[l.join("+")],d=c?o[l.join("+")]:void 0;if(Object.keys(o).forEach(f=>{var p=f.split("+").every(m=>/ctrlcmd/.test(m)?l.includes("ctrl")||l.includes("cmd"):l.includes(m));p&&(d=o[f])}),d&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(d,r,a,l);return}}}var ey;function M2(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ey>"u"){var t=document.createElement("textarea");t.value="1",ey=!!t.firstChild}return ey}function Ql(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 l=document.createRange(),c=document.createTextNode(t);if(M2(e)){var d=e.firstChild;if(!d)e.appendChild(c);else{for(var f=0,p=null,m=null;d&&(p===null||m===null);){var y=d.nodeValue.length;a>=f&&a<=f+y&&l.setStart(p=d,a-f),o>=f&&o<=f+y&&l.setEnd(m=d,o-f),f+=y,d=d.nextSibling}a!==o&&l.deleteContents()}}if(M2(e)&&l.commonAncestorContainer.nodeName==="#text")l.insertNode(c);else{var b=e.value;e.value=b.slice(0,a)+t+b.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var T=document.createEvent("UIEvent");T.initEvent("input",!0,!1),e.dispatchEvent(T)}}function Ar(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=Ute(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var l=t.slice(o.start-r.length,o.end+a.length);if(l.startsWith(r)&&l.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function nd(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
204
|
+
`)+1,a=t.slice(n.end).indexOf(`
|
|
205
|
+
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function Qw(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 Kw(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 Ute(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 l=t;l<e.length;l++)if(n(e[l])){a=l;break}return{start:r,end:a}}function tr(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 JE(e,t){var n=e.split(/\n/),r=0,a=n.map((o,l)=>{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,l)))return r-=t(o,l).length,o.slice(t(o,l).length);var c=t(o,l);return r+=c.length,t(o,l)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
206
|
+
`);return{modifiedText:a,insertionLength:r}}var Hte={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:E.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=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Ww={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:E.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:E.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=Ar({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)===`
|
|
207
|
+
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
208
|
+
`||r.selection.end===e.text.length)&&(o="\n```"));var l=Ar({text:e.text,selection:e.selection,prefix:a,suffix:o}),c=t.setSelectionRange(l);tr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:o})}},zte={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:E.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:E.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(`
|
|
209
|
+
`)===-1){var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else Ww.execute(e,t)}},Gte={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:E.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:E.jsxs("g",{fill:"none",fillRule:"evenodd",children:[E.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),E.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"}),E.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=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ip={keyCommand:"divider"},Vte={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.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 qte(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Yte=(e,t)=>{var n=Ae({children:e,icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.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=Ae({},(qte(r),r));return a.parent=n,Ae({},a)})),n},Qte={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:E.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=Ar({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)?tr({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}),tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Kte={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:E.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:E.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=Ar({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")?tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Ar({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},Wte={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:E.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=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Xte={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:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:E.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=Ar({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=Ar({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ev=(e,t,n)=>{var r=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=Qw(a.text,a.selection.start),l=Array(o+1).join(`
|
|
213
|
+
`),c=Kw(a.text,a.selection.end),d=Array(c+1).join(`
|
|
214
|
+
`),{modifiedText:f,insertionLength:p}=JE(a.selectedText,n);if(p<0){var m=a.selection.start,y=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
215
|
+
`&&(m-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
216
|
+
`&&(y+=1),t.setSelectionRange({start:m,end:y}),t.replaceSelection(""+f),t.setSelectionRange({start:m,end:m+f.length})}else{t.replaceSelection(""+l+f+d);var b=a.selection.start+o,T=b+f.length;t.setSelectionRange({start:b,end:T})}},Zte={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:E.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:E.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)=>{ev(e,t,"- ")}},Jte={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:E.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.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)=>{ev(e,t,(n,r)=>r+1+". ")}},ene={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:E.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.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)=>{ev(e,t,(n,r)=>"- [ ] ")}},tne={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.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"}),E.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"})}},nne={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.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"}),E.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"})}},rne={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.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"}),E.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"})}},ane={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.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=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=Qw(r.text,r.selection.start),o=Array(a+1).join(`
|
|
217
|
+
`),l=Kw(r.text,r.selection.end),c=Array(l+1).join(`
|
|
218
|
+
`),d=JE(r.selectedText,e.command.prefix);t.replaceSelection(""+o+d.modifiedText+c);var f=r.selection.start+a,p=f+d.modifiedText.length;t.setSelectionRange({start:f,end:p})}},ine={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:E.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.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=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Xw={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:E.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},one=Xw;function gc(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=nd({text:t.text,selection:t.selection}),l=n.setSelectionRange(o);tr({api:n,selectedText:l.selectedText,selection:t.selection,prefix:r,suffix:a})}Ae({},Xw,{icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.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 sne={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:E.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},lne=sne,cne={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:E.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},une=cne,dne={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:E.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},fne=dne,hne={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},pne=hne,mne={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},gne=mne,yne={name:"table",keyCommand:"table",prefix:`
|
|
219
|
+
| Header | Header |
|
|
220
|
+
|--------|--------|
|
|
221
|
+
| Cell | Cell |
|
|
222
|
+
| Cell | Cell |
|
|
223
|
+
| Cell | Cell |
|
|
224
|
+
|
|
225
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:E.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=Ar({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)?tr({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}),tr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},bne={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:E.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:E.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")}},Ene=()=>[Hte,Wte,ine,Qte,Yte([one,lne,une,fne,pne,gne],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ip,Xte,ane,zte,Ww,Gte,Kte,yne,ip,Zte,Jte,ene,ip,bne],vne=()=>[nne,rne,tne,ip,Vte];function qp(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 tv=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Ql(this.textArea,t),qp(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,qp(this.textArea)}};class nv{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new tv(t)}getState(){return this.textArea?qp(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ae({command:t},qp(this.textArea)),this.textApi,n,r,a)}}function op(e){e.stopPropagation(),e.preventDefault()}function P2(e,t){op(e);var n=e.target,r=new tv(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=nd({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 l=nd({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(l.start,l.end);r.setSelectionRange({start:l.start,end:a.end}),Ql(n,o+`
|
|
226
|
+
`+c),r.setSelectionRange({start:l.start,end:l.start+o.length})}else{var d=nd({text:n.value,selection:{start:a.end+1,end:a.end+1}}),f=n.value.slice(d.start,d.end);r.setSelectionRange({start:a.start,end:d.end}),Ql(n,f+`
|
|
227
|
+
`+o),r.setSelectionRange({start:d.end-o.length,end:d.end})}}}function Tne(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(`
|
|
228
|
+
`),l=o[o.length-1],c=new tv(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){op(e);var d=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var f=r.value.substring(0,r.selectionStart).split(`
|
|
229
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
230
|
+
`),m=[];p.forEach((V,ne)=>{V!==f[ne]&&m.push(V)});var y=m.join(`
|
|
231
|
+
`),b=r.value.substring(r.selectionStart,r.selectionEnd),T=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(y),end:r.selectionEnd});var A=JE(y,e.shiftKey?"":d),C=A.modifiedText;e.shiftKey&&(C=C.split(`
|
|
232
|
+
`).map(V=>V.replace(new RegExp("^"+d),"")).join(`
|
|
233
|
+
`)),c.replaceSelection(C);var x=e.shiftKey?-t:t,D=e.shiftKey?-m.length*t:m.length*t;c.setSelectionRange({start:T+x,end:T+b.length+D})}else return Ql(r,d)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(l)||/^\d+.\s/.test(l))&&!e.shiftKey){op(e);var S=`
|
|
234
|
+
- `;return l.startsWith("*")&&(S=`
|
|
235
|
+
* `),(l.startsWith("- [ ]")||l.startsWith("- [X]")||l.startsWith("- [x]"))&&(S=`
|
|
236
|
+
- [ ] `),/^\d+.\s/.test(l)&&(S=`
|
|
237
|
+
`+(parseInt(l)+1)+". "),Ql(r,S)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){op(e);var M={start:r.selectionStart,end:r.selectionEnd},L=M;M=nd({text:r.value,selection:M});var I=r.value.slice(M.start,M.end);c.setSelectionRange({start:M.end,end:M.end}),Ql(r,`
|
|
238
|
+
`+I),c.setSelectionRange({start:L.start,end:L.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?P2(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&P2(e,1)}var _ne=["prefixCls","onChange"],xne=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Ane(e){var{prefixCls:t,onChange:n}=e,r=ur(e,_ne),a=N.useContext(mc),{markdown:o,commands:l,fullscreen:c,preview:d,highlightEnable:f,extraCommands:p,tabSize:m,defaultTabEnable:y,autoFocusEnd:b,textareaWarp:T,dispatch:A}=a;ur(a,xne);var C=Le.useRef(null),x=Le.useRef(),D=Le.useRef({fullscreen:c,preview:d});N.useEffect(()=>{D.current={fullscreen:c,preview:d,highlightEnable:f}},[c,d,f]),N.useEffect(()=>{if(C.current&&A){var M=new nv(C.current);x.current=M,A({textarea:C.current,commandOrchestrator:M})}},[]),N.useEffect(()=>{if(b&&C.current&&T){C.current.focus();var M=C.current.value.length;C.current.setSelectionRange(M,M),setTimeout(()=>{T&&(T.scrollTop=T.scrollHeight),C.current&&(C.current.scrollTop=C.current.scrollHeight)},0)}},[T]);var S=M=>{Tne(M,m,y),Yw(M,[...l||[],...p||[]],x.current,A,D.current)};return N.useEffect(()=>(C.current&&C.current.addEventListener("keydown",S),()=>{C.current&&C.current.removeEventListener("keydown",S)}),[]),E.jsx("textarea",Ae({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:C,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:M=>{A&&A({markdown:M.target.value}),n&&n(M)}}))}var Sne=["prefixCls","className","onScroll","renderTextarea"];function Cne(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,l=ur(t,Sne),{markdown:c,scrollTop:d,commands:f,extraCommands:p,dispatch:m}=N.useContext(mc),y=Le.useRef(null),b=Le.useRef(),T=Le.createRef();N.useEffect(()=>{var C={};T.current&&(C.textareaWarp=T.current||void 0,T.current.scrollTop=d||0),m&&m(Ae({},C))},[]),N.useEffect(()=>{if(y.current&&m){var C=new nv(y.current);b.current=C,m({textarea:y.current,commandOrchestrator:C})}},[]);var A={WebkitTextFillColor:"initial",overflow:"auto"};return E.jsx("div",{ref:T,className:n+"-area "+(r||""),onScroll:a,children:E.jsx("div",{className:n+"-text",children:o?Le.cloneElement(o(Ae({},l,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:m,onChange:l.onChange,shortcuts:Yw,useContext:{commands:f,extraCommands:p,commandOrchestrator:b.current}}),{ref:y}):E.jsx(N.Fragment,{children:E.jsx(Ane,Ae({prefixCls:n},l,{style:A}))})})})}function Dne(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=N.useContext(mc);return N.useMemo(()=>E.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(r)?E.jsx(Zw,Ae({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function $2(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:l,commandOrchestrator:c,dispatch:d}=N.useContext(mc),f=N.useRef("");function p(m,y){if(d){var b={barPopup:Ae({},o)};m.keyCommand==="preview"&&(b.preview=m.value),m.keyCommand==="fullscreen"&&(b.fullscreen=!r),e.commands&&m.keyCommand==="group"?e.commands.forEach(T=>{y===T.groupName?b.barPopup[y]=!0:T.keyCommand&&(b.barPopup[T.groupName]=!1)}):(y||m.parent)&&Object.keys(b.barPopup||{}).forEach(T=>{b.barPopup[T]=!1}),Object.keys(b).length&&d(Ae({},b)),c&&c.executeCommand(m)}}return N.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(f.current||(f.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=f.current))},[r,f,n]),E.jsx("ul",{children:(e.commands||[]).map((m,y)=>{if(m.keyCommand==="divider")return E.jsx("li",Ae({},m.liProps,{className:t+"-toolbar-divider"}),y);if(!m.keyCommand)return E.jsx(N.Fragment,{},y);var b=r&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&a===m.value,T=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},m.groupName),execute:()=>p({execute:m.execute}),dispatch:d}):void 0,A=o&&a&&a==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),C=l?.toolbar||m.render,x=C&&typeof C=="function"?C(m,!!A,p,y):null;return E.jsxs("li",Ae({},m.liProps,{className:b?"active":"",children:[x&&Le.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&Le.createElement("button",Ae({type:"button",key:y,disabled:A,"data-name":m.name},m.buttonProps,{onClick:D=>{D.stopPropagation(),p(m,m.groupName)}}),m.icon),m.children&&E.jsx(Dne,{overflow:n,groupName:m.groupName,prefixCls:t,children:T,commands:Array.isArray(m.children)?m.children:void 0})]}),y)})})}function Zw(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=N.useContext(mc);return E.jsxs("div",{className:t+"-toolbar "+r,children:[E.jsx($2,Ae({},e,{commands:e.commands||a||[]})),!n&&E.jsx($2,Ae({},e,{commands:o||[]}))]})}function F2(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:o}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var l=n?"bottom":"";return E.jsx(Zw,{prefixCls:o,overflow:a,className:l})}var kne=e=>{var{prefixCls:t,onChange:n}=e||{},r=N.useRef(null),a=N.useRef(),o=N.useRef(e.height);N.useEffect(()=>{o.current!==e.height&&(o.current=e.height)},[e.height]);function l(p){if(a.current){var m,y=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY),b=a.current.height+y-a.current.dragY;b>=e.minHeight&&b<=e.maxHeight&&n&&n(a.current.height+(y-a.current.dragY))}}function c(){var p,m;a.current=void 0,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",l),(m=r.current)==null||m.removeEventListener("touchend",c)}function d(p){var m,y,b;p.preventDefault();var T=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY);a.current={height:o.current,dragY:T},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),(y=r.current)==null||y.addEventListener("touchmove",l,{passive:!1}),(b=r.current)==null||b.addEventListener("touchend",c,{passive:!1})}N.useEffect(()=>{if(document){var p,m;(p=r.current)==null||p.addEventListener("touchstart",d,{passive:!1}),(m=r.current)==null||m.addEventListener("mousedown",d)}return()=>{if(document){var y;(y=r.current)==null||y.removeEventListener("touchstart",d),document.removeEventListener("mousemove",l)}}},[]);var f=N.useMemo(()=>E.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:E.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 E.jsx("div",{className:t+"-bar",ref:r,children:f})},Rne=["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 Ine(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var wne=Le.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:l=Ene(),commandsFilter:c,direction:d,extraCommands:f=vne(),height:p=200,enableScroll:m=!0,visibleDragbar:y=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:b=!0,preview:T="live",fullscreen:A=!1,overflow:C=!0,previewOptions:x={},textareaProps:D,maxHeight:S=1200,minHeight:M=100,autoFocus:L,autoFocusEnd:I=!1,tabSize:V=2,defaultTabEnable:ne=!1,onChange:K,onStatistics:k,onHeightChange:H,hideToolbar:Q,toolbarBottom:W=!1,components:re,renderTextarea:me}=n,G=ur(n,Rne),le=l.map(Ve=>c?c(Ve,!1):Ve).filter(Boolean),se=f.map(Ve=>c?c(Ve,!0):Ve).filter(Boolean),[ye,P]=N.useReducer(Bte,{markdown:o,preview:T,components:re,height:p,minHeight:M,highlightEnable:b,tabSize:V,defaultTabEnable:ne,scrollTop:0,scrollTopPreview:0,commands:le,extraCommands:se,fullscreen:A,barPopup:{}}),Ne=N.useRef(null),ce=N.useRef(null),w=N.useRef(m);N.useImperativeHandle(t,()=>Ae({},ye,{container:Ne.current,dispatch:P})),N.useMemo(()=>w.current=m,[m]),N.useEffect(()=>{var Ve={};Ne.current&&(Ve.container=Ne.current||void 0),Ve.markdown=o||"",Ve.barPopup={},P&&P(Ae({},ye,Ve))},[]);var te=[a,"wmde-markdown-var",d?r+"-"+d:null,r,ye.preview?r+"-show-"+ye.preview:null,ye.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();N.useMemo(()=>o!==ye.markdown&&P({markdown:o||""}),[o,ye.markdown]),N.useMemo(()=>T!==ye.preview&&P({preview:T}),[T]),N.useMemo(()=>V!==ye.tabSize&&P({tabSize:V}),[V]),N.useMemo(()=>b!==ye.highlightEnable&&P({highlightEnable:b}),[b]),N.useMemo(()=>L!==ye.autoFocus&&P({autoFocus:L}),[L]),N.useMemo(()=>I!==ye.autoFocusEnd&&P({autoFocusEnd:I}),[I]),N.useMemo(()=>A!==ye.fullscreen&&P({fullscreen:A}),[A]),N.useMemo(()=>p!==ye.height&&P({height:p}),[p]),N.useMemo(()=>p!==ye.height&&H&&H(ye.height,p,ye),[p,H,ye]),N.useMemo(()=>l!==ye.commands&&P({commands:le}),[e.commands]),N.useMemo(()=>f!==ye.extraCommands&&P({extraCommands:se}),[e.extraCommands]);var Ce=N.useRef(),Ie=N.useRef("preview"),Me=N.useRef(!1);N.useMemo(()=>{Ce.current=ye.textareaWarp,ye.textareaWarp&&(ye.textareaWarp.addEventListener("mouseover",()=>{Ie.current="text"}),ye.textareaWarp.addEventListener("mouseleave",()=>{Ie.current="preview"}))},[ye.textareaWarp]);var Oe=(Ve,Xn)=>{if(w.current){var an=Ce.current,on=ce.current?ce.current:void 0;if(Me.current||(Ie.current=Xn,Me.current=!0),an&&on){var Ye=(an.scrollHeight-an.offsetHeight)/(on.scrollHeight-on.offsetHeight);Ve.target===an&&Ie.current==="text"&&(on.scrollTop=an.scrollTop/Ye),Ve.target===on&&Ie.current==="preview"&&(an.scrollTop=on.scrollTop*Ye);var Ct=0;Ie.current==="text"?Ct=an.scrollTop||0:Ie.current==="preview"&&(Ct=on.scrollTop||0),P({scrollTop:Ct})}}},st=r+"-preview "+(x.className||""),dt=Ve=>Oe(Ve,"preview"),Be=N.useMemo(()=>E.jsx("div",{ref:ce,className:st,children:E.jsx(Vw,Ae({},x,{onScroll:dt,source:ye.markdown||""}))}),[st,x,ye.markdown]),en=re?.preview&&re?.preview(ye.markdown||"",ye,P);en&&Le.isValidElement(en)&&(Be=E.jsx("div",{className:st,ref:ce,onScroll:dt,children:en}));var wt=Ae({},G.style,{height:ye.height||"100%"}),Pe=()=>P({barPopup:Ae({},Ine(ye.barPopup))}),ar=Ve=>P({height:Ve}),dn=Ve=>{if(K&&K(Ve.target.value,Ve,ye),D&&D.onChange&&D.onChange(Ve),ye.textarea&&ye.textarea instanceof HTMLTextAreaElement&&k){var Xn=new nv(ye.textarea),an=Xn.getState()||{};k(Ae({},an,{lineCount:Ve.target.value.split(`
|
|
239
|
+
`).length,length:Ve.target.value.length}))}};return E.jsx(mc.Provider,{value:Ae({},ye,{dispatch:P}),children:E.jsxs("div",Ae({ref:Ne,className:te},G,{onClick:Pe,style:wt,children:[E.jsx(F2,{hideToolbar:Q,toolbarBottom:W,prefixCls:r,overflow:C,placement:"top"}),E.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ye.preview||"")&&E.jsx(Cne,Ae({className:r+"-input",prefixCls:r,autoFocus:L},D,{onChange:dn,renderTextarea:re?.textarea||me,onScroll:Ve=>Oe(Ve,"text")})),/(live|preview)/.test(ye.preview||"")&&Be]}),y&&!ye.fullscreen&&E.jsx(kne,{prefixCls:r,height:ye.height,maxHeight:S,minHeight:M,onChange:ar}),E.jsx(F2,{hideToolbar:Q,toolbarBottom:W,prefixCls:r,overflow:C,placement:"bottom"})]}))})}),Jw=wne;Jw.Markdown=Vw;function Nne({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const a={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return E.jsx(m3,{sourceAndPaths:t,existingQuery:a,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function One({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:a,editingMarkdown:o,sourceAndPaths:l,onCellChange:c,onClose:d,onEdit:f,onDelete:p,addButtonCallback:m}){const[y,b]=N.useState(e.value),[T,A]=Le.useState(t),[C,x]=Le.useState(n),[D,S]=Le.useState(),[M]=Le.useState(),[L,I]=Le.useState(Uu()),[V,ne]=Le.useState(!1),[K,k]=Le.useState(e.sourceName?l.findIndex(w=>w.sourceInfo.name===e.sourceName):0);N.useEffect(()=>{e.isMarkdown||pd(e.value,"malloy").then(w=>{S(w)})},[e]),Le.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[H,Q]=N.useState(!1),W=()=>{p(),Q(!1)},re=l.length===0,me=Le.useCallback(()=>{const w=l[K],te=w?.modelPath||e.modelPath||"",Ce=w?.sourceInfo.name||e.sourceName||"";c({...e,value:e.isMarkdown?y:L.query,result:L.malloyResult?JSON.stringify(L.malloyResult):void 0,queryInfo:L.malloyQuery?JSON.stringify(L.malloyQuery):void 0,sourceName:Ce,modelPath:te})},[e,y,L,c,K,l]),G=E.jsx(Er,{title:"Delete Cell",children:E.jsx(xn,{size:"small",onClick:()=>Q(!0),children:E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),le=E.jsxs(Co,{open:H,onClose:()=>Q(!1),children:[E.jsx(Do,{children:"Confirm Delete"}),E.jsx(ko,{children:E.jsx(ze,{children:"Are you sure you want to delete this cell?"})}),E.jsxs(V2,{children:[E.jsx(xr,{onClick:()=>Q(!1),children:"Cancel"}),E.jsx(xr,{onClick:W,color:"error",children:"Delete"})]})]}),se=()=>{me(),d()},ye=e.isMarkdown?E.jsxs(E.Fragment,{children:[o?E.jsx(Er,{title:"Save",children:E.jsx(xn,{size:"small",onClick:se,children:E.jsx(Dh,{})})}):E.jsx(Er,{title:"Edit",children:E.jsx(xn,{size:"small",onClick:f,children:E.jsx(fC,{})})}),!o&&G]}):E.jsxs(E.Fragment,{children:[!a&&E.jsx(Er,{title:T?"Hide Code":"View Code",children:E.jsx(xn,{size:"small",onClick:()=>{A(!T)},children:E.jsx(y3,{})})}),!r&&!a&&e.result&&E.jsx(Er,{title:C?"Hide Embedding":"View Embedding",children:E.jsx(xn,{size:"small",onClick:()=>{x(!C)},children:E.jsx(MD,{})})}),a&&E.jsx(Er,{title:"Save",children:E.jsx(xn,{size:"small",onClick:se,children:E.jsx(Dh,{})})}),!a&&E.jsx(Er,{title:"Edit",children:E.jsx(xn,{size:"small",onClick:f,children:E.jsx(fC,{})})}),!a&&G]}),P=a||o,Ne=o?E.jsx(Er,{title:"Save",children:E.jsx(xn,{size:"small",onClick:se,children:E.jsx(Dh,{})})}):a?E.jsx(Er,{title:"Save",children:E.jsx(xn,{size:"small",onClick:se,children:E.jsx(Dh,{})})}):null,ce=V&&E.jsx(at,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!P&&E.jsxs(E.Fragment,{children:[m(!0),m(!1),ye]})||Ne});return E.jsxs(Kl,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>ne(!0),onMouseLeave:()=>{ne(!1)},children:[ce,e.isMarkdown?E.jsx(E.Fragment,{children:o?E.jsx(Jw,{value:y,preview:"edit",autoFocus:!0,onChange:w=>{b(w),c({...e,value:w})},onBlur:()=>{me(),V||se()}}):E.jsx(at,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?E.jsx(at,{onClick:f,sx:{cursor:"pointer"},children:E.jsx(oE,{children:e.value})}):E.jsxs(at,{onClick:f,sx:{cursor:"pointer"},children:[E.jsx(ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),E.jsx(ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):E.jsxs(E.Fragment,{children:[E.jsx(lp,{in:C,timeout:"auto",unmountOnExit:!0,children:E.jsx(An,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(ze,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:M}})})}),E.jsx(lp,{in:T,timeout:"auto",unmountOnExit:!0,children:E.jsx(An,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(ze,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),a&&(re?E.jsxs(E.Fragment,{children:[E.jsx(ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),E.jsx(ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):E.jsx(Nne,{sourceAndPaths:l,onQueryChange:w=>{I(w)},cell:e,onSourceChange:k})),!a&&e.result&&E.jsx(Kl,{variant:"outlined",sx:{borderRadius:0},children:E.jsx(Oy,{result:e.result,minHeight:300,maxHeight:800})}),!a&&!e.result&&E.jsxs(at,{onClick:f,sx:{cursor:"pointer"},children:[E.jsx(ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),E.jsx(ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),H&&le]})}const eN=N.createContext(void 0);function Lne({children:e,workbookStorage:t}){const n=N.useMemo(()=>({workbookStorage:t}),[t]);return E.jsx(eN.Provider,{value:n,children:e})}function Mne(){const e=N.useContext(eN);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const Pne=zt(E.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"})),$ne=new gm(new rr);function Fne({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:a}=ta(),{data:o,isLoading:l,isSuccess:c,isError:d,error:f}=mr({queryKey:["models",n,r,a],queryFn:x=>$ne.listModels(n,r,a,x)}),[p,m]=Le.useState(e||[]),[y,b]=Le.useState(null);Le.useEffect(()=>{m(e||[])},[e]);const T=x=>{const D=p.filter(S=>S!==x);m(D),t(D)},A=x=>{const D=[...p,x];m(D),t(D),b(null)};let C=[];return c&&o?.data&&(C=o.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),d?E.jsx(nr,{error:f,context:`${n} > ${r} > Model Picker`}):E.jsxs(E.Fragment,{children:[E.jsxs(T5,{fullWidth:!0,children:[l&&E.jsx(ze,{children:"Loading..."}),E.jsxs(An,{direction:"row",spacing:1,children:[p.map(x=>E.jsx(As,{label:x,onDelete:()=>T(x),deleteIcon:E.jsx(Lu,{}),sx:{marginBottom:"5px"}},x)),E.jsx(xr,{size:"small",startIcon:E.jsx(Pne,{}),onClick:x=>b(x.currentTarget),disabled:l||d||C.length===0,children:"Add Model"})]})]}),E.jsxs(q2,{anchorEl:y,open:!!y,onClose:()=>b(null),children:[E.jsx(ze,{variant:"subtitle2",sx:{ml:1},children:"Models"}),E.jsx(ai,{}),C.length===0?E.jsx(cp,{disabled:!0,children:"No models available"}):C.map(x=>E.jsx(cp,{onClick:()=>A(x),children:E.jsx(ze,{variant:"body2",children:x})},x))]})]})}function nf(){const e=xb();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const Ml=_5({createStyledComponent:Jt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>rc({props:e,name:"MuiStack"})}),jne=new gm(new rr);function Bne({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r,defaultProjectName:a,defaultPackageName:o}){const l=nf(),{server:c,getAccessToken:d}=RE(),{workbookStorage:f}=Mne(),[p,m]=Le.useState(void 0),[y,b]=Le.useState(void 0);if(!f)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[T,A]=Le.useState(),[C,x]=Le.useState(),[D,S]=Le.useState(),[M,L]=Le.useState([]),[I,V]=Le.useState(null),[ne,K]=Le.useState(null),k=!!I,H=()=>{V(null),K(null)},Q=(ce,w)=>{T&&(A(T.insertCell(w,{isMarkdown:ce,value:""})),ce?S(w):x(w),H(),console.log("handleAddCell",ce,w))},[W,re]=Le.useState(!1),me=()=>{re(!0)},G=async()=>{e&&f&&await f.deleteWorkbook(e).then(()=>{b(void 0),m(void 0)}).catch(ce=>{b(`Error deleting workbook: ${ce.message}`),m(void 0)}),re(!1),l(`/${a}/${o}`)},le=()=>{re(!1)},se=Le.useCallback(async()=>{if(!T){console.log("No workbook data ref");return}try{A(await T.saveWorkbook()),b(void 0),m("Workbook saved")}catch(ce){b(`Error saving workbook: ${ce.message}`),m(void 0)}},[T]);if(Le.useEffect(()=>{T&&(async()=>{const ce=new Map(M.map(({modelPath:Ce,sourceInfos:Ie})=>[Ce,Ie])),w=[],te=[];for(const Ce of T.getModels())ce.has(Ce)?w.push({modelPath:Ce,sourceInfos:ce.get(Ce)}):(console.log("Fetching model from Publisher",Ce),te.push(jne.getModel(a,o,Ce,void 0,await rv(c,d)).then(Ie=>({modelPath:Ce,sourceInfos:Ie.data.sourceInfos.map(Me=>JSON.parse(Me))}))));if(te.length>0){const Ce=await Promise.all(te);L([...w,...Ce])}else L(w)})()},[d,T,o,a,c]),Le.useEffect(()=>{e&&mG.loadWorkbook(f,e).then(ce=>{A(ce)})},[e,f]),!T)return E.jsx("div",{children:"Loading..."});const ye=ce=>{const w=[];for(const te of ce)for(const Ce of te.sourceInfos)w.push({modelPath:te.modelPath,sourceInfo:Ce});return w},P=(ce,w)=>E.jsx(xr,{size:"small",startIcon:E.jsx(pG,{}),onClick:()=>Q(ce,w),variant:"contained",sx:{backgroundColor:"#fff",color:te=>te.palette.mode==="dark"?te.palette.grey[100]:te.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:te=>te.palette.mode==="dark"?te.palette.grey[500]:te.palette.grey[300],boxShadow:"none"}},children:ce?"Markdown":"Explore"}),Ne=E.jsxs(at,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[P(!1,T.getCells().length),P(!0,T.getCells().length)]});return E.jsxs(Kl,{variant:"outlined",children:[E.jsxs(hp,{children:[E.jsx(at,{sx:{mb:2},children:E.jsx(at,{sx:{minHeight:"24px"},children:y?E.jsx(ze,{color:"error",variant:"body2",children:y}):p?E.jsx(ze,{color:"success",variant:"body2",children:p}):E.jsx("span",{children:" "})})}),E.jsxs(Ml,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[E.jsxs(Ml,{direction:"row",spacing:1,alignItems:"center",children:[E.jsx(ze,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),E.jsx(ze,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),E.jsxs(Ml,{sx:{display:"flex",flexDirection:"row",gap:1},children:[E.jsx(at,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:E.jsx(Une,{workbookData:T})}),E.jsxs(at,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[E.jsx(xr,{color:"error",onClick:me,size:"small",children:"Delete"}),E.jsxs(Co,{open:W,onClose:le,children:[E.jsx(Do,{children:"Delete Workbook"}),E.jsx(ko,{children:E.jsxs(x5,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),E.jsxs(V2,{children:[E.jsx(xr,{onClick:le,color:"primary",size:"small",children:"Cancel"}),E.jsx(xr,{onClick:G,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),E.jsx(ai,{}),E.jsxs(Ml,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[E.jsx(at,{sx:{flex:1},children:E.jsx(Fne,{initialSelectedModels:T.getModels(),onModelChange:ce=>{A(T.setModels(ce)),se()}})}),E.jsx(at,{sx:{flex:1}})]})]}),E.jsx(kb,{children:E.jsxs(Ml,{children:[T.getCells().length===0&&E.jsxs(E.Fragment,{children:[E.jsx(ze,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),E.jsx(ze,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),T.getCells().map((ce,w)=>E.jsx(Le.Fragment,{children:E.jsx(One,{cell:ce,addButtonCallback:te=>P(te,w),sourceAndPaths:ye(M),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===w,editingMalloy:C===w,onDelete:()=>{A(T.deleteCell(w)),se()},onCellChange:te=>{A(T.setCell(w,te))},onEdit:()=>{ce.isMarkdown?S(w):x(w)},onClose:()=>{ce.isMarkdown?S(void 0):x(void 0),se()}},`${w}-${ce.isMarkdown}-${e.workspace}-${e.path}`)},`${w}-${T.getCells().length}`)),Ne,E.jsxs(q2,{anchorEl:I,open:k,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[E.jsx(cp,{onClick:()=>Q(!0,ne??0),children:"Add Markdown"}),E.jsx(cp,{onClick:()=>Q(!1,ne??0),children:"Add Malloy"})]}),E.jsx(Ml,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function Une({workbookData:e}){const[t,n]=Le.useState(!1);return E.jsx(xr,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const Hne=zt(E.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"})),zne=zt(E.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"})),j2=zt(E.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"})),Gne=zt(E.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"})),Vne=zt(E.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"})),qne=zt([E.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"),E.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")]),B2=zt(E.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"})),Yne=new e3(new rr),Qne=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function Kne({navigate:e}){const{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["projects"],queryFn:o=>Yne.listProjects(o)});return r?E.jsx(nr,{error:a,context:"Projects List"}):n?E.jsxs(gb,{maxWidth:"lg",sx:{py:4},children:[E.jsxs(at,{sx:{textAlign:"center",mb:6},children:[E.jsxs(An,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(j2,{sx:{fontSize:32,color:"primary.main"}}),E.jsx(ze,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),E.jsx(ze,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),E.jsx(ze,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),E.jsxs(mn,{container:!0,spacing:3,sx:{mb:6},children:[E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(ps,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(ms,{sx:{p:3},children:[E.jsxs(An,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(Hne,{sx:{color:"info.main",fontSize:28}}),E.jsx(ze,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),E.jsx(ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),E.jsx(As,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(ps,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(ms,{sx:{p:3},children:[E.jsxs(An,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(Gne,{sx:{color:"warning.main",fontSize:28}}),E.jsx(ze,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),E.jsx(ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),E.jsx(As,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(ps,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(ms,{sx:{p:3},children:[E.jsxs(An,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(qne,{sx:{color:"success.main",fontSize:28}}),E.jsx(ze,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),E.jsx(ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),E.jsx(As,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),E.jsx(ai,{sx:{my:4}}),t.data.length>0?E.jsxs(E.Fragment,{children:[E.jsxs(at,{sx:{textAlign:"center",mb:4},children:[E.jsxs(An,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(B2,{sx:{color:"primary.main",fontSize:24}}),E.jsx(ze,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),E.jsx(ze,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),E.jsx(mn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(o=>E.jsx(mn,{size:{xs:12,sm:6,md:4},children:E.jsx(ps,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:l=>e(`/${o.name}/`,l),children:E.jsxs(ms,{sx:{p:3,textAlign:"center"},children:[E.jsx(Vne,{sx:{fontSize:48,color:"primary.main",mb:2}}),E.jsx(ze,{variant:"h6",fontWeight:600,gutterBottom:!0,children:o.name}),E.jsx(ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:Qne(o.readme)}),E.jsx(xr,{variant:"contained",color:"secondary",endIcon:E.jsx(zne,{}),fullWidth:!0,children:"Open Project"})]})})},o.name))})]}):E.jsxs(at,{sx:{textAlign:"center",mb:4},children:[E.jsxs(An,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(B2,{sx:{color:"primary.main",fontSize:24}}),E.jsx(ze,{variant:"h4",fontWeight:600,children:"Get Started"})]}),E.jsx(ze,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),E.jsx(xr,{variant:"contained",size:"large",color:"primary",startIcon:E.jsx(j2,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),E.jsx(at,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:E.jsxs(ze,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",E.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):E.jsx(fr,{text:"Loading projects..."})}const tN=new pF({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),rv=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function mr(e){const{server:t,getAccessToken:n}=RE(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const a=await rv(t,n);return await e.queryFn(a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const o=a;if(o.response?.data){const l=new Error(o.response.data.message||o.message);throw l.status=o.response.status,l.data=o.response.data,l}}throw a}},retry:!1,throwOnError:!1};return wF(r,tN)}function Wne(e){const{server:t,getAccessToken:n}=RE(),r={...e,mutationFn:async a=>{try{const o=await rv(t,n);return await e.mutationFn(a,o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const l=o;if(l.response?.data){const c=new Error(l.response.data.message||l.message);throw c.status=l.response.status,c.data=l.response.data,c}}throw o}},retry:!1,throwOnError:!1};return NF(r,tN)}const Xne=N.lazy(()=>F(()=>import("./index.es23-BBjdzilP.js"),__vite__mapDeps([98,94,95]))),Zne=new Jb(new rr);function nN(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Jne({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:a,optionalPackageName:o,optionalVersionId:l}){const c=ta(!1),d=a||c?.projectName,f=o||c?.packageName,p=l||c?.versionId;if(!d||!f)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:m,isSuccess:y,isError:b,error:T}=mr({queryKey:["queryResult",d,f,e,p,t,n,r],queryFn:A=>Zne.executeQuery(d,f,e,t,n,r,p,A)});return E.jsxs(E.Fragment,{children:[!y&&!b&&E.jsx(fr,{text:"Fetching Query Results..."}),y&&E.jsx(N.Suspense,{fallback:E.jsx("div",{children:"Loading..."}),children:E.jsx(Xne,{result:m.data.result})}),b&&E.jsx(nr,{context:`${d} > ${f} > ${e}`,error:T})]})}const ere=Hn(ps)({display:"flex",flexDirection:"column",height:"100%"});function tre({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:a,expandEmbedding:o,hideEmbeddingIcon:l,noView:c,annotations:d}){const[f,p]=Le.useState(r),[m,y]=Le.useState(o),[b,T]=Le.useState(),[A,C]=Le.useState(),{packageName:x,projectName:D}=ta(),S=nN({modelPath:e,sourceName:t,queryName:n,optionalPackageName:x,optionalProjectName:D});return N.useEffect(()=>{pd(S,"typescript").then(M=>{T(M)})},[m,S]),N.useEffect(()=>{if(d&&d.length>0){const M=d.map(L=>`// ${L}`).join(`
|
|
240
|
+
`);pd(M,"typescript").then(L=>{C(L)})}},[d]),E.jsx(E.Fragment,{children:E.jsxs(ere,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[E.jsxs(An,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[E.jsx(ze,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),E.jsxs(A5,{sx:{padding:"0px"},children:[!a&&E.jsx(Er,{title:f?"Hide Results":"Show Results",children:E.jsx(xn,{size:"small",onClick:()=>{p(!f)},children:E.jsx(rP,{})})}),!l&&E.jsx(Er,{title:m?"Hide Sharing":"Show Sharing",children:E.jsx(xn,{size:"small",onClick:()=>{y(!m)},children:E.jsx(MD,{})})})]})]}),E.jsxs(lp,{in:m,timeout:"auto",unmountOnExit:!0,children:[E.jsx(ai,{}),E.jsxs(An,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(ze,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:b}})}),E.jsx(Er,{title:"Copy Embeddable Code",children:E.jsx(xn,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(S)},children:E.jsx(LD,{})})})]})]}),E.jsxs(lp,{in:f,timeout:"auto",unmountOnExit:!0,children:[E.jsx(ai,{sx:{mb:"4px"}}),A&&E.jsxs(E.Fragment,{children:[E.jsx(An,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(ze,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:A}})})}),E.jsx(ai,{sx:{mb:"4px"}})]}),E.jsx(ms,{children:E.jsx(Jne,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const nre=Jt(at)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),rre=Jt(xr)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function are({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l}){const[c,d]=Le.useState(0),{data:f,isError:p,isLoading:m,error:y}=p3(e,t);return m?E.jsx(fr,{text:"Fetching Model..."}):p?(console.log("error",y),E.jsx(nr,{error:y,context:`ModelExplorer > ${e}`})):E.jsxs(Kl,{variant:"outlined",children:[E.jsx(hp,{children:E.jsx(An,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&E.jsx(nre,{children:f.sourceInfos.map((b,T)=>{let A;try{A=JSON.parse(b)}catch{A={name:String(T)}}return E.jsx(rre,{selected:c===T,onClick:()=>d(T),children:A.name||`Source ${T+1}`},A.name||T)})})})}),E.jsx(kb,{children:E.jsxs(An,{spacing:2,component:"section",children:[Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&E.jsx(g3,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(f.sourceInfos[c])},onChange:l}),f.queries?.length>0&&E.jsxs(Kl,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[E.jsx(hp,{sx:{p:"10px"},children:E.jsx(ze,{variant:"subtitle1",children:"Named Queries"})}),E.jsx(An,{spacing:1,component:"section",children:f.queries.map(b=>E.jsx(tre,{modelPath:e,queryName:b.name,expandResult:n,hideResultIcon:r,expandEmbedding:a,hideEmbeddingIcon:o,noView:!0,annotations:b.annotations},b.name))}),E.jsx(at,{height:"10px"})]}),E.jsx(at,{height:"5px"})]})})]})}function ire({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l}){const{isError:c,isLoading:d,error:f}=p3(e,t);return d?E.jsx(fr,{text:"Fetching Model..."}):c?(console.log("error",f),E.jsx(nr,{error:f,context:`Model > ${e}`})):E.jsx(are,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:o,onChange:l})}const U2="Local";class ore{async listWorkspaces(t){return Promise.resolve([{name:U2,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:U2})}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)}}const sre="README.malloynb";function lre({navigate:e}){return e||(e=t=>{window.location.href=t}),E.jsx(vD,{children:E.jsxs(mn,{container:!0,spacing:3,columns:12,children:[E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(Yj,{})}),E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(cG,{navigate:e})}),E.jsx(mn,{size:{xs:12,md:4},children:E.jsx(oG,{navigate:e})}),E.jsx(mn,{size:{xs:12,md:6},children:E.jsx(sB,{})}),E.jsx(mn,{size:{xs:12,md:6},children:E.jsx(iB,{})}),E.jsx(mn,{size:{xs:12,md:12},children:E.jsx(dG,{})}),E.jsx(mn,{size:{xs:12,md:12},children:E.jsx(Hi,{children:E.jsxs(zi,{children:[E.jsx(jo,{children:"README"}),E.jsx(at,{sx:{mt:1},children:E.jsx(PR,{notebookPath:sre,hideEmbeddingIcons:!0})})]})})})]})})}new Jb(new rr);rt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function cre(){const e=nf();return E.jsx(Kne,{navigate:e})}function ure(){const e=Ld(),t=e["*"],n=nf();return E.jsx(at,{sx:{display:"flex",alignItems:"center"},children:E.jsxs(S5,{"aria-label":"breadcrumb",separator:E.jsx(C5,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&E.jsx(As,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&E.jsx(As,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&E.jsx(As,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function dre({logoHeader:e,endCap:t}){const n=xb();return E.jsx(D5,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:E.jsxs(k5,{sx:{justifyContent:"space-between"},children:[E.jsxs(An,{direction:"row",spacing:2,alignItems:"center",children:[e||E.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(at,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),E.jsx(ze,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),E.jsx(ure,{})]}),E.jsxs(An,{direction:"row",spacing:2,alignItems:"center",children:[!e&&E.jsxs(E.Fragment,{children:[E.jsx(xr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),E.jsx(xr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),E.jsx(xr,{href:"/api-doc.html",children:"Publisher API"})]}),t]})]})})}function fre({headerProps:e}){return E.jsxs(at,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[E.jsx(dre,{...e}),E.jsx(gb,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:E.jsx(at,{sx:{flex:1},children:E.jsx(c6,{})})})]})}function hre(){const e=Ld(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?E.jsx(Ip,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(ire,{modelPath:t,hideEmbeddingIcons:!0})}):t?.endsWith(".malloynb")?E.jsx(Ip,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(PR,{notebookPath:t,hideEmbeddingIcons:!0,expandResults:!1})}):E.jsx("div",{children:E.jsxs("h2",{children:["Unrecognized file type: ",t]})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function pre(){const{projectName:e,packageName:t}=Ld(),n=nf();return e?t?E.jsx(Ip,{projectName:e,packageName:t,children:E.jsx(lre,{navigate:n})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function mre(){const e=nf(),{projectName:t}=Ld();return t?E.jsx(k3,{projectName:t,children:E.jsx(Jj,{navigate:e})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function gre(){const e=dD();return console.error(e),E.jsx(gb,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:E.jsxs(An,{sx:{m:"auto",flexDirection:"column"},children:[E.jsx(at,{sx:{height:"300px"}}),E.jsx("img",{src:"/error.png"}),E.jsx(ze,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function yre(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=Ld();return e?t?n?r?E.jsx(Ip,{projectName:n,packageName:r,children:E.jsx(Bne,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e},hideEmbeddingIcons:!0},`${t}`)}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing workbook path"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing workspace"})})}const cn={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"}},bre=R5({palette:{mode:"light",primary:cn.primary,secondary:cn.secondary,grey:cn.grey,success:cn.success,warning:cn.warning,error:cn.error,info:cn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:cn.grey[900],secondary:cn.grey[600]},divider:cn.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:`${cn.grey[300]} ${cn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:cn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:cn.grey[300],borderRadius:"4px","&:hover":{background:cn.grey[400]}},"&::-webkit-scrollbar-corner":{background:cn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${cn.grey[300]} ${cn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:cn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:cn.grey[300],borderRadius:"4px","&:hover":{background:cn.grey[400]}},"&::-webkit-scrollbar-corner":{background:cn.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:cn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:cn.grey[200]}},defaultProps:{sx:{my:1}}}}}),Ere=(e="/",t,n,r,a)=>O6([{path:e,element:E.jsx(gG,{server:r,getAccessToken:a,children:E.jsx(Lne,{workbookStorage:t,children:E.jsxs(I5,{theme:bre,children:[E.jsx(w5,{}),E.jsx(fre,{headerProps:n})]})})}),errorElement:E.jsx(gre,{}),children:[{path:"",element:E.jsx(cre,{})},{path:":projectName",element:E.jsx(mre,{})},{path:":projectName/:packageName",element:E.jsx(pre,{})},{path:":projectName/:packageName/*",element:E.jsx(hre,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:E.jsx(yre,{})}]}]),vre=`${window.location.protocol}//${window.location.host}/api/v0`,Tre=Ere("/",new ore,void 0,vre);F5.createRoot(document.getElementById("root")).render(E.jsx(N.StrictMode,{children:E.jsx(V6,{router:Tre})}));export{F as _};
|