@dylanpiercey/work 0.2.25 → 0.2.26
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/{_C0jqB-CL.js → _DgMHVlZD.js} +68 -68
- package/dist/index.mjs +991 -931
- package/dist/public/assets/{_P55-xlZx.js → _-zhHXCI9.js} +5 -5
- package/dist/public/assets/_-zhHXCI9.js.br +0 -0
- package/dist/public/assets/{_C7Y7zxOd.js → _2JnEXkbm.js} +1 -1
- package/dist/public/assets/_2JnEXkbm.js.br +0 -0
- package/dist/public/assets/_3iV1XCao.js +1 -0
- package/dist/public/assets/{_CyYD6aqo.js → _4GJMNsv4.js} +1 -1
- package/dist/public/assets/_4GJMNsv4.js.br +0 -0
- package/dist/public/assets/_5C1kdkqB.js +1 -0
- package/dist/public/assets/_6NoBhbJ5.js +1 -0
- package/dist/public/assets/_ABicTWDw.js +1 -0
- package/dist/public/assets/{_BAA6M_qP.js → _AgZ6fwZq.js} +1 -1
- package/dist/public/assets/_AgZ6fwZq.js.br +0 -0
- package/dist/public/assets/_B-z3lF3A.js +1 -0
- package/dist/public/assets/{_Bj791NWn.js → _B4yscAvB.js} +1 -1
- package/dist/public/assets/_B4yscAvB.js.br +0 -0
- package/dist/public/assets/_B5gPw2w4.js +1 -0
- package/dist/public/assets/{_BgojYZh1.js → _B5kg6NYP.js} +1 -1
- package/dist/public/assets/_B5kg6NYP.js.br +0 -0
- package/dist/public/assets/_B80s2nlh.js +1 -0
- package/dist/public/assets/{_CKDkglpP.js → _B86gs7C3.js} +1 -1
- package/dist/public/assets/_B86gs7C3.js.br +0 -0
- package/dist/public/assets/_BB4nKBzl.js +1 -0
- package/dist/public/assets/{_cD-1rSR0.js → _BB9KpnlE.js} +1 -1
- package/dist/public/assets/_BB9KpnlE.js.br +0 -0
- package/dist/public/assets/_BBZ9whbc.js +1 -0
- package/dist/public/assets/_BBcs5Iny.js +1 -0
- package/dist/public/assets/{_D0GMo9Y1.js → _BBirMcW5.js} +1 -1
- package/dist/public/assets/_BBirMcW5.js.br +0 -0
- package/dist/public/assets/{_DIdWMwhe.js → _BBsAxu9Z.js} +1 -1
- package/dist/public/assets/_BBsAxu9Z.js.br +0 -0
- package/dist/public/assets/_BCC_Pqpb.js +1 -0
- package/dist/public/assets/_BCQgqCy-.js +1 -0
- package/dist/public/assets/_BCWEc1As.js +1 -0
- package/dist/public/assets/_BCv-MHzY.js +1 -0
- package/dist/public/assets/_BD4Li2r4.js +1 -0
- package/dist/public/assets/{_BOx4DoEG.js → _BDS5kYg4.js} +1 -1
- package/dist/public/assets/_BDS5kYg4.js.br +0 -0
- package/dist/public/assets/{_DAc5P0Tq.js → _BFxqBz-a.js} +1 -1
- package/dist/public/assets/_BFxqBz-a.js.br +0 -0
- package/dist/public/assets/_BGIyc0it.js +1 -0
- package/dist/public/assets/{_Ccz8FgmZ.js → _BIgwqTmf.js} +1 -1
- package/dist/public/assets/_BIgwqTmf.js.br +0 -0
- package/dist/public/assets/_BKUG7KDa.js +1 -0
- package/dist/public/assets/{_PT3yzrbH.js → _BL5gx_Ij.js} +1 -1
- package/dist/public/assets/{_Dy2ZmK8T.js → _BNymGXlT.js} +1 -1
- package/dist/public/assets/_BNymGXlT.js.br +0 -0
- package/dist/public/assets/{_BB5w80WL.js → _BQtPa-Hw.js} +1 -1
- package/dist/public/assets/_BQtPa-Hw.js.br +0 -0
- package/dist/public/assets/{_D6WaPEUJ.js → _BSjsLQB7.js} +1 -1
- package/dist/public/assets/_BSjsLQB7.js.br +0 -0
- package/dist/public/assets/{_CDt9qbOO.js → _BTHfufta.js} +1 -1
- package/dist/public/assets/_BTHfufta.js.br +0 -0
- package/dist/public/assets/_BUJZU779.js +1 -0
- package/dist/public/assets/_BWIPwlzM.js +1 -0
- package/dist/public/assets/_BYTCsH85.js +1 -0
- package/dist/public/assets/_BarOjkTV.js +1 -0
- package/dist/public/assets/_BbfXuHob.js +1 -0
- package/dist/public/assets/_BggC0j6X.js +1 -0
- package/dist/public/assets/{_BhUijjJj.js → _Bh8d3q9W.js} +1 -1
- package/dist/public/assets/_Bh8d3q9W.js.br +0 -0
- package/dist/public/assets/_BhKfjhpU.js +1 -0
- package/dist/public/assets/{_DY-TpJ8r.js → _BhjrHp1V.js} +1 -1
- package/dist/public/assets/_BhjrHp1V.js.br +0 -0
- package/dist/public/assets/_BizVYQh7.js +1 -0
- package/dist/public/assets/{_CFrlmGPb.js → _Bk2Qreny.js} +1 -1
- package/dist/public/assets/_Bk2Qreny.js.br +0 -0
- package/dist/public/assets/_Bk5DzZ15.js +1 -0
- package/dist/public/assets/_BloLrfOa.js +1 -0
- package/dist/public/assets/_Bm72XOpY.js +1 -0
- package/dist/public/assets/{_9LZMQsWk.js → _Bovxr109.js} +1 -1
- package/dist/public/assets/_Bovxr109.js.br +0 -0
- package/dist/public/assets/{_DSjjrIUk.js → _BqUINdPe.js} +1 -1
- package/dist/public/assets/_BqUINdPe.js.br +0 -0
- package/dist/public/assets/{_BZQB2204.js → _BqxrALbh.js} +1 -1
- package/dist/public/assets/_BqxrALbh.js.br +0 -0
- package/dist/public/assets/_BrxlLs-x.js +1 -0
- package/dist/public/assets/{_Cs1w06Cs.js → _BsUv5WXQ.js} +1 -1
- package/dist/public/assets/_BsUv5WXQ.js.br +0 -0
- package/dist/public/assets/{_DbIVIWVO.js → _BsjVSRX3.js} +1 -1
- package/dist/public/assets/_BsjVSRX3.js.br +0 -0
- package/dist/public/assets/_BuFHTT45.js +1 -0
- package/dist/public/assets/_Bw4B8q_L.js +1 -0
- package/dist/public/assets/{_BvNQLfc4.js → _BxddvmCO.js} +1 -1
- package/dist/public/assets/_BxddvmCO.js.br +0 -0
- package/dist/public/assets/_ByaJXR6I.js +1 -0
- package/dist/public/assets/_C01at1Sr.js +1 -0
- package/dist/public/assets/{_BTSoj3wt.js → _C2BiVAWr.js} +1 -1
- package/dist/public/assets/_C2BiVAWr.js.br +0 -0
- package/dist/public/assets/{_NLNd72-Y.js → _C4IwaeIB.js} +1 -1
- package/dist/public/assets/_C4IwaeIB.js.br +0 -0
- package/dist/public/assets/{_COOttE1w.js → _C4L12ElI.js} +1 -1
- package/dist/public/assets/_C4L12ElI.js.br +0 -0
- package/dist/public/assets/{_DBNoOugb.js → _C4OvohkP.js} +1 -1
- package/dist/public/assets/_C4OvohkP.js.br +0 -0
- package/dist/public/assets/_C5fD4EbC.js +1 -0
- package/dist/public/assets/{_D1RferGz.js → _C6hxY8pd.js} +1 -1
- package/dist/public/assets/_C6hxY8pd.js.br +0 -0
- package/dist/public/assets/{_BmFEr68s.js → _C8PIx6SL.js} +1 -1
- package/dist/public/assets/_C8PIx6SL.js.br +0 -0
- package/dist/public/assets/_C8j1fHvo.js +1 -0
- package/dist/public/assets/{_BiLxP6RD.js → _C8lieIZB.js} +1 -1
- package/dist/public/assets/_C8lieIZB.js.br +0 -0
- package/dist/public/assets/{_yseYrl9j.js → _C9JitXRn.js} +1 -1
- package/dist/public/assets/_C9MnIQPr.js +1 -0
- package/dist/public/assets/{_ByQJ7LF4.js → _C9Qtrd-M.js} +1 -1
- package/dist/public/assets/_C9Qtrd-M.js.br +0 -0
- package/dist/public/assets/_CAiUjT5Y.js +1 -0
- package/dist/public/assets/{_D97qp8Qo.js → _CC3zAzbj.js} +1 -1
- package/dist/public/assets/_CC74tbKD.js +1 -0
- package/dist/public/assets/{_3z4U5yAj.js → _CCYxz-3V.js} +1 -1
- package/dist/public/assets/_CCYxz-3V.js.br +0 -0
- package/dist/public/assets/{_DwO4_KlL.js → _CEiZAFr8.js} +1 -1
- package/dist/public/assets/_CEiZAFr8.js.br +0 -0
- package/dist/public/assets/{_D3Ci9IpP.js → _CFoh7E-s.js} +1 -1
- package/dist/public/assets/{_D5XFsjyE.js → _CFy1N583.js} +1 -1
- package/dist/public/assets/_CFy1N583.js.br +0 -0
- package/dist/public/assets/{_B91tpTwE.js → _CLm_fpHQ.js} +1 -1
- package/dist/public/assets/_CLm_fpHQ.js.br +0 -0
- package/dist/public/assets/{_B7sAK3rf.js → _CN2GygM2.js} +1 -1
- package/dist/public/assets/_CN2GygM2.js.br +0 -0
- package/dist/public/assets/{_DtUHmSgv.js → _CP08pgD4.js} +1 -1
- package/dist/public/assets/_CP08pgD4.js.br +0 -0
- package/dist/public/assets/_CT98QHjA.js +1 -0
- package/dist/public/assets/{_DThSzqCB.js → _CXK9wMHQ.js} +1 -1
- package/dist/public/assets/{_BZhglPNq.js → _Ca5qImSb.js} +1 -1
- package/dist/public/assets/_Ca5qImSb.js.br +0 -0
- package/dist/public/assets/_Cayup_t_.js +1 -0
- package/dist/public/assets/{_B6_WLMJi.js → _CbHgnA8y.js} +1 -1
- package/dist/public/assets/_CbHgnA8y.js.br +0 -0
- package/dist/public/assets/_CgWJP_eQ.js +1 -0
- package/dist/public/assets/{_BcQ5DQmA.js → _ChlwWXA5.js} +1 -1
- package/dist/public/assets/{_CzVwuFx1.js → _CkAmWvsv.js} +1 -1
- package/dist/public/assets/_CkAmWvsv.js.br +0 -0
- package/dist/public/assets/{_CE2XZzCG.js → _Cl3N1qkY.js} +1 -1
- package/dist/public/assets/_Cl3N1qkY.js.br +0 -0
- package/dist/public/assets/_ClWnbW07.js +1 -0
- package/dist/public/assets/{_BU214RiN.js → _CmsGzoBi.js} +1 -1
- package/dist/public/assets/_CmsGzoBi.js.br +0 -0
- package/dist/public/assets/{_C2zJPa-j.js → _CmwSGQjl.js} +1 -1
- package/dist/public/assets/_CmwSGQjl.js.br +0 -0
- package/dist/public/assets/_Crp1nA_l.js +1 -0
- package/dist/public/assets/{_CIbYjP43.js → _CtOtltZf.js} +1 -1
- package/dist/public/assets/_CtOtltZf.js.br +0 -0
- package/dist/public/assets/{_Dia8vw0n.js → _Cu0WPCj9.js} +1 -1
- package/dist/public/assets/_Cu0WPCj9.js.br +0 -0
- package/dist/public/assets/{_DUMZVSqe.js → _CvMERElY.js} +1 -1
- package/dist/public/assets/_CvMERElY.js.br +0 -0
- package/dist/public/assets/{_CvlGgCgA.js → _Cxh2MY7r.js} +1 -1
- package/dist/public/assets/_Cxh2MY7r.js.br +0 -0
- package/dist/public/assets/_CzSlkZcQ.js +1 -0
- package/dist/public/assets/_D10yu6eV.js +1 -0
- package/dist/public/assets/{_5B_JQzQu.js → _D1Afnic6.js} +1 -1
- package/dist/public/assets/_D1Afnic6.js.br +0 -0
- package/dist/public/assets/_D7O62qXC.js +1 -0
- package/dist/public/assets/{_DgAYZPtd.js → _D7QfGZCN.js} +1 -1
- package/dist/public/assets/_D7QfGZCN.js.br +0 -0
- package/dist/public/assets/{_BHpwo3pV.js → _DCMU4Rty.js} +1 -1
- package/dist/public/assets/_DCMU4Rty.js.br +0 -0
- package/dist/public/assets/{_DhgZLOP4.js → _DCMWV2lL.js} +1 -1
- package/dist/public/assets/_DCMWV2lL.js.br +0 -0
- package/dist/public/assets/_DCy85e9Y.js +1 -0
- package/dist/public/assets/{_CdCZ28Ds.js → _DDylW_9G.js} +1 -1
- package/dist/public/assets/_DDylW_9G.js.br +0 -0
- package/dist/public/assets/_DEuN6z1D.js +1 -0
- package/dist/public/assets/_DFMxNIZR.js +1 -0
- package/dist/public/assets/{_B3nkNnXm.js → _DFPocFhS.js} +1 -1
- package/dist/public/assets/_DFPocFhS.js.br +0 -0
- package/dist/public/assets/{_CBxJtA8-.js → _DI2YqTNw.js} +1 -1
- package/dist/public/assets/_DI2YqTNw.js.br +0 -0
- package/dist/public/assets/_DKVwEl8y.js +1 -0
- package/dist/public/assets/_DLCgoiP0.js +1 -0
- package/dist/public/assets/{_BeumRtRb.js → _DLZwG45y.js} +1 -1
- package/dist/public/assets/_DLZwG45y.js.br +0 -0
- package/dist/public/assets/{_tuHBYCL3.js → _DNRNqFO-.js} +1 -1
- package/dist/public/assets/_DNRNqFO-.js.br +0 -0
- package/dist/public/assets/{_CBjY-Owk.js → _DOD4U7iq.js} +1 -1
- package/dist/public/assets/_DOD4U7iq.js.br +0 -0
- package/dist/public/assets/{_DT3dK74Q.js → _DWHkH5_b.js} +1 -1
- package/dist/public/assets/_DWHkH5_b.js.br +0 -0
- package/dist/public/assets/{_yDrjhhJM.js → _DWVZHVfq.js} +1 -1
- package/dist/public/assets/_DWVZHVfq.js.br +0 -0
- package/dist/public/assets/{_DRSu-WSN.js → _DWtesxY7.js} +1 -1
- package/dist/public/assets/_DWtesxY7.js.br +0 -0
- package/dist/public/assets/_DY2OHNoX.js +1 -0
- package/dist/public/assets/_DZNDgwfg.js +1 -0
- package/dist/public/assets/_Da8MTH3V.js +1 -0
- package/dist/public/assets/_DaZsKIgS.js +1 -0
- package/dist/public/assets/_DaZsKIgS.js.br +0 -0
- package/dist/public/assets/_DarQe_u2.js +1 -0
- package/dist/public/assets/_DbeGj6QQ.js +1 -0
- package/dist/public/assets/{_B7tkawQT.js → _DcNYJqCG.js} +2 -2
- package/dist/public/assets/_DcNYJqCG.js.br +0 -0
- package/dist/public/assets/{_D8KWswb0.js → _DerM5rKO.js} +1 -1
- package/dist/public/assets/_DerM5rKO.js.br +0 -0
- package/dist/public/assets/{_D_AcTgCV.js → _DgmJlyD3.js} +1 -1
- package/dist/public/assets/_DgmJlyD3.js.br +0 -0
- package/dist/public/assets/_DhedYhZt.js +1 -0
- package/dist/public/assets/{_BGsvGmtK.js → _Dj-MpYcH.js} +1 -1
- package/dist/public/assets/_Dj-MpYcH.js.br +0 -0
- package/dist/public/assets/{_BBF0tnse.js → _DlArFX6J.js} +1 -1
- package/dist/public/assets/_DlArFX6J.js.br +0 -0
- package/dist/public/assets/{_D8Y8OuSd.js → _DmIpsL-v.js} +1 -1
- package/dist/public/assets/_DmIpsL-v.js.br +0 -0
- package/dist/public/assets/{_BSWbHxCY.js → _Dmn7KvTE.js} +1 -1
- package/dist/public/assets/_Dmn7KvTE.js.br +0 -0
- package/dist/public/assets/{_ByJSAVsB.js → _DoNpdWPq.js} +1 -1
- package/dist/public/assets/_DoNpdWPq.js.br +0 -0
- package/dist/public/assets/{_CJ3CynCs.js → _DoTnLaS9.js} +1 -1
- package/dist/public/assets/_DoTnLaS9.js.br +0 -0
- package/dist/public/assets/_DorVNuJA.js +1 -0
- package/dist/public/assets/{_DY8DHmAe.js → _DpEJfD8W.js} +1 -1
- package/dist/public/assets/_DpEJfD8W.js.br +0 -0
- package/dist/public/assets/{_DN4qfzJZ.js → _Dtt6AK9K.js} +1 -1
- package/dist/public/assets/_Dtt6AK9K.js.br +0 -0
- package/dist/public/assets/_Du8zu-9M.js +1 -0
- package/dist/public/assets/_Dv2qNKTg.js +1 -0
- package/dist/public/assets/_Dvb645-Y.js +1 -0
- package/dist/public/assets/{_mN0msEVf.js → _DxfH40fY.js} +1 -1
- package/dist/public/assets/_DxfH40fY.js.br +0 -0
- package/dist/public/assets/{_C7jvXNag.js → _DytZTnjf.js} +1 -1
- package/dist/public/assets/_DytZTnjf.js.br +0 -0
- package/dist/public/assets/{_DcAzPygU.js → _DzpYKOzH.js} +1 -1
- package/dist/public/assets/_DzpYKOzH.js.br +0 -0
- package/dist/public/assets/{_CmccfrUL.js → _Dzv87S60.js} +1 -1
- package/dist/public/assets/_Dzv87S60.js.br +0 -0
- package/dist/public/assets/{_Beyc-Xsa.js → _FdOsPHXU.js} +1 -1
- package/dist/public/assets/_FdOsPHXU.js.br +0 -0
- package/dist/public/assets/{_NSlW70PO.js → _Fuvar22f.js} +1 -1
- package/dist/public/assets/_Fuvar22f.js.br +0 -0
- package/dist/public/assets/{_DVc7jXIG.js → _G6yx-5F_.js} +1 -1
- package/dist/public/assets/_G6yx-5F_.js.br +0 -0
- package/dist/public/assets/{_BawmACQw.js → _GMK4EeUY.js} +1 -1
- package/dist/public/assets/_GMK4EeUY.js.br +0 -0
- package/dist/public/assets/_GOTjg7e5.js +1 -0
- package/dist/public/assets/{_g44xIxuC.js → _GSvZOAHF.js} +7 -7
- package/dist/public/assets/_GSvZOAHF.js.br +0 -0
- package/dist/public/assets/{_-kI3GOeS.js → _K12WbC-s.js} +1 -1
- package/dist/public/assets/_K12WbC-s.js.br +0 -0
- package/dist/public/assets/_KFzfrZNj.js +1 -0
- package/dist/public/assets/_L6733NM-.js +1 -0
- package/dist/public/assets/_LvVNMWh0.js +1 -0
- package/dist/public/assets/{_AdsZZXF4.js → _Nx7AVZDV.js} +20 -20
- package/dist/public/assets/_Nx7AVZDV.js.br +0 -0
- package/dist/public/assets/{_CxZPR9o6.js → _OQH9rzqd.js} +1 -1
- package/dist/public/assets/_OQH9rzqd.js.br +0 -0
- package/dist/public/assets/_PBq8ezG7.js +1 -0
- package/dist/public/assets/_PQ_pDcUZ.js +1 -0
- package/dist/public/assets/_QBHUP2PK.js +1 -0
- package/dist/public/assets/_T3OiJbi0.js +1 -0
- package/dist/public/assets/{_BuOA7y0Q.js → _Uk4sVQNA.js} +1 -1
- package/dist/public/assets/_Uk4sVQNA.js.br +0 -0
- package/dist/public/assets/_VmSs4dhG.js +1 -0
- package/dist/public/assets/{_N17k0AUO.js → __zPR3Dpa.js} +1 -1
- package/dist/public/assets/__zPR3Dpa.js.br +0 -0
- package/dist/public/assets/_cdzAnvUh.js +1 -0
- package/dist/public/assets/_eZwN0w2d.js +1 -0
- package/dist/public/assets/_fT_a45EK.js +1 -0
- package/dist/public/assets/{_Dq947wTV.js → _g69ETBGf.js} +3 -3
- package/dist/public/assets/_g69ETBGf.js.br +0 -0
- package/dist/public/assets/{_YlW2OtxR.js → _iwQz8iZx.js} +1 -1
- package/dist/public/assets/_iwQz8iZx.js.br +0 -0
- package/dist/public/assets/{_CFjYOkqy.js → _jHTblqKs.js} +1 -1
- package/dist/public/assets/_jHTblqKs.js.br +0 -0
- package/dist/public/assets/_kGLW4o8Z.js +1 -0
- package/dist/public/assets/_mXSMeyqC.js +1 -0
- package/dist/public/assets/{_CXGKxkXO.js → _nXlEcAWp.js} +1 -1
- package/dist/public/assets/_nXlEcAWp.js.br +0 -0
- package/dist/public/assets/{_D4q27YcR.js → _nqwUqTs9.js} +2 -2
- package/dist/public/assets/_nqwUqTs9.js.br +0 -0
- package/dist/public/assets/_qwyCZBrL.js +1 -0
- package/dist/public/assets/{_C2y0tmgK.js → _rwCcbF5m.js} +1 -1
- package/dist/public/assets/_rwCcbF5m.js.br +0 -0
- package/dist/public/assets/_t-2gUwCn.js +1 -0
- package/dist/public/assets/_t54dJ933.js +1 -0
- package/dist/public/assets/_uXNHUuB1.js +1 -0
- package/dist/public/assets/files-view-CIIj3ToR.js +2 -0
- package/dist/public/assets/manage-workspace-CGjrJuCN.js +2 -0
- package/dist/public/assets/new-YifUUCQj.js +1 -0
- package/dist/public/assets/new-workspace-DODzQtT5.js +2 -0
- package/dist/public/assets/review-view-CrIx_0HE.js +2 -0
- package/dist/public/assets/settings-YifUUCQj.js +1 -0
- package/dist/public/assets/settings-page-DNioUYvp.js +2 -0
- package/dist/public/assets/{styles-oPOujz3_.css → styles-CbjHtr-6.css} +1 -1
- package/dist/public/assets/styles-CbjHtr-6.css.br +0 -0
- package/dist/public/assets/w-YifUUCQj.js +1 -0
- package/dist/public/assets/w._-BHaSF7oF.js +1 -0
- package/dist/public/assets/w._-CKDU8d_J.js +1 -0
- package/dist/public/assets/w._-YifUUCQj.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_-kI3GOeS.js.br +0 -0
- package/dist/public/assets/_3KDJRitR.js +0 -1
- package/dist/public/assets/_3rli7DCF.js +0 -1
- package/dist/public/assets/_3z4U5yAj.js.br +0 -0
- package/dist/public/assets/_4fKJbkf1.js +0 -1
- package/dist/public/assets/_5B_JQzQu.js.br +0 -0
- package/dist/public/assets/_6-KjcfMs.js +0 -1
- package/dist/public/assets/_75LHF1xz.js +0 -1
- package/dist/public/assets/_9LZMQsWk.js.br +0 -0
- package/dist/public/assets/_AdsZZXF4.js.br +0 -0
- package/dist/public/assets/_B-2L6woX.js +0 -1
- package/dist/public/assets/_B1VvRvTB.js +0 -1
- package/dist/public/assets/_B3nkNnXm.js.br +0 -0
- package/dist/public/assets/_B6_WLMJi.js.br +0 -0
- package/dist/public/assets/_B7sAK3rf.js.br +0 -0
- package/dist/public/assets/_B7tkawQT.js.br +0 -0
- package/dist/public/assets/_B8nt6Slz.js +0 -1
- package/dist/public/assets/_B91tpTwE.js.br +0 -0
- package/dist/public/assets/_BAA6M_qP.js.br +0 -0
- package/dist/public/assets/_BB5w80WL.js.br +0 -0
- package/dist/public/assets/_BBF0tnse.js.br +0 -0
- package/dist/public/assets/_BBxa-P-y.js +0 -1
- package/dist/public/assets/_BDv8d3aq.js +0 -1
- package/dist/public/assets/_BGsvGmtK.js.br +0 -0
- package/dist/public/assets/_BHpwo3pV.js.br +0 -0
- package/dist/public/assets/_BKxjt9fW.js +0 -1
- package/dist/public/assets/_BMpnfeXM.js +0 -1
- package/dist/public/assets/_BOx4DoEG.js.br +0 -0
- package/dist/public/assets/_BS7nZUPB.js +0 -1
- package/dist/public/assets/_BSWbHxCY.js.br +0 -0
- package/dist/public/assets/_BSojMDcw.js +0 -1
- package/dist/public/assets/_BTSoj3wt.js.br +0 -0
- package/dist/public/assets/_BU214RiN.js.br +0 -0
- package/dist/public/assets/_BUFxei3D.js +0 -1
- package/dist/public/assets/_BWDT5LSf.js +0 -1
- package/dist/public/assets/_BY1lrzB2.js +0 -1
- package/dist/public/assets/_BZEcMcJR.js +0 -1
- package/dist/public/assets/_BZQB2204.js.br +0 -0
- package/dist/public/assets/_BZhglPNq.js.br +0 -0
- package/dist/public/assets/_BawmACQw.js.br +0 -0
- package/dist/public/assets/_Bc5hRZw7.js +0 -1
- package/dist/public/assets/_Bcjm1xFP.js +0 -1
- package/dist/public/assets/_BeumRtRb.js.br +0 -0
- package/dist/public/assets/_Beyc-Xsa.js.br +0 -0
- package/dist/public/assets/_BgojYZh1.js.br +0 -0
- package/dist/public/assets/_BhUijjJj.js.br +0 -0
- package/dist/public/assets/_BiLxP6RD.js.br +0 -0
- package/dist/public/assets/_Bj791NWn.js.br +0 -0
- package/dist/public/assets/_BmDnge_D.js +0 -1
- package/dist/public/assets/_BmFEr68s.js.br +0 -0
- package/dist/public/assets/_BpfdofDP.js +0 -1
- package/dist/public/assets/_Bplq2Q0Z.js +0 -1
- package/dist/public/assets/_BsBCzJdk.js +0 -1
- package/dist/public/assets/_BuOA7y0Q.js.br +0 -0
- package/dist/public/assets/_BuwiSesg.js +0 -1
- package/dist/public/assets/_BvNQLfc4.js.br +0 -0
- package/dist/public/assets/_BxL97cif.js +0 -1
- package/dist/public/assets/_ByJSAVsB.js.br +0 -0
- package/dist/public/assets/_ByQJ7LF4.js.br +0 -0
- package/dist/public/assets/_C0oNPhE6.js +0 -1
- package/dist/public/assets/_C2y0tmgK.js.br +0 -0
- package/dist/public/assets/_C2zJPa-j.js.br +0 -0
- package/dist/public/assets/_C3ppNeBl.js +0 -1
- package/dist/public/assets/_C4fRJVcm.js +0 -1
- package/dist/public/assets/_C7Y7zxOd.js.br +0 -0
- package/dist/public/assets/_C7jvXNag.js.br +0 -0
- package/dist/public/assets/_CBjY-Owk.js.br +0 -0
- package/dist/public/assets/_CBxJtA8-.js.br +0 -0
- package/dist/public/assets/_CDt9qbOO.js.br +0 -0
- package/dist/public/assets/_CE2XZzCG.js.br +0 -0
- package/dist/public/assets/_CFjYOkqy.js.br +0 -0
- package/dist/public/assets/_CFrlmGPb.js.br +0 -0
- package/dist/public/assets/_CIbYjP43.js.br +0 -0
- package/dist/public/assets/_CIqr2E-Z.js +0 -1
- package/dist/public/assets/_CJ3CynCs.js.br +0 -0
- package/dist/public/assets/_CJMen7S8.js +0 -1
- package/dist/public/assets/_CKDkglpP.js.br +0 -0
- package/dist/public/assets/_CO78rfNI.js +0 -1
- package/dist/public/assets/_COOttE1w.js.br +0 -0
- package/dist/public/assets/_COeAM4yX.js +0 -1
- package/dist/public/assets/_CV1XzTHF.js +0 -1
- package/dist/public/assets/_CWQ8L5Cw.js +0 -1
- package/dist/public/assets/_CXGKxkXO.js.br +0 -0
- package/dist/public/assets/_CamgKCb9.js +0 -1
- package/dist/public/assets/_Cb4uDl3F.js +0 -1
- package/dist/public/assets/_CbwqktMI.js +0 -1
- package/dist/public/assets/_Ccz8FgmZ.js.br +0 -0
- package/dist/public/assets/_CdCZ28Ds.js.br +0 -0
- package/dist/public/assets/_Cdq1chtg.js +0 -1
- package/dist/public/assets/_CdvBPzrZ.js +0 -1
- package/dist/public/assets/_CeVcsxyE.js +0 -1
- package/dist/public/assets/_Cf2KBIuc.js +0 -1
- package/dist/public/assets/_CfxWM8m5.js +0 -1
- package/dist/public/assets/_CiZYgdZ7.js +0 -1
- package/dist/public/assets/_CmKqDjtG.js +0 -1
- package/dist/public/assets/_CmccfrUL.js.br +0 -0
- package/dist/public/assets/_CqM5U4Nt.js +0 -1
- package/dist/public/assets/_Cs1w06Cs.js.br +0 -0
- package/dist/public/assets/_CtWeib89.js +0 -1
- package/dist/public/assets/_CvlGgCgA.js.br +0 -0
- package/dist/public/assets/_CxZPR9o6.js.br +0 -0
- package/dist/public/assets/_CyYD6aqo.js.br +0 -0
- package/dist/public/assets/_CzVwuFx1.js.br +0 -0
- package/dist/public/assets/_D0GMo9Y1.js.br +0 -0
- package/dist/public/assets/_D1RferGz.js.br +0 -0
- package/dist/public/assets/_D4q27YcR.js.br +0 -0
- package/dist/public/assets/_D5Ofkvm_.js +0 -1
- package/dist/public/assets/_D5XFsjyE.js.br +0 -0
- package/dist/public/assets/_D5yWyDHd.js +0 -1
- package/dist/public/assets/_D69FxN5T.js +0 -1
- package/dist/public/assets/_D6WaPEUJ.js.br +0 -0
- package/dist/public/assets/_D7O5UfJx.js +0 -1
- package/dist/public/assets/_D8KWswb0.js.br +0 -0
- package/dist/public/assets/_D8Y8OuSd.js.br +0 -0
- package/dist/public/assets/_DAc5P0Tq.js.br +0 -0
- package/dist/public/assets/_DBNoOugb.js.br +0 -0
- package/dist/public/assets/_DC0nz9hY.js +0 -1
- package/dist/public/assets/_DEwXlIFR.js +0 -1
- package/dist/public/assets/_DIdWMwhe.js.br +0 -0
- package/dist/public/assets/_DK_Mg3Uu.js +0 -1
- package/dist/public/assets/_DN4qfzJZ.js.br +0 -0
- package/dist/public/assets/_DQE-0uxQ.js +0 -1
- package/dist/public/assets/_DRNgui9d.js +0 -1
- package/dist/public/assets/_DRSu-WSN.js.br +0 -0
- package/dist/public/assets/_DRlmzrbh.js +0 -1
- package/dist/public/assets/_DSjjrIUk.js.br +0 -0
- package/dist/public/assets/_DT3dK74Q.js.br +0 -0
- package/dist/public/assets/_DUMZVSqe.js.br +0 -0
- package/dist/public/assets/_DVc7jXIG.js.br +0 -0
- package/dist/public/assets/_DY-TpJ8r.js.br +0 -0
- package/dist/public/assets/_DY8DHmAe.js.br +0 -0
- package/dist/public/assets/_D_AcTgCV.js.br +0 -0
- package/dist/public/assets/_DaP1qV3l.js +0 -1
- package/dist/public/assets/_DbIVIWVO.js.br +0 -0
- package/dist/public/assets/_DcAzPygU.js.br +0 -0
- package/dist/public/assets/_DgAYZPtd.js.br +0 -0
- package/dist/public/assets/_DhgZLOP4.js.br +0 -0
- package/dist/public/assets/_Dia8vw0n.js.br +0 -0
- package/dist/public/assets/_Dk7nrnBX.js +0 -1
- package/dist/public/assets/_DkfIZwub.js +0 -1
- package/dist/public/assets/_DpO-56Rm.js +0 -1
- package/dist/public/assets/_Dq947wTV.js.br +0 -0
- package/dist/public/assets/_DqYTIZww.js +0 -1
- package/dist/public/assets/_DtUHmSgv.js.br +0 -0
- package/dist/public/assets/_DwO4_KlL.js.br +0 -0
- package/dist/public/assets/_DwoGuqHG.js +0 -1
- package/dist/public/assets/_Dy2ZmK8T.js.br +0 -0
- package/dist/public/assets/_Gh-GaA86.js +0 -1
- package/dist/public/assets/_MJuw39ym.js +0 -1
- package/dist/public/assets/_N17k0AUO.js.br +0 -0
- package/dist/public/assets/_NLNd72-Y.js.br +0 -0
- package/dist/public/assets/_NSlW70PO.js.br +0 -0
- package/dist/public/assets/_P55-xlZx.js.br +0 -0
- package/dist/public/assets/_PWL7HWcH.js +0 -1
- package/dist/public/assets/_Rk9ba3XI.js +0 -1
- package/dist/public/assets/_Ru__4D8t.js +0 -1
- package/dist/public/assets/_Shrmfsq5.js +0 -1
- package/dist/public/assets/_TuTXrRqk.js +0 -1
- package/dist/public/assets/_X8dyf9XG.js +0 -1
- package/dist/public/assets/_YOp-b2VF.js +0 -1
- package/dist/public/assets/_YlW2OtxR.js.br +0 -0
- package/dist/public/assets/__DYKyMP8.js +0 -1
- package/dist/public/assets/_aY8JSH8-.js +0 -1
- package/dist/public/assets/_aY8JSH8-.js.br +0 -0
- package/dist/public/assets/_cD-1rSR0.js.br +0 -0
- package/dist/public/assets/_dtBymh4C.js +0 -1
- package/dist/public/assets/_g44xIxuC.js.br +0 -0
- package/dist/public/assets/_mN0msEVf.js.br +0 -0
- package/dist/public/assets/_nXnRiOBU.js +0 -1
- package/dist/public/assets/_rv7ZzCx5.js +0 -1
- package/dist/public/assets/_tuHBYCL3.js.br +0 -0
- package/dist/public/assets/_tuhK1P1S.js +0 -1
- package/dist/public/assets/_yDrjhhJM.js.br +0 -0
- package/dist/public/assets/_yY2Cj2kE.js +0 -1
- package/dist/public/assets/_zUK10a_s.js +0 -1
- package/dist/public/assets/files-view-C8IBkepj.js +0 -2
- package/dist/public/assets/manage-workspace-DkWH24a8.js +0 -2
- package/dist/public/assets/new-C_Vv6GHE.js +0 -1
- package/dist/public/assets/new-workspace-IyUPSxFN.js +0 -2
- package/dist/public/assets/review-view-CCGilqtv.js +0 -2
- package/dist/public/assets/settings-C_Vv6GHE.js +0 -1
- package/dist/public/assets/settings-page-BQVuESg9.js +0 -2
- package/dist/public/assets/styles-oPOujz3_.css.br +0 -0
- package/dist/public/assets/w-C_Vv6GHE.js +0 -1
- package/dist/public/assets/w._-C_Vv6GHE.js +0 -1
- package/dist/public/assets/w._-DGVZgJDn.js +0 -1
- package/dist/public/assets/w._-qhFQCl0q.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/
|
|
2
|
-
import{Bt as e,Et as t,G as n,I as r,K as i,L as a,Nt as o,P as s,Pt as c,W as l,X as u,Y as d,jt as f,q as p,z as m,zt as h}from"./_CzVwuFx1.js";import{B as g,D as _,F as v,G as y,H as b,I as x,K as S,L as C,O as w,P as T,R as E,U as D,V as O,W as k,Y as A,_ as ee,a as j,b as M,i as N,j as te,l as ne,n as re,q as ie,r as ae,t as P,u as oe,v as F,x as se,y as I,z as ce}from"./_ahCaQNeo.js";import{$t as le,A as ue,Bn as de,C as fe,Ct as pe,D as me,E as he,F as ge,Gn as _e,J as ve,O as ye,Qt as be,S as xe,T as Se,U as Ce,Un as we,Vn as L,W as Te,a as Ee,i as De,j as Oe,jt as ke,k as Ae,n as je,nn as Me,qn as Ne,r as Pe,rt as Fe,t as Ie,vn as Le,w as Re}from"./_B7tkawQT.js";import{t as ze}from"./_BloLwEd3.js";import{A as Be,B as Ve,D as He,E as Ue,F as We,I as Ge,M as Ke,N as qe,O as Je,P as Ye,R as Xe,S as Ze,V as Qe,a as $e,ct as et,et as tt,i as nt,it as rt,j as it,k as at,n as ot,ot as R,r as z,rt as st,t as ct}from"./_CXGKxkXO.js";import{B as lt,C as ut,D as dt,E as ft,J as pt,O as mt,R as ht,S as gt,T as _t,V as vt,W as yt,a as bt,c as xt,i as St,k as Ct,l as wt,n as Tt,o as Et,r as Dt,s as Ot,t as kt,u as At,w as jt,x as Mt}from"./_D1RferGz.js";import{t as Nt}from"./_D2pdXUO3.js";import{a as Pt,c as Ft,d as It,f as Lt,i as Rt,l as zt,n as Bt,o as Vt,p as Ht,r as Ut,s as Wt,t as Gt,u as Kt}from"./_aY8JSH8-.js";import{t as qt}from"./_CcFCI5Av.js";import{_ as Jt,c as Yt,d as Xt,f as Zt,g as Qt,l as $t,m as en,p as tn,s as nn,u as rn,v as an,y as on}from"./_CIbYjP43.js";import{a as sn,c as cn,i as ln,n as un,r as dn,t as fn}from"./_DThSzqCB.js";import{a as pn,i as mn,n as hn,r as gn,t as _n}from"./_CtWeib89.js";var vn=Object.create,yn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyNames,Sn=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,wn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Tn=(e,t)=>{let n={};for(var r in e)yn(n,r,{get:e[r],enumerable:!0});return t||yn(n,Symbol.toStringTag,{value:`Module`}),n},En=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=xn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Cn.call(e,s)&&s!==n&&yn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=bn(t,s))||r.enumerable});return e},Dn=(e,t,n)=>(n=e==null?{}:vn(Sn(e)),En(t||!e||!e.__esModule||!Cn.call(e,`default`)?yn(n,`default`,{value:e,enumerable:!0}):n,e)),On=`diffs-container`,kn=(()=>{try{return!1}catch{return!1}})(),An=/(?=^From [a-f0-9]+ .+$)/m,jn=/(?=^diff --git)/gm,Mn=/(?<=\n)/,Nn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Pn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Fn=`header-prefix`,In=`header-filename-suffix`,Ln=`header-metadata`,Rn=`header-custom`,zn={dark:`pierre-dark`,light:`pierre-light`},Bn=`data-theme-css`,Vn=`data-unsafe-css`,Hn=`data-diffs-scrollbar-measure`,Un=`data-diffs-code-view-header`,Wn=`data-diffs-code-view-footer`,Gn=`--diffs-scrollbar-gutter-measured`,Kn=1e5,qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Jn={...qn,hunkLineCount:1},Yn={paddingTop:8,paddingBottom:8,gap:8},Xn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},Zn=Object.freeze({fromStart:0,fromEnd:0}),Qn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},$n={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},er=new Map,tr=new Map,nr=new Map,rr=new Set;function ir(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!rr.has(t))return!1;return!0}function ar(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(rr.has(n.name))continue;let e=er.get(n.name);e??(e=n,er.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}rr.add(e.name)}}function or(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var sr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,ur=Object.prototype.hasOwnProperty,dr=(e,t)=>{let n={};for(var r in e)sr(n,r,{get:e[r],enumerable:!0});return t||sr(n,Symbol.toStringTag,{value:`Module`}),n},fr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=lr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ur.call(e,s)&&s!==n&&sr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=cr(t,s))||r.enumerable});return e},pr=(e,t,n)=>(fr(e,t,`default`),n&&fr(n,t,`default`)),mr=[{id:`abap`,name:`ABAP`,import:(()=>P(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>P(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>P(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>P(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>P(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>P(()=>import(`./_DcAzPygU.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>P(()=>import(`./_B3nkNnXm.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>P(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>P(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>P(()=>import(`./_CyYD6aqo.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>P(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>P(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>P(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>P(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>P(()=>import(`./_DSjjrIUk.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>P(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>P(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>P(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>P(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>P(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>P(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>P(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>P(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>P(()=>import(`./_tuHBYCL3.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>P(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>P(()=>import(`./_BZhglPNq.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>P(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>P(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>P(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>P(()=>import(`./_yDrjhhJM.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>P(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>P(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>P(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>P(()=>import(`./_BmFEr68s.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>P(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>P(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>P(()=>import(`./_C2zJPa-j.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>P(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>P(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>P(()=>import(`./_BgojYZh1.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>P(()=>import(`./_DbIVIWVO.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>P(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>P(()=>import(`./_N17k0AUO.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>P(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>P(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>P(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>P(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>P(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>P(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>P(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>P(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>P(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>P(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>P(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>P(()=>import(`./_DVc7jXIG.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>P(()=>import(`./_DAc5P0Tq.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>P(()=>import(`./_BhUijjJj.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>P(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>P(()=>import(`./_CKDkglpP.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>P(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>P(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>P(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>P(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>P(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>P(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>P(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>P(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>P(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>P(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>P(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>P(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>P(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>P(()=>import(`./_yseYrl9j.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>P(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>P(()=>import(`./_CdCZ28Ds.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>P(()=>import(`./_NSlW70PO.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>P(()=>import(`./_DhgZLOP4.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>P(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>P(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>P(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>P(()=>import(`./_C7jvXNag.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>P(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>P(()=>import(`./_cD-1rSR0.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>P(()=>import(`./_BTSoj3wt.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>P(()=>import(`./_CxZPR9o6.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>P(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>P(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>P(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>P(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>P(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>P(()=>import(`./_5B_JQzQu.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>P(()=>import(`./_BcQ5DQmA.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>P(()=>import(`./_CJ3CynCs.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>P(()=>import(`./_CFjYOkqy.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>P(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>P(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>P(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>P(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>P(()=>import(`./_DY8DHmAe.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>P(()=>import(`./_Dia8vw0n.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>P(()=>import(`./_BU214RiN.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>P(()=>import(`./_DIdWMwhe.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>P(()=>import(`./_BZQB2204.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>P(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>P(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>P(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>P(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>P(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>P(()=>import(`./_D6WaPEUJ.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>P(()=>import(`./_CE2XZzCG.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>P(()=>import(`./_NLNd72-Y.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>P(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>P(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>P(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>P(()=>import(`./_DUMZVSqe.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>P(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>P(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>P(()=>import(`./_BawmACQw.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>P(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>P(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>P(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>P(()=>import(`./_BAA6M_qP.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>P(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>P(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>P(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>P(()=>import(`./_ByJSAVsB.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>P(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>P(()=>import(`./_CDt9qbOO.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>P(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>P(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>P(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>P(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>P(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>P(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>P(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>P(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>P(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>P(()=>import(`./_BeumRtRb.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>P(()=>import(`./_CBxJtA8-.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>P(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>P(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>P(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>P(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>P(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>P(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>P(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>P(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>P(()=>import(`./_CmccfrUL.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>P(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>P(()=>import(`./_mN0msEVf.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>P(()=>import(`./_CvlGgCgA.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>P(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>P(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>P(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>P(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>P(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>P(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>P(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>P(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>P(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>P(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>P(()=>import(`./_DtUHmSgv.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>P(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>P(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>P(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>P(()=>import(`./_-kI3GOeS.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>P(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>P(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>P(()=>import(`./_B6_WLMJi.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>P(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>P(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>P(()=>import(`./_BBF0tnse.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>P(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>P(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>P(()=>import(`./_D8KWswb0.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>P(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>P(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>P(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>P(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>P(()=>import(`./_Cs1w06Cs.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>P(()=>import(`./_DRSu-WSN.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>P(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>P(()=>import(`./_DN4qfzJZ.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>P(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>P(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>P(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>P(()=>import(`./_BiLxP6RD.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>P(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>P(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>P(()=>import(`./_Bj791NWn.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>P(()=>import(`./_PT3yzrbH.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>P(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>P(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>P(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>P(()=>import(`./_9LZMQsWk.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>P(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>P(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>P(()=>import(`./_C2y0tmgK.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>P(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>P(()=>import(`./_CFrlmGPb.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>P(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>P(()=>import(`./_CBjY-Owk.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>P(()=>import(`./_3z4U5yAj.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>P(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>P(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>P(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>P(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>P(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>P(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>P(()=>import(`./_BB5w80WL.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>P(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>P(()=>import(`./_BGsvGmtK.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>P(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>P(()=>import(`./_BvNQLfc4.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>P(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>P(()=>import(`./_D8Y8OuSd.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>P(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>P(()=>import(`./_BHpwo3pV.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>P(()=>import(`./_BOx4DoEG.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>P(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>P(()=>import(`./_BuOA7y0Q.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>P(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>P(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>P(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>P(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>P(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>P(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>P(()=>import(`./_C7Y7zxOd.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>P(()=>import(`./_B7sAK3rf.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>P(()=>import(`./_Dy2ZmK8T.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>P(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>P(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>P(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>P(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>P(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>P(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>P(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>P(()=>import(`./_BSWbHxCY.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>P(()=>import(`./_B91tpTwE.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>P(()=>import(`./_DY-TpJ8r.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>P(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>P(()=>import(`./_CMLA9XwU.js`),[]))}],hr=Object.fromEntries(mr.map(e=>[e.id,e.import])),gr=Object.fromEntries(mr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),_r={...hr,...gr},vr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>P(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>P(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>P(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>P(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>P(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>P(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>P(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>P(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>P(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>P(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>P(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>P(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>P(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>P(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>P(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>P(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>P(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>P(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>P(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>P(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>P(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>P(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>P(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>P(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>P(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>P(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>P(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>P(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>P(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>P(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>P(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>P(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>P(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>P(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>P(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>P(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>P(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>P(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>P(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>P(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>P(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>P(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>P(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>P(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>P(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>P(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>P(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>P(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>P(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>P(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>P(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>P(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>P(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>P(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>P(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>P(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>P(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>P(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>P(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>P(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>P(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>P(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>P(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>P(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>P(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),yr=Tn({createOnigurumaEngine:()=>qr,getDefaultWasmLoader:()=>Kr,loadWasm:()=>Br,setDefaultWasmLoader:()=>Gr}),br=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xr(){return 2147483648}function Sr(){return typeof performance<`u`?performance.now():Date.now()}var Cr=(e,t)=>e+(t-e%t)%t;async function wr(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=xr();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Cr(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Sr,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Tr=Object.defineProperty,Er=(e,t,n)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dr=(e,t,n)=>Er(e,typeof t==`symbol`?t:t+``,n),Or=null;function kr(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}var Ar=class e{constructor(t){Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16Value`),Dr(this,`utf8Value`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},jr=class e{constructor(t){if(Dr(this,`id`,++e.LAST_ID),Dr(this,`_onigBinding`),Dr(this,`content`),Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`),Dr(this,`ptr`),!Or)throw new br(`Must invoke loadWasm first.`);this._onigBinding=Or,this.content=t;let n=new Ar(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Or.omalloc(1e4),e._sharedPtrInUse=!0,Or.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Or)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Dr(jr,`LAST_ID`,0),Dr(jr,`_sharedPtr`,0),Dr(jr,`_sharedPtrInUse`,!1);var Mr=jr,Nr=class{constructor(e){if(Dr(this,`_onigBinding`),Dr(this,`_ptr`),!Or)throw new br(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Ar(e[r]);t[r]=i.createString(Or),n[r]=i.utf8Length}let r=Or.omalloc(4*e.length);Or.HEAPU32.set(t,r/4);let i=Or.omalloc(4*e.length);Or.HEAPU32.set(n,i/4);let a=Or.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Or.ofree(t[n]);Or.ofree(i),Or.ofree(r),a===0&&kr(Or),this._onigBinding=Or,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Mr(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Pr(e){return typeof e.instantiator==`function`}function Fr(e){return typeof e.default==`function`}function Ir(e){return e.data!==void 0}function Lr(e){return typeof Response<`u`&&e instanceof Response}function Rr(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}var zr;function Br(e){if(zr)return zr;async function t(){Or=await wr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Pr(n)?n=await n.instantiator(t):Fr(n)?n=await n.default(t):(Ir(n)&&(n=n.data),Lr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Hr(n)(t):await Ur(n)(t):Rr(n)||n instanceof WebAssembly.Module?n=await Vr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Vr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return zr=t(),zr}function Vr(e){return t=>WebAssembly.instantiate(e,t)}function Hr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ur(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Wr;function Gr(e){Wr=e}function Kr(){return Wr}async function qr(e){return e&&await Br(e),{createScanner(e){return new Nr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Mr(e)}}}var Jr=dr({});pr(Jr,yr);var B=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Yr(e){return Xr(e)}function Xr(e){return Array.isArray(e)?Zr(e):e instanceof RegExp?e:typeof e==`object`?Qr(e):e}function Zr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Xr(e[n]);return t}function Qr(e){let t={};for(let n in e)t[n]=Xr(e[n]);return t}function $r(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ei(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ei(e.substring(0,e.length-1)):e.substr(~t+1)}var ti=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ni=class{static hasCaptures(e){return e!==null&&(ti.lastIndex=0,ti.test(e))}static replaceCaptures(e,t,n){return e.replace(ti,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ri(e,t){return e<t?-1:+(e>t)}function ii(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 r=0;r<n;r++){let n=ri(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function ai(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 oi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var si=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pi(e),t)}static createFromParsedTheme(e,t){return gi(e,t)}_cachedMatchRoot=new si(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>ui(e.parent,t.parentScopes));return n?new fi(n.fontStyle,n.foreground,n.background):null}},li=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function ui(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!di(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function di(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var fi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pi(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&ai(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&ai(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new mi(l,u,e,o,s,c)}}return n}var mi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},hi=(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))(hi||{});function gi(e,t){e.sort((e,t)=>{let n=ri(e.scope,t.scope);return n!==0||(n=ii(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new _i(t),o=new fi(n,a.getId(r),a.getId(i)),s=new bi(new yi(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new ci(a,o,s)}var _i=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},vi=Object.freeze([]),yi=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||vi,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},bi=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),yi.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(ii(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new yi(e,t,n,r,i))}},xi=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Ci(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Si(e){return e}function Ci(e){return e}function wi(e,t){let n=[],r=Ei(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Ti(i)){let e=[];do e.push(i),i=r.next();while(Ti(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Ti(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ei(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Di(e){typeof e.dispose==`function`&&e.dispose()}var Oi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ai=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ji=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ai;for(let n of e)Mi(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Oi){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Mi(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Oi?Pi({baseGrammar:a,selfGrammar:i},r):Ni(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Oi(e))}function Ni(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Fi([r],t,n)}}function Pi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Fi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Fi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Fi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?$r({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Fi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Vi(i);switch(a.kind){case 0:Pi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Pi(t,n);break;case 2:Ni(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Ni(a.ruleName,i,n):Pi(i,n)}else a.kind===4?n.add(new ki(a.scopeName,a.ruleName)):n.add(new Oi(a.scopeName))}}}var Ii=class{kind=0},Li=class{kind=1},Ri=class{constructor(e){this.ruleName=e}kind=2},zi=class{constructor(e){this.scopeName=e}kind=3},Bi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Vi(e){if(e===`$base`)return new Ii;if(e===`$self`)return new Li;let t=e.indexOf(`#`);return t===-1?new zi(e):t===0?new Ri(e.substring(1)):new Bi(e.substring(0,t),e.substring(t+1))}var Hi=/\\(\d+)/,Ui=/\\(\d+)/g,Wi=-1,Gi=-2;function Ki(e){return e}function qi(e){return e}var Ji=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ni.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ni.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ei(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ni.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ni.replaceCaptures(this._contentName,e,t)}},Yi=class extends Ji{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Xi=class extends Ji{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new ta(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zi=class extends Ji{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qi=class extends Ji{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new ta(i,this.id),this.beginCaptures=a,this._end=new ta(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new na;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},$i=class extends Ji{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new ta(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new ta(o,Gi),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new na;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new na,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},ea=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Yi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=$r({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Zi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new $i(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Qi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Vi(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Zi||e instanceof Qi||e instanceof $i)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ta=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Hi.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Ui.lastIndex=0,this.source.replace(Ui,(e,t)=>oi(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},na=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(),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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ra(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ra(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ra=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_DzpYKOzH.js","assets/_D1Afnic6.js","assets/_Cu0WPCj9.js","assets/__zPR3Dpa.js","assets/_DFPocFhS.js","assets/_C8lieIZB.js","assets/_4GJMNsv4.js","assets/_Dmn7KvTE.js","assets/_DpEJfD8W.js","assets/_BqxrALbh.js","assets/_BqUINdPe.js","assets/_BDS5kYg4.js","assets/_BXeXVLqQ.js","assets/_DmIpsL-v.js","assets/_DNRNqFO-.js","assets/_ChlwWXA5.js","assets/_rwCcbF5m.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_DWVZHVfq.js","assets/_Ca5qImSb.js","assets/_C8PIx6SL.js","assets/_CmwSGQjl.js","assets/_B5kg6NYP.js","assets/_DerM5rKO.js","assets/_DCMWV2lL.js","assets/_BsjVSRX3.js","assets/_B4yscAvB.js","assets/_G6yx-5F_.js","assets/_BFxqBz-a.js","assets/_Bh8d3q9W.js","assets/_B86gs7C3.js","assets/_DWtesxY7.js","assets/_C2BiVAWr.js","assets/_DytZTnjf.js","assets/_BSjsLQB7.js","assets/_AgZ6fwZq.js","assets/_BhjrHp1V.js","assets/_BaHq4SXp.js","assets/_BYOwaDjH.js","assets/_CQJs3lWb.js","assets/_CYNrtFtB.js","assets/_DmIc4jLQ.js","assets/_DbYA3moe.js","assets/_CBce3t8t.js","assets/_DYvRD3hg.js","assets/_Dl-2e7rI.js","assets/_woXpYk--.js","assets/_C9JitXRn.js","assets/_DDylW_9G.js","assets/_Fuvar22f.js","assets/_BB9KpnlE.js","assets/_OQH9rzqd.js","assets/_DoTnLaS9.js","assets/_jHTblqKs.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_CmsGzoBi.js","assets/_BBsAxu9Z.js","assets/_Cl3N1qkY.js","assets/_CbHgnA8y.js","assets/_C4IwaeIB.js","assets/_DxfH40fY.js","assets/_CvMERElY.js","assets/_Dj-MpYcH.js","assets/_GMK4EeUY.js","assets/_DoNpdWPq.js","assets/_DVTAwKKz.js","assets/_BTHfufta.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_DLZwG45y.js","assets/_DI2YqTNw.js","assets/_Dzv87S60.js","assets/_DqKBuwfJ.js","assets/_oqKa8noW.js","assets/_CnvKMtbv.js","assets/_IyjqRm3v.js","assets/_rLFTqkRN.js","assets/_CacY0gHj.js","assets/_B5eOa1yu.js","assets/_Dixweg8N.js","assets/_D1A_Heim.js","assets/_O90oeIOV.js","assets/_Cxh2MY7r.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_CLm_fpHQ.js","assets/_CP08pgD4.js","assets/_K12WbC-s.js","assets/_DlArFX6J.js","assets/_BsUv5WXQ.js","assets/_Bj61d0ZC.js","assets/_Dtt6AK9K.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_BL5gx_Ij.js","assets/_Bovxr109.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_Bk2Qreny.js","assets/_DOD4U7iq.js","assets/_CCYxz-3V.js","assets/_BQtPa-Hw.js","assets/_BxddvmCO.js","assets/_DCMU4Rty.js","assets/_Uk4sVQNA.js","assets/_qdxAdBWQ.js","assets/_Ci_nEsc7.js","assets/_CYpm1nAK.js","assets/_BNLmms1o.js","assets/_CCSX75yM.js","assets/_CyEgAFGc.js","assets/_Dh5ihWbf.js","assets/_B2gwz-sJ.js","assets/_2JnEXkbm.js","assets/_CN2GygM2.js","assets/_BNymGXlT.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Bt as e,Et as t,G as n,I as r,K as i,L as a,Nt as o,P as s,Pt as c,W as l,X as u,Y as d,jt as f,q as p,z as m,zt as h}from"./_CkAmWvsv.js";import{B as g,D as _,F as v,G as y,H as b,I as x,K as S,L as C,O as w,P as T,R as E,U as D,V as O,W as k,Y as A,_ as ee,a as j,b as M,i as N,j as te,l as ne,n as re,q as ie,r as ae,t as P,u as oe,v as F,x as se,y as I,z as ce}from"./_ahCaQNeo.js";import{$t as le,A as ue,Bn as de,C as fe,Ct as pe,D as me,E as he,F as ge,Gn as _e,J as ve,O as ye,Qt as be,S as xe,T as Se,U as Ce,Un as we,Vn as L,W as Te,a as Ee,i as De,j as Oe,jt as ke,k as Ae,n as je,nn as Me,qn as Ne,r as Pe,rt as Fe,t as Ie,vn as Le,w as Re}from"./_DcNYJqCG.js";import{t as ze}from"./_BloLwEd3.js";import{A as Be,B as Ve,D as He,E as Ue,F as We,I as Ge,M as Ke,N as qe,O as Je,P as Ye,R as Xe,S as Ze,V as Qe,a as $e,ct as et,et as tt,i as nt,it as rt,j as it,k as at,n as ot,ot as R,r as z,rt as st,t as ct}from"./_nXlEcAWp.js";import{B as lt,C as ut,D as dt,E as ft,J as pt,O as mt,R as ht,S as gt,T as _t,V as vt,W as yt,a as bt,c as xt,i as St,k as Ct,l as wt,n as Tt,o as Et,r as Dt,s as Ot,t as kt,u as At,w as jt,x as Mt}from"./_C6hxY8pd.js";import{t as Nt}from"./_D2pdXUO3.js";import{a as Pt,c as Ft,d as It,f as Lt,i as Rt,l as zt,n as Bt,o as Vt,p as Ht,r as Ut,s as Wt,t as Gt,u as Kt}from"./_DaZsKIgS.js";import{t as qt}from"./_CcFCI5Av.js";import{_ as Jt,c as Yt,d as Xt,f as Zt,g as Qt,l as $t,m as en,p as tn,s as nn,u as rn,v as an,y as on}from"./_CtOtltZf.js";import{a as sn,c as cn,i as ln,n as un,r as dn,t as fn}from"./_CXK9wMHQ.js";import{a as pn,i as mn,n as hn,r as gn,t as _n}from"./_DEuN6z1D.js";var vn=Object.create,yn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyNames,Sn=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,wn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Tn=(e,t)=>{let n={};for(var r in e)yn(n,r,{get:e[r],enumerable:!0});return t||yn(n,Symbol.toStringTag,{value:`Module`}),n},En=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=xn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Cn.call(e,s)&&s!==n&&yn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=bn(t,s))||r.enumerable});return e},Dn=(e,t,n)=>(n=e==null?{}:vn(Sn(e)),En(t||!e||!e.__esModule||!Cn.call(e,`default`)?yn(n,`default`,{value:e,enumerable:!0}):n,e)),On=`diffs-container`,kn=(()=>{try{return!1}catch{return!1}})(),An=/(?=^From [a-f0-9]+ .+$)/m,jn=/(?=^diff --git)/gm,Mn=/(?<=\n)/,Nn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Pn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Fn=`header-prefix`,In=`header-filename-suffix`,Ln=`header-metadata`,Rn=`header-custom`,zn={dark:`pierre-dark`,light:`pierre-light`},Bn=`data-theme-css`,Vn=`data-unsafe-css`,Hn=`data-diffs-scrollbar-measure`,Un=`data-diffs-code-view-header`,Wn=`data-diffs-code-view-footer`,Gn=`--diffs-scrollbar-gutter-measured`,Kn=1e5,qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Jn={...qn,hunkLineCount:1},Yn={paddingTop:8,paddingBottom:8,gap:8},Xn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},Zn=Object.freeze({fromStart:0,fromEnd:0}),Qn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},$n={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},er=new Map,tr=new Map,nr=new Map,rr=new Set;function ir(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!rr.has(t))return!1;return!0}function ar(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(rr.has(n.name))continue;let e=er.get(n.name);e??(e=n,er.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}rr.add(e.name)}}function or(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var sr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,ur=Object.prototype.hasOwnProperty,dr=(e,t)=>{let n={};for(var r in e)sr(n,r,{get:e[r],enumerable:!0});return t||sr(n,Symbol.toStringTag,{value:`Module`}),n},fr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=lr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ur.call(e,s)&&s!==n&&sr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=cr(t,s))||r.enumerable});return e},pr=(e,t,n)=>(fr(e,t,`default`),n&&fr(n,t,`default`)),mr=[{id:`abap`,name:`ABAP`,import:(()=>P(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>P(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>P(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>P(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>P(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>P(()=>import(`./_DzpYKOzH.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>P(()=>import(`./_DFPocFhS.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>P(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>P(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>P(()=>import(`./_4GJMNsv4.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>P(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>P(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>P(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>P(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>P(()=>import(`./_BqUINdPe.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>P(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>P(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>P(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>P(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>P(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>P(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>P(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>P(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>P(()=>import(`./_DNRNqFO-.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>P(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>P(()=>import(`./_Ca5qImSb.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>P(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>P(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>P(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>P(()=>import(`./_DWVZHVfq.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>P(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>P(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>P(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>P(()=>import(`./_C8PIx6SL.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>P(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>P(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>P(()=>import(`./_CmwSGQjl.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>P(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>P(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>P(()=>import(`./_B5kg6NYP.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>P(()=>import(`./_BsjVSRX3.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>P(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>P(()=>import(`./__zPR3Dpa.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>P(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>P(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>P(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>P(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>P(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>P(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>P(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>P(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>P(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>P(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>P(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>P(()=>import(`./_G6yx-5F_.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>P(()=>import(`./_BFxqBz-a.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>P(()=>import(`./_Bh8d3q9W.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>P(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>P(()=>import(`./_B86gs7C3.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>P(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>P(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>P(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>P(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>P(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>P(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>P(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>P(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>P(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>P(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>P(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>P(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>P(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>P(()=>import(`./_C9JitXRn.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>P(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>P(()=>import(`./_DDylW_9G.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>P(()=>import(`./_Fuvar22f.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>P(()=>import(`./_DCMWV2lL.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>P(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>P(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>P(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>P(()=>import(`./_DytZTnjf.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>P(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>P(()=>import(`./_BB9KpnlE.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>P(()=>import(`./_C2BiVAWr.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>P(()=>import(`./_OQH9rzqd.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>P(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>P(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>P(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>P(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>P(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>P(()=>import(`./_D1Afnic6.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>P(()=>import(`./_ChlwWXA5.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>P(()=>import(`./_DoTnLaS9.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>P(()=>import(`./_jHTblqKs.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>P(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>P(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>P(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>P(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>P(()=>import(`./_DpEJfD8W.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>P(()=>import(`./_Cu0WPCj9.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>P(()=>import(`./_CmsGzoBi.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>P(()=>import(`./_BBsAxu9Z.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>P(()=>import(`./_BqxrALbh.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>P(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>P(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>P(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>P(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>P(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>P(()=>import(`./_BSjsLQB7.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>P(()=>import(`./_Cl3N1qkY.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>P(()=>import(`./_C4IwaeIB.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>P(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>P(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>P(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>P(()=>import(`./_CvMERElY.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>P(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>P(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>P(()=>import(`./_GMK4EeUY.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>P(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>P(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>P(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>P(()=>import(`./_AgZ6fwZq.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>P(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>P(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>P(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>P(()=>import(`./_DoNpdWPq.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>P(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>P(()=>import(`./_BTHfufta.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>P(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>P(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>P(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>P(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>P(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>P(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>P(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>P(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>P(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>P(()=>import(`./_DLZwG45y.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>P(()=>import(`./_DI2YqTNw.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>P(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>P(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>P(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>P(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>P(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>P(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>P(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>P(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>P(()=>import(`./_Dzv87S60.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>P(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>P(()=>import(`./_DxfH40fY.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>P(()=>import(`./_Cxh2MY7r.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>P(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>P(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>P(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>P(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>P(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>P(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>P(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>P(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>P(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>P(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>P(()=>import(`./_CP08pgD4.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>P(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>P(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>P(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>P(()=>import(`./_K12WbC-s.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>P(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>P(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>P(()=>import(`./_CbHgnA8y.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>P(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>P(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>P(()=>import(`./_DlArFX6J.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>P(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>P(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>P(()=>import(`./_DerM5rKO.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>P(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>P(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>P(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>P(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>P(()=>import(`./_BsUv5WXQ.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>P(()=>import(`./_DWtesxY7.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>P(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>P(()=>import(`./_Dtt6AK9K.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>P(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>P(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>P(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>P(()=>import(`./_C8lieIZB.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>P(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>P(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>P(()=>import(`./_B4yscAvB.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>P(()=>import(`./_BL5gx_Ij.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>P(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>P(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>P(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>P(()=>import(`./_Bovxr109.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>P(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>P(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>P(()=>import(`./_rwCcbF5m.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>P(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>P(()=>import(`./_Bk2Qreny.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>P(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>P(()=>import(`./_DOD4U7iq.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>P(()=>import(`./_CCYxz-3V.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>P(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>P(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>P(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>P(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>P(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>P(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>P(()=>import(`./_BQtPa-Hw.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>P(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>P(()=>import(`./_Dj-MpYcH.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>P(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>P(()=>import(`./_BxddvmCO.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>P(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>P(()=>import(`./_DmIpsL-v.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>P(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>P(()=>import(`./_DCMU4Rty.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>P(()=>import(`./_BDS5kYg4.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>P(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>P(()=>import(`./_Uk4sVQNA.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>P(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>P(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>P(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>P(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>P(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>P(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>P(()=>import(`./_2JnEXkbm.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>P(()=>import(`./_CN2GygM2.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>P(()=>import(`./_BNymGXlT.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>P(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>P(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>P(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>P(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>P(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>P(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>P(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>P(()=>import(`./_Dmn7KvTE.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>P(()=>import(`./_CLm_fpHQ.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>P(()=>import(`./_BhjrHp1V.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>P(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>P(()=>import(`./_CMLA9XwU.js`),[]))}],hr=Object.fromEntries(mr.map(e=>[e.id,e.import])),gr=Object.fromEntries(mr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),_r={...hr,...gr},vr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>P(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>P(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>P(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>P(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>P(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>P(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>P(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>P(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>P(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>P(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>P(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>P(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>P(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>P(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>P(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>P(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>P(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>P(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>P(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>P(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>P(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>P(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>P(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>P(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>P(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>P(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>P(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>P(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>P(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>P(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>P(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>P(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>P(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>P(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>P(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>P(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>P(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>P(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>P(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>P(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>P(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>P(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>P(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>P(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>P(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>P(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>P(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>P(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>P(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>P(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>P(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>P(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>P(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>P(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>P(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>P(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>P(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>P(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>P(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>P(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>P(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>P(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>P(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>P(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>P(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),yr=Tn({createOnigurumaEngine:()=>qr,getDefaultWasmLoader:()=>Kr,loadWasm:()=>Br,setDefaultWasmLoader:()=>Gr}),br=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xr(){return 2147483648}function Sr(){return typeof performance<`u`?performance.now():Date.now()}var Cr=(e,t)=>e+(t-e%t)%t;async function wr(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=xr();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Cr(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Sr,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Tr=Object.defineProperty,Er=(e,t,n)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dr=(e,t,n)=>Er(e,typeof t==`symbol`?t:t+``,n),Or=null;function kr(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}var Ar=class e{constructor(t){Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16Value`),Dr(this,`utf8Value`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},jr=class e{constructor(t){if(Dr(this,`id`,++e.LAST_ID),Dr(this,`_onigBinding`),Dr(this,`content`),Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`),Dr(this,`ptr`),!Or)throw new br(`Must invoke loadWasm first.`);this._onigBinding=Or,this.content=t;let n=new Ar(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Or.omalloc(1e4),e._sharedPtrInUse=!0,Or.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Or)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Dr(jr,`LAST_ID`,0),Dr(jr,`_sharedPtr`,0),Dr(jr,`_sharedPtrInUse`,!1);var Mr=jr,Nr=class{constructor(e){if(Dr(this,`_onigBinding`),Dr(this,`_ptr`),!Or)throw new br(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Ar(e[r]);t[r]=i.createString(Or),n[r]=i.utf8Length}let r=Or.omalloc(4*e.length);Or.HEAPU32.set(t,r/4);let i=Or.omalloc(4*e.length);Or.HEAPU32.set(n,i/4);let a=Or.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Or.ofree(t[n]);Or.ofree(i),Or.ofree(r),a===0&&kr(Or),this._onigBinding=Or,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Mr(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Pr(e){return typeof e.instantiator==`function`}function Fr(e){return typeof e.default==`function`}function Ir(e){return e.data!==void 0}function Lr(e){return typeof Response<`u`&&e instanceof Response}function Rr(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}var zr;function Br(e){if(zr)return zr;async function t(){Or=await wr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Pr(n)?n=await n.instantiator(t):Fr(n)?n=await n.default(t):(Ir(n)&&(n=n.data),Lr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Hr(n)(t):await Ur(n)(t):Rr(n)||n instanceof WebAssembly.Module?n=await Vr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Vr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return zr=t(),zr}function Vr(e){return t=>WebAssembly.instantiate(e,t)}function Hr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ur(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Wr;function Gr(e){Wr=e}function Kr(){return Wr}async function qr(e){return e&&await Br(e),{createScanner(e){return new Nr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Mr(e)}}}var Jr=dr({});pr(Jr,yr);var B=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Yr(e){return Xr(e)}function Xr(e){return Array.isArray(e)?Zr(e):e instanceof RegExp?e:typeof e==`object`?Qr(e):e}function Zr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Xr(e[n]);return t}function Qr(e){let t={};for(let n in e)t[n]=Xr(e[n]);return t}function $r(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ei(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ei(e.substring(0,e.length-1)):e.substr(~t+1)}var ti=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ni=class{static hasCaptures(e){return e!==null&&(ti.lastIndex=0,ti.test(e))}static replaceCaptures(e,t,n){return e.replace(ti,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ri(e,t){return e<t?-1:+(e>t)}function ii(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 r=0;r<n;r++){let n=ri(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function ai(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 oi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var si=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pi(e),t)}static createFromParsedTheme(e,t){return gi(e,t)}_cachedMatchRoot=new si(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>ui(e.parent,t.parentScopes));return n?new fi(n.fontStyle,n.foreground,n.background):null}},li=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function ui(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!di(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function di(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var fi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pi(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&ai(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&ai(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new mi(l,u,e,o,s,c)}}return n}var mi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},hi=(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))(hi||{});function gi(e,t){e.sort((e,t)=>{let n=ri(e.scope,t.scope);return n!==0||(n=ii(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new _i(t),o=new fi(n,a.getId(r),a.getId(i)),s=new bi(new yi(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new ci(a,o,s)}var _i=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},vi=Object.freeze([]),yi=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||vi,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},bi=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),yi.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(ii(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new yi(e,t,n,r,i))}},xi=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Ci(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Si(e){return e}function Ci(e){return e}function wi(e,t){let n=[],r=Ei(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Ti(i)){let e=[];do e.push(i),i=r.next();while(Ti(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Ti(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ei(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Di(e){typeof e.dispose==`function`&&e.dispose()}var Oi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ai=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ji=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ai;for(let n of e)Mi(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Oi){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Mi(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Oi?Pi({baseGrammar:a,selfGrammar:i},r):Ni(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Oi(e))}function Ni(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Fi([r],t,n)}}function Pi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Fi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Fi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Fi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?$r({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Fi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Vi(i);switch(a.kind){case 0:Pi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Pi(t,n);break;case 2:Ni(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Ni(a.ruleName,i,n):Pi(i,n)}else a.kind===4?n.add(new ki(a.scopeName,a.ruleName)):n.add(new Oi(a.scopeName))}}}var Ii=class{kind=0},Li=class{kind=1},Ri=class{constructor(e){this.ruleName=e}kind=2},zi=class{constructor(e){this.scopeName=e}kind=3},Bi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Vi(e){if(e===`$base`)return new Ii;if(e===`$self`)return new Li;let t=e.indexOf(`#`);return t===-1?new zi(e):t===0?new Ri(e.substring(1)):new Bi(e.substring(0,t),e.substring(t+1))}var Hi=/\\(\d+)/,Ui=/\\(\d+)/g,Wi=-1,Gi=-2;function Ki(e){return e}function qi(e){return e}var Ji=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ni.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ni.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ei(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ni.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ni.replaceCaptures(this._contentName,e,t)}},Yi=class extends Ji{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Xi=class extends Ji{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new ta(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zi=class extends Ji{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qi=class extends Ji{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new ta(i,this.id),this.beginCaptures=a,this._end=new ta(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new na;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},$i=class extends Ji{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new ta(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new ta(o,Gi),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new na;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new na,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},ea=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Yi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=$r({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Zi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new $i(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Qi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Vi(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Zi||e instanceof Qi||e instanceof $i)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ta=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Hi.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Ui.lastIndex=0,this.source.replace(Ui,(e,t)=>oi(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},na=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(),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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ra(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ra(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ra=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
3
3
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ia=class{constructor(e,t){this.languageId=e,this.tokenType=t}},aa=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ia(e,8),this._embeddedLanguagesMatcher=new oa(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ia(0,0);_getBasicScopeAttributes=new si(e=>new ia(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},oa=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>oi(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var sa=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ca(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=la(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new sa(i,!0);f()}return new sa(i,!1);function f(){let o=ua(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Wi){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),ha(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Qi){let r=o;ha(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof $i){let r=o;ha(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(ha(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function la(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof $i&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=ma(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Gi){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),ha(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function ua(e,t,n,r,i,a){let o=da(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=fa(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function da(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=pa(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function fa(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=pa(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function pa(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ma(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function ha(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));ca(e,p,n&&d.start===0,d.start,f,i,!1,0),Di(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new ga(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var ga=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function _a(e,t,n,r,i,a,o,s){return new xa(e,t,n,r,i,a,o,s)}function va(e,t,n,r,i){let a=wi(t,ya),o=ea.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function ya(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(ba(t[r],e))return n=r+1,!0;return!1})}function ba(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var xa=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new aa(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Sa(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=wi(e,ya);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)va(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&va(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Ki(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[qi(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Sa(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=ea.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===wa.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=xi.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Ca.createRootAndLookUpScopeName(a,r,this):Ca.createRoot(`unknown`,r),t=new wa(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
4
4
|
`;let a=this.createOnigString(e),o=a.content.length,s=new Ea(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ca(this,a,i,0,t,s,!0,r);return Di(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Sa(e,t){return e=Yr(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 Ca=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=li.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new li(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new li(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),xi.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},wa=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Ca.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:qi(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){let r=Ca.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Ki(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ca.fromExtension(r,n.contentNameScopesList))}},Ta=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):wi(e,ya).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>wi(e,ya).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Ea=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=xi.set(n,0,Si(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=xi.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},Da=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,_a(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Oa=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Da(ci.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ci.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Ta(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new ji(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ka=wa.NULL;function Aa(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function ja(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ma(e){return Array.isArray(e)?e:[e]}async function Na(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Pa(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Fa(e){return e===`ansi`||Pa(e)}function Ia(e){return e===`none`}function La(e){return Ia(e)}var Ra=/(\r?\n)/g;function za(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(Ra),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Ba={light:`#333333`,dark:`#bbbbbb`},Va={light:`#fffffe`,dark:`#1e1e1e`},Ha=`__shiki_resolved`;function Ua(e){if(e?.[Ha])return e;let 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){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Ba.light:Ba.dark,n||=t.type===`light`?Va.light:Va.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 i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Ha,{enumerable:!1,writable:!1,value:!0}),t}async function Wa(e){return[...new Set((await Promise.all(e.filter(e=>!Fa(e)).map(async e=>await Na(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Ga(e){return(await Promise.all(e.map(async e=>La(e)?null:Ua(await Na(e))))).filter(e=>!!e)}function Ka(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new B(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var qa=class extends Oa{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ua(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ci.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Ka(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new B(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Ja=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Ya=0;function Xa(e){Ya+=1,e.warnings!==!1&&Ya>=10&&Ya%10==0&&console.warn(`[Shiki] ${Ya} 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 B("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Ua),i=new qa(new Ja(e.engine,n),r,n,e.langAlias),a;function o(t){return Ka(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new B(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new B(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Wa(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Ga(e))}function g(){if(t)throw new B(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Ya)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Za(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Ga(e.themes||[]),Wa(e.langs||[]),e.engine]);return Xa({...e,themes:t,langs:n,engine:r})}var Qa=new WeakMap;function $a(e,t){Qa.set(e,t)}function eo(e){return Qa.get(e)}var to=class e{_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 e(Object.fromEntries(Ma(n).map(e=>[e,ka])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return no(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function no(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function ro(e,t){if(!(e instanceof to))throw new B(`Invalid grammar state`);return e.getInternalStack(t)}var io=/,/,ao=/ /;function oo(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Pa(e.resolveLangAlias(n.lang||`text`))||Ia(r))return za(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new B(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new B(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return co(t,o,i,a,n)}function so(...e){if(e.length===2)return eo(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Pa(i)||Ia(a))throw new B(`Plain language does not have grammar state`);if(i===`ansi`)throw new B(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new to(lo(n,c,o,s,r).stateStack,c.name,o.name)}function co(e,t,n,r,i){let a=lo(e,t,n,r,i),o=new to(a.stateStack,t.name,n.name);return $a(a.tokens,o),a.tokens}function lo(e,t,n,r,i){let a=Aa(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=za(e),u=i.grammarState?ro(i.grammarState,n.name)??ka:i.grammarContextCode==null?ka:lo(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=ja(r[xi.getForeground(s)],a),u=xi.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=xi.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(io).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(ao))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?uo(t.scopes):fo(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function uo(e){return e.map(e=>({scopeName:e}))}function fo(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:ho(e,i,t.slice(0,r))}}return n}function po(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function mo(e,t,n){if(!po(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)po(e[r],n[i])&&--r,--i;return r===-1}function ho(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(mo(e,t,n)){r.push(a);break}return r}function go(e,t,n,r=oo){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:eo(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=_o(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new to(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&$a(s,c),s}function _o(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var vo=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],yo=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};yo.prototype.normal={},yo.prototype.property={},yo.prototype.space=void 0;function bo(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new yo(n,r,t)}function xo(e){return e.toLowerCase()}var So=class{constructor(e,t){this.attribute=t,this.property=e}};So.prototype.attribute=``,So.prototype.booleanish=!1,So.prototype.boolean=!1,So.prototype.commaOrSpaceSeparated=!1,So.prototype.commaSeparated=!1,So.prototype.defined=!1,So.prototype.mustUseProperty=!1,So.prototype.number=!1,So.prototype.overloadedBoolean=!1,So.prototype.property=``,So.prototype.spaceSeparated=!1,So.prototype.space=void 0;var Co=Tn({boolean:()=>V,booleanish:()=>To,commaOrSpaceSeparated:()=>Oo,commaSeparated:()=>Do,number:()=>H,overloadedBoolean:()=>Eo,spaceSeparated:()=>U}),wo=0,V=ko(),To=ko(),Eo=ko(),H=ko(),U=ko(),Do=ko(),Oo=ko();function ko(){return 2**++wo}var Ao=Object.keys(Co),jo=class extends So{constructor(e,t,n,r){let i=-1;if(super(e,t),Mo(this,`space`,r),typeof n==`number`)for(;++i<Ao.length;){let e=Ao[i];Mo(this,Ao[i],(n&Co[e])===Co[e])}}};jo.prototype.defined=!0;function Mo(e,t,n){n&&(e[t]=n)}function No(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new jo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[xo(r)]=r,n[xo(a.attribute)]=r}return new yo(t,n,e.space)}var Po=No({properties:{ariaActiveDescendant:null,ariaAtomic:To,ariaAutoComplete:null,ariaBusy:To,ariaChecked:To,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:To,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:To,ariaFlowTo:U,ariaGrabbed:To,ariaHasPopup:null,ariaHidden:To,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:H,ariaLive:null,ariaModal:To,ariaMultiLine:To,ariaMultiSelectable:To,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:To,ariaReadOnly:To,ariaRelevant:null,ariaRequired:To,ariaRoleDescription:U,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:To,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Fo(e,t){return t in e?e[t]:t}function Io(e,t){return Fo(e,t.toLowerCase())}var Lo=No({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Do,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alpha:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:U,autoFocus:V,autoPlay:V,blocking:U,capture:null,charSet:null,checked:V,cite:null,className:U,closedBy:null,colorSpace:null,cols:H,colSpan:H,command:null,commandFor:null,content:null,contentEditable:To,controls:V,controlsList:U,coords:H|Do,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:Eo,draggable:To,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:U,height:H,hidden:Eo,high:H,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:U,itemRef:U,itemScope:V,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:H,pattern:null,ping:U,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:U,required:V,reversed:V,rows:H,rowSpan:H,sandbox:U,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootCustomElementRegistry:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shadowRootSerializable:V,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:To,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:To,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:To,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:V,disablePictureInPicture:V,disableRemotePlayback:V,exportParts:Do,part:U,prefix:null,property:null,results:H,security:null,unselectable:null},space:`html`,transform:Io}),Ro=No({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`,maskType:`mask-type`,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:Oo,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:U,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:Do,g2:Do,glyphName:Do,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Oo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oo,rev:Oo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oo,requiredFeatures:Oo,requiredFonts:Oo,requiredFormats:Oo,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Oo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oo,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Fo}),zo=No({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()}}),Bo=No({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Io}),Vo=No({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ho=/[A-Z]/g,Uo=/-[a-z]/g,Wo=/^data[-\w.:]+$/i;function Go(e,t){let n=xo(t),r=t,i=So;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Wo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Uo,qo);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Uo.test(e)){let n=e.replace(Ho,Ko);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=jo}return new i(r,t)}function Ko(e){return`-`+e.toLowerCase()}function qo(e){return e.charAt(1).toUpperCase()}var Jo=bo([Po,Lo,zo,Bo,Vo],`html`),Yo=bo([Po,Ro,zo,Bo,Vo],`svg`),Xo={}.hasOwnProperty;function Zo(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Xo.call(t,e)){let n=String(t[e]);i=Xo.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Qo=/["&'<>`]/g,$o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,es=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ts=/[|\\{}()[\]^$+*?.]/g,ns=new WeakMap;function rs(e,t){return e=e.replace(t.subset?is(t.subset):Qo,r),t.subset||t.escapeOnly?e:e.replace($o,n).replace(es,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function is(e){let t=ns.get(e);return t||(t=as(e),ns.set(e,t)),t}function as(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(ts,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var os=/[\dA-Fa-f]/;function ss(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!os.test(String.fromCharCode(t))?r:r+`;`}var cs=/\d/;function ls(e,t,n){let r=`&#`+String(e);return n&&t&&!cs.test(String.fromCharCode(t))?r:r+`;`}var us=`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`.split(`.`),ds={nbsp:`\xA0`,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:`€`},fs=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ps={}.hasOwnProperty,ms={},hs;for(hs in ds)ps.call(ds,hs)&&(ms[ds[hs]]=hs);var gs=/[^\dA-Za-z]/;function _s(e,t,n,r){let i=String.fromCharCode(e);if(ps.call(ms,i)){let e=ms[i],a=`&`+e;return n&&us.includes(e)&&!fs.includes(e)&&(!r||t&&t!==61&&gs.test(String.fromCharCode(t)))?a:a+`;`}return``}function vs(e,t,n){let r=ss(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=_s(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=ls(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function ys(e,t){return rs(e,Object.assign({format:vs},t))}var bs=/^>|^->|<!--|-->|--!>|<!-$/g,xs=[`>`],Ss=[`<`,`>`];function Cs(e,t,n,r){return r.settings.bogusComments?`<?`+ys(e.value,Object.assign({},r.settings.characterReferences,{subset:xs}))+`>`:`<!--`+e.value.replace(bs,i)+`-->`;function i(e){return ys(e,Object.assign({},r.settings.characterReferences,{subset:Ss}))}}function ws(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Ts(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Es(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Ds(e){return e.join(` `).trim()}var Os=/[ \t\n\f\r]/g;function ks(e){return typeof e==`object`?e.type===`text`&&As(e.value):As(e)}function As(e){return e.replace(Os,``)===``}var js=Ps(1),Ms=Ps(-1),Ns=[];function Ps(e){return t;function t(t,n,r){let i=t?t.children:Ns,a=(n||0)+e,o=i[a];if(!r)for(;o&&ks(o);)a+=e,o=i[a];return o}}var Fs={}.hasOwnProperty;function Is(e){return t;function t(t,n,r){return Fs.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Ls=Is({body:Bs,caption:Rs,colgroup:Rs,dd:Ws,dt:Us,head:Rs,html:zs,li:Hs,optgroup:Ks,option:qs,p:Vs,rp:Gs,rt:Gs,tbody:Ys,td:Qs,tfoot:Xs,th:Qs,thead:Js,tr:Zs});function Rs(e,t,n){let r=js(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&ks(r.value.charAt(0)))}function zs(e,t,n){let r=js(n,t);return!r||r.type!==`comment`}function Bs(e,t,n){let r=js(n,t);return!r||r.type!==`comment`}function Vs(e,t,n){let r=js(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 Hs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Us(e,t,n){let r=js(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function Ws(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Gs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function Ks(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function qs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Js(e,t,n){let r=js(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function Ys(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Xs(e,t,n){return!js(n,t)}function Zs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Qs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var $s=Is({body:nc,colgroup:rc,head:tc,html:ec,tbody:ic});function ec(e){let t=js(e,-1);return!t||t.type!==`comment`}function tc(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function nc(e){let t=js(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&ks(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function rc(e,t,n){let r=Ms(n,t),i=js(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Ls(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function ic(e,t,n){let r=Ms(n,t),i=js(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Ls(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var ac={name:[[`
|
|
5
5
|
\f\r &/=>`.split(``),`
|
|
@@ -320,10 +320,10 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
320
320
|
`),a=Math.max(1,t-MC),o=Math.min(i.length,n+MC),s=r===`deletions`?`-`:r===`file`?`>`:`+`,c=[];for(let e=a;e<=o;e++){let r=e>=t&&e<=n?s:` `;c.push(`${r}${String(e).padStart(4)} | ${i[e-1]??``}`)}return c.join(`
|
|
321
321
|
`)}function WC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function GC(e){return e.split(/[@#]/)[0]}function KC(e){return e.pr?.headRefName??e.headRef??e.branch}function qC(e,t){if(e.some(e=>e.id===t))return t;let n=t.indexOf(`@`);if(n<0)return t.includes(`#`)?null:e.find(e=>e.worktree===t&&e.pr?.headRefName===e.branch)?.id??null;let r=t.slice(0,n),i=t.slice(n+1);return e.find(e=>e.worktree===r&&(e.pr?.headRefName??e.headRef)===`${e.branch}-${i}`)?.id??null}function JC(e){return e.split(`
|
|
322
322
|
`).filter(e=>e[0]===`+`||e[0]===`-`||e[0]===`>`).map(e=>e.slice(1)).join(`
|
|
323
|
-
`)}function YC(e,t,n=!0){let r=t.getBoundingClientRect();if(!r.height)return;let i=e.getBoundingClientRect(),a=getComputedStyle(t),o=r.top-(parseFloat(a.scrollMarginTop)||0),s=r.bottom+(parseFloat(a.scrollMarginBottom)||0),c=0;o<i.top?c=o-i.top:s>i.bottom&&(c=s-i.bottom),c&&e.scrollTo({top:Math.max(0,e.scrollTop+c),behavior:n?`smooth`:`auto`})}function XC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`
|
|
324
|
-
`)}var $C=new WeakMap;function ew(e){$C.get(e)?.()}function tw(e,t,n,r){let i={el:nw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=nw(),a=()=>{};else{let l=iw(`Send`,``);l.dataset.role=`send`;let u=XC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=ZC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,rw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,rw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=aw(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function nw(){let e=document.createElement(`span`);return e.hidden=!0,e}function rw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function iw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function aw(e,t,n,r){if(!t){e.className=`_I ${r?f:``} _J`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${tt(t)}`),e}let i=document.createElement(`span`);return i.className=`_m2 ${r?`_mn`:``}`,e.className=`_J _m3`,e.textContent=`Send to`,i.append(e,t),i}function ow(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function sw(t,n,r){let i=document.createElement(`div`);i.className=`_mj`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_mm`;let s=null;$C.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_mk`,i.textContent=t.text;let c=iw(`Remove`,`_I ${f}`);c.onclick=()=>r.onDelete(t.id);let u=iw(`Edit`,`_I ${f}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let e=tw(n,!0,[c,u],e=>d(t.id,e));o.append(e.el),s=e.draw}if(r.drifted){let t=document.createElement(`span`);t.className=`_bp ${e.warn} _mo`,t.textContent=`changed since`,t.title=`These lines changed since the comment; the agent gets them as they were`,o.append(t)}a.append(i)},l=()=>{s=null,a.replaceChildren(),o.replaceChildren();let e=document.createElement(`textarea`);e.value=t.text,e.rows=3,e.className=`_bA _ml`;let n=iw(`Save`,`_I _J`),i=iw(`Cancel`,`_I`),l=()=>{let a=e.value.trim();if(!a||a===t.text){c();return}(async()=>{rw([n,i],!0);try{await r.onEdit?.(t.id,a),t.text=a,c()}catch{rw([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),ow(e,l,c),o.append(n,i),a.append(e),setTimeout(()=>{e.focus({preventScroll:!0}),e.setSelectionRange(e.value.length,e.value.length)},0)};return c(),i.append(a,o),i}function cw(e,t){let n=document.createElement(`div`);n.className=`_mj`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bA _ml`;let i=iw(`Add`,`_I`),a=iw(`Cancel`,`_I`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?tw(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&$C.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),ow(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_mm`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var lw=e=>`/api/workspaces/${e}/review`;async function uw(e){return(await we(lw(e))).comments||[]}function dw(e,t){return Ne(lw(e),{action:`comment`,...t})}function fw(e,t,n){return Ne(`${lw(e)}/${t}`,{text:n},`PATCH`)}async function pw(e,t){if(!t.some(e=>e.head))return null;try{return(await we(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function mw(e,t){t.length&&await Ne(lw(e),{action:`clear`,ids:t})}async function hw(e,t){t.length&&await Ne(lw(e),{action:`view`,marks:t})}async function gw(e,t){let n=L(t),r=await uw(e);return de(t,n)?r:null}function _w(e,t){L(e.seq),e.set(t)}async function vw(e,t){L(e.seq);try{let n=await dw(e.workspaceId,t),r=e.list();return r.some(e=>e.id===n.id)||e.set(r.concat(n)),!0}catch(t){return e.fail(`Add comment failed: ${_e(t)}`),!1}}async function yw(e,t){let n=e.list().find(e=>e.id===t);if(n){_w(e,e.list().filter(e=>e.id!==t));try{await mw(e.workspaceId,[t])}catch(r){let i=e.list();i.some(e=>e.id===t)||e.set([...i,n].sort((e,t)=>e.id-t.id)),e.fail(`Remove comment failed: ${_e(r)}`)}}}async function bw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){_w(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await fw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${_e(n)}`),n}}}async function xw(e,t,n,r){if(!t.length)return!0;try{let i=NC(t,e.sections());if(`clipboard`in n){if(!await ze(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await Ne(`/api/sessions/${n.session}/send`,{text:i,...Ze()||{}});e.handed(n);let a=new Set(r);return _w(e,e.list().filter(e=>!a.has(e.id))),r.length&&await mw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${_e(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${_e(t)}`),!1}}function Sw(e,t){let n=e.list();return xw(e,n,t,n.map(e=>e.id))}function Cw(e,t,n){let r=e.list().find(e=>e.id===t);return r?xw(e,[r],{session:n},[t]):Promise.resolve(!1)}function ww(e,t,n){return xw(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var Tw=`search-mark`,Ew=`mark.${Tw}`,Dw=`mark.${Tw}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${Tw} *,mark.${Tw} *::before,mark.${Tw} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${Tw}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Ow={query:``,hit:null,keys:null},kw=new Map,Aw=new WeakMap,jw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function Mw(e,t,n){Ow.query=e,Ow.hit=t,Ow.keys=n?new Set(n):null;for(let[e,t]of kw)Lw(e,t,!1);t&&Nw(t)}function Nw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of kw)if(i===e.key&&(n=!0,Iw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Nw(e,t+1),n?32:48)})})}function Pw(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function Fw(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function Iw(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>Vw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Fw(r,e);return a&&Pw(a,r),!0}function Lw(e,t,n=!0){let r=t&&Ow.hit?.key===t?Ow.hit:null,i=Ow.query.trim(),a=!!i&&!!Ow.keys&&!!t&&!Ow.keys.has(t),o=a?``:jw(i,r),s=Aw.get(e)!==o;(n||s)&&(Aw.set(e,o),qw(e,a?``:i,r),n||OC(e),r&&s&&Nw(r))}function Rw(e,t){return kw.set(e,t),Lw(e,t),()=>{kw.delete(e),Aw.delete(e)}}function zw(e){Lw(e,kw.get(e))}function Bw(e){let t=e.querySelectorAll(Ew);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function Vw(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function Hw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Ew)||n.push(e);return n}function Uw(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function Ww(e,t,n,r,i){let a=Uw(e,t,n),o=Uw(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function Gw(e,t,n,r){let i=Hw(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=Jw(e,r)?`${Tw} active`:Tw;for(let e=c.length-1;e>=0;e--)Ww(i,a,c[e][0],c[e][1],l)}var Kw=new WeakMap;function qw(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){Bw(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!Jw(t,n)}`:``,a=!!t.querySelector(Ew);i!==(a?Kw.get(t):``)&&(a&&Bw(t),Kw.set(t,i),r&&Gw(t,s,o,n))}}}function Jw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Vw(e)}function Yw(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(Zw(i,e?Xw:qt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function Xw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function Zw(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function Qw(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function $w(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function eT(e,t){let n=new Set(e),r=new Set(t),i=Qw(t),a=new Set([...Qw(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has($w(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has($w(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}function tT(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function nT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${tT(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${Nt(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${tT(e.edits)}`:null}function rT(e){return!!e.pr||!e.contained||!!e.edits}function iT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function aT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:Ge(Ve(i,t))?.group,compare:Xe({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}var oT=((e,t)=>`<h1> </h1><span><button type=button aria-label=Back>${e}</button><button type=button aria-label=Forward>${t}</button></span><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`)(wt,St),sT=((e,t)=>` D l D D/${e}&l D/${t}&m D b l`)(At,bt),cT=O(18,e=>N(e.d,`title`,e.r===null?`Back`:`Back to ${e.r}${ht(`goBack`,e.p)}`)),lT=O(20,e=>N(e.f,`title`,e.t===null?`Forward`:`Forward to ${e.t}${ht(`goForward`,e.p)}`)),uT=C(15,e=>{cT(e),lT(e)}),dT=C(16,e=>{mT(e,e.q?.back),hT(e,e.q?.forward)}),fT=k(`T0`,e=>{uT(e,vt()),yt(()=>{uT(e,vt())},re(e,0)),dT(e,R()),et(()=>{dT(e,R())},re(e,0)),g(e.d,`click`,function(){st()}),g(e.f,`click`,function(){rt()})});function pT(e){ae(e,0),j(e.a,`_7`),j(e.c,`_mu`),j(e.d,m),xt(e.e),Ot(e.e,14),Et(e.e),j(e.f,m),Dt(e.g),Tt(e.g,14),kt(e.g),j(e.h,[`_bR`,`_mt`]),uT(e,0),dT(e,{back:null,forward:null}),fT(e)}var mT=M(17,e=>{N(e.d,`disabled`,e.r===null),cT(e)}),hT=M(19,e=>{N(e.f,`disabled`,e.t===null),lT(e)}),gT=(e,t)=>{y(e.b,t===`files`?`Files`:`Review`),j(e.i,[`_bT`,t===`files`&&`_bS`]),N(e.i,`aria-current`,t===`files`?`page`:void 0),j(e.j,[`_bT`,t===`changes`&&`_bS`]),N(e.j,`aria-current`,t===`changes`?`page`:void 0)},_T=(e,t)=>N(e.i,`href`,t),vT=(e,t)=>N(e.j,`href`,t),yT=ue,bT=(e=>`/${e}&`)(Oe);function xT(e){ye(e.a,Fe)}var ST=(e,t)=>Ae(e.a,t),CT=(e,t)=>me(e.a,t),wT=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(yT),TT=(e=>` D/${e}& l`)(bT),ET=O(16,e=>ne(e,`c`,e.n,BT(e))),DT=M(13,ET),OT=M(14),kT=O(12,e=>{DT(e,(e.l??e.j)||``),OT(e,VT(e))}),AT=E(9,kT),jT=O(7,e=>AT(e,e.f,e.g)),MT=M(5,jT),NT=M(6,jT),PT=k(`v5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{FT(e,null),AT(e,t)},150);re(e,0).onabort=()=>clearTimeout(n)}}}),FT=C(11,e=>{ae(e,0),kT(e),PT(e)}),IT=M(15,ET),LT=k(`v4`,e=>{oe(e,`c`),g(e.c,`keydown`,function(t){t.key===`Enter`&&(e.o(),e.i&&(t.preventDefault(),e.i())),t.key===`Escape`&&(e.n?(t.preventDefault(),e.p(``)):e.i&&(t.preventDefault(),e.i()))}),g(e.c,`blur`,function(){e.l!==null&&e.o()})});function RT(e){j(e.a,[`_bC`,`_oT`]),xT(e.b),ST(e.b,14),CT(e.b,`_bD`),j(e.c,[`_bE`,r]),D(e,UT(e)),FT(e,null),IT(e,HT(e)),LT(e)}var zT=M(8),BT=e=>function(t){e.p(t)},VT=e=>()=>{let t=e.l??e.j??``;FT(e,null),AT(e,t)},HT=e=>t=>{if(!t){FT(e,null),AT(e,``);return}FT(e,t)},UT=e=>()=>{e.c.focus(),e.c.select()};b.v2=BT,b.v0=VT,b.v1=HT,b.v3=UT;var WT=`<!><!><!>`,GT=x(0,0,e=>y(e.c,nn(e._.d))),KT=e=>{GT._(e),qT._(e),j(e.a,`_oW`),j(e.b,`_oX`),j(e.d,`_oY`)},qT=x(0,0,e=>y(e.e,nn(e._.e))),JT=v(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,KT),YT=O(5,e=>JT(e,e.d||e.e?0:1)),XT=M(3,e=>{YT(e),GT(e)}),ZT=M(4,e=>{YT(e),qT(e)}),QT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(wT),$T=(e=>` D0${e}&%b D D l%b%m`)(TT),eE=k(`z4`,e=>g(e.a,`click`,function(){dE(e._,``),hE(e._,!1)})),tE=e=>{j(e.a,`_nM`),eE(e)},nE=x(7,0,e=>XT(e.a,e._.w)),rE=e=>{nE._(e),iE._(e)},iE=x(7,0,e=>ZT(e.a,e._.x??0)),aE=x(3,0,e=>y(e.e,nn(e._.r))),oE=k(`z3`,e=>g(e.f,`click`,function(){hE(e._,!e._.a0)})),sE=e=>{aE._(e),cE._(e),lE._(e),j(e.a,`_nH`),j(e.b,`_nI`),j(e.c,`_nJ`),j(e.f,`_bj`),oE(e)},cE=x(3,0,e=>y(e.d,nn(e._.v))),lE=x(3,0,e=>N(e.f,`aria-checked`,e._.a0?`true`:`false`)),uE=te(31),dE=E(24,e=>MT(e.b,e.y)),fE=O(13,e=>dE(e,e.l,e.m)),pE=M(11,fE),mE=M(12,fE),hE=E(26,lE),gE=O(16,e=>hE(e,e.o,e.p)),_E=M(14,gE),vE=M(15,gE),yE=v(8,`<button type=button>Clear</button>`,` `,tE),bE=(e,t)=>y(e.g,t),xE=O(29,e=>bE(e,`${e.a2>0?`${nn(e.s)} of `:``}${nn(e.r)} ${e.r===1?`file`:`files`}`),2),SE=M(28,e=>{yE(e,e.a2>0?0:1),xE(e)}),CE=O(19,e=>SE(e,e.r-e.s)),wE=M(17,e=>{CE(e),xE(e),aE(e)}),TE=M(18,e=>{CE(e),xE(e)});function EE(e){j(e.a,`_nG`),ie(e,1,DE),RT(e.b),NT(e.b,FE(e)),j(e.e,`_nK`),j(e.f,`_nL`),D(e,PE(e))}var DE=A(`z2`,M(31)),OE=(e,t)=>zT(e.b,t),kE=v(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,sE),AE=M(21,e=>{kE(e,+(e.v==null)),cE(e)}),jE=v(7,(e=>`<!>${e}<!>`)(WT),(e=>`b/${e}&b`)(`b%c`),rE),ME=M(22,e=>{jE(e,+(e.w==null)),nE(e)}),NE=M(23,iE),PE=e=>()=>uE(e)(),FE=e=>t=>{dE(e,t)};b.z1=PE,b.z0=FE;var IE=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(yT,QT),LE=((e,t)=>` D/${e}&%l D0${t}&l`)(bT,$T),RE=x(2,0,e=>y(e.b,e._.a0>99?`99+`:nn(e._.a0))),zE=e=>{RE._(e),j(e.a,`_nP`)},BE=te(30),VE=O(24,e=>j(e.a,[m,`_nN`,{_nO:!!e.u?.trim()||!!e.w}])),HE=E(20,e=>{pE(e.e,e.u),VE(e)}),UE=O(10,e=>HE(e,e.i,e.j)),WE=M(8,UE),GE=M(9,UE),KE=E(22,e=>{_E(e.e,e.w),VE(e)}),qE=O(13,e=>KE(e,e.l,e.m)),JE=M(11,qE),YE=M(12,qE),XE=(e,t)=>{N(e.a,`aria-controls`,t),N(e.d,`id`,t)},ZE=C(29),QE=k(`y4`,e=>{g(e.a,`pointerdown`,function(){ZE(e,e.d.matches(`:popover-open`))}),g(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(ZE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&pe()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Qe(t,e.a.getBoundingClientRect()),BE(e)()})});function $E(e){xT(e.b),ST(e.b,14),CT(e.b),j(e.d,a),ie(e,4,uD),EE(e.e),mE(e.e,mD(e)),vE(e.e,pD(e)),OE(e.e,fD(e)),XE(e,T(e)),ZE(e,!1),QE(e)}var eD=v(2,`<span aria-hidden=true> </span>`,` D `,zE),tD=(e,t)=>{N(e.a,`title`,`Filter files\n${t}`),N(e.a,`aria-label`,`Filter files: ${t}`)},nD=O(27,e=>tD(e,`${e.a0>0?`${nn(e.p)} of `:``}${nn(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${nn(e.r)} −${nn(e.s??0)}`)+(e.t==null?``:`\n${nn(e.t)} of ${nn(e.o)} viewed`)),5),rD=M(26,e=>{eD(e,e.a0>0?0:1),nD(e),RE(e)}),iD=O(16,e=>rD(e,e.o-e.p)),aD=M(14,e=>{wE(e.e,e.o),iD(e),nD(e)}),oD=M(15,e=>{TE(e.e,e.p),iD(e),nD(e)}),sD=M(17,e=>{ME(e.e,e.r),nD(e)}),cD=M(18,e=>{NE(e.e,e.s),nD(e)}),lD=M(19,e=>{AE(e.e,e.t),nD(e)}),uD=A(`y3`,M(30)),dD=M(7,e=>{WE(e,e.h.filter),GE(e,e.h.filterChange),JE(e,e.h.hideViewed),YE(e,e.h.hideViewedChange),aD(e,e.h.total),oD(e,e.h.shown),sD(e,e.h.additions),cD(e,e.h.deletions),lD(e,e.h.viewed)}),fD=e=>function(){e.d.hidePopover(),e.a.focus()},pD=e=>t=>{KE(e,t)},mD=e=>t=>{HE(e,t)};b.y2=fD,b.y1=pD,b.y0=mD;var hD=`<!><!><!>`,gD=x(0,0,e=>{N(e.a,`aria-label`,tT(e._.d)),N(e.a,`title`,tT(e._.d))}),_D=v(0,(e=>`<span role=img>${e}</span>`)(at),(e=>` D/${e}&l`)(Be),e=>{gD._(e),j(e.a,`_oV`),Je(e.b),He(e.b,12),Ue(e.b)}),vD=M(3,e=>{_D(e,+!e.d),gD(e)}),yD=(e=>` D%b%b%b/${e}&l`)(`b%c`),bD=(e=>`<button type=button><!><!><!>${e}</button>`)(hD),xD=(e=>` D%b D l%b/${e}&l`)(`b%c`),SD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(hD),CD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,wD=` D%b D b%l%b l`,TD=200,ED=250;function DD(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function OD(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function kD(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var AD=32,jD=I(84,e=>j(e.a,[h[Nt(e._._.n)],`_oP`]),e=>e._._,`U19`),MD=e=>{jD(e),ND(e)},ND=I(85,e=>y(e.b,e._._.o),e=>e._._,`U20`),PD=I(78,e=>y(e.a,e._._.i),e=>e._._,`U23`),FD=PD,ID=e=>{j(e.a,[`_ou`,`_ov`]),y(e.b,e._._.M)},LD=x(1,0,e=>y(e.b,e._.r)),RD=e=>{LD._(e),j(e.a,`_oL`)},zD=x(4,0,e=>j(e.a,[h[Nt(e._.n)],`_oP`])),BD=e=>{zD._(e),VD._(e)},VD=x(4,0,e=>y(e.b,e._.o)),HD=I(72,e=>y(e.b,e._._.a2),e=>e._._,`U10`),UD=e=>{HD(e),j(e.a,`_oI`)},WD=x(3,0,e=>j(e.a,[h[Nt(e._.s)],`_oP`])),GD=e=>{WD._(e),KD._(e)},KD=x(3,0,e=>y(e.b,e._.t)),qD=x(2,1,e=>y(e.b,e._.w)),JD=e=>{qD._(e),j(e.a,`_oO`)},YD=x(2,0,e=>y(e.b,e._.o)),XD=e=>{YD._(e),QD._(e)},ZD=v(0,`<span><!>/</span>`,` D%`,UD),QD=x(2,0,e=>ZD(e,+!e._.a2)),$D=x(1,0,e=>y(e.b,e._.m)),eO=e=>{$D._(e),j(e.a,`_ov`)},tO=O(1,e=>Rj(e.a,e._.o===e._._._.k)),nO=I(74,tO,e=>e._._._,`U32`),rO=e=>{nO(e),iO._(e),wj._(e.a,e._._._._),Dj(e.a,!0),Gj(e.a)},iO=x(0,2,e=>{Uj(e.a,e._.o),tO(e)}),aO=O(3,e=>mj(e.a,e._._._.a1(e.c,e._._._.ah)),2),oO=I(56,aO,e=>e._._._),sO=e=>{oO(e),cO(e),sj._(e.a,e._._._),uj(e.a)},cO=I(62,aO,e=>e._._._,`U47`),lO=M(2,e=>{vj(e.a,e.c),aO(e)}),uO=(e,t)=>pj(e.a,t+1),dO=(e,t)=>{lO(e,t[0]),uO(e,t[1])},fO=O(4,e=>y(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),pO=I(57,fO,e=>e._._),mO=e=>{pO(e),hO(e),gO(e),_O(e),yO(e),j(e.a,`_oF`),j(e.b,`_oG`)},hO=I(61,fO,e=>e._._,`U48`),gO=I(62,fO,e=>e._._,`U49`),_O=I(63,fO,e=>e._._,`U50`),vO=_(3,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),sO,dO),yO=I(66,e=>vO(e,[e._._.aq,`id`]),e=>e._._,`U51`),bO=O(1,e=>mj(e.a,DD(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),xO=I(56,bO,e=>e._._._._),SO=e=>{xO(e),CO(e),wO(e),TO._(e),sj._(e.a,e._._._._),pj(e.a),uj(e.a)},CO=I(60,bO,e=>e._._._._,`U42`),wO=I(62,bO,e=>e._._._._,`U43`),TO=x(0,1,e=>{vj(e.a,e._.f),bO(e)}),EO=O(3,e=>mj(e.a,DD(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),DO=I(56,EO,e=>e._._._._._),OO=e=>{DO(e),kO(e),AO(e),sj._(e.a,e._._._._._),uj(e.a,!0)},kO=I(60,EO,e=>e._._._._._,`U37`),AO=I(62,EO,e=>e._._._._._,`U38`),jO=M(2,e=>{vj(e.a,e.c),EO(e)}),MO=(e,t)=>pj(e.a,t+1),NO=(e,t)=>{jO(e,t[0]),MO(e,t[1])},PO=O(4,e=>y(e.c,DD(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),FO=I(57,PO,e=>e._._._._),IO=e=>{FO(e),LO(e),RO(e),zO(e),BO._(e),HO._(e),j(e.a,`_oH`),qe(e.b),Ke(e.b,12),it(e.b)},LO=I(60,PO,e=>e._._._._,`U39`),RO=I(62,PO,e=>e._._._._,`U40`),zO=I(63,PO,e=>e._._._._,`U41`),BO=x(0,0,PO),VO=_(3,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),OO,NO),HO=x(0,0,e=>VO(e,[e._.e,`id`])),UO=v(0,(e=>`<span>${e} </span><!><!>`)(Ye),(e=>` D/${e}& l%c`)(We),IO,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),SO),WO=(e,t)=>UO(e,+!t),GO=(e,t)=>KO(e,t[0]),KO=M(2,e=>{WO(e,e.c?.stack),qO(e,e.c?.sections),BO(e)}),qO=M(4,e=>{JO(e,e.e?.[0]),HO(e)}),JO=M(5,TO),YO=I(60,e=>y(e.c,e._._.ae),e=>e._._,`U44`),XO=e=>{YO(e),ZO(e),$O(e),j(e.a,`_oF`),j(e.b,`_oG`)},ZO=I(64,e=>{y(e.d,e._._.ao),y(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`U45`),QO=_(5,`<!><!><!>`,`b%`,0,GO),$O=I(65,e=>QO(e,[e._._.ap,`root`]),e=>e._._,`U46`),ek=v(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,XO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,mO),tk=x(6,0,e=>ek(e,e._.ad===`group`?0:1)),nk=tk,rk=O(6,e=>y(e.d,DD(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),ik=I(56,rk,e=>e._._._._._),ak=e=>{ik(e),ok(e),ck(e),lk._(e),dk._(e),fk._(e),j(e.a,`_oI`)},ok=I(74,rk,e=>e._._._._,`U21`),sk=O(5,e=>y(e.c,e._.r?`${DD(e._.r,e._._.i)}/`:``)),ck=I(78,e=>{y(e.b,e._._.i),sk(e),rk(e)},e=>e._._,`U22`),lk=x(1,0,rk),uk=v(4,`<span>#<!></span>`,` Db%`,MD),dk=x(1,0,e=>uk(e,+!e._.n)),fk=x(1,0,sk),pk=k(`U36`,e=>g(e.a,`click`,function(){e._.x(1)})),mk=e=>{j(e.a,[`_om`,`_oo`]),ut(e.b),gt(e.b,12),Mt(e.b),pk(e)},hk=k(`U17`,e=>g(e.a,`click`,function(){e._.x(-1)})),gk=e=>{j(e.a,[`_om`,`_on`]),ut(e.b),gt(e.b,12),Mt(e.b,`_op`),hk(e)},_k=O(14,e=>j(e.a,[`_ox`,{_oy:e.n===e._._._._.k}])),vk=I(53,_k,e=>e._._._._,`U29`),yk=k(`U28`,e=>{g(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`mouseleave`,function(){e._._._._.ak()}),g(e.c,`pointerdown`,function(){e._._._._.al()}),g(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),xM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),bk=e=>{vk(e),Tk(e),kk(e),Ak(e),Mk._(e),Nk._(e),wj._(e.b,e._._._._),Dj(e.b,!0),N(e.c,`data-pop`,e._.M),qe(e.d),Ke(e.d,12),it(e.d),yk(e)},xk=O(12,e=>Rj(e.b,e.l===e._._._.k)),Sk=O(18,e=>Gj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),Ck=M(11,e=>{Uj(e.b,e.l),Lk(e,e.l?.id),xk(e),Sk(e)}),wk=O(6,e=>Ck(e,e._._._._.a0(e.f))),Tk=I(55,wk,e=>e._._._._,`U30`),Ek=O(16,e=>{N(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),N(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),Dk=M(15,e=>{Sk(e),Ek(e)}),Ok=O(7,e=>Dk(e,e._._._._.a2(e.f,e._._._.k)),2),kk=I(57,Ok,e=>e._._._._),Ak=I(74,e=>{Ok(e),xk(e)},e=>e._._._,`U31`),jk=M(5,e=>{Pk(e,e.f?.root),Fk(e,e.f?.sections),wk(e),Ok(e)}),Mk=x(0,1,e=>jk(e,e._.k)),Nk=x(0,1,e=>{j(e.c,[`_oz`,{_oA:e._.p}]),N(e.c,`aria-expanded`,e._.p?`true`:`false`)}),Pk=(e,t)=>N(e.a,`data-stack`,t),Fk=M(9,e=>{Ik(e,e.j?.length),Sk(e)}),Ik=M(10,e=>{y(e.e,e.k),Ek(e)}),Lk=M(13,_k),Rk=O(9,e=>j(e.a,[`_or`,`_ow`,`_oB`,{_oN:!!e.h?.repo.unpushed,_oq:!!e.h&&e.h?.id===e._._._._.k,_oC:e._.p}]),2),zk=I(53,Rk,e=>e._._._._,`U25`),Bk=k(`U24`,e=>{g(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),g(e.a,`mouseleave`,function(){e._._._._.ak()}),g(e.a,`pointerdown`,function(){e._._._._.al()}),g(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),g(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),xM(e._._._._,null),e._._._._.am(e._.M,n))})}),Vk=e=>{zk(e),Xk(e),Zk(e),Qk(e),$k._(e),eA._(e),nA._(e),rA._(e),iA._(e),N(e.a,`data-pop`,e._.M),j(e.c,`_oD`),z(e.d),ot(e.d,12),ct(e.d),Bk(e)},Hk=v(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,ak,`<span> </span>`,`D `,FD),Uk=M(17,fk),Wk=O(16,e=>Uk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),Gk=M(15,Wk),Kk=O(8,e=>Gk(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),qk=O(10,e=>N(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${nT(e.h?.repo)??``}`:``}`),2),Jk=M(7,e=>{oA(e,e.h?.repo?.pr),cA(e,e.h?.id),Hk(e,+!e.h),Kk(e),Wk(e),Rk(e),qk(e),lk(e)}),Yk=O(5,e=>Jk(e,e._._._._.z(e._.g))),Xk=I(54,Yk,e=>e._._._._,`U26`),Zk=I(57,Wk,e=>e._._._._),Qk=I(74,Wk,e=>e._._._,`U27`),$k=x(0,0,Yk),eA=x(0,0,Kk),tA=O(6,e=>N(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),nA=x(0,0,e=>{qk(e),tA(e)}),rA=x(0,0,e=>{y(e.e,e._.j),qk(e),tA(e)}),iA=x(0,0,e=>{N(e.a,`aria-expanded`,e._.p?`true`:`false`),Rk(e)}),aA=F(jD),oA=M(13,e=>{sA(e,e.n?.number),dk(e),aA(e)}),sA=M(14,F(ND)),cA=(e,t)=>N(e.a,`data-pick`,t),lA=M(15,e=>{iA(e),Nk(e)}),uA=I(58,e=>lA(e,e._._._.a5===e.M),e=>e._._._,`U33`),dA=uA,fA=v(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(nt),(e=>` D%b D/${e}& m`)($e),Vk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(bD,Ye),((e,t)=>` D/${e}& D/${t}& m`)(yD,We),bk,(e=>`<!>${e}<!>`)(bD),(e=>`b/${e}&b`)(yD),rO),pA=O(12,e=>fA(e,e.f===`group`?0:e.l?1:2)),mA=M(5,pA),hA=M(11,pA),gA=(e,t)=>{mA(e,t[0]?.kind),_A(e,t[0]?.sections),yA(e,t[0]?.runs),xA(e,t[0]?.name),SA(e,t[0]?.run)},_A=M(6,e=>{vA(e,e.g?.length),$k(e)}),vA=M(9,rA),yA=M(7,eA),bA=F(ck,PD),xA=M(8,e=>{nA(e),bA(e)}),SA=M(10,e=>{hA(e,e.k?.stack),CA(e,e.k?.sections?.[0]),Mk(e)}),CA=M(14,iO),wA=O(3,e=>j(e.a,[`_os`,{_ot:e._.d.some(t=>t.id===e._._.k)}])),TA=I(53,wA,e=>e._._,`U34`),EA=e=>{TA(e),jA(e),MA._(e),NA._(e),FA._(e),LA._(e),RA._(e)},DA=v(1,`<span> </span>`,` D `,ID),OA=O(10,e=>DA(e,!e._.k||e.j!==e._.k?0:1)),kA=M(9,OA),AA=O(8,e=>kA(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),jA=I(55,AA,e=>e._._,`U35`),MA=x(0,1,wA),NA=x(0,1,e=>N(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),PA=_(2,`<!><!><!>`,`b%`,dA,gA),FA=x(0,1,e=>PA(e,[e._.i,`key`])),IA=(e,t)=>{zA(e,t?.kind),BA(e,t?.run)},LA=x(0,1,e=>IA(e,e._.j)),RA=x(0,1,OA),zA=M(6,AA),BA=M(7,AA),VA=O(2,e=>j(e.a,[`_os`,{_ot:e._.g===e._._.k}])),HA=I(53,VA,e=>e._._,`U18`),UA=e=>{HA(e),WA._(e),GA._(e),wj._(e.b,e._._),Rj(e.b,!0),Dj(e.b,!0),Gj(e.b)},WA=x(0,0,e=>Uj(e.b,e._.f)),GA=x(0,0,VA),KA=v(0,(e=>`<span>${e}</span>`)(bD),(e=>` D/${e}&l`)(yD),UA,`<span role=group><!><!></span>`,` D%b%`,EA),qA=M(4,e=>{KA(e,e.e===1?0:1),NA(e)}),JA=(e,t)=>{YA(e,t[0]?.sections),QA(e,t[0]?.items),tj(e,t[0]?.main)},YA=M(3,e=>{qA(e,e.d?.length),XA(e,e.d?.[0]),MA(e)}),XA=M(5,e=>{ZA(e,e.f?.id),WA(e)}),ZA=M(6,GA),QA=M(8,e=>{$A(e,e.i?.[0]),FA(e)}),$A=M(9,LA),ej=F(Qk,Ak,ok,nO),tj=M(10,e=>{RA(e),ej(e)}),nj=O(20,e=>j(e.a,[`_oJ`,{_oK:e.s,_oN:!!e.m,_oq:e.t}]),2),rj=M(19,e=>{N(e.a,`aria-current`,e.t?`true`:void 0),nj(e)}),ij=O(10,e=>rj(e,e._.k===e.j)),aj=I(53,ij,0,`U16`),oj=k(`U15`,e=>g(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),sj=ee(e=>{aj(e),j(e.c,`_oM`),oj(e)}),cj=M(9,ij),lj=M(12,nj),uj=M(18,nj),dj=(e,t)=>{N(e.a,`title`,[nT(t),t?.pr?.title].filter(Boolean).join(`
|
|
325
|
-
`)),lj(e,t?.unpushed),gj(e,t?.pr),_j(e,t?.edits)},fj=v(1,`<span> </span>`,` D `,RD),pj=M(17,e=>{fj(e,+!e.r),LD(e)}),mj=(e,t)=>y(e.d,t),hj=v(4,`<span>#<!></span>`,` Db%`,BD),gj=M(13,e=>{yj(e,e.n?.number),hj(e,+!e.n),zD(e)}),_j=(e,t)=>vD(e.f,t),vj=(e,t)=>{cj(e,t?.id),dj(e,t?.repo)},yj=M(14,VD),bj=O(27,e=>j(e.a,[`
|
|
326
|
-
`)),5),kj=M(8,e=>{Tj(e,e.i?.unpushed),Kj(e,e.i?.worktree),Vj(e,e.i?.pr),Hj(e,e.i?.edits),Oj(e)}),Aj=v(2,`<span><!><!></span>`,`D%b%`,XD,`<span> </span>`,` D `,JD),jj=O(23,e=>Aj(e,e.o?0:e.w?1:2)),Mj=M(14,e=>{Oj(e),jj(e),YD(e)}),Nj=M(15,Oj),Pj=M(16,Oj),Fj=M(17,Oj),Ij=M(20,Oj),Lj=v(1,`<span> </span>`,` D `,eO),Rj=(e,t)=>Lj(e,+!t),zj=M(22,e=>{jj(e),qD(e)}),Bj=v(3,`<span>#<!></span>`,` Db%`,GD),Vj=M(18,e=>{qj(e,e.s?.number),Bj(e,+!e.s),WD(e)}),Hj=(e,t)=>vD(e.e,t),Uj=(e,t)=>{kj(e,t?.repo),Ej(e,t?.id),Jj(e,t?.compare),Nj(e,t?.files),Pj(e,t?.additions),Fj(e,t?.deletions)},Wj=F(HD),Gj=M(28,e=>{QD(e),Wj(e)}),Kj=M(12,$D),qj=M(19,KD),Jj=(e,t)=>{Mj(e,t?.topic),Ij(e,t?.title),zj(e,t?.head)},Yj=C(15,e=>{N(e.c,`title`,pt(`prevSection`,e.p)||pt(`nextSection`,e.p)?`Sections (${[pt(`prevSection`,e.p),pt(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),Xj=v(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(jt),(e=>` D/${e}&l`)(_t),gk),Zj=O(20,e=>j(e.c,[`
|
|
323
|
+
`)}function YC(e,t,n=!0){let r=t.getBoundingClientRect();if(!r.height)return;let i=e.getBoundingClientRect(),a=getComputedStyle(t),o=r.top-(parseFloat(a.scrollMarginTop)||0),s=r.bottom+(parseFloat(a.scrollMarginBottom)||0),c=0;o<i.top?c=o-i.top:s>i.bottom&&(c=s-i.bottom),c&&e.scrollTo({top:Math.max(0,e.scrollTop+c),behavior:n?`smooth`:`auto`})}function XC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_nx`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=tt(n),t.append(e)}return t}var ZC=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function QC(e){return e.map(e=>`${e.id}\t${tt(e)}`).join(`
|
|
324
|
+
`)}var $C=new WeakMap;function ew(e){$C.get(e)?.()}function tw(e,t,n,r){let i={el:nw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=nw(),a=()=>{};else{let l=iw(`Send`,``);l.dataset.role=`send`;let u=XC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=ZC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,rw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,rw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=aw(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function nw(){let e=document.createElement(`span`);return e.hidden=!0,e}function rw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function iw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function aw(e,t,n,r){if(!t){e.className=`_I ${r?f:``} _J`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${tt(t)}`),e}let i=document.createElement(`span`);return i.className=`_nv ${r?`_nd`:``}`,e.className=`_J _nw`,e.textContent=`Send to`,i.append(e,t),i}function ow(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function sw(t,n,r){let i=document.createElement(`div`);i.className=`_m_`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_nc`;let s=null;$C.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_na`,i.textContent=t.text;let c=iw(`Remove`,`_I ${f}`);c.onclick=()=>r.onDelete(t.id);let u=iw(`Edit`,`_I ${f}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let e=tw(n,!0,[c,u],e=>d(t.id,e));o.append(e.el),s=e.draw}if(r.drifted){let t=document.createElement(`span`);t.className=`_bp ${e.warn} _ne`,t.textContent=`changed since`,t.title=`These lines changed since the comment; the agent gets them as they were`,o.append(t)}a.append(i)},l=()=>{s=null,a.replaceChildren(),o.replaceChildren();let e=document.createElement(`textarea`);e.value=t.text,e.rows=3,e.className=`_bA _nb`;let n=iw(`Save`,`_I _J`),i=iw(`Cancel`,`_I`),l=()=>{let a=e.value.trim();if(!a||a===t.text){c();return}(async()=>{rw([n,i],!0);try{await r.onEdit?.(t.id,a),t.text=a,c()}catch{rw([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),ow(e,l,c),o.append(n,i),a.append(e),setTimeout(()=>{e.focus({preventScroll:!0}),e.setSelectionRange(e.value.length,e.value.length)},0)};return c(),i.append(a,o),i}function cw(e,t){let n=document.createElement(`div`);n.className=`_m_`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bA _nb`;let i=iw(`Add`,`_I`),a=iw(`Cancel`,`_I`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?tw(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&$C.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),ow(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_nc`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var lw=e=>`/api/workspaces/${e}/review`;async function uw(e){return(await we(lw(e))).comments||[]}function dw(e,t){return Ne(lw(e),{action:`comment`,...t})}function fw(e,t,n){return Ne(`${lw(e)}/${t}`,{text:n},`PATCH`)}async function pw(e,t){if(!t.some(e=>e.head))return null;try{return(await we(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function mw(e,t){t.length&&await Ne(lw(e),{action:`clear`,ids:t})}async function hw(e,t){t.length&&await Ne(lw(e),{action:`view`,marks:t})}async function gw(e,t){let n=L(t),r=await uw(e);return de(t,n)?r:null}function _w(e,t){L(e.seq),e.set(t)}async function vw(e,t){L(e.seq);try{let n=await dw(e.workspaceId,t),r=e.list();return r.some(e=>e.id===n.id)||e.set(r.concat(n)),!0}catch(t){return e.fail(`Add comment failed: ${_e(t)}`),!1}}async function yw(e,t){let n=e.list().find(e=>e.id===t);if(n){_w(e,e.list().filter(e=>e.id!==t));try{await mw(e.workspaceId,[t])}catch(r){let i=e.list();i.some(e=>e.id===t)||e.set([...i,n].sort((e,t)=>e.id-t.id)),e.fail(`Remove comment failed: ${_e(r)}`)}}}async function bw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){_w(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await fw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${_e(n)}`),n}}}async function xw(e,t,n,r){if(!t.length)return!0;try{let i=NC(t,e.sections());if(`clipboard`in n){if(!await ze(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await Ne(`/api/sessions/${n.session}/send`,{text:i,...Ze()||{}});e.handed(n);let a=new Set(r);return _w(e,e.list().filter(e=>!a.has(e.id))),r.length&&await mw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${_e(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${_e(t)}`),!1}}function Sw(e,t){let n=e.list();return xw(e,n,t,n.map(e=>e.id))}function Cw(e,t,n){let r=e.list().find(e=>e.id===t);return r?xw(e,[r],{session:n},[t]):Promise.resolve(!1)}function ww(e,t,n){return xw(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var Tw=`search-mark`,Ew=`mark.${Tw}`,Dw=`mark.${Tw}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${Tw} *,mark.${Tw} *::before,mark.${Tw} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${Tw}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Ow={query:``,hit:null,keys:null},kw=new Map,Aw=new WeakMap,jw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function Mw(e,t,n){Ow.query=e,Ow.hit=t,Ow.keys=n?new Set(n):null;for(let[e,t]of kw)Lw(e,t,!1);t&&Nw(t)}function Nw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of kw)if(i===e.key&&(n=!0,Iw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Nw(e,t+1),n?32:48)})})}function Pw(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function Fw(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function Iw(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>Vw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Fw(r,e);return a&&Pw(a,r),!0}function Lw(e,t,n=!0){let r=t&&Ow.hit?.key===t?Ow.hit:null,i=Ow.query.trim(),a=!!i&&!!Ow.keys&&!!t&&!Ow.keys.has(t),o=a?``:jw(i,r),s=Aw.get(e)!==o;(n||s)&&(Aw.set(e,o),qw(e,a?``:i,r),n||OC(e),r&&s&&Nw(r))}function Rw(e,t){return kw.set(e,t),Lw(e,t),()=>{kw.delete(e),Aw.delete(e)}}function zw(e){Lw(e,kw.get(e))}function Bw(e){let t=e.querySelectorAll(Ew);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function Vw(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function Hw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Ew)||n.push(e);return n}function Uw(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function Ww(e,t,n,r,i){let a=Uw(e,t,n),o=Uw(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function Gw(e,t,n,r){let i=Hw(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=Jw(e,r)?`${Tw} active`:Tw;for(let e=c.length-1;e>=0;e--)Ww(i,a,c[e][0],c[e][1],l)}var Kw=new WeakMap;function qw(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){Bw(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!Jw(t,n)}`:``,a=!!t.querySelector(Ew);i!==(a?Kw.get(t):``)&&(a&&Bw(t),Kw.set(t,i),r&&Gw(t,s,o,n))}}}function Jw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Vw(e)}function Yw(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(Zw(i,e?Xw:qt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function Xw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function Zw(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function Qw(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function $w(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function eT(e,t){let n=new Set(e),r=new Set(t),i=Qw(t),a=new Set([...Qw(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has($w(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has($w(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}function tT(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function nT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${tT(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${Nt(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${tT(e.edits)}`:null}function rT(e){return!!e.pr||!e.contained||!!e.edits}function iT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function aT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:Ge(Ve(i,t))?.group,compare:Xe({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}var oT=((e,t)=>`<h1> </h1><span><button type=button aria-label=Back>${e}</button><button type=button aria-label=Forward>${t}</button></span><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`)(wt,St),sT=((e,t)=>` D l D D/${e}&l D/${t}&m D b l`)(At,bt),cT=O(18,e=>N(e.d,`title`,e.r===null?`Back`:`Back to ${e.r}${ht(`goBack`,e.p)}`)),lT=O(20,e=>N(e.f,`title`,e.t===null?`Forward`:`Forward to ${e.t}${ht(`goForward`,e.p)}`)),uT=C(15,e=>{cT(e),lT(e)}),dT=C(16,e=>{mT(e,e.q?.back),hT(e,e.q?.forward)}),fT=k(`T0`,e=>{uT(e,vt()),yt(()=>{uT(e,vt())},re(e,0)),dT(e,R()),et(()=>{dT(e,R())},re(e,0)),g(e.d,`click`,function(){st()}),g(e.f,`click`,function(){rt()})});function pT(e){ae(e,0),j(e.a,`_7`),j(e.c,`_ln`),j(e.d,m),xt(e.e),Ot(e.e,14),Et(e.e),j(e.f,m),Dt(e.g),Tt(e.g,14),kt(e.g),j(e.h,[`_bR`,`_lm`]),uT(e,0),dT(e,{back:null,forward:null}),fT(e)}var mT=M(17,e=>{N(e.d,`disabled`,e.r===null),cT(e)}),hT=M(19,e=>{N(e.f,`disabled`,e.t===null),lT(e)}),gT=(e,t)=>{y(e.b,t===`files`?`Files`:`Review`),j(e.i,[`_bT`,t===`files`&&`_bS`]),N(e.i,`aria-current`,t===`files`?`page`:void 0),j(e.j,[`_bT`,t===`changes`&&`_bS`]),N(e.j,`aria-current`,t===`changes`?`page`:void 0)},_T=(e,t)=>N(e.i,`href`,t),vT=(e,t)=>N(e.j,`href`,t),yT=ue,bT=(e=>`/${e}&`)(Oe);function xT(e){ye(e.a,Fe)}var ST=(e,t)=>Ae(e.a,t),CT=(e,t)=>me(e.a,t),wT=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(yT),TT=(e=>` D/${e}& l`)(bT),ET=O(16,e=>ne(e,`c`,e.n,BT(e))),DT=M(13,ET),OT=M(14),kT=O(12,e=>{DT(e,(e.l??e.j)||``),OT(e,VT(e))}),AT=E(9,kT),jT=O(7,e=>AT(e,e.f,e.g)),MT=M(5,jT),NT=M(6,jT),PT=k(`v5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{FT(e,null),AT(e,t)},150);re(e,0).onabort=()=>clearTimeout(n)}}}),FT=C(11,e=>{ae(e,0),kT(e),PT(e)}),IT=M(15,ET),LT=k(`v4`,e=>{oe(e,`c`),g(e.c,`keydown`,function(t){t.key===`Enter`&&(e.o(),e.i&&(t.preventDefault(),e.i())),t.key===`Escape`&&(e.n?(t.preventDefault(),e.p(``)):e.i&&(t.preventDefault(),e.i()))}),g(e.c,`blur`,function(){e.l!==null&&e.o()})});function RT(e){j(e.a,[`_bC`,`_oU`]),xT(e.b),ST(e.b,14),CT(e.b,`_bD`),j(e.c,[`_bE`,r]),D(e,UT(e)),FT(e,null),IT(e,HT(e)),LT(e)}var zT=M(8),BT=e=>function(t){e.p(t)},VT=e=>()=>{let t=e.l??e.j??``;FT(e,null),AT(e,t)},HT=e=>t=>{if(!t){FT(e,null),AT(e,``);return}FT(e,t)},UT=e=>()=>{e.c.focus(),e.c.select()};b.v2=BT,b.v0=VT,b.v1=HT,b.v3=UT;var WT=`<!><!><!>`,GT=x(0,0,e=>y(e.c,nn(e._.d))),KT=e=>{GT._(e),qT._(e),j(e.a,`_oW`),j(e.b,`_oX`),j(e.d,`_oY`)},qT=x(0,0,e=>y(e.e,nn(e._.e))),JT=v(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,KT),YT=O(5,e=>JT(e,e.d||e.e?0:1)),XT=M(3,e=>{YT(e),GT(e)}),ZT=M(4,e=>{YT(e),qT(e)}),QT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(wT),$T=(e=>` D0${e}&%b D D l%b%m`)(TT),eE=k(`z4`,e=>g(e.a,`click`,function(){dE(e._,``),hE(e._,!1)})),tE=e=>{j(e.a,`_on`),eE(e)},nE=x(7,0,e=>XT(e.a,e._.w)),rE=e=>{nE._(e),iE._(e)},iE=x(7,0,e=>ZT(e.a,e._.x??0)),aE=x(3,0,e=>y(e.e,nn(e._.r))),oE=k(`z3`,e=>g(e.f,`click`,function(){hE(e._,!e._.a0)})),sE=e=>{aE._(e),cE._(e),lE._(e),j(e.a,`_oi`),j(e.b,`_oj`),j(e.c,`_ok`),j(e.f,`_bj`),oE(e)},cE=x(3,0,e=>y(e.d,nn(e._.v))),lE=x(3,0,e=>N(e.f,`aria-checked`,e._.a0?`true`:`false`)),uE=te(31),dE=E(24,e=>MT(e.b,e.y)),fE=O(13,e=>dE(e,e.l,e.m)),pE=M(11,fE),mE=M(12,fE),hE=E(26,lE),gE=O(16,e=>hE(e,e.o,e.p)),_E=M(14,gE),vE=M(15,gE),yE=v(8,`<button type=button>Clear</button>`,` `,tE),bE=(e,t)=>y(e.g,t),xE=O(29,e=>bE(e,`${e.a2>0?`${nn(e.s)} of `:``}${nn(e.r)} ${e.r===1?`file`:`files`}`),2),SE=M(28,e=>{yE(e,e.a2>0?0:1),xE(e)}),CE=O(19,e=>SE(e,e.r-e.s)),wE=M(17,e=>{CE(e),xE(e),aE(e)}),TE=M(18,e=>{CE(e),xE(e)});function EE(e){j(e.a,`_oh`),ie(e,1,DE),RT(e.b),NT(e.b,FE(e)),j(e.e,`_ol`),j(e.f,`_om`),D(e,PE(e))}var DE=A(`z2`,M(31)),OE=(e,t)=>zT(e.b,t),kE=v(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,sE),AE=M(21,e=>{kE(e,+(e.v==null)),cE(e)}),jE=v(7,(e=>`<!>${e}<!>`)(WT),(e=>`b/${e}&b`)(`b%c`),rE),ME=M(22,e=>{jE(e,+(e.w==null)),nE(e)}),NE=M(23,iE),PE=e=>()=>uE(e)(),FE=e=>t=>{dE(e,t)};b.z1=PE,b.z0=FE;var IE=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(yT,QT),LE=((e,t)=>` D/${e}&%l D0${t}&l`)(bT,$T),RE=x(2,0,e=>y(e.b,e._.a0>99?`99+`:nn(e._.a0))),zE=e=>{RE._(e),j(e.a,`_l9`)},BE=te(30),VE=O(24,e=>j(e.a,[m,`_l7`,{_l8:!!e.u?.trim()||!!e.w}])),HE=E(20,e=>{pE(e.e,e.u),VE(e)}),UE=O(10,e=>HE(e,e.i,e.j)),WE=M(8,UE),GE=M(9,UE),KE=E(22,e=>{_E(e.e,e.w),VE(e)}),qE=O(13,e=>KE(e,e.l,e.m)),JE=M(11,qE),YE=M(12,qE),XE=(e,t)=>{N(e.a,`aria-controls`,t),N(e.d,`id`,t)},ZE=C(29),QE=k(`y4`,e=>{g(e.a,`pointerdown`,function(){ZE(e,e.d.matches(`:popover-open`))}),g(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(ZE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&pe()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Qe(t,e.a.getBoundingClientRect()),BE(e)()})});function $E(e){xT(e.b),ST(e.b,14),CT(e.b),j(e.d,a),ie(e,4,uD),EE(e.e),mE(e.e,mD(e)),vE(e.e,pD(e)),OE(e.e,fD(e)),XE(e,T(e)),ZE(e,!1),QE(e)}var eD=v(2,`<span aria-hidden=true> </span>`,` D `,zE),tD=(e,t)=>{N(e.a,`title`,`Filter files\n${t}`),N(e.a,`aria-label`,`Filter files: ${t}`)},nD=O(27,e=>tD(e,`${e.a0>0?`${nn(e.p)} of `:``}${nn(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${nn(e.r)} −${nn(e.s??0)}`)+(e.t==null?``:`\n${nn(e.t)} of ${nn(e.o)} viewed`)),5),rD=M(26,e=>{eD(e,e.a0>0?0:1),nD(e),RE(e)}),iD=O(16,e=>rD(e,e.o-e.p)),aD=M(14,e=>{wE(e.e,e.o),iD(e),nD(e)}),oD=M(15,e=>{TE(e.e,e.p),iD(e),nD(e)}),sD=M(17,e=>{ME(e.e,e.r),nD(e)}),cD=M(18,e=>{NE(e.e,e.s),nD(e)}),lD=M(19,e=>{AE(e.e,e.t),nD(e)}),uD=A(`y3`,M(30)),dD=M(7,e=>{WE(e,e.h.filter),GE(e,e.h.filterChange),JE(e,e.h.hideViewed),YE(e,e.h.hideViewedChange),aD(e,e.h.total),oD(e,e.h.shown),sD(e,e.h.additions),cD(e,e.h.deletions),lD(e,e.h.viewed)}),fD=e=>function(){e.d.hidePopover(),e.a.focus()},pD=e=>t=>{KE(e,t)},mD=e=>t=>{HE(e,t)};b.y2=fD,b.y1=pD,b.y0=mD;var hD=`<!><!><!>`,gD=x(0,0,e=>{N(e.a,`aria-label`,tT(e._.d)),N(e.a,`title`,tT(e._.d))}),_D=v(0,(e=>`<span role=img>${e}</span>`)(at),(e=>` D/${e}&l`)(Be),e=>{gD._(e),j(e.a,`_oQ`),Je(e.b),He(e.b,12),Ue(e.b)}),vD=M(3,e=>{_D(e,+!e.d),gD(e)}),yD=(e=>` D%b%b%b/${e}&l`)(`b%c`),bD=(e=>`<button type=button><!><!><!>${e}</button>`)(hD),xD=(e=>` D%b D l%b/${e}&l`)(`b%c`),SD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(hD),CD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,wD=` D%b D b%l%b l`,TD=200,ED=250;function DD(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function OD(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function kD(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var AD=32,jD=I(84,e=>j(e.a,[h[Nt(e._._.n)],`_n_`]),e=>e._._,`U19`),MD=e=>{jD(e),ND(e)},ND=I(85,e=>y(e.b,e._._.o),e=>e._._,`U20`),PD=I(78,e=>y(e.a,e._._.i),e=>e._._,`U23`),FD=PD,ID=e=>{j(e.a,[`_nP`,`_nQ`]),y(e.b,e._._.M)},LD=x(1,0,e=>y(e.b,e._.r)),RD=e=>{LD._(e),j(e.a,`_n6`)},zD=x(4,0,e=>j(e.a,[h[Nt(e._.n)],`_n_`])),BD=e=>{zD._(e),VD._(e)},VD=x(4,0,e=>y(e.b,e._.o)),HD=I(72,e=>y(e.b,e._._.a2),e=>e._._,`U10`),UD=e=>{HD(e),j(e.a,`_n3`)},WD=x(3,0,e=>j(e.a,[h[Nt(e._.s)],`_n_`])),GD=e=>{WD._(e),KD._(e)},KD=x(3,0,e=>y(e.b,e._.t)),qD=x(2,1,e=>y(e.b,e._.w)),JD=e=>{qD._(e),j(e.a,`_n9`)},YD=x(2,0,e=>y(e.b,e._.o)),XD=e=>{YD._(e),QD._(e)},ZD=v(0,`<span><!>/</span>`,` D%`,UD),QD=x(2,0,e=>ZD(e,+!e._.a2)),$D=x(1,0,e=>y(e.b,e._.m)),eO=e=>{$D._(e),j(e.a,`_nQ`)},tO=O(1,e=>Rj(e.a,e._.o===e._._._.k)),nO=I(74,tO,e=>e._._._,`U32`),rO=e=>{nO(e),iO._(e),wj._(e.a,e._._._._),Dj(e.a,!0),Gj(e.a)},iO=x(0,2,e=>{Uj(e.a,e._.o),tO(e)}),aO=O(3,e=>mj(e.a,e._._._.a1(e.c,e._._._.ah)),2),oO=I(56,aO,e=>e._._._),sO=e=>{oO(e),cO(e),sj._(e.a,e._._._),uj(e.a)},cO=I(62,aO,e=>e._._._,`U47`),lO=M(2,e=>{vj(e.a,e.c),aO(e)}),uO=(e,t)=>pj(e.a,t+1),dO=(e,t)=>{lO(e,t[0]),uO(e,t[1])},fO=O(4,e=>y(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),pO=I(57,fO,e=>e._._),mO=e=>{pO(e),hO(e),gO(e),_O(e),yO(e),j(e.a,`_n0`),j(e.b,`_n1`)},hO=I(61,fO,e=>e._._,`U48`),gO=I(62,fO,e=>e._._,`U49`),_O=I(63,fO,e=>e._._,`U50`),vO=_(3,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),sO,dO),yO=I(66,e=>vO(e,[e._._.aq,`id`]),e=>e._._,`U51`),bO=O(1,e=>mj(e.a,DD(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),xO=I(56,bO,e=>e._._._._),SO=e=>{xO(e),CO(e),wO(e),TO._(e),sj._(e.a,e._._._._),pj(e.a),uj(e.a)},CO=I(60,bO,e=>e._._._._,`U42`),wO=I(62,bO,e=>e._._._._,`U43`),TO=x(0,1,e=>{vj(e.a,e._.f),bO(e)}),EO=O(3,e=>mj(e.a,DD(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),DO=I(56,EO,e=>e._._._._._),OO=e=>{DO(e),kO(e),AO(e),sj._(e.a,e._._._._._),uj(e.a,!0)},kO=I(60,EO,e=>e._._._._._,`U37`),AO=I(62,EO,e=>e._._._._._,`U38`),jO=M(2,e=>{vj(e.a,e.c),EO(e)}),MO=(e,t)=>pj(e.a,t+1),NO=(e,t)=>{jO(e,t[0]),MO(e,t[1])},PO=O(4,e=>y(e.c,DD(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),FO=I(57,PO,e=>e._._._._),IO=e=>{FO(e),LO(e),RO(e),zO(e),BO._(e),HO._(e),j(e.a,`_n2`),qe(e.b),Ke(e.b,12),it(e.b)},LO=I(60,PO,e=>e._._._._,`U39`),RO=I(62,PO,e=>e._._._._,`U40`),zO=I(63,PO,e=>e._._._._,`U41`),BO=x(0,0,PO),VO=_(3,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),OO,NO),HO=x(0,0,e=>VO(e,[e._.e,`id`])),UO=v(0,(e=>`<span>${e} </span><!><!>`)(Ye),(e=>` D/${e}& l%c`)(We),IO,(e=>`<!>${e}<!>`)(SD),(e=>`b/${e}&b`)(xD),SO),WO=(e,t)=>UO(e,+!t),GO=(e,t)=>KO(e,t[0]),KO=M(2,e=>{WO(e,e.c?.stack),qO(e,e.c?.sections),BO(e)}),qO=M(4,e=>{JO(e,e.e?.[0]),HO(e)}),JO=M(5,TO),YO=I(60,e=>y(e.c,e._._.ae),e=>e._._,`U44`),XO=e=>{YO(e),ZO(e),$O(e),j(e.a,`_n0`),j(e.b,`_n1`)},ZO=I(64,e=>{y(e.d,e._._.ao),y(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`U45`),QO=_(5,`<!><!><!>`,`b%`,0,GO),$O=I(65,e=>QO(e,[e._._.ap,`root`]),e=>e._._,`U46`),ek=v(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,XO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,mO),tk=x(6,0,e=>ek(e,e._.ad===`group`?0:1)),nk=tk,rk=O(6,e=>y(e.d,DD(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),ik=I(56,rk,e=>e._._._._._),ak=e=>{ik(e),ok(e),ck(e),lk._(e),dk._(e),fk._(e),j(e.a,`_n3`)},ok=I(74,rk,e=>e._._._._,`U21`),sk=O(5,e=>y(e.c,e._.r?`${DD(e._.r,e._._.i)}/`:``)),ck=I(78,e=>{y(e.b,e._._.i),sk(e),rk(e)},e=>e._._,`U22`),lk=x(1,0,rk),uk=v(4,`<span>#<!></span>`,` Db%`,MD),dk=x(1,0,e=>uk(e,+!e._.n)),fk=x(1,0,sk),pk=k(`U36`,e=>g(e.a,`click`,function(){e._.x(1)})),mk=e=>{j(e.a,[`_nH`,`_nJ`]),ut(e.b),gt(e.b,12),Mt(e.b),pk(e)},hk=k(`U17`,e=>g(e.a,`click`,function(){e._.x(-1)})),gk=e=>{j(e.a,[`_nH`,`_nI`]),ut(e.b),gt(e.b,12),Mt(e.b,`_nK`),hk(e)},_k=O(14,e=>j(e.a,[`_nS`,{_nT:e.n===e._._._._.k}])),vk=I(53,_k,e=>e._._._._,`U29`),yk=k(`U28`,e=>{g(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`mouseleave`,function(){e._._._._.ak()}),g(e.c,`pointerdown`,function(){e._._._._.al()}),g(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),xM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),bk=e=>{vk(e),Tk(e),kk(e),Ak(e),Mk._(e),Nk._(e),wj._(e.b,e._._._._),Dj(e.b,!0),N(e.c,`data-pop`,e._.M),qe(e.d),Ke(e.d,12),it(e.d),yk(e)},xk=O(12,e=>Rj(e.b,e.l===e._._._.k)),Sk=O(18,e=>Gj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),Ck=M(11,e=>{Uj(e.b,e.l),Lk(e,e.l?.id),xk(e),Sk(e)}),wk=O(6,e=>Ck(e,e._._._._.a0(e.f))),Tk=I(55,wk,e=>e._._._._,`U30`),Ek=O(16,e=>{N(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),N(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),Dk=M(15,e=>{Sk(e),Ek(e)}),Ok=O(7,e=>Dk(e,e._._._._.a2(e.f,e._._._.k)),2),kk=I(57,Ok,e=>e._._._._),Ak=I(74,e=>{Ok(e),xk(e)},e=>e._._._,`U31`),jk=M(5,e=>{Pk(e,e.f?.root),Fk(e,e.f?.sections),wk(e),Ok(e)}),Mk=x(0,1,e=>jk(e,e._.k)),Nk=x(0,1,e=>{j(e.c,[`_nU`,{_nV:e._.p}]),N(e.c,`aria-expanded`,e._.p?`true`:`false`)}),Pk=(e,t)=>N(e.a,`data-stack`,t),Fk=M(9,e=>{Ik(e,e.j?.length),Sk(e)}),Ik=M(10,e=>{y(e.e,e.k),Ek(e)}),Lk=M(13,_k),Rk=O(9,e=>j(e.a,[`_nM`,`_nR`,`_nW`,{_n8:!!e.h?.repo.unpushed,_nL:!!e.h&&e.h?.id===e._._._._.k,_nX:e._.p}]),2),zk=I(53,Rk,e=>e._._._._,`U25`),Bk=k(`U24`,e=>{g(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),g(e.a,`mouseleave`,function(){e._._._._.ak()}),g(e.a,`pointerdown`,function(){e._._._._.al()}),g(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),g(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),xM(e._._._._,null),e._._._._.am(e._.M,n))})}),Vk=e=>{zk(e),Xk(e),Zk(e),Qk(e),$k._(e),eA._(e),nA._(e),rA._(e),iA._(e),N(e.a,`data-pop`,e._.M),j(e.c,`_nY`),z(e.d),ot(e.d,12),ct(e.d),Bk(e)},Hk=v(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,ak,`<span> </span>`,`D `,FD),Uk=M(17,fk),Wk=O(16,e=>Uk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),Gk=M(15,Wk),Kk=O(8,e=>Gk(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),qk=O(10,e=>N(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${nT(e.h?.repo)??``}`:``}`),2),Jk=M(7,e=>{oA(e,e.h?.repo?.pr),cA(e,e.h?.id),Hk(e,+!e.h),Kk(e),Wk(e),Rk(e),qk(e),lk(e)}),Yk=O(5,e=>Jk(e,e._._._._.z(e._.g))),Xk=I(54,Yk,e=>e._._._._,`U26`),Zk=I(57,Wk,e=>e._._._._),Qk=I(74,Wk,e=>e._._._,`U27`),$k=x(0,0,Yk),eA=x(0,0,Kk),tA=O(6,e=>N(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),nA=x(0,0,e=>{qk(e),tA(e)}),rA=x(0,0,e=>{y(e.e,e._.j),qk(e),tA(e)}),iA=x(0,0,e=>{N(e.a,`aria-expanded`,e._.p?`true`:`false`),Rk(e)}),aA=F(jD),oA=M(13,e=>{sA(e,e.n?.number),dk(e),aA(e)}),sA=M(14,F(ND)),cA=(e,t)=>N(e.a,`data-pick`,t),lA=M(15,e=>{iA(e),Nk(e)}),uA=I(58,e=>lA(e,e._._._.a5===e.M),e=>e._._._,`U33`),dA=uA,fA=v(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(nt),(e=>` D%b D/${e}& m`)($e),Vk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(bD,Ye),((e,t)=>` D/${e}& D/${t}& m`)(yD,We),bk,(e=>`<!>${e}<!>`)(bD),(e=>`b/${e}&b`)(yD),rO),pA=O(12,e=>fA(e,e.f===`group`?0:e.l?1:2)),mA=M(5,pA),hA=M(11,pA),gA=(e,t)=>{mA(e,t[0]?.kind),_A(e,t[0]?.sections),yA(e,t[0]?.runs),xA(e,t[0]?.name),SA(e,t[0]?.run)},_A=M(6,e=>{vA(e,e.g?.length),$k(e)}),vA=M(9,rA),yA=M(7,eA),bA=F(ck,PD),xA=M(8,e=>{nA(e),bA(e)}),SA=M(10,e=>{hA(e,e.k?.stack),CA(e,e.k?.sections?.[0]),Mk(e)}),CA=M(14,iO),wA=O(3,e=>j(e.a,[`_nN`,{_nO:e._.d.some(t=>t.id===e._._.k)}])),TA=I(53,wA,e=>e._._,`U34`),EA=e=>{TA(e),jA(e),MA._(e),NA._(e),FA._(e),LA._(e),RA._(e)},DA=v(1,`<span> </span>`,` D `,ID),OA=O(10,e=>DA(e,!e._.k||e.j!==e._.k?0:1)),kA=M(9,OA),AA=O(8,e=>kA(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),jA=I(55,AA,e=>e._._,`U35`),MA=x(0,1,wA),NA=x(0,1,e=>N(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),PA=_(2,`<!><!><!>`,`b%`,dA,gA),FA=x(0,1,e=>PA(e,[e._.i,`key`])),IA=(e,t)=>{zA(e,t?.kind),BA(e,t?.run)},LA=x(0,1,e=>IA(e,e._.j)),RA=x(0,1,OA),zA=M(6,AA),BA=M(7,AA),VA=O(2,e=>j(e.a,[`_nN`,{_nO:e._.g===e._._.k}])),HA=I(53,VA,e=>e._._,`U18`),UA=e=>{HA(e),WA._(e),GA._(e),wj._(e.b,e._._),Rj(e.b,!0),Dj(e.b,!0),Gj(e.b)},WA=x(0,0,e=>Uj(e.b,e._.f)),GA=x(0,0,VA),KA=v(0,(e=>`<span>${e}</span>`)(bD),(e=>` D/${e}&l`)(yD),UA,`<span role=group><!><!></span>`,` D%b%`,EA),qA=M(4,e=>{KA(e,e.e===1?0:1),NA(e)}),JA=(e,t)=>{YA(e,t[0]?.sections),QA(e,t[0]?.items),tj(e,t[0]?.main)},YA=M(3,e=>{qA(e,e.d?.length),XA(e,e.d?.[0]),MA(e)}),XA=M(5,e=>{ZA(e,e.f?.id),WA(e)}),ZA=M(6,GA),QA=M(8,e=>{$A(e,e.i?.[0]),FA(e)}),$A=M(9,LA),ej=F(Qk,Ak,ok,nO),tj=M(10,e=>{RA(e),ej(e)}),nj=O(20,e=>j(e.a,[`_n4`,{_n5:e.s,_n8:!!e.m,_nL:e.t}]),2),rj=M(19,e=>{N(e.a,`aria-current`,e.t?`true`:void 0),nj(e)}),ij=O(10,e=>rj(e,e._.k===e.j)),aj=I(53,ij,0,`U16`),oj=k(`U15`,e=>g(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),sj=ee(e=>{aj(e),j(e.c,`_n7`),oj(e)}),cj=M(9,ij),lj=M(12,nj),uj=M(18,nj),dj=(e,t)=>{N(e.a,`title`,[nT(t),t?.pr?.title].filter(Boolean).join(`
|
|
325
|
+
`)),lj(e,t?.unpushed),gj(e,t?.pr),_j(e,t?.edits)},fj=v(1,`<span> </span>`,` D `,RD),pj=M(17,e=>{fj(e,+!e.r),LD(e)}),mj=(e,t)=>y(e.d,t),hj=v(4,`<span>#<!></span>`,` Db%`,BD),gj=M(13,e=>{yj(e,e.n?.number),hj(e,+!e.n),zD(e)}),_j=(e,t)=>vD(e.f,t),vj=(e,t)=>{cj(e,t?.id),dj(e,t?.repo)},yj=M(14,VD),bj=O(27,e=>j(e.a,[`_nM`,{_n8:!!e.j,_nR:e.a0,_nL:e._.k===e.k}]),3),xj=O(11,e=>N(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),Sj=I(53,e=>{bj(e),xj(e)},0,`U13`),Cj=k(`U12`,e=>g(e.a,`click`,function(){e._.l(e.k)})),wj=ee(e=>{Sj(e),Cj(e)}),Tj=M(9,bj),Ej=M(10,e=>{N(e.a,`data-pick`,e.k),bj(e),xj(e)}),Dj=M(26,bj),Oj=O(21,e=>N(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${nn(e.p.length)} ${e.p.length===1?`file`:`files`}, +${nn(e.q??0)} −${nn(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,nT(e.i),e.u].filter(Boolean).join(`
|
|
326
|
+
`)),5),kj=M(8,e=>{Tj(e,e.i?.unpushed),Kj(e,e.i?.worktree),Vj(e,e.i?.pr),Hj(e,e.i?.edits),Oj(e)}),Aj=v(2,`<span><!><!></span>`,`D%b%`,XD,`<span> </span>`,` D `,JD),jj=O(23,e=>Aj(e,e.o?0:e.w?1:2)),Mj=M(14,e=>{Oj(e),jj(e),YD(e)}),Nj=M(15,Oj),Pj=M(16,Oj),Fj=M(17,Oj),Ij=M(20,Oj),Lj=v(1,`<span> </span>`,` D `,eO),Rj=(e,t)=>Lj(e,+!t),zj=M(22,e=>{jj(e),qD(e)}),Bj=v(3,`<span>#<!></span>`,` Db%`,GD),Vj=M(18,e=>{qj(e,e.s?.number),Bj(e,+!e.s),WD(e)}),Hj=(e,t)=>vD(e.e,t),Uj=(e,t)=>{kj(e,t?.repo),Ej(e,t?.id),Jj(e,t?.compare),Nj(e,t?.files),Pj(e,t?.additions),Fj(e,t?.deletions)},Wj=F(HD),Gj=M(28,e=>{QD(e),Wj(e)}),Kj=M(12,$D),qj=M(19,KD),Jj=(e,t)=>{Mj(e,t?.topic),Ij(e,t?.title),zj(e,t?.head)},Yj=C(15,e=>{N(e.c,`title`,pt(`prevSection`,e.p)||pt(`nextSection`,e.p)?`Sections (${[pt(`prevSection`,e.p),pt(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),Xj=v(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(jt),(e=>` D/${e}&l`)(_t),gk),Zj=O(20,e=>j(e.c,[`_nE`,{_nF:e.s,_nG:e.t}])),Qj=C(18,e=>{Xj(e,+!e.s),Zj(e)}),$j=v(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(jt),(e=>` D/${e}&l`)(_t),mk),eM=C(19,e=>{$j(e,+!e.t),Zj(e)}),tM=k(`U52`,e=>{{let t=e.o>0,n=e.k??``,r=requestAnimationFrame(()=>{t&&e.v();let r=e.c,i=r.querySelector(`[data-pick="${CSS.escape(n)}"]`);if(!i)return;let a=i.offsetLeft,o=a+i.offsetWidth,s=r.scrollLeft;if(a<s+AD||o>s+r.clientWidth-AD){let e=r.scrollWidth-r.clientWidth,t=a+i.offsetWidth/2-r.clientWidth/2;r.scrollTo({left:Math.max(0,Math.min(e,t)),behavior:r.dataset.placed?`smooth`:`instant`})}r.dataset.placed=`1`});re(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),nM=O(22,e=>{ae(e,2),tM(e)},2),rM=k(`U53`,e=>ce(e,{onMount:function(){let t=e.c,n=new ResizeObserver(()=>e.v());return n.observe(t),t.addEventListener(`wheel`,e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.deltaY)},{passive:!1}),e.v(),{ro:n}},onDestroy:function(){this.ro.disconnect()}})),iM=M(21,e=>{nM(e),rM(e)}),aM=M(23),oM=M(27),sM=O(36,e=>N(e.g,`aria-label`,e.a9?(e.a9?.item).kind===`group`?`${(e.a9?.item).name} group`:`${e.a2((e.a9?.item).run,(e.a9?.g).main)??(e.a9?.g).worktree} stack`:void 0)),cM=M(28,sM),lM=M(47),uM=v(6,`<!><!><!>`,`b%`,nk),dM=k(`U54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Qe(t,(e.a3?.chip).getBoundingClientRect()),n&&e.a3?.via===`click`&&(t.querySelector(`[aria-current="true"]`)??t.querySelector(`button`))?.focus()}else t.matches(`:popover-open`)&&t.hidePopover()}}),fM=O(37,dM),pM=M(35,e=>{FM(e,e.a9?.item?.kind),IM(e,e.a9?.item?.name),RM(e,e.a9?.item?.run),BM(e,e.a9?.item?.sections?.length),VM(e,e.a9?.item?.runs),HM(e,e.a9?.g?.main),UM(e,e.a9?.g?.worktree),uM(e,+!e.a9),fM(e),sM(e)}),mM=O(30,e=>pM(e,(()=>{if(e.a3){for(let t of e.y)for(let n of t.items)if(n.key===e.a3?.key)return{g:t,item:n}}})())),hM=M(45),gM=e=>{hM(e,$M(e))},_M=C(29,e=>{MM(e,e.a3?.key),PM(e,e.a3?.via),lM(e,QM(e)),mM(e),gM(e),fM(e)}),vM=k(`U55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{yM(e,null),_M(e,t.pop)},t.pop?TD:ED);re(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),yM=C(33,e=>{ae(e,1),vM(e)}),bM=M(48),xM=C(34,e=>bM(e,eN(e))),SM=k(`U56`,e=>{Yj(e,vt()),yt(()=>{Yj(e,vt())},re(e,0)),g(e.c,`scroll`,function(){e.v()}),g(e.d,`click`,function(){e.l(null)}),g(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&yM(e,null)}),g(e.g,`mouseleave`,function(){e.ak()}),g(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),yM(e,null),_M(e,null))}),g(e.g,`keydown`,function(e,t){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=[...t.querySelectorAll(`button`)],r=n.indexOf(document.activeElement);n[((e.key===`ArrowDown`?r+1:r-1)+n.length)%n.length]?.focus()})});function CM(e){ae(e,0),j(e.g,[`_bN`,`_nZ`]),Yj(e,0),Qj(e,!1),eM(e,!1),iM(e,JM(e)),aM(e,YM(e)),oM(e,XM),cM(e,ZM),_M(e,null),yM(e,null),xM(e,null),SM(e)}var wM=_(4,`<!><!><!>`,`b%`,0,JA),TM=M(24,e=>{wM(e,[e.y,`worktree`]),mM(e)}),EM=(e,t)=>{KM(e,t?.length),TM(e,(()=>{let e=[];for(let n of t){let t=e.find(e=>e.worktree===n.repo.worktree);t||e.push(t={worktree:n.repo.worktree,sections:[],items:[]}),t.sections.push(n),!t.main&&!n.compare?.topic&&!n.compare?.head&&(t.main=n)}for(let t of e)t.items=kD(OD(t.sections),t.main);return e})())},DM=M(26,F(jA,Tk)),OM=F(Xk),kM=M(25,e=>{DM(e,tN(e)),OM(e)}),AM=F(Sj,aj,HA,TA,zk,vk),jM=M(10,e=>{j(e.d,[`_nM`,{_nL:!e.k}]),N(e.d,`aria-pressed`,e.k?`false`:`true`),kM(e,nN(e)),nM(e),AM(e)}),MM=M(31,F(uA)),NM=M(46),PM=M(32,e=>NM(e,rN(e))),FM=M(39,tk),IM=M(40,F(YO,LO,kO,CO)),LM=F(hO),RM=M(41,e=>{zM(e,e.af?.sections),LM(e)}),zM=M(52,F(yO)),BM=M(50,F(ZO)),VM=M(51,F($O)),HM=M(43,F(RO,AO,wO,gO,cO)),UM=M(44,F(zO,_O)),WM=(e,t)=>j(e.a,[`_nD`,t]),GM=(e,t)=>N(e.d,`title`,t==null?`Every section`:`Every section: ${nn(t)} ${t===1?`file`:`files`}`),KM=M(14,nM),qM=M(11),JM=e=>()=>{let t=e.c;Qj(e,t.scrollLeft>1),eM(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},YM=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function XM(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function ZM(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var QM=e=>()=>{xM(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},$M=e=>(t,n)=>{e.a6!==`click`&&yM(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},eN=e=>(t,n)=>{let r=e.a8;if(xM(e,null),yM(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}_M(e,{key:t,chip:n,via:`click`})},tN=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],nN=e=>t=>t.find(t=>t.id===e.k),rN=e=>()=>{yM(e,e.a6===`hover`?{pop:null}:null)};b.U0=JM,b.U1=YM,b.U4=XM,b.U5=ZM,b.U8=QM,b.U6=$M,b.U9=eN,b.U3=tN,b.U2=nN,b.U7=rN;var iN=ue,aN=(e=>`/${e}&`)(Oe);function oN(e){ye(e.a,Ce)}var sN=(e,t)=>Ae(e.a,t),cN=(e,t)=>me(e.a,t),lN=ue,uN=(e=>`/${e}&`)(Oe);function dN(e){ye(e.a,ve)}var fN=(e,t)=>Ae(e.a,t),pN=(e,t)=>me(e.a,t),mN=((e,t,n)=>`<div><div role=group><button type=button><span aria-hidden=true>${e}<span> </span></span><!></button><button type=button aria-label="Send options" aria-haspopup=menu></button></div><span>${t} No comments</span></div><div popover=auto role=menu><!><button type=button role=menuitem><span>${n}</span><span>Copy as markdown</span></button></div>`)(lN,lN,mn),hN=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(uN,uN,pn),gN=e=>{dn(e.a),un(e.a,12),fn(e.a)},_N=x(7,3,e=>y(e.b,tt(e._.a4))),vN=e=>{_N._(e),j(e.a,[`_nn`,`_9`]),j(e.c,`_8`)},yN=x(7,0,e=>y(e.a,e._.a0?`Copied`:`Copy failed`)),bN=yN,xN=v(1,ln,(e=>`/${e}&`)(sn),gN),SN=I(41,e=>{N(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),xN(e,e.M===e._._.a7?0:1)},e=>e._._,`s3`),CN=k(`s2`,e=>g(e.a,`click`,function(){RN(e._._,e.M),e._._.l.hidePopover()})),wN=e=>{SN(e),j(e.a,n),j(e.b,`_ns`),mt(e.c,14),dt(e.c),j(e.d,`_nt`),CN(e)},TN=(e,t)=>ft(e.c,t),EN=(e,t)=>{y(e.e,tt(t)),TN(e,t?.agent)},DN=_(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(Ct),(e=>` D b/${e}& D m`)(`b%c`),wN,(e,t)=>EN(e,t[0])),ON=x(12,0,e=>DN(e,[e._.a1,`id`])),kN=e=>{ON._(e),j(e.a,`_nq`),j(e.c,`_nu`)},AN=M(36),jN=O(31,e=>AN(e,eP(e)),2),MN=v(7,` `,` `,bN,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,vN,`Send`),NN=O(32,e=>MN(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),PN=C(23,e=>{N(e.c,`disabled`,e.x),N(e.i,`disabled`,e.x),jN(e),NN(e)}),FN=O(35,e=>N(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${tt(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),IN=M(30,e=>{JN(e,e.a4?.id),jN(e),FN(e),NN(e),_N(e)}),LN=O(28,e=>IN(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),RN=C(24,LN),zN=k(`s5`,e=>{if(e.z){let t=setTimeout(()=>{BN(e,null)},1500);re(e,0).onabort=()=>clearTimeout(t)}}),BN=C(25,e=>{ae(e,0),UN(e,e.z?.ok),NN(e),zN(e)}),VN=k(`s4`,e=>{g(e.c,`click`,function(){e.a4?e.aa():e.ab()}),g(e.i,`click`,function(){let t=e.l;t.showPopover(),Qe(t,e.b.getBoundingClientRect(),{align:`end`})}),g(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function HN(e){j(e.c,`_nk`),j(e.d,[`_N`,`_nl`]),dN(e.e),fN(e.e,18),pN(e.e,`_O`),j(e.f,[o,`_nm`]),j(e.i,`_no`),dN(e.k),fN(e.k,16),pN(e.k),j(e.l,l),j(e.n,n),j(e.o,`_ns`),gn(e.p),hn(e.p,14),_n(e.p),j(e.q,`_nt`),PN(e,!1),RN(e,null),BN(e,null),VN(e)}var UN=M(26,yN),WN=M(27,e=>{KN(e,e.a1.length),LN(e),ON(e)}),GN=v(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,kN),KN=M(29,e=>{GN(e,+!e.a3),NN(e)}),qN=(e,t)=>WN(e,t||[]),JN=M(33,F(SN)),YN=M(34,e=>{N(e.b,`aria-label`,e.a8),FN(e)}),XN=M(20,e=>{j(e.a,[`_ng`,!e.u&&`_ni`]),j(e.b,[`_nf`,!e.u&&`_nh`]),N(e.b,`inert`,!e.u),y(e.g,e.u>99?`99+`:e.u),j(e.j,[`_nj`,!!e.u&&`_nh`]),YN(e,Yt(e.u,`comment`)),FN(e)}),ZN=M(21,jN),QN=M(37),$N=M(22,e=>QN(e,tP(e))),eP=e=>()=>{(async()=>{if(e.a4&&!e.x){PN(e,!0);try{await e.v(e.a4?.id)}finally{PN(e,!1)}}})()},tP=e=>()=>{(async()=>{BN(e,{ok:await e.w()})})()};b.s0=eP,b.s1=tP;var nP=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
327
327
|
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
328
328
|
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
329
329
|
</symbol>
|
|
@@ -1588,4 +1588,4 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
1588
1588
|
}`}function hz(e){return`${pz}
|
|
1589
1589
|
@layer unsafe {
|
|
1590
1590
|
${e}
|
|
1591
|
-
}`}var gz=new WeakMap;function _z(e){let t=gz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(vF,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),gz.set(e,i),i}function vz(e,t){if(!e.isConnected)return;let n=_z(t);if(n==null)return;let r=t.querySelector(`style[${yF}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(yF,``),t.appendChild(i)),i.textContent=`:host { ${bF}: ${n}px; }`}var yz;function bz(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){yz??(yz=new CSSStyleSheet,yz.replaceSync(mz(fz)));let t=!1;try{e.adoptedStyleSheets=[yz],t=!0}catch{}if(t){e.querySelector(`style[${gF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(gF,``),t.textContent=mz(fz),e.prepend(t)}}function xz(e,t){Sz(e,t),bz(t),vz(e,t)}function Sz(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});xz(this,e)}}if(customElements.define(hF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(hF)))e instanceof HTMLElement&&xz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Cz=e=>e.startsWith(`f::`)?e.slice(3):e;function wz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Tz(e,t){return e===``?t:`${e}/${t}`}function Ez({files:e,path:t,isFolder:n,nextBasename:r}){let i=Cz(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=wz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Tz(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function Dz(e){return e.endsWith(`/`)}function Oz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function kz(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function Az(e,t){return t.includes(e)?kz(t):[e]}function jz(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function Mz(e,t){return{draggedPaths:e,target:t}}function Nz(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Dz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function Pz(e,t){return t.kind===`root`||t.directoryPath==null?Oz(e):t.directoryPath}function Fz(e,t){let n=e.map(e=>{let n=Pz(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function Iz(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function Lz(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!Iz(sz.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function Rz(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function zz(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function Bz(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function Vz(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return Bz(e,t.path)?n?e:null:e;case`move`:return zz(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=Vz(r,e,n),r==null)return null;return r}}}function Hz(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Uz(e){switch(e.operation){case`add`:return{...Hz(e),operation:`add`,path:e.path};case`remove`:return{...Hz(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...Hz(e),from:e.from,operation:`move`,to:e.to}}}function Wz(e){return{...Hz(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>Uz(e)),operation:`batch`}}function Gz(e){switch(e.operation){case`add`:case`remove`:case`move`:return Uz(e);case`batch`:return Wz(e);default:return null}}function Kz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function qz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Jz(e){return qz(e).at(-1)??null}function Yz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function Xz(e){return e.endsWith(`/`)}var Zz=e=>e.toLowerCase();function Qz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function $z(e){return e.endsWith(`/`)?e.slice(0,-1):e}function eB(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var tB=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},nB=Symbol(`FILE_TREE_RENAME_VIEW`),rB=512,iB=512;function aB(e){return e===`top`||e===`center`?e:`nearest`}function oB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=qz(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function sB(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:oB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var cB=class e{static{Object.defineProperty(e.prototype,nB,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=Lz({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=Jz(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:aB(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=iB){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=Az(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=Mz(t.draggedPaths,n);(Nz(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}jz(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=Mz(e.draggedPaths,t);if(Nz(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=Fz(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=Xz(r),a=$z(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of qz(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=Qz(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,Xz(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,Xz(e)?{recursive:!0}:void 0);return}let t=Xz(e),n=Ez({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:$z(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(eB(n.sourcePath,t),eB(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=Lz({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!Kz(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=Jz(e),n=Yz(e,t),r=null,i=null;for(let e of this.#be()){if(Jz(e)!==t)continue;let a=Yz(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=qz(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!Kz(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new sz({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of qz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Zz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Zz),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of qz(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:tB(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of qz(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of qz(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=sB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,rB)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=Vz(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=Vz(this.#c,e,!0),r=[...this.#B].map(t=>Vz(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=Vz(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Kz(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&Rz(e)&&(this.#i=null);let t=Rz(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=Gz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},lB=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function uB(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function dB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function fB(e,t){return t?`${e}/`:e}function pB(e,t=null){let n=lB(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=hB(t);e!=null&&vB({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function mB(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=gB(e);t!=null&&(c=_B({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=hB(e);t!=null&&(c=vB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:xB(i),statusByPath:i}:e}function hB(e){return gB(e.path)}function gB(e){let t=uB(e);if(t!=null)return{canonicalPath:fB(t.path,t.isDirectory),isDirectory:t.isDirectory}}function _B({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),bB(t,n,e),!0)}function vB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??yB(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function yB(e,t,n){for(let r of dB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function bB(e,t,n){for(let r of dB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function xB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB={},MB=[],NB=Array.isArray,PB=MB.slice,FB=Object.assign;function IB(e){e&&e.parentNode&&e.remove()}function LB(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?PB.call(arguments,2):n),RB(e,o,r,i,null)}function RB(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++SB,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function zB(e){return e.children}function BB(e,t){this.props=e,this.context=t,this.__g=0}function VB(e,t){if(t==null)return e.__?VB(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?VB(e):null}function HB(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return HB(e)}}function UB(e){(8&e.__g||!(e.__g|=8)||!CB.push(e)||TB++)&&wB==Z.debounceRendering||((wB=Z.debounceRendering)||queueMicrotask)(WB)}function WB(){for(var e,t,n,r,i,a,o,s,c=1;CB.length;)CB.length>c&&CB.sort(EB),e=CB.shift(),c=CB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=FB({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),QB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??VB(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,eV(a,n,o),n.__e!=i&&HB(n)));TB=0}function GB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||MB,b=t.length;for(c=KB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?jB:y[m.__i]||jB,m.__i=f,_=QB(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&rV(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=qB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function KB(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?RB(null,o,null,null,null):NB(o)?RB(zB,{children:o},null,null,null):o.constructor==null&&o.__b>0?RB(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=JB(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=VB(s)),iV(s,s));return r}function qB(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=qB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=VB(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function JB(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function YB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function XB(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||YB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||YB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(DB,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=OB,e.addEventListener(t,a?AB:kB,a)):e.removeEventListener(t,a?AB:kB,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function ZB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=OB++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function QB(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,ee,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=Z.__b)&&d(t);n:if(typeof j==`function`)try{if(v=t.props,y=`prototype`in j&&j.prototype.render,b=(d=j.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new j(v,x):(t.__c=f=new BB(v,x),f.constructor=j,f.render=aV),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&j.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=FB({},f.__s)),FB(f.__s,j.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&j.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&j.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=Z.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=FB({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===zB&&d.key==null&&(E=tV(d.props.children)),s=GB(e,NB(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ee=a.length;ee--;)IB(a[ee]);$B(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||$B(t);Z.__e(e,t,n)}else s=t.__e=nV(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function $B(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach($B)}function eV(e,t,n){for(var r=0;r<n.length;r++)rV(n[r],n[++r],n[++r]);Z.__c&&Z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Z.__e(e,t.__v)}})}function tV(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:NB(e)?e.map(tV):FB({},e)}function nV(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(Z.__m&&Z.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=PB.call(e.childNodes),v=n.props||jB,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;XB(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||XB(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),GB(b==`template`?e.content:e,NB(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&VB(n,0),s,c,l),a!=null)for(u=a.length;u--;)IB(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||XB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&XB(e,u,g,v[u],i))}return e}function rV(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){Z.__e(e,n)}}function iV(e,t,n){var r,i;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||rV(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Z.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&iV(r[i],t,n||typeof e.type!=`function`);n||IB(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function aV(e,t,n){return this.constructor(e,n)}function oV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),Z.__&&Z.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=LB(zB,null,[e]),i=[],a=[],QB(t,e,r||jB,jB,t.namespaceURI,r?null:t.firstChild?PB.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),eV(i,e,a)}function sV(e,t){e.__u|=32,oV(e,t)}Z={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw TB=0,e}},SB=0,BB.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=FB({},this.state);typeof e==`function`&&(e=e(FB({},n),this.props)),e&&FB(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),UB(this))},BB.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),UB(this))},BB.prototype.render=zB,CB=[],TB=0,EB=function(e,t){return e.__v.__b-t.__v.__b},DB=/(PointerCapture)$|Capture$/i,OB=0,kB=ZB(!1),AB=ZB(!0);var cV=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--cV,__i:-1,__u:0,__source:i,__self:a};return Z.vnode&&Z.vnode(l),l}var lV=16,uV=16,dV={};function fV({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=dV[e]??{width:lV,height:uV},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var pV=e=>e!==void 0&&/\s/.test(e),mV=(e,t)=>{let n=t=>pV(e[t-1])||pV(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},hV=e=>mV(e,Math.ceil(e.length/2)),gV=e=>{if(e.length<2)return[e,``];let t=hV(e);return[e.slice(0,t),e.slice(t)]},_V=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:hV(e);return[e.slice(0,r),e.slice(r)]},vV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},yV=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},bV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},xV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function SV({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function CV(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function wV({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(CV,{mode:t,children:e},`content`),o=Q(SV,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function TV({children:e,...t}){"use no memo";return Q(wV,{mode:`truncate`,...t,children:e})}function EV({children:e,...t}){"use no memo";return Q(wV,{mode:`fruncate`,...t,children:e})}function DV({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(TV,{...s,children:t[0]}),l=Q(EV,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?EV:TV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=gV:r===`extension`?t=_V:r===`leaf-path`&&(t=vV);else if(typeof r==`number`)t=yV,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=bV:e===`first`&&(t=xV)}else typeof r==`function`&&(t=r);t??=gV;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(TV,{...s,..._,children:f}),l=Q(EV,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var OV={endIndex:-1,startIndex:-1};function kV(e,t,n){return Math.min(Math.max(e,t),n)}function AV(e,t){return e<0||t<e?OV:{endIndex:t,startIndex:e}}function jV(e){return e.startIndex<0||e.endIndex<e.startIndex}function MV(e,t){return jV(e)?0:(e.endIndex-e.startIndex+1)*t}function NV(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function PV(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function FV(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function IV(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function LV(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function RV(e,t,n){if(e.length===0||t<=0)return[];let r=LV(e),i=FV(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=IV(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function zV(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=kV(t.scrollTop,0,o),c=t.stickyRows??RV(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=NV(s,n,t.itemHeight),m=NV(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?OV:AV(m,PV(u+d,n,t.itemHeight)),y=g+1,b=jV(v)?OV:AV(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=MV(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:jV(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var BV={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},VV={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},HV=`Contains git status items`;function UV(e){return e.current?!0:(e.current=!0,!1)}function WV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function GV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return WV({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function KV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function qV(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function JV(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function YV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function XV(e,t){return e!=null&&e>0?e:t}function ZV(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function QV(e,t,n,r,i=0){let a=WV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function $V(e,t,n,r,i,a,o=0){let s=GV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function eH(e,t,n,r,i,a){let o=KV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function tH(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function nH(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function rH({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function iH(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function aH(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var oH,sH,cH,lH,uH=Object.is,dH=0,fH=[],pH=Z,mH=pH.__b,hH=pH.__r,gH=pH.diffed,_H=pH.__c,vH=pH.unmount,yH=pH.__;function bH(e,t){pH.__h&&pH.__h(sH,e,dH||t),dH=0;var n=sH.__H||(sH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xH(e){return dH=1,SH(NH,e)}function SH(e,t,n){var r=bH(oH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):NH(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);uH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=sH,!sH.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,uH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};sH.__f=!0;var a=sH.shouldComponentUpdate,o=sH.componentWillUpdate;sH.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},sH.shouldComponentUpdate=i}return r.__N||r.__}function CH(e,t){var n=bH(oH++,3);!pH.__s&&MH(n.__H,t)&&(n.__=e,n.u=t,sH.__H.__h.push(n))}function wH(e,t){var n=bH(oH++,4);!pH.__s&&MH(n.__H,t)&&(n.__=e,n.u=t,sH.__h.push(n))}function $(e){return dH=5,TH(function(){return{current:e}},[])}function TH(e,t){var n=bH(oH++,7);return MH(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function EH(e,t){return dH=8,TH(function(){return e},t)}function DH(){for(var e;e=fH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(AH),e.__H.__h.forEach(jH),e.__H.__h=[]}catch(t){e.__H.__h=[],pH.__e(t,e.__v)}}pH.__b=function(e){sH=null,mH&&mH(e)},pH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yH&&yH(e,t)},pH.__r=function(e){hH&&hH(e),oH=0;var t=(sH=e.__c).__H;t&&(cH===sH?(t.__h=[],sH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(AH),t.__h.forEach(jH),t.__h=[],oH=0)),cH=sH},pH.diffed=function(e){gH&&gH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(fH.push(t)!==1&&lH===pH.requestAnimationFrame||((lH=pH.requestAnimationFrame)||kH)(DH)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),cH=sH=null},pH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(AH),e.__h=e.__h.filter(function(e){return!e.__||jH(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],pH.__e(n,e.__v)}}),_H&&_H(e,t)},pH.unmount=function(e){vH&&vH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{AH(e)}catch(e){t=e}}),n.__H=void 0,t&&pH.__e(t,n.__v))};var OH=typeof requestAnimationFrame==`function`;function kH(e){var t,n=function(){clearTimeout(r),OH&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);OH&&(t=requestAnimationFrame(n))}function AH(e){var t=sH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),sH=t}function jH(e){var t=sH;e.__c=e.__(),sH=t}function MH(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!uH(t,e[n])})}function NH(e,t){return typeof t==`function`?t(e):t}function PH(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(zB,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(TV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function FH(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function IH(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function LH(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function RH({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=zV(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:LH(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?LH(u,1,t,o):i&&r<=0&&c.length>0?RV(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var zH=400,BH=40,VH=18;function HH(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?UH(e,t,n):a instanceof HTMLElement?a:null}function UH(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function WH(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function GH(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function KH(){return navigator.vendor!==`Apple Computer, Inc.`}function qH(e,t){let n=e-t.top;if(n<BH)return-Math.ceil((BH-Math.max(0,n))/BH*VH);let r=t.bottom-e;return r<BH?Math.ceil((BH-Math.max(0,r))/BH*VH):0}function JH(e,t){if(e!=null){let t=BV[e];return t==null?null:{text:t,title:VV[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:HV}:null}function YH(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function XH(e){return e!=null&&`toggle`in e}function ZH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function QH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function $H(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function eU(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function tU(e,t){return t&&eU(e)||(e.ctrlKey||e.metaKey)&&ZH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var nU=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function rU(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function iU(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function aU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function oU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function sU(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function cU(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function lU(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function uU(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function dU(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=uU(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function fU(e,t){return{kind:e.kind,name:IH(e),path:t}}function pU(e){return e==null?void 0:`${e}__tree`}function mU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function hU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function gU(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?hU(e.icon)?t(e.icon):{name:e.icon}:hU(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(fV,{...n})})}function _U(e){e!=null&&qV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function vU(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=FH(e);return Q(zB,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(fV,{...t(`file-tree-icon-chevron`)}):Q(fV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?PH(e,c,a):c??Q(DV,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:gU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:gU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(fV,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function yU(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:ee,onRowClick:j,onKeyDown:M}=e,N=FH(t),{isParked:te=!1,mode:ne=`flow`,style:re}=r,ie=ne===`sticky`,ae=_?.get(N)??null??YH(t.ancestorPaths,v,y),P=t.kind===`directory`&&(b?.has(N)??!1),oe=A(t,N),F=JH(ae,P),se=S&&w,I=oe!=null||x||se,ce=se&&T===`always`,le=a.getPath()===N,ue=le?a.getValue():``,de=ie||!le?null:Q(rH,{ref:D,ariaLabel:`Rename ${IH(t)}`,isFlattened:t.isFlattened,value:ue,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),fe=vU(t,k,{actionLaneEnabled:se,customDecoration:oe,decorationLaneEnabled:I,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:F,gitLaneActive:x,renameInput:de,showDecorativeActionAffordance:ce}),pe={...iH({ariaLabel:IH(t),domId:t.isFocused?mU(h,N,te):void 0,extraStyle:re,features:{actionLaneEnabled:se,contextMenuButtonVisibility:se?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:te,itemHeight:g,mode:ne,row:t,state:{containsGitChange:P,effectiveGitStatus:ae,isContextHovered:s===N,isDragTarget:l?.kind===`directory`&&l.directoryPath===N,isDragging:c?.has(N)===!0,isFocusRinged:t.isFocused&&o===N},targetPath:N}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(N),ee(t,N,{anchorRect:aU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ie?void 0:()=>{i.focusMountedPathFromInput(N)},onKeyDown:ie?void 0:M,ref:e=>{O(N,e)}};return!ie&&le?Q(`div`,{...pe,children:fe}):Q(`button`,{...pe,type:`button`,draggable:u&&!te,onDragEnd:u&&!te?p:void 0,onDragStart:u&&!te?e=>{f(e,t,N)}:void 0,onMouseDown:e=>{if(ie){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!te?e=>{m(e,t,N)}:void 0,onClick:e=>{j(e,t,N,ne)},children:fe})}function bU(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(FH(e))).map((n,r)=>yU(e,n,t.start+r))}function xU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=dz,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),T=$(new Map),E=$(new Map),D=$(()=>{}),O=$(null),k=$(0),A=$(!1),ee=$(null);ee.current!==t&&(A.current=!1,ee.current=t);let j=$(!1),M=$(null),N=$(null),te=$(!1),ne=$(null),re=$(null),ie=$(null),ae=$(null),P=$(null),oe=$(null),F=$(null),se=$(null),I=$(!1),ce=$(null),le=$(null),ue=$(null),de=$(null),fe=TH(()=>new Map,[]),[,pe]=xH(0),me=$(!1),[he,ge]=xH(null),[_e,ve]=xH(null),[ye,be]=xH(null),[xe,Se]=xH(null),[Ce,we]=xH(0),[L,Te]=xH(null),Ee=$(L);Ee.current=L;let De=$(null),Oe=$(null),ke=$(null),Ae=$(null),je=$(null),Me=$(!1),Ne=()=>{Oe.current=null,ke.current=null,Ae.current=null},Pe=(e,t)=>{Oe.current=e,ke.current=null,Ae.current=t==null?null:{path:e,scrollTop:t}},Fe=(e,t)=>{Oe.current=null,ke.current={path:e,viewportOffset:t},Ae.current=null},Ie=$(d===`retain`&&t.isSearchOpen()),[Le,Re]=xH(p);CH(()=>{p||Re(!1)},[p]);let ze=$(!1),Be=EH(()=>{ze.current=!0,Re(e=>e&&!1)},[]),[Ve,He]=xH(()=>RH({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Ue,We]=xH(!1);CH(()=>{We(!0)},[]);let Ge=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ke=e?.contextMenu?.triggerMode??(Ge?`right-click`:`both`),qe=Ke===`both`||Ke===`button`,Je=e?.contextMenu?.buttonVisibility??`when-needed`,Ye=Ke===`both`||Ke===`right-click`;wH(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;je.current=t,ve(t),Se(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Me.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Xe=EH((e,t)=>{sU(T.current,e,t)},[]),Ze=EH((e,t)=>{sU(E.current,e,t)},[]),Qe=EH(e=>{x.current=e},[]),$e=EH(e=>cU(e,E.current,T.current),[]),et=n!=null||r!=null||i!=null,{resolveIcon:tt}=TH(()=>AF(a),[a]),nt=t[nB](),rt=nt.getPath(),it=rt!=null,at=t.isSearchOpen(),ot=t.getSearchValue(),R=t.getFocusedPath(),z=t.getFocusedIndex(),st=t.getScrollRequest(),ct=t.isDragAndDropEnabled(),lt=t.getDragSession(),ut=TH(()=>lt==null?null:new Set(lt.draggedPaths),[lt]),dt=lt?.target??null,ft=lt?.primaryPath??null,pt=pU(o),{overlayHeight:mt,overlayRows:ht,snapshot:gt,visibleRows:_t}=Ve,vt=gt.physical.viewportHeight,yt=TH(()=>({end:gt.window.endIndex,start:gt.window.startIndex}),[gt.window.endIndex,gt.window.startIndex]),bt=ht,xt=gt.sticky.rows,St=gt.physical.totalHeight,Ct=gt.sticky.height,wt=TH(()=>new Set(xt.map(e=>FH(e.row))),[xt]),Tt=z>=0&&z>=yt.start&&z<=yt.end,Et=EH((e,t)=>u?.({item:fU(e,t),row:e})??null,[u]),Dt=EH(e=>qV(e==null?null:T.current.get(e)??null)?!0:qV(S.current),[]),Ot=EH(e=>{Dt(t.focusNearestPath(e))},[t,Dt]),kt=$(Ot);kt.current=Ot;let At=$(!0),jt=$(()=>{}),Mt=EH((t=!0)=>{let n=Ee.current;n!=null&&(At.current=At.current&&t,Te(null),e?.contextMenu?.onClose?.(),At.current&&Ot(n.path))},[e?.contextMenu,Ot]);jt.current=Mt;let Nt=EH(e=>{let t=e==null?null:oU(S.current,e);be(e=>e===t?e:t)},[]),Pt=EH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=$e(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Pe(n,e?.scrollTop??null),j.current=!0,ge(e=>e===n?e:n)}i.focus(),Nt(a),At.current=!0,Te({anchorRect:r?.anchorRect??null,item:fU(e,n),path:n,source:r?.source??`keyboard`})},[t,$e,Nt]),Ft=EH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=YV(e,vt);ne.current=z<0||e==null?null:Math.max(0,Math.min(z*s-e.scrollTop,Math.max(0,t-s))),te.current=!0}t.startRenaming(e)!==!1&&(Se(`focus`),pe(e=>e+1))}},[t,z,s,l,vt]),It=EH((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=YV(i,vt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:RH({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return j.current=!0,eH(i,a,s,l,u,d),D.current(),De.current=n?e:null,!0},[t,s,c,vt,h]),Lt=()=>y.current===!0||de.current!=null||I.current===!0,Rt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),zt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Bt=()=>{ae.current!=null&&(clearTimeout(ae.current),ae.current=null),ie.current=null},Vt=()=>{oe.current?.remove(),oe.current=null},Ht=()=>{zt(re.current),re.current=null,P.current=null},Ut=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Wt=()=>{se.current?.(),se.current=null,de.current!=null&&(clearTimeout(de.current),de.current=null),I.current=!1,ce.current=null,ue.current=null,le.current!=null&&(le.current.setAttribute(`draggable`,`true`),le.current.style.removeProperty(`touch-action`),le.current=null),Vt(),Bt(),Ht(),F.current=null},Gt=(e,n)=>{let r=S.current?.getRootNode(),i=WH(HH(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Kt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Bt();return}let r=t.getItem(e.directoryPath),i=XH(r)?r:null;if(i==null||i.isExpanded()){Bt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ie.current!==a&&(Bt(),ie.current=a,ae.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},qt=()=>{re.current=null;let e=P.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=qH(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,D.current()),Kt(Gt(e.clientX,e.clientY)),re.current=Rt(qt)},Jt=(e,t)=>{P.current={clientX:e,clientY:t},re.current??=Rt(qt)},Yt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Wt(),Vt(),Bt(),Ht(),t.startDrag(r)===!1){e.preventDefault();return}if(F.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),KH())){let t=GH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Ut(t),oe.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Xt=()=>{Vt(),Bt(),Ht(),F.current=null,t.cancelDrag()},Zt=(e,n,r)=>{if(de.current!=null||I.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;ue.current={clientX:i.clientX,clientY:i.clientY},le.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!I.current;de.current!=null&&(clearTimeout(de.current),de.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),se.current===o&&(se.current=null),t&&(a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null)},s=e=>{let t=e.touches[0],n=ue.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),se.current=o,de.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null;return}I.current=!0,le.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),F.current=n;let e=a.getBoundingClientRect(),s=GH(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Ut(s),oe.current=s,ce.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=ce.current;n!=null&&oe.current!=null&&(oe.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Kt(Gt(t.clientX,t.clientY)),Jt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Gt(n.clientX,n.clientY),t.completeDrag(),Wt()},u=()=>{t.cancelDrag(),Wt()};se.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},zH)},Qt=e=>{if(L!=null){if(e.key===`Escape`){Mt(),e.preventDefault(),e.stopPropagation();return}nU.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(nt.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)nt.cancel();else if(e.key===`Enter`)nt.commit();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ft(R??void 0),e.preventDefault(),e.stopPropagation();return}if(at){if(e.key===`Escape`)te.current=!1,ne.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=YV(n,vt);ne.current=z<0||n==null?null:Math.max(0,Math.min(z*s-n.scrollTop,Math.max(0,r-s))),te.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&QH(e)){t.openSearch(e.key),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ge&&eU(e),r=tU(e,Ge),i=r&&S.current!=null?JV(S.current):null,a=r?new Set(lU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==R&&a.has(o)){let e=C.current;Pe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=XH(p)?p:null,h=u!=null&&(wt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=cU(u,E.current,T.current);e==null||n==null?y=!1:Pt(e,u)}else if((e.ctrlKey||e.metaKey)&&ZH(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;Se(`focus`);let b=t.getFocusedPath(),x=b!=null&&(wt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Pe(b,v?.scrollTop??null),j.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Fe(b,dU(S.current,v,i,u,s,Ct,vt)),j.current=!0,ge(e=>e===b?e:b)):Ne()}pe(e=>e+1),e.preventDefault(),e.stopPropagation()};wH(()=>{if(f&&at){if(Ie.current){Ie.current=!1;return}qV(w.current)}},[at,f]),wH(()=>{let e=x.current;switch(nH({hasRenderedInput:e!=null,previousRenamingPath:N.current,renamingPath:rt})){case`reset`:N.current=null;return;case`reveal-canonical`:rt!=null&&It(rt,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(De.current=null,N.current=rt,qV(e),e.select());return}},[yt.end,yt.start,rt,It,wt]),wH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=JV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),j.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,JV(e)!=null){r();return}j.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),j.current=!1,ge(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ge(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),wH(()=>{let e=S.current;e!=null&&(gt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[gt.physical.scrollTop]),wH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=YV(n,g);let a=()=>{let e=t.getVisibleCount(),r=XV(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),He(RH({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!A.current){A.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=XV(O.current,g),i=t.getVisibleRows(e,e)[0]??null;QV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=t.subscribe(()=>{UV(me)&&pe(e=>e+1),a()}),l=()=>{Me.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,we(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Me.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Ee.current!=null&&y.current&&jt.current(),Me.current===!0){y.current=!1;return}ve(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{O.current=(e[0]==null?null:ZV(e[0]))??YV(n,g),a()}):null;return x?.observe(n),()=>{D.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,O.current=null,x?.disconnect()}},[t,g,s,c,h]),wH(()=>{Ge||L==null||Mt(!1)},[Mt,Ge,L]);let $t=TH(()=>L==null?null:`${L.path}::${L.source}`,[L]);wH(()=>{if($t==null){m?.clearSlotContent(SF);return}let t=Ee.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??iU(n.getBoundingClientRect()),close:e=>{jt.current(e?.restoreFocus??!0)},restoreFocus:()=>{At.current&&kt.current(Ee.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(SF,i),e?.contextMenu?.onOpen?.(t.item,r),_U(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&_U(i)}),()=>{m?.clearSlotContent(SF)}},[$t,e?.contextMenu,m]),wH(()=>{L!=null&&t.getItem(L.path)==null&&Mt()},[Mt,L,t]),wH(()=>{if(L==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(rU(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Mt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Mt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Mt,L]),wH(()=>{let e=C.current,n=S.current;if(e==null||n==null){M.current=R;return}let r=R==null?null:T.current.get(R)??null,i=JV(n),a=i?.dataset.itemPath??null,o=it&&x.current===i,c=f&&w.current===i,l=te.current&&!at,u=ne.current??0,d=De.current,p=Oe.current,m=ke.current,g=Ae.current,_=i!=null,v=j.current||_,y=M.current!==R,b=p!=null&&p===R&&R!=null,E=!1,O=!1;if(st!=null&&st.id!==k.current){k.current=st.id;let n=st.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,vt-s))):Ct;E=!0,O=$V(e,n,s,vt,St,st.offset,t)}t.clearScrollRequest(st.id)}let A=!E&&l&&eH(e,z,s,vt,St,u),ee=!E&&d!=null&&d===R&&eH(e,z,s,vt,St,Ct),N=!E&&m!=null&&m.path===R&&eH(e,z,s,vt,St,m.viewportOffset),re=!E&&g!=null&&g.path===R&&e.scrollTop!==g.scrollTop;if(re&&(e.scrollTop=g.scrollTop),(re||O||ee||N||A||v&&y&&d!==R&&!b&&QV(e,z,s,vt,Ct))&&D.current(),E){M.current=R;return}if(!v){M.current=R;return}if(o){M.current=R;return}if(c&&!l){M.current=R;return}if(r==null){l&&z>=0&&(eH(e,z,s,vt,St,u),D.current()),M.current=R;return}(y||l||d===R||p===R||m?.path===R||g?.path===R||a==null||a!==R)&&(qV(r),d===R&&(De.current=null),p===R&&(Oe.current=null),m?.path===R&&(ke.current=null),g?.path===R&&(Ae.current=null),te.current=!1,ne.current=null),M.current=R},[t,z,R,Tt,s,it,at,yt,vt,f,st,h,Ct,St,_t]);let en=z>=0&&z>=gt.visible.startIndex&&z<=gt.visible.endIndex,tn=R!=null&&bt.some(e=>FH(e.row)===R),nn=en||tn,rn=qe&&j.current===!0&&nn?R:null,an=xe===`pointer`?_e:null,on=L?.path??je.current??an??rn??_e,sn=L?.source===`right-click`;wH(()=>{y.current&&L==null||Nt($e(on))},[L,$e,yt,vt,Ce,bt,on,Nt,_t]);let cn=EH(e=>{if(y.current||rU(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&Se(e=>e===`pointer`?e:`pointer`),ve(e=>e===i?e:i)},[]),ln=EH(()=>{ve(null)},[]);wH(()=>{if(!ct)return;let e=()=>{Wt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Wt(),t.cancelDrag()}},[t,ct]);let un=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=WH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Kt(t.getDragSession()?.target??null),Jt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},dn=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Bt(),Ht(),t.setDragTarget(null))},fn=e=>{ct&&t.getDragSession()!=null&&!I.current&&(e.preventDefault(),Gt(e.clientX,e.clientY),t.completeDrag(),Vt(),Bt(),Ht(),F.current=null)},pn=gt.window.height,mn=gt.window.offsetTop,hn=Math.min(0,vt-pn),gn=Math.min(0,vt-pn-Ct),_n=he===R||te.current,vn=R!=null&&_n&&!Tt&&z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null,yn=vn==null?null:tH(z,s,yt,pn),bn=F.current,xn=ft!=null&&bn!=null&&bn.path===ft&&bn.index>=yt.start&&bn.index<=yt.end,Sn=ft!=null&&bn!=null&&bn.path===ft&&!xn&&bn.path!==vn?.path?bn:null,Cn=Sn==null?null:tH(Sn.index,s,yt,pn),wn=$H((z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null)?.ancestorPaths.at(-1)??null),Tn=at&&R!=null?mU(o,R,!Tt):void 0,En=L?.path??(at?R:he),Dn=L?.path??_e,On=$e(on),kn=Ge&&qe&&!sn&&!it&&On!=null&&ye!=null&&on!=null,An=Ge&&(kn||L!=null),jn=L?.anchorRect,Mn=jn==null&&On!=null&&ye!=null&&(L!=null||kn)?ye:null,Nn=jn==null?Mn==null?void 0:{top:`${Mn}px`}:{left:`${jn.left}px`,position:`fixed`,right:`auto`,top:`${jn.top}px`},Pn=sn?{opacity:`0`}:void 0,Fn=EH((e,n,r,i)=>{let a=aH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:at,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=gt.visible.startIndex&&n.index<=gt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(j.current=!0,ge(e=>e===c?e:c),Se(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&It(c,{targetOffset:`sticky-parents`})},[t,at,gt.visible.endIndex,gt.visible.startIndex,It]),In=()=>{if(y.current||!qe||on==null||On==null)return;let e=t.getItem(on);e!=null&&(Nt(On),At.current=!0,Te({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:On.getAttribute(`aria-label`)??on,path:e.getPath()},path:e.getPath(),source:`button`}))},Ln={contextHoverPath:Dn,contextMenuButtonTriggerEnabled:qe,contextMenuButtonVisibility:Je,contextMenuEnabled:Ge,contextMenuRightClickEnabled:Ye,contextMenuTriggerMode:Ke,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:ct,draggedPathSet:ut,dragTarget:dt,gitLaneActive:et,gitStatusByPath:n,handleRowDragEnd:Xt,handleRowDragStart:Yt,handleRowTouchStart:Zt,ignoredGitDirectories:r,ignoredInheritanceCache:fe,instanceId:o,itemHeight:s,onKeyDown:Qt,onRowClick:Fn,openContextMenuForRow:Pt,registerButton:Xe,registerRenameInput:Qe,renameView:nt,renderDecorationForRow:Et,resolveIcon:tt,shouldSuppressContextMenu:Lt,visualFocusPath:En},Rn={...Ln,registerButton:Ze};return Q(`div`,{ref:S,id:pt,"data-file-tree-context-menu-button-visibility":Ge&&qe?Je:void 0,"data-file-tree-context-menu-trigger-mode":Ge?Ke:void 0,"data-file-tree-has-context-menu-action-lane":Ge&&qe?`true`:void 0,"data-file-tree-has-git-lane":et?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:ct?dn:void 0,onDragOver:ct?un:void 0,onDrop:ct?fn:void 0,onKeyDown:Qt,onPointerLeave:Ge?ln:void 0,onPointerOver:Ge?cn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:wn}}),Q(`slot`,{name:xF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":at?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":Tn,"aria-controls":pt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Le?`true`:void 0,value:ot,onBlur:()=>{(d!==`retain`||ze.current)&&t.closeSearch()},onFocus:Be,onPointerDown:Be,onInput:e=>{Be();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Ue&&bt.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${mt}px`},children:bt.map((e,t)=>yU(Rn,e.row,`sticky:${FH(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${bt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${St}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${mn}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${pn}px`,top:`${hn}px`,bottom:`${gn}px`},children:[bU(Ln,yt,wt),vn!=null&&yn!=null?yU(Ln,vn,`parked:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ft===vn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${yn}px`}}):null,Sn!=null&&Cn!=null?yU(Ln,Sn,`parked-drag:${Sn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${Cn}px`}}):null]})]})]}),Ge?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":An?`true`:`false`,style:Nn,children:[Q(`button`,{ref:v,type:`button`,"data-type":CF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":L==null?`false`:`true`,"data-visible":kn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),L!=null){Mt();return}In()},tabIndex:-1,style:Pn,children:Q(fV,{...tt(`file-tree-icon-ellipsis`)})}),L==null?null:Q(`slot`,{name:SF})]}):null,L==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Mt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Mt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var SU={hydrateRoot:(e,t)=>{sV(LB(xU,t),e)},renderRoot:(e,t)=>{oV(LB(xU,t),e)},unmountRoot:e=>{oV(null,e)}};function CU(e,t){SU.renderRoot(e,t)}function wU(e,t){SU.hydrateRoot(e,t)}function TU(e){SU.unmountRoot(e)}var EU=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function DU(e,t,n){if(!e.s){if(n instanceof OU){if(!n.s)return void(n.o=DU.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(DU.bind(null,e,t),DU.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var OU=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{DU(r,1,a(this.v))}catch(e){DU(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?DU(r,1,t?t(i):i):n?DU(r,1,n(i)):DU(r,2,i)}catch(e){DU(r,2,e)}},r},e}();Array.isArray;var kU=0;function AU(e){return e!=null&&e.length>0?e:(kU+=1,`pst_ft_${kU}`)}function jU({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??dz)}function MU(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function NU(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function PU(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var FU=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new EU;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=AU(a),this.#p=pB(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=uz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new cB({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(TU(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=mB(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&CU(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),CU(t.wrapper,this.#w()))}setGitStatus(e){let t=pB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&CU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),CU(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),wU(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),CU(r,this.#w())}#C(){return{initialViewportHeight:jU({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(xF,e());return}this.#l.setSlotHtml(xF,this.#e?.header?.html??null)}#k(e){let t=PU(e).find(e=>NU(e)),n=MU(dF(TF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=PU(e),n=t.find(e=>NU(e)),r=t.filter(e=>e!==n),i=TF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=MU(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=TF(this.#m);t.colored&&pF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${_F}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(_F,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=hz(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return xz(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}},IU=new Set([`/`,`.`,`-`,`_`,` `]);function LU(e,t){if(t===0)return!0;let n=e[t-1];if(IU.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function RU(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,LU(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function zU(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function BU(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&LU(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function VU(e,t,n,r,i){let a=zU(e,n,r);if(!a)return null;let o=BU(e,t,n,r),s=RU(t,a,i),c=o?RU(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function HU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(LU(e,i))return!0;return!1}function UU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=WU(t),a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=VU(n,t,r,i,i),c=s??VU(n,t,r,0,i);if(!c)return null;s&&HU(t,r,n,i)&&(a+=20),r.slice(i).replace(/\/$/,``)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function WU(e){return e.lastIndexOf(`/`,e.length-2)+1}function GU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function KU(e,t,n,r){let i=[];for(let r of e){let e=UU(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var qU=Ht,JU=(e=>`/${e}&`)(` b`),YU=60;function XU(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var ZU=x(0,1,e=>y(e.a,e._.e)),QU=ZU,$U=x(0,0,e=>y(e.b,e._.e)),eW=v(0,`<mark> </mark>`,` D `,e=>{$U._(e),j(e.a,`_mJ`)},` `,` `,QU),tW=(e,t)=>eW(e,+!t),nW=(e,t)=>{tW(e,t[0]?.hit),rW(e,t[0]?.text)},rW=M(4,e=>{$U(e),ZU(e)}),iW=x(0,1,e=>y(e.a,e._.e)),aW=iW,oW=x(0,0,e=>y(e.b,e._.e)),sW=v(0,`<mark> </mark>`,` D `,e=>{oW._(e),j(e.a,`_mJ`)},` `,` `,aW),cW=(e,t)=>sW(e,+!t),lW=(e,t)=>{cW(e,t[0]?.hit),uW(e,t[0]?.text)},uW=M(4,e=>{oW(e),iW(e)}),dW=e=>j(e.a,d),fW=x(5,0,e=>y(e.b,e._.n)),pW=e=>{fW._(e),j(e.a,s)},mW=I(34,e=>y(e.b,e._._._._.u),e=>e._._._._,`O5`),hW=e=>{mW(e),j(e.a,`_mK`)},gW=O(2,e=>y(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${S(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),_W=I(29,gW,e=>e._._._,`O11`),vW=e=>{_W(e),yW(e),j(e.a,`_cd`)},yW=I(33,gW,e=>e._._._,`O12`),bW=I(28,e=>y(e.b,e._._._._.k),e=>e._._._._,`O4`),xW=v(0,`<li role=presentation>Recently opened</li>`,` `,dW,`<li role=presentation> </li>`,` D `,e=>{bW(e),j(e.a,d)}),SW=O(17,e=>xW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),CW=I(33,SW,e=>e._._._,`O7`),wW=k(`O6`,e=>{g(e.c,`mousemove`,function(){e._._._.p!==e.o&&dG(e._._._,e.o)}),g(e.c,`click`,function(){e._._._.a1(e.o)})}),TW=e=>{CW(e),OW(e),kW(e),jW(e),j(e.d,`_mH`),j(e.e,`_mI`),wW(e)},EW=v(6,`<span>:<!></span>`,` Db%`,hW),DW=O(16,e=>EW(e,e._._._.u&&e.o===e._._._.y?0:1),2),OW=I(34,DW,e=>e._._._,`O8`),kW=I(35,SW,e=>e._._._,`O9`),AW=O(15,e=>{N(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),j(e.c,[`_b9`,e.o===e._._._.y&&`_b8`])}),jW=I(37,e=>{AW(e),DW(e)},e=>e._._._,`O10`),MW=M(9,SW),NW=M(14,e=>{SW(e),AW(e),DW(e)}),PW=w(3,`<!><!><!>`,`b%`,0,lW),FW=w(4,`<!><!><!>`,`b%`,0,nW),IW=O(20,e=>{PW(e,[XU(e.s,e.m,e.t,e.s?.length)]),FW(e,[XU(e.s,e.m,0,Math.max(0,e.t-1))])},2),LW=M(19,IW),RW=M(18,e=>{N(e.c,`title`,e.s),LW(e,WU(e.s)),IW(e)}),zW=M(12,IW),BW=v(5,`<span> </span>`,` D `,pW),VW=M(13,e=>{BW(e,+!e.n),fW(e)}),HW=(e,t)=>{MW(e,t[0]?.more),RW(e,t[0]?.item?.path),VW(e,t[0]?.item?.hint),zW(e,t[0]?.hits),NW(e,t[1])},UW=I(31,e=>ne(e,`c`,e._._.o,MG(e)),e=>e._._,`O15`),WW=k(`O14`,e=>{oe(e,`c`),g(e.d,`click`,function(){e._._.z()})}),GW=e=>{UW(e),KW(e),JW(e),ZW(e),j(e.a,`_b3`),Pe(e.b),je(e.b,14),Ie(e.b),j(e.c,u),j(e.d,[c,`_b5`]),Re(e.e),fe(e.e,16),xe(e.e),j(e.f,`_b6`),WW(e)},KW=I(32,e=>{N(e.c,`aria-controls`,e._._.q),N(e.f,`id`,e._._.q)},e=>e._._),qW=_(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,TW,HW),JW=I(35,e=>qW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`O16`),YW=v(6,`<p> </p>`,` D `,vW),XW=k(`O13`,e=>g(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&dG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),ZW=I(36,e=>{YW(e,+!!e._._.w),XW(e)},e=>e._._,`O17`),QW=v(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(De,Se),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Ee,he),GW),$W=I(30,e=>QW(e,+!e._.m),0,`O18`),eG=se(`O19`,`<!><!><!>`,`b%`,$W),tG=F($W),nG=E(12,e=>{zt(e.a,e.m),tG(e)}),rG=O(5,e=>nG(e,e.d,e.e)),iG=M(3,rG),aG=M(4,rG),oG=(e,t)=>{xG(e,t?.query),CG(e,t?.line)},sG=F(UW),cG=C(14,e=>{oG(e,GU(e.o.trim())),sG(e)}),lG=M(24,F(jW)),uG=O(23,e=>lG(e,Math.min(e.p,Math.max(0,e.w-1)))),dG=C(15,uG),fG=M(16),pG=M(27),mG=O(26,e=>pG(e,NG(e)),3),hG=M(25,mG);function gG(e){Lt(e.a),Gt(e.a,eG(e)),It(e.a,`Go to file`),Pt(e.a,[`_bX`,`_b2`]),Kt(e.a,FG(e)),Wt(e.a,!0),Rt(e.a),Vt(e.a),Ft(e.a),Bt(e.a),Ut(e.a,{}),cG(e,``),dG(e,0),fG(e,T(e)),hG(e,PG(e))}var _G=F(JW,kW),vG=M(21,e=>{TG(e,e.v?.length),mG(e),_G(e)}),yG=O(19,e=>vG(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=KU(e.g,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?KU(e.i.items,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),bG=F(CW,yW),xG=M(18,e=>{yG(e),bG(e)}),SG=F(OW,mW),CG=M(20,e=>{mG(e),SG(e)}),wG=F(ZW),TG=M(22,e=>{uG(e),wG(e)}),EG=M(6,yG),DG=M(7,yG),OG=M(8,e=>{AG(e,e.i?.label),yG(e)}),kG=M(9,mG),AG=M(10,F(bW)),jG=M(11,F(_W)),MG=e=>function(t){cG(e._._,t),dG(e._._,0)},NG=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},PG=e=>()=>{nG(e,!1),cG(e,``),dG(e,0)},FG=e=>t=>{nG(e,t)};b.O3=MG,b.O1=NG,b.O0=PG,b.O2=FG;export{EE as $,uS as $t,jM as A,sw as At,$E as B,vC as Bt,uN as C,gw as Ct,iN as D,pw as Dt,oN as E,ww as Et,CD as F,KC as Ft,pE as G,xC as Gt,LE as H,bC as Ht,wD as I,JC as It,vE as J,lC as Jt,mE as K,CC as Kt,vD as L,qC as Lt,EM as M,YC as Mt,GM as N,QC as Nt,aN as O,hw as Ot,CM as P,GC as Pt,AE as Q,dS as Qt,hD as R,UC as Rt,lN as S,Sw as St,sN as T,Cw as Tt,ME as U,kC as Ut,IE as V,SC as Vt,NE as W,DC as Wt,TE as X,MS as Xt,OE as Y,nC as Yt,wE as Z,gS as Zt,mN as _,zw as _t,iG as a,pT as at,fN as b,vw as bt,gG as c,nT as ct,FU as d,iT as dt,Gx as en,QT as et,XN as f,aT as ft,HN as g,Dw as gt,qN as h,Yw as ht,kG as i,gT as it,qM as j,cw as jt,WM as k,ew as kt,qU as l,tT as lt,ZN as m,eT as mt,jG as n,Hp as nn,vT as nt,aG as o,oT as ot,$N as p,Qw as pt,_E as q,_C as qt,OG as r,Tn as rn,_T as rt,DG as s,sT as st,EG as t,W_ as tn,$T as tt,JU as u,rT as ut,hN as v,Rw as vt,cN as w,yw as wt,dN as x,bw as xt,pN as y,Mw as yt,dD as z,HC as zt};
|
|
1591
|
+
}`}var gz=new WeakMap;function _z(e){let t=gz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(vF,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),gz.set(e,i),i}function vz(e,t){if(!e.isConnected)return;let n=_z(t);if(n==null)return;let r=t.querySelector(`style[${yF}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(yF,``),t.appendChild(i)),i.textContent=`:host { ${bF}: ${n}px; }`}var yz;function bz(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){yz??(yz=new CSSStyleSheet,yz.replaceSync(mz(fz)));let t=!1;try{e.adoptedStyleSheets=[yz],t=!0}catch{}if(t){e.querySelector(`style[${gF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(gF,``),t.textContent=mz(fz),e.prepend(t)}}function xz(e,t){Sz(e,t),bz(t),vz(e,t)}function Sz(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});xz(this,e)}}if(customElements.define(hF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(hF)))e instanceof HTMLElement&&xz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Cz=e=>e.startsWith(`f::`)?e.slice(3):e;function wz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Tz(e,t){return e===``?t:`${e}/${t}`}function Ez({files:e,path:t,isFolder:n,nextBasename:r}){let i=Cz(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=wz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Tz(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function Dz(e){return e.endsWith(`/`)}function Oz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function kz(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function Az(e,t){return t.includes(e)?kz(t):[e]}function jz(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function Mz(e,t){return{draggedPaths:e,target:t}}function Nz(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Dz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function Pz(e,t){return t.kind===`root`||t.directoryPath==null?Oz(e):t.directoryPath}function Fz(e,t){let n=e.map(e=>{let n=Pz(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function Iz(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function Lz(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!Iz(sz.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function Rz(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function zz(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function Bz(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function Vz(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return Bz(e,t.path)?n?e:null:e;case`move`:return zz(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=Vz(r,e,n),r==null)return null;return r}}}function Hz(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Uz(e){switch(e.operation){case`add`:return{...Hz(e),operation:`add`,path:e.path};case`remove`:return{...Hz(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...Hz(e),from:e.from,operation:`move`,to:e.to}}}function Wz(e){return{...Hz(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>Uz(e)),operation:`batch`}}function Gz(e){switch(e.operation){case`add`:case`remove`:case`move`:return Uz(e);case`batch`:return Wz(e);default:return null}}function Kz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function qz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Jz(e){return qz(e).at(-1)??null}function Yz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function Xz(e){return e.endsWith(`/`)}var Zz=e=>e.toLowerCase();function Qz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function $z(e){return e.endsWith(`/`)?e.slice(0,-1):e}function eB(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var tB=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},nB=Symbol(`FILE_TREE_RENAME_VIEW`),rB=512,iB=512;function aB(e){return e===`top`||e===`center`?e:`nearest`}function oB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=qz(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function sB(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:oB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var cB=class e{static{Object.defineProperty(e.prototype,nB,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=Lz({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=Jz(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:aB(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=iB){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=Az(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=Mz(t.draggedPaths,n);(Nz(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}jz(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=Mz(e.draggedPaths,t);if(Nz(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=Fz(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=Xz(r),a=$z(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of qz(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=Qz(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,Xz(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,Xz(e)?{recursive:!0}:void 0);return}let t=Xz(e),n=Ez({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:$z(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(eB(n.sourcePath,t),eB(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=Lz({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!Kz(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=Jz(e),n=Yz(e,t),r=null,i=null;for(let e of this.#be()){if(Jz(e)!==t)continue;let a=Yz(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=qz(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!Kz(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new sz({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of qz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Zz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Zz),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of qz(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:tB(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of qz(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of qz(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=sB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,rB)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=Vz(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=Vz(this.#c,e,!0),r=[...this.#B].map(t=>Vz(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=Vz(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Kz(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&Rz(e)&&(this.#i=null);let t=Rz(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=Gz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},lB=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function uB(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function dB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function fB(e,t){return t?`${e}/`:e}function pB(e,t=null){let n=lB(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=hB(t);e!=null&&vB({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function mB(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=gB(e);t!=null&&(c=_B({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=hB(e);t!=null&&(c=vB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:xB(i),statusByPath:i}:e}function hB(e){return gB(e.path)}function gB(e){let t=uB(e);if(t!=null)return{canonicalPath:fB(t.path,t.isDirectory),isDirectory:t.isDirectory}}function _B({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),bB(t,n,e),!0)}function vB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??yB(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function yB(e,t,n){for(let r of dB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function bB(e,t,n){for(let r of dB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function xB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB={},MB=[],NB=Array.isArray,PB=MB.slice,FB=Object.assign;function IB(e){e&&e.parentNode&&e.remove()}function LB(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?PB.call(arguments,2):n),RB(e,o,r,i,null)}function RB(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++SB,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function zB(e){return e.children}function BB(e,t){this.props=e,this.context=t,this.__g=0}function VB(e,t){if(t==null)return e.__?VB(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?VB(e):null}function HB(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return HB(e)}}function UB(e){(8&e.__g||!(e.__g|=8)||!CB.push(e)||TB++)&&wB==Z.debounceRendering||((wB=Z.debounceRendering)||queueMicrotask)(WB)}function WB(){for(var e,t,n,r,i,a,o,s,c=1;CB.length;)CB.length>c&&CB.sort(EB),e=CB.shift(),c=CB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=FB({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),QB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??VB(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,eV(a,n,o),n.__e!=i&&HB(n)));TB=0}function GB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||MB,b=t.length;for(c=KB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?jB:y[m.__i]||jB,m.__i=f,_=QB(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&rV(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=qB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function KB(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?RB(null,o,null,null,null):NB(o)?RB(zB,{children:o},null,null,null):o.constructor==null&&o.__b>0?RB(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=JB(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=VB(s)),iV(s,s));return r}function qB(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=qB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=VB(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function JB(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function YB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function XB(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||YB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||YB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(DB,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=OB,e.addEventListener(t,a?AB:kB,a)):e.removeEventListener(t,a?AB:kB,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function ZB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=OB++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function QB(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,ee,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=Z.__b)&&d(t);n:if(typeof j==`function`)try{if(v=t.props,y=`prototype`in j&&j.prototype.render,b=(d=j.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new j(v,x):(t.__c=f=new BB(v,x),f.constructor=j,f.render=aV),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&j.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=FB({},f.__s)),FB(f.__s,j.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&j.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&j.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=Z.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=FB({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===zB&&d.key==null&&(E=tV(d.props.children)),s=GB(e,NB(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ee=a.length;ee--;)IB(a[ee]);$B(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||$B(t);Z.__e(e,t,n)}else s=t.__e=nV(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function $B(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach($B)}function eV(e,t,n){for(var r=0;r<n.length;r++)rV(n[r],n[++r],n[++r]);Z.__c&&Z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Z.__e(e,t.__v)}})}function tV(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:NB(e)?e.map(tV):FB({},e)}function nV(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(Z.__m&&Z.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=PB.call(e.childNodes),v=n.props||jB,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;XB(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||XB(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),GB(b==`template`?e.content:e,NB(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&VB(n,0),s,c,l),a!=null)for(u=a.length;u--;)IB(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||XB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&XB(e,u,g,v[u],i))}return e}function rV(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){Z.__e(e,n)}}function iV(e,t,n){var r,i;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||rV(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Z.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&iV(r[i],t,n||typeof e.type!=`function`);n||IB(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function aV(e,t,n){return this.constructor(e,n)}function oV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),Z.__&&Z.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=LB(zB,null,[e]),i=[],a=[],QB(t,e,r||jB,jB,t.namespaceURI,r?null:t.firstChild?PB.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),eV(i,e,a)}function sV(e,t){e.__u|=32,oV(e,t)}Z={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw TB=0,e}},SB=0,BB.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=FB({},this.state);typeof e==`function`&&(e=e(FB({},n),this.props)),e&&FB(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),UB(this))},BB.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),UB(this))},BB.prototype.render=zB,CB=[],TB=0,EB=function(e,t){return e.__v.__b-t.__v.__b},DB=/(PointerCapture)$|Capture$/i,OB=0,kB=ZB(!1),AB=ZB(!0);var cV=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--cV,__i:-1,__u:0,__source:i,__self:a};return Z.vnode&&Z.vnode(l),l}var lV=16,uV=16,dV={};function fV({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=dV[e]??{width:lV,height:uV},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var pV=e=>e!==void 0&&/\s/.test(e),mV=(e,t)=>{let n=t=>pV(e[t-1])||pV(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},hV=e=>mV(e,Math.ceil(e.length/2)),gV=e=>{if(e.length<2)return[e,``];let t=hV(e);return[e.slice(0,t),e.slice(t)]},_V=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:hV(e);return[e.slice(0,r),e.slice(r)]},vV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},yV=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},bV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},xV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function SV({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function CV(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function wV({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(CV,{mode:t,children:e},`content`),o=Q(SV,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function TV({children:e,...t}){"use no memo";return Q(wV,{mode:`truncate`,...t,children:e})}function EV({children:e,...t}){"use no memo";return Q(wV,{mode:`fruncate`,...t,children:e})}function DV({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(TV,{...s,children:t[0]}),l=Q(EV,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?EV:TV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=gV:r===`extension`?t=_V:r===`leaf-path`&&(t=vV);else if(typeof r==`number`)t=yV,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=bV:e===`first`&&(t=xV)}else typeof r==`function`&&(t=r);t??=gV;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(TV,{...s,..._,children:f}),l=Q(EV,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var OV={endIndex:-1,startIndex:-1};function kV(e,t,n){return Math.min(Math.max(e,t),n)}function AV(e,t){return e<0||t<e?OV:{endIndex:t,startIndex:e}}function jV(e){return e.startIndex<0||e.endIndex<e.startIndex}function MV(e,t){return jV(e)?0:(e.endIndex-e.startIndex+1)*t}function NV(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function PV(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function FV(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function IV(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function LV(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function RV(e,t,n){if(e.length===0||t<=0)return[];let r=LV(e),i=FV(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=IV(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function zV(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=kV(t.scrollTop,0,o),c=t.stickyRows??RV(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=NV(s,n,t.itemHeight),m=NV(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?OV:AV(m,PV(u+d,n,t.itemHeight)),y=g+1,b=jV(v)?OV:AV(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=MV(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:jV(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var BV={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},VV={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},HV=`Contains git status items`;function UV(e){return e.current?!0:(e.current=!0,!1)}function WV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function GV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return WV({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function KV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function qV(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function JV(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function YV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function XV(e,t){return e!=null&&e>0?e:t}function ZV(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function QV(e,t,n,r,i=0){let a=WV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function $V(e,t,n,r,i,a,o=0){let s=GV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function eH(e,t,n,r,i,a){let o=KV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function tH(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function nH(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function rH({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function iH(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function aH(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var oH,sH,cH,lH,uH=Object.is,dH=0,fH=[],pH=Z,mH=pH.__b,hH=pH.__r,gH=pH.diffed,_H=pH.__c,vH=pH.unmount,yH=pH.__;function bH(e,t){pH.__h&&pH.__h(sH,e,dH||t),dH=0;var n=sH.__H||(sH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xH(e){return dH=1,SH(NH,e)}function SH(e,t,n){var r=bH(oH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):NH(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);uH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=sH,!sH.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,uH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};sH.__f=!0;var a=sH.shouldComponentUpdate,o=sH.componentWillUpdate;sH.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},sH.shouldComponentUpdate=i}return r.__N||r.__}function CH(e,t){var n=bH(oH++,3);!pH.__s&&MH(n.__H,t)&&(n.__=e,n.u=t,sH.__H.__h.push(n))}function wH(e,t){var n=bH(oH++,4);!pH.__s&&MH(n.__H,t)&&(n.__=e,n.u=t,sH.__h.push(n))}function $(e){return dH=5,TH(function(){return{current:e}},[])}function TH(e,t){var n=bH(oH++,7);return MH(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function EH(e,t){return dH=8,TH(function(){return e},t)}function DH(){for(var e;e=fH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(AH),e.__H.__h.forEach(jH),e.__H.__h=[]}catch(t){e.__H.__h=[],pH.__e(t,e.__v)}}pH.__b=function(e){sH=null,mH&&mH(e)},pH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yH&&yH(e,t)},pH.__r=function(e){hH&&hH(e),oH=0;var t=(sH=e.__c).__H;t&&(cH===sH?(t.__h=[],sH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(AH),t.__h.forEach(jH),t.__h=[],oH=0)),cH=sH},pH.diffed=function(e){gH&&gH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(fH.push(t)!==1&&lH===pH.requestAnimationFrame||((lH=pH.requestAnimationFrame)||kH)(DH)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),cH=sH=null},pH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(AH),e.__h=e.__h.filter(function(e){return!e.__||jH(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],pH.__e(n,e.__v)}}),_H&&_H(e,t)},pH.unmount=function(e){vH&&vH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{AH(e)}catch(e){t=e}}),n.__H=void 0,t&&pH.__e(t,n.__v))};var OH=typeof requestAnimationFrame==`function`;function kH(e){var t,n=function(){clearTimeout(r),OH&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);OH&&(t=requestAnimationFrame(n))}function AH(e){var t=sH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),sH=t}function jH(e){var t=sH;e.__c=e.__(),sH=t}function MH(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!uH(t,e[n])})}function NH(e,t){return typeof t==`function`?t(e):t}function PH(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(zB,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(TV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function FH(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function IH(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function LH(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function RH({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=zV(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:LH(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?LH(u,1,t,o):i&&r<=0&&c.length>0?RV(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var zH=400,BH=40,VH=18;function HH(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?UH(e,t,n):a instanceof HTMLElement?a:null}function UH(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function WH(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function GH(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function KH(){return navigator.vendor!==`Apple Computer, Inc.`}function qH(e,t){let n=e-t.top;if(n<BH)return-Math.ceil((BH-Math.max(0,n))/BH*VH);let r=t.bottom-e;return r<BH?Math.ceil((BH-Math.max(0,r))/BH*VH):0}function JH(e,t){if(e!=null){let t=BV[e];return t==null?null:{text:t,title:VV[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:HV}:null}function YH(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function XH(e){return e!=null&&`toggle`in e}function ZH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function QH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function $H(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function eU(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function tU(e,t){return t&&eU(e)||(e.ctrlKey||e.metaKey)&&ZH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var nU=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function rU(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function iU(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function aU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function oU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function sU(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function cU(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function lU(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function uU(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function dU(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=uU(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function fU(e,t){return{kind:e.kind,name:IH(e),path:t}}function pU(e){return e==null?void 0:`${e}__tree`}function mU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function hU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function gU(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?hU(e.icon)?t(e.icon):{name:e.icon}:hU(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(fV,{...n})})}function _U(e){e!=null&&qV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function vU(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=FH(e);return Q(zB,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(fV,{...t(`file-tree-icon-chevron`)}):Q(fV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?PH(e,c,a):c??Q(DV,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:gU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:gU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(fV,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function yU(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:ee,onRowClick:j,onKeyDown:M}=e,N=FH(t),{isParked:te=!1,mode:ne=`flow`,style:re}=r,ie=ne===`sticky`,ae=_?.get(N)??null??YH(t.ancestorPaths,v,y),P=t.kind===`directory`&&(b?.has(N)??!1),oe=A(t,N),F=JH(ae,P),se=S&&w,I=oe!=null||x||se,ce=se&&T===`always`,le=a.getPath()===N,ue=le?a.getValue():``,de=ie||!le?null:Q(rH,{ref:D,ariaLabel:`Rename ${IH(t)}`,isFlattened:t.isFlattened,value:ue,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),fe=vU(t,k,{actionLaneEnabled:se,customDecoration:oe,decorationLaneEnabled:I,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:F,gitLaneActive:x,renameInput:de,showDecorativeActionAffordance:ce}),pe={...iH({ariaLabel:IH(t),domId:t.isFocused?mU(h,N,te):void 0,extraStyle:re,features:{actionLaneEnabled:se,contextMenuButtonVisibility:se?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:te,itemHeight:g,mode:ne,row:t,state:{containsGitChange:P,effectiveGitStatus:ae,isContextHovered:s===N,isDragTarget:l?.kind===`directory`&&l.directoryPath===N,isDragging:c?.has(N)===!0,isFocusRinged:t.isFocused&&o===N},targetPath:N}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(N),ee(t,N,{anchorRect:aU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ie?void 0:()=>{i.focusMountedPathFromInput(N)},onKeyDown:ie?void 0:M,ref:e=>{O(N,e)}};return!ie&&le?Q(`div`,{...pe,children:fe}):Q(`button`,{...pe,type:`button`,draggable:u&&!te,onDragEnd:u&&!te?p:void 0,onDragStart:u&&!te?e=>{f(e,t,N)}:void 0,onMouseDown:e=>{if(ie){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!te?e=>{m(e,t,N)}:void 0,onClick:e=>{j(e,t,N,ne)},children:fe})}function bU(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(FH(e))).map((n,r)=>yU(e,n,t.start+r))}function xU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=dz,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),T=$(new Map),E=$(new Map),D=$(()=>{}),O=$(null),k=$(0),A=$(!1),ee=$(null);ee.current!==t&&(A.current=!1,ee.current=t);let j=$(!1),M=$(null),N=$(null),te=$(!1),ne=$(null),re=$(null),ie=$(null),ae=$(null),P=$(null),oe=$(null),F=$(null),se=$(null),I=$(!1),ce=$(null),le=$(null),ue=$(null),de=$(null),fe=TH(()=>new Map,[]),[,pe]=xH(0),me=$(!1),[he,ge]=xH(null),[_e,ve]=xH(null),[ye,be]=xH(null),[xe,Se]=xH(null),[Ce,we]=xH(0),[L,Te]=xH(null),Ee=$(L);Ee.current=L;let De=$(null),Oe=$(null),ke=$(null),Ae=$(null),je=$(null),Me=$(!1),Ne=()=>{Oe.current=null,ke.current=null,Ae.current=null},Pe=(e,t)=>{Oe.current=e,ke.current=null,Ae.current=t==null?null:{path:e,scrollTop:t}},Fe=(e,t)=>{Oe.current=null,ke.current={path:e,viewportOffset:t},Ae.current=null},Ie=$(d===`retain`&&t.isSearchOpen()),[Le,Re]=xH(p);CH(()=>{p||Re(!1)},[p]);let ze=$(!1),Be=EH(()=>{ze.current=!0,Re(e=>e&&!1)},[]),[Ve,He]=xH(()=>RH({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Ue,We]=xH(!1);CH(()=>{We(!0)},[]);let Ge=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ke=e?.contextMenu?.triggerMode??(Ge?`right-click`:`both`),qe=Ke===`both`||Ke===`button`,Je=e?.contextMenu?.buttonVisibility??`when-needed`,Ye=Ke===`both`||Ke===`right-click`;wH(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;je.current=t,ve(t),Se(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Me.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Xe=EH((e,t)=>{sU(T.current,e,t)},[]),Ze=EH((e,t)=>{sU(E.current,e,t)},[]),Qe=EH(e=>{x.current=e},[]),$e=EH(e=>cU(e,E.current,T.current),[]),et=n!=null||r!=null||i!=null,{resolveIcon:tt}=TH(()=>AF(a),[a]),nt=t[nB](),rt=nt.getPath(),it=rt!=null,at=t.isSearchOpen(),ot=t.getSearchValue(),R=t.getFocusedPath(),z=t.getFocusedIndex(),st=t.getScrollRequest(),ct=t.isDragAndDropEnabled(),lt=t.getDragSession(),ut=TH(()=>lt==null?null:new Set(lt.draggedPaths),[lt]),dt=lt?.target??null,ft=lt?.primaryPath??null,pt=pU(o),{overlayHeight:mt,overlayRows:ht,snapshot:gt,visibleRows:_t}=Ve,vt=gt.physical.viewportHeight,yt=TH(()=>({end:gt.window.endIndex,start:gt.window.startIndex}),[gt.window.endIndex,gt.window.startIndex]),bt=ht,xt=gt.sticky.rows,St=gt.physical.totalHeight,Ct=gt.sticky.height,wt=TH(()=>new Set(xt.map(e=>FH(e.row))),[xt]),Tt=z>=0&&z>=yt.start&&z<=yt.end,Et=EH((e,t)=>u?.({item:fU(e,t),row:e})??null,[u]),Dt=EH(e=>qV(e==null?null:T.current.get(e)??null)?!0:qV(S.current),[]),Ot=EH(e=>{Dt(t.focusNearestPath(e))},[t,Dt]),kt=$(Ot);kt.current=Ot;let At=$(!0),jt=$(()=>{}),Mt=EH((t=!0)=>{let n=Ee.current;n!=null&&(At.current=At.current&&t,Te(null),e?.contextMenu?.onClose?.(),At.current&&Ot(n.path))},[e?.contextMenu,Ot]);jt.current=Mt;let Nt=EH(e=>{let t=e==null?null:oU(S.current,e);be(e=>e===t?e:t)},[]),Pt=EH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=$e(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Pe(n,e?.scrollTop??null),j.current=!0,ge(e=>e===n?e:n)}i.focus(),Nt(a),At.current=!0,Te({anchorRect:r?.anchorRect??null,item:fU(e,n),path:n,source:r?.source??`keyboard`})},[t,$e,Nt]),Ft=EH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=YV(e,vt);ne.current=z<0||e==null?null:Math.max(0,Math.min(z*s-e.scrollTop,Math.max(0,t-s))),te.current=!0}t.startRenaming(e)!==!1&&(Se(`focus`),pe(e=>e+1))}},[t,z,s,l,vt]),It=EH((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=YV(i,vt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:RH({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return j.current=!0,eH(i,a,s,l,u,d),D.current(),De.current=n?e:null,!0},[t,s,c,vt,h]),Lt=()=>y.current===!0||de.current!=null||I.current===!0,Rt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),zt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Bt=()=>{ae.current!=null&&(clearTimeout(ae.current),ae.current=null),ie.current=null},Vt=()=>{oe.current?.remove(),oe.current=null},Ht=()=>{zt(re.current),re.current=null,P.current=null},Ut=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Wt=()=>{se.current?.(),se.current=null,de.current!=null&&(clearTimeout(de.current),de.current=null),I.current=!1,ce.current=null,ue.current=null,le.current!=null&&(le.current.setAttribute(`draggable`,`true`),le.current.style.removeProperty(`touch-action`),le.current=null),Vt(),Bt(),Ht(),F.current=null},Gt=(e,n)=>{let r=S.current?.getRootNode(),i=WH(HH(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Kt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Bt();return}let r=t.getItem(e.directoryPath),i=XH(r)?r:null;if(i==null||i.isExpanded()){Bt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ie.current!==a&&(Bt(),ie.current=a,ae.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},qt=()=>{re.current=null;let e=P.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=qH(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,D.current()),Kt(Gt(e.clientX,e.clientY)),re.current=Rt(qt)},Jt=(e,t)=>{P.current={clientX:e,clientY:t},re.current??=Rt(qt)},Yt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Wt(),Vt(),Bt(),Ht(),t.startDrag(r)===!1){e.preventDefault();return}if(F.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),KH())){let t=GH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Ut(t),oe.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Xt=()=>{Vt(),Bt(),Ht(),F.current=null,t.cancelDrag()},Zt=(e,n,r)=>{if(de.current!=null||I.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;ue.current={clientX:i.clientX,clientY:i.clientY},le.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!I.current;de.current!=null&&(clearTimeout(de.current),de.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),se.current===o&&(se.current=null),t&&(a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null)},s=e=>{let t=e.touches[0],n=ue.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),se.current=o,de.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null;return}I.current=!0,le.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),F.current=n;let e=a.getBoundingClientRect(),s=GH(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Ut(s),oe.current=s,ce.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=ce.current;n!=null&&oe.current!=null&&(oe.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Kt(Gt(t.clientX,t.clientY)),Jt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Gt(n.clientX,n.clientY),t.completeDrag(),Wt()},u=()=>{t.cancelDrag(),Wt()};se.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},zH)},Qt=e=>{if(L!=null){if(e.key===`Escape`){Mt(),e.preventDefault(),e.stopPropagation();return}nU.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(nt.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)nt.cancel();else if(e.key===`Enter`)nt.commit();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ft(R??void 0),e.preventDefault(),e.stopPropagation();return}if(at){if(e.key===`Escape`)te.current=!1,ne.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=YV(n,vt);ne.current=z<0||n==null?null:Math.max(0,Math.min(z*s-n.scrollTop,Math.max(0,r-s))),te.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&QH(e)){t.openSearch(e.key),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ge&&eU(e),r=tU(e,Ge),i=r&&S.current!=null?JV(S.current):null,a=r?new Set(lU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==R&&a.has(o)){let e=C.current;Pe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=XH(p)?p:null,h=u!=null&&(wt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=cU(u,E.current,T.current);e==null||n==null?y=!1:Pt(e,u)}else if((e.ctrlKey||e.metaKey)&&ZH(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;Se(`focus`);let b=t.getFocusedPath(),x=b!=null&&(wt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Pe(b,v?.scrollTop??null),j.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Fe(b,dU(S.current,v,i,u,s,Ct,vt)),j.current=!0,ge(e=>e===b?e:b)):Ne()}pe(e=>e+1),e.preventDefault(),e.stopPropagation()};wH(()=>{if(f&&at){if(Ie.current){Ie.current=!1;return}qV(w.current)}},[at,f]),wH(()=>{let e=x.current;switch(nH({hasRenderedInput:e!=null,previousRenamingPath:N.current,renamingPath:rt})){case`reset`:N.current=null;return;case`reveal-canonical`:rt!=null&&It(rt,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(De.current=null,N.current=rt,qV(e),e.select());return}},[yt.end,yt.start,rt,It,wt]),wH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=JV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),j.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,JV(e)!=null){r();return}j.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),j.current=!1,ge(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ge(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),wH(()=>{let e=S.current;e!=null&&(gt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[gt.physical.scrollTop]),wH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=YV(n,g);let a=()=>{let e=t.getVisibleCount(),r=XV(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),He(RH({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!A.current){A.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=XV(O.current,g),i=t.getVisibleRows(e,e)[0]??null;QV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=t.subscribe(()=>{UV(me)&&pe(e=>e+1),a()}),l=()=>{Me.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,we(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Me.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Ee.current!=null&&y.current&&jt.current(),Me.current===!0){y.current=!1;return}ve(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{O.current=(e[0]==null?null:ZV(e[0]))??YV(n,g),a()}):null;return x?.observe(n),()=>{D.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,O.current=null,x?.disconnect()}},[t,g,s,c,h]),wH(()=>{Ge||L==null||Mt(!1)},[Mt,Ge,L]);let $t=TH(()=>L==null?null:`${L.path}::${L.source}`,[L]);wH(()=>{if($t==null){m?.clearSlotContent(SF);return}let t=Ee.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??iU(n.getBoundingClientRect()),close:e=>{jt.current(e?.restoreFocus??!0)},restoreFocus:()=>{At.current&&kt.current(Ee.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(SF,i),e?.contextMenu?.onOpen?.(t.item,r),_U(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&_U(i)}),()=>{m?.clearSlotContent(SF)}},[$t,e?.contextMenu,m]),wH(()=>{L!=null&&t.getItem(L.path)==null&&Mt()},[Mt,L,t]),wH(()=>{if(L==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(rU(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Mt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Mt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Mt,L]),wH(()=>{let e=C.current,n=S.current;if(e==null||n==null){M.current=R;return}let r=R==null?null:T.current.get(R)??null,i=JV(n),a=i?.dataset.itemPath??null,o=it&&x.current===i,c=f&&w.current===i,l=te.current&&!at,u=ne.current??0,d=De.current,p=Oe.current,m=ke.current,g=Ae.current,_=i!=null,v=j.current||_,y=M.current!==R,b=p!=null&&p===R&&R!=null,E=!1,O=!1;if(st!=null&&st.id!==k.current){k.current=st.id;let n=st.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,vt-s))):Ct;E=!0,O=$V(e,n,s,vt,St,st.offset,t)}t.clearScrollRequest(st.id)}let A=!E&&l&&eH(e,z,s,vt,St,u),ee=!E&&d!=null&&d===R&&eH(e,z,s,vt,St,Ct),N=!E&&m!=null&&m.path===R&&eH(e,z,s,vt,St,m.viewportOffset),re=!E&&g!=null&&g.path===R&&e.scrollTop!==g.scrollTop;if(re&&(e.scrollTop=g.scrollTop),(re||O||ee||N||A||v&&y&&d!==R&&!b&&QV(e,z,s,vt,Ct))&&D.current(),E){M.current=R;return}if(!v){M.current=R;return}if(o){M.current=R;return}if(c&&!l){M.current=R;return}if(r==null){l&&z>=0&&(eH(e,z,s,vt,St,u),D.current()),M.current=R;return}(y||l||d===R||p===R||m?.path===R||g?.path===R||a==null||a!==R)&&(qV(r),d===R&&(De.current=null),p===R&&(Oe.current=null),m?.path===R&&(ke.current=null),g?.path===R&&(Ae.current=null),te.current=!1,ne.current=null),M.current=R},[t,z,R,Tt,s,it,at,yt,vt,f,st,h,Ct,St,_t]);let en=z>=0&&z>=gt.visible.startIndex&&z<=gt.visible.endIndex,tn=R!=null&&bt.some(e=>FH(e.row)===R),nn=en||tn,rn=qe&&j.current===!0&&nn?R:null,an=xe===`pointer`?_e:null,on=L?.path??je.current??an??rn??_e,sn=L?.source===`right-click`;wH(()=>{y.current&&L==null||Nt($e(on))},[L,$e,yt,vt,Ce,bt,on,Nt,_t]);let cn=EH(e=>{if(y.current||rU(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&Se(e=>e===`pointer`?e:`pointer`),ve(e=>e===i?e:i)},[]),ln=EH(()=>{ve(null)},[]);wH(()=>{if(!ct)return;let e=()=>{Wt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Wt(),t.cancelDrag()}},[t,ct]);let un=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=WH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Kt(t.getDragSession()?.target??null),Jt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},dn=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Bt(),Ht(),t.setDragTarget(null))},fn=e=>{ct&&t.getDragSession()!=null&&!I.current&&(e.preventDefault(),Gt(e.clientX,e.clientY),t.completeDrag(),Vt(),Bt(),Ht(),F.current=null)},pn=gt.window.height,mn=gt.window.offsetTop,hn=Math.min(0,vt-pn),gn=Math.min(0,vt-pn-Ct),_n=he===R||te.current,vn=R!=null&&_n&&!Tt&&z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null,yn=vn==null?null:tH(z,s,yt,pn),bn=F.current,xn=ft!=null&&bn!=null&&bn.path===ft&&bn.index>=yt.start&&bn.index<=yt.end,Sn=ft!=null&&bn!=null&&bn.path===ft&&!xn&&bn.path!==vn?.path?bn:null,Cn=Sn==null?null:tH(Sn.index,s,yt,pn),wn=$H((z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null)?.ancestorPaths.at(-1)??null),Tn=at&&R!=null?mU(o,R,!Tt):void 0,En=L?.path??(at?R:he),Dn=L?.path??_e,On=$e(on),kn=Ge&&qe&&!sn&&!it&&On!=null&&ye!=null&&on!=null,An=Ge&&(kn||L!=null),jn=L?.anchorRect,Mn=jn==null&&On!=null&&ye!=null&&(L!=null||kn)?ye:null,Nn=jn==null?Mn==null?void 0:{top:`${Mn}px`}:{left:`${jn.left}px`,position:`fixed`,right:`auto`,top:`${jn.top}px`},Pn=sn?{opacity:`0`}:void 0,Fn=EH((e,n,r,i)=>{let a=aH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:at,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=gt.visible.startIndex&&n.index<=gt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(j.current=!0,ge(e=>e===c?e:c),Se(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&It(c,{targetOffset:`sticky-parents`})},[t,at,gt.visible.endIndex,gt.visible.startIndex,It]),In=()=>{if(y.current||!qe||on==null||On==null)return;let e=t.getItem(on);e!=null&&(Nt(On),At.current=!0,Te({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:On.getAttribute(`aria-label`)??on,path:e.getPath()},path:e.getPath(),source:`button`}))},Ln={contextHoverPath:Dn,contextMenuButtonTriggerEnabled:qe,contextMenuButtonVisibility:Je,contextMenuEnabled:Ge,contextMenuRightClickEnabled:Ye,contextMenuTriggerMode:Ke,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:ct,draggedPathSet:ut,dragTarget:dt,gitLaneActive:et,gitStatusByPath:n,handleRowDragEnd:Xt,handleRowDragStart:Yt,handleRowTouchStart:Zt,ignoredGitDirectories:r,ignoredInheritanceCache:fe,instanceId:o,itemHeight:s,onKeyDown:Qt,onRowClick:Fn,openContextMenuForRow:Pt,registerButton:Xe,registerRenameInput:Qe,renameView:nt,renderDecorationForRow:Et,resolveIcon:tt,shouldSuppressContextMenu:Lt,visualFocusPath:En},Rn={...Ln,registerButton:Ze};return Q(`div`,{ref:S,id:pt,"data-file-tree-context-menu-button-visibility":Ge&&qe?Je:void 0,"data-file-tree-context-menu-trigger-mode":Ge?Ke:void 0,"data-file-tree-has-context-menu-action-lane":Ge&&qe?`true`:void 0,"data-file-tree-has-git-lane":et?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:ct?dn:void 0,onDragOver:ct?un:void 0,onDrop:ct?fn:void 0,onKeyDown:Qt,onPointerLeave:Ge?ln:void 0,onPointerOver:Ge?cn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:wn}}),Q(`slot`,{name:xF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":at?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":Tn,"aria-controls":pt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Le?`true`:void 0,value:ot,onBlur:()=>{(d!==`retain`||ze.current)&&t.closeSearch()},onFocus:Be,onPointerDown:Be,onInput:e=>{Be();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Ue&&bt.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${mt}px`},children:bt.map((e,t)=>yU(Rn,e.row,`sticky:${FH(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${bt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${St}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${mn}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${pn}px`,top:`${hn}px`,bottom:`${gn}px`},children:[bU(Ln,yt,wt),vn!=null&&yn!=null?yU(Ln,vn,`parked:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ft===vn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${yn}px`}}):null,Sn!=null&&Cn!=null?yU(Ln,Sn,`parked-drag:${Sn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${Cn}px`}}):null]})]})]}),Ge?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":An?`true`:`false`,style:Nn,children:[Q(`button`,{ref:v,type:`button`,"data-type":CF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":L==null?`false`:`true`,"data-visible":kn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),L!=null){Mt();return}In()},tabIndex:-1,style:Pn,children:Q(fV,{...tt(`file-tree-icon-ellipsis`)})}),L==null?null:Q(`slot`,{name:SF})]}):null,L==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Mt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Mt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var SU={hydrateRoot:(e,t)=>{sV(LB(xU,t),e)},renderRoot:(e,t)=>{oV(LB(xU,t),e)},unmountRoot:e=>{oV(null,e)}};function CU(e,t){SU.renderRoot(e,t)}function wU(e,t){SU.hydrateRoot(e,t)}function TU(e){SU.unmountRoot(e)}var EU=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function DU(e,t,n){if(!e.s){if(n instanceof OU){if(!n.s)return void(n.o=DU.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(DU.bind(null,e,t),DU.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var OU=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{DU(r,1,a(this.v))}catch(e){DU(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?DU(r,1,t?t(i):i):n?DU(r,1,n(i)):DU(r,2,i)}catch(e){DU(r,2,e)}},r},e}();Array.isArray;var kU=0;function AU(e){return e!=null&&e.length>0?e:(kU+=1,`pst_ft_${kU}`)}function jU({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??dz)}function MU(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function NU(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function PU(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var FU=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new EU;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=AU(a),this.#p=pB(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=uz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new cB({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(TU(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=mB(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&CU(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),CU(t.wrapper,this.#w()))}setGitStatus(e){let t=pB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&CU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),CU(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),wU(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),CU(r,this.#w())}#C(){return{initialViewportHeight:jU({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(xF,e());return}this.#l.setSlotHtml(xF,this.#e?.header?.html??null)}#k(e){let t=PU(e).find(e=>NU(e)),n=MU(dF(TF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=PU(e),n=t.find(e=>NU(e)),r=t.filter(e=>e!==n),i=TF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=MU(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=TF(this.#m);t.colored&&pF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${_F}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(_F,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=hz(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return xz(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}},IU=new Set([`/`,`.`,`-`,`_`,` `]);function LU(e,t){if(t===0)return!0;let n=e[t-1];if(IU.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function RU(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,LU(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function zU(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function BU(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&LU(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function VU(e,t,n,r,i){let a=zU(e,n,r);if(!a)return null;let o=BU(e,t,n,r),s=RU(t,a,i),c=o?RU(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function HU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(LU(e,i))return!0;return!1}function UU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=WU(t),a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=VU(n,t,r,i,i),c=s??VU(n,t,r,0,i);if(!c)return null;s&&HU(t,r,n,i)&&(a+=20),r.slice(i).replace(/\/$/,``)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function WU(e){return e.lastIndexOf(`/`,e.length-2)+1}function GU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function KU(e,t,n,r){let i=[];for(let r of e){let e=UU(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var qU=Ht,JU=(e=>`/${e}&`)(` b`),YU=60;function XU(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var ZU=x(0,1,e=>y(e.a,e._.e)),QU=ZU,$U=x(0,0,e=>y(e.b,e._.e)),eW=v(0,`<mark> </mark>`,` D `,e=>{$U._(e),j(e.a,`_nA`)},` `,` `,QU),tW=(e,t)=>eW(e,+!t),nW=(e,t)=>{tW(e,t[0]?.hit),rW(e,t[0]?.text)},rW=M(4,e=>{$U(e),ZU(e)}),iW=x(0,1,e=>y(e.a,e._.e)),aW=iW,oW=x(0,0,e=>y(e.b,e._.e)),sW=v(0,`<mark> </mark>`,` D `,e=>{oW._(e),j(e.a,`_nA`)},` `,` `,aW),cW=(e,t)=>sW(e,+!t),lW=(e,t)=>{cW(e,t[0]?.hit),uW(e,t[0]?.text)},uW=M(4,e=>{oW(e),iW(e)}),dW=e=>j(e.a,d),fW=x(5,0,e=>y(e.b,e._.n)),pW=e=>{fW._(e),j(e.a,s)},mW=I(34,e=>y(e.b,e._._._._.u),e=>e._._._._,`O5`),hW=e=>{mW(e),j(e.a,`_nB`)},gW=O(2,e=>y(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${S(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),_W=I(29,gW,e=>e._._._,`O11`),vW=e=>{_W(e),yW(e),j(e.a,`_dw`)},yW=I(33,gW,e=>e._._._,`O12`),bW=I(28,e=>y(e.b,e._._._._.k),e=>e._._._._,`O4`),xW=v(0,`<li role=presentation>Recently opened</li>`,` `,dW,`<li role=presentation> </li>`,` D `,e=>{bW(e),j(e.a,d)}),SW=O(17,e=>xW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),CW=I(33,SW,e=>e._._._,`O7`),wW=k(`O6`,e=>{g(e.c,`mousemove`,function(){e._._._.p!==e.o&&dG(e._._._,e.o)}),g(e.c,`click`,function(){e._._._.a1(e.o)})}),TW=e=>{CW(e),OW(e),kW(e),jW(e),j(e.d,`_ny`),j(e.e,`_nz`),wW(e)},EW=v(6,`<span>:<!></span>`,` Db%`,hW),DW=O(16,e=>EW(e,e._._._.u&&e.o===e._._._.y?0:1),2),OW=I(34,DW,e=>e._._._,`O8`),kW=I(35,SW,e=>e._._._,`O9`),AW=O(15,e=>{N(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),j(e.c,[`_dr`,e.o===e._._._.y&&`_dq`])}),jW=I(37,e=>{AW(e),DW(e)},e=>e._._._,`O10`),MW=M(9,SW),NW=M(14,e=>{SW(e),AW(e),DW(e)}),PW=w(3,`<!><!><!>`,`b%`,0,lW),FW=w(4,`<!><!><!>`,`b%`,0,nW),IW=O(20,e=>{PW(e,[XU(e.s,e.m,e.t,e.s?.length)]),FW(e,[XU(e.s,e.m,0,Math.max(0,e.t-1))])},2),LW=M(19,IW),RW=M(18,e=>{N(e.c,`title`,e.s),LW(e,WU(e.s)),IW(e)}),zW=M(12,IW),BW=v(5,`<span> </span>`,` D `,pW),VW=M(13,e=>{BW(e,+!e.n),fW(e)}),HW=(e,t)=>{MW(e,t[0]?.more),RW(e,t[0]?.item?.path),VW(e,t[0]?.item?.hint),zW(e,t[0]?.hits),NW(e,t[1])},UW=I(31,e=>ne(e,`c`,e._._.o,MG(e)),e=>e._._,`O15`),WW=k(`O14`,e=>{oe(e,`c`),g(e.d,`click`,function(){e._._.z()})}),GW=e=>{UW(e),KW(e),JW(e),ZW(e),j(e.a,`_dl`),Pe(e.b),je(e.b,14),Ie(e.b),j(e.c,u),j(e.d,[c,`_dn`]),Re(e.e),fe(e.e,16),xe(e.e),j(e.f,`_do`),WW(e)},KW=I(32,e=>{N(e.c,`aria-controls`,e._._.q),N(e.f,`id`,e._._.q)},e=>e._._),qW=_(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,TW,HW),JW=I(35,e=>qW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`O16`),YW=v(6,`<p> </p>`,` D `,vW),XW=k(`O13`,e=>g(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&dG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),ZW=I(36,e=>{YW(e,+!!e._._.w),XW(e)},e=>e._._,`O17`),QW=v(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(De,Se),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Ee,he),GW),$W=I(30,e=>QW(e,+!e._.m),0,`O18`),eG=se(`O19`,`<!><!><!>`,`b%`,$W),tG=F($W),nG=E(12,e=>{zt(e.a,e.m),tG(e)}),rG=O(5,e=>nG(e,e.d,e.e)),iG=M(3,rG),aG=M(4,rG),oG=(e,t)=>{xG(e,t?.query),CG(e,t?.line)},sG=F(UW),cG=C(14,e=>{oG(e,GU(e.o.trim())),sG(e)}),lG=M(24,F(jW)),uG=O(23,e=>lG(e,Math.min(e.p,Math.max(0,e.w-1)))),dG=C(15,uG),fG=M(16),pG=M(27),mG=O(26,e=>pG(e,NG(e)),3),hG=M(25,mG);function gG(e){Lt(e.a),Gt(e.a,eG(e)),It(e.a,`Go to file`),Pt(e.a,[`_bX`,`_dk`]),Kt(e.a,FG(e)),Wt(e.a,!0),Rt(e.a),Vt(e.a),Ft(e.a),Bt(e.a),Ut(e.a,{}),cG(e,``),dG(e,0),fG(e,T(e)),hG(e,PG(e))}var _G=F(JW,kW),vG=M(21,e=>{TG(e,e.v?.length),mG(e),_G(e)}),yG=O(19,e=>vG(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=KU(e.g,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?KU(e.i.items,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),bG=F(CW,yW),xG=M(18,e=>{yG(e),bG(e)}),SG=F(OW,mW),CG=M(20,e=>{mG(e),SG(e)}),wG=F(ZW),TG=M(22,e=>{uG(e),wG(e)}),EG=M(6,yG),DG=M(7,yG),OG=M(8,e=>{AG(e,e.i?.label),yG(e)}),kG=M(9,mG),AG=M(10,F(bW)),jG=M(11,F(_W)),MG=e=>function(t){cG(e._._,t),dG(e._._,0)},NG=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},PG=e=>()=>{nG(e,!1),cG(e,``),dG(e,0)},FG=e=>t=>{nG(e,t)};b.O3=MG,b.O1=NG,b.O0=PG,b.O2=FG;export{EE as $,uS as $t,jM as A,sw as At,$E as B,vC as Bt,uN as C,gw as Ct,iN as D,pw as Dt,oN as E,ww as Et,CD as F,KC as Ft,pE as G,xC as Gt,LE as H,bC as Ht,wD as I,JC as It,vE as J,lC as Jt,mE as K,CC as Kt,vD as L,qC as Lt,EM as M,YC as Mt,GM as N,QC as Nt,aN as O,hw as Ot,CM as P,GC as Pt,AE as Q,dS as Qt,hD as R,UC as Rt,lN as S,Sw as St,sN as T,Cw as Tt,ME as U,kC as Ut,IE as V,SC as Vt,NE as W,DC as Wt,TE as X,MS as Xt,OE as Y,nC as Yt,wE as Z,gS as Zt,mN as _,zw as _t,iG as a,pT as at,fN as b,vw as bt,gG as c,nT as ct,FU as d,iT as dt,Gx as en,QT as et,XN as f,aT as ft,HN as g,Dw as gt,qN as h,Yw as ht,kG as i,gT as it,qM as j,cw as jt,WM as k,ew as kt,qU as l,tT as lt,ZN as m,eT as mt,jG as n,Hp as nn,vT as nt,aG as o,oT as ot,$N as p,Qw as pt,_E as q,_C as qt,OG as r,Tn as rn,_T as rt,DG as s,sT as st,EG as t,W_ as tn,$T as tt,JU as u,rT as ut,hN as v,Rw as vt,cN as w,yw as wt,dN as x,bw as xt,pN as y,Mw as yt,dD as z,HC as zt};
|