@dylanpiercey/work 0.0.218 → 0.0.219
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/index.mjs +702 -701
- package/dist/public/assets/{_mGNSgANV.js → _-O_h9ujp.js} +1 -1
- package/dist/public/assets/_-O_h9ujp.js.br +0 -0
- package/dist/public/assets/{_PBJArZ1p.js → _1RihXiRD.js} +1 -1
- package/dist/public/assets/_1RihXiRD.js.br +0 -0
- package/dist/public/assets/{_DWppCLQS.js → _2IZlnqhY.js} +1 -1
- package/dist/public/assets/{_C6-9O9jl.js → _3CDVRmmv.js} +5 -5
- package/dist/public/assets/_3CDVRmmv.js.br +0 -0
- package/dist/public/assets/{_CDmpXSnA.js → _5TqJSgWL.js} +1 -1
- package/dist/public/assets/_5TqJSgWL.js.br +0 -0
- package/dist/public/assets/{_CeQLWUiN.js → _5quFhVsn.js} +1 -1
- package/dist/public/assets/_5quFhVsn.js.br +0 -0
- package/dist/public/assets/{_Xqig002F.js → _71btet6m.js} +1 -1
- package/dist/public/assets/_71btet6m.js.br +0 -0
- package/dist/public/assets/_AnrDVXlu.js +1 -0
- package/dist/public/assets/{_BteNg33P.js → _B-o0hipU.js} +1 -1
- package/dist/public/assets/_B-o0hipU.js.br +0 -0
- package/dist/public/assets/_B0VjxY_i.js +1 -0
- package/dist/public/assets/_B1csTaYa.js +1 -0
- package/dist/public/assets/_B2MvGzVU.js +1 -0
- package/dist/public/assets/_B5p9H18i.js +1 -0
- package/dist/public/assets/{_DpWzGwz0.js → _B7lR7eAZ.js} +1 -1
- package/dist/public/assets/_B7lR7eAZ.js.br +0 -0
- package/dist/public/assets/{_DLJ0U4Bn.js → _B8Ec9l8y.js} +1 -1
- package/dist/public/assets/_B8Ec9l8y.js.br +0 -0
- package/dist/public/assets/{_BFVbF5oQ.js → _B8dP-kqd.js} +1 -1
- package/dist/public/assets/_B8dP-kqd.js.br +0 -0
- package/dist/public/assets/{_K_yqvP79.js → _B8zFRTH5.js} +1 -1
- package/dist/public/assets/_B8zFRTH5.js.br +0 -0
- package/dist/public/assets/{_CII0-ry5.js → _B97m4Jyl.js} +1 -1
- package/dist/public/assets/_B97m4Jyl.js.br +0 -0
- package/dist/public/assets/_BCaInB-q.js +1 -0
- package/dist/public/assets/{_CeLc2Erd.js → _BCmNE61A.js} +1 -1
- package/dist/public/assets/_BCmNE61A.js.br +0 -0
- package/dist/public/assets/_BDQ9k-5f.js +1 -0
- package/dist/public/assets/_BDiqBxb-.js +1 -0
- package/dist/public/assets/{_BVoZyKD1.js → _BE3CuMf7.js} +1 -1
- package/dist/public/assets/_BE3CuMf7.js.br +0 -0
- package/dist/public/assets/_BETW_6BQ.js +1 -0
- package/dist/public/assets/{_l4AEWbcW.js → _BJe6LBX7.js} +1 -1
- package/dist/public/assets/_BJe6LBX7.js.br +0 -0
- package/dist/public/assets/{_oQAvs0EV.js → _BKX8Xe2u.js} +1 -1
- package/dist/public/assets/_BKX8Xe2u.js.br +0 -0
- package/dist/public/assets/_BOU4nxdL.js +1 -0
- package/dist/public/assets/{_DRaz4kd8.js → _BOW7LZ8g.js} +1 -1
- package/dist/public/assets/_BOW7LZ8g.js.br +0 -0
- package/dist/public/assets/{_2s5aIO7T.js → _BPi3vLIt.js} +1 -1
- package/dist/public/assets/_BPi3vLIt.js.br +0 -0
- package/dist/public/assets/_BQGNAHHQ.js +1 -0
- package/dist/public/assets/{_w55jSHIv.js → _BSb4uvO5.js} +1 -1
- package/dist/public/assets/_BSb4uvO5.js.br +0 -0
- package/dist/public/assets/_BTrxo7nM.js +1 -0
- package/dist/public/assets/{_BoONB8ss.js → _BUdYMp4R.js} +1 -1
- package/dist/public/assets/_BUdYMp4R.js.br +0 -0
- package/dist/public/assets/{_DOUmSUw8.js → _BUjjYA3N.js} +1 -1
- package/dist/public/assets/_BUjjYA3N.js.br +0 -0
- package/dist/public/assets/_BXCDMsw9.js +1 -0
- package/dist/public/assets/{_B9IwHdnd.js → _BarLVnTI.js} +1 -1
- package/dist/public/assets/_BarLVnTI.js.br +0 -0
- package/dist/public/assets/{_C1AW1vB4.js → _BavJf_Q6.js} +1 -1
- package/dist/public/assets/_BavJf_Q6.js.br +0 -0
- package/dist/public/assets/_Bc0DsEKT.js +1 -0
- package/dist/public/assets/{_DILlGU4L.js → _BcnW1izX.js} +1 -1
- package/dist/public/assets/_BcnW1izX.js.br +0 -0
- package/dist/public/assets/_BdK4HhjT.js +1 -0
- package/dist/public/assets/_BeeJNIXj.js +1 -0
- package/dist/public/assets/{_1oXJ_fXc.js → _BgFz3k6s.js} +1 -1
- package/dist/public/assets/_BgFz3k6s.js.br +0 -0
- package/dist/public/assets/{_BOCjC_BC.js → _BgY1ZI9N.js} +1 -1
- package/dist/public/assets/_BgY1ZI9N.js.br +0 -0
- package/dist/public/assets/{_CNob7ZlS.js → _BinZ2nfU.js} +1 -1
- package/dist/public/assets/_BinZ2nfU.js.br +0 -0
- package/dist/public/assets/_BkMfNqVg.js +1 -0
- package/dist/public/assets/{_Z5QRQynL.js → _BkSflQmx.js} +1 -1
- package/dist/public/assets/_BkSflQmx.js.br +0 -0
- package/dist/public/assets/{_BY5WfF4l.js → _BlDQMNAl.js} +1 -1
- package/dist/public/assets/{_DlJiwrl6.js → _Bp84stK2.js} +1 -1
- package/dist/public/assets/_Bp84stK2.js.br +0 -0
- package/dist/public/assets/{_BVBnjbBZ.js → _BqmjQZ4_.js} +1 -1
- package/dist/public/assets/_BqmjQZ4_.js.br +0 -0
- package/dist/public/assets/_BxXhCVAC.js +1 -0
- package/dist/public/assets/{_DOsKUwo_.js → _BxzS9QSB.js} +1 -1
- package/dist/public/assets/_BxzS9QSB.js.br +0 -0
- package/dist/public/assets/{_cy4VMy_L.js → _ByS9W2jx.js} +1 -1
- package/dist/public/assets/_ByS9W2jx.js.br +0 -0
- package/dist/public/assets/_C1AUKvZI.js +1 -0
- package/dist/public/assets/_C6nk_sO5.js +1 -0
- package/dist/public/assets/{_Dnrtoccx.js → _C82YmUQy.js} +1 -1
- package/dist/public/assets/_C82YmUQy.js.br +0 -0
- package/dist/public/assets/{_JS0lRtel.js → _CBA97mrS.js} +1 -1
- package/dist/public/assets/_CBA97mrS.js.br +0 -0
- package/dist/public/assets/{_BQtuoFuS.js → _CCMrMcQS.js} +1 -1
- package/dist/public/assets/_CCMrMcQS.js.br +0 -0
- package/dist/public/assets/_CDoFlEAI.js +1 -0
- package/dist/public/assets/_CE0eCOib.js +1 -0
- package/dist/public/assets/_CE2ka06C.js +1 -0
- package/dist/public/assets/_CFOVQYxm.js +1 -0
- package/dist/public/assets/{_g7Sbw0hA.js → _CFoL94zo.js} +1 -1
- package/dist/public/assets/_CFoL94zo.js.br +0 -0
- package/dist/public/assets/{_dFusxGOy.js → _CI5zrsJ2.js} +1 -1
- package/dist/public/assets/_CI5zrsJ2.js.br +0 -0
- package/dist/public/assets/{_CvtbFMPu.js → _CI6XTTs8.js} +1 -1
- package/dist/public/assets/_CI6XTTs8.js.br +0 -0
- package/dist/public/assets/{_B_lF3ui3.js → _CLfPKPrU.js} +1 -1
- package/dist/public/assets/_CLfPKPrU.js.br +0 -0
- package/dist/public/assets/{_BDoav0oh.js → _CMZMp0RG.js} +1 -1
- package/dist/public/assets/{_DJecKgb-.js → _CMqedECK.js} +1 -1
- package/dist/public/assets/_CMqedECK.js.br +0 -0
- package/dist/public/assets/{_C9mdGD6d.js → _CQkuDeX9.js} +1 -1
- package/dist/public/assets/_CQkuDeX9.js.br +0 -0
- package/dist/public/assets/_CTcN9VnB.js +1 -0
- package/dist/public/assets/{_YFtcOEs7.js → _CTpPjHco.js} +1 -1
- package/dist/public/assets/_CTpPjHco.js.br +0 -0
- package/dist/public/assets/{_DGiGh5vp.js → _CTu2p7LH.js} +1 -1
- package/dist/public/assets/_CTu2p7LH.js.br +0 -0
- package/dist/public/assets/_CWGwzgnp.js +1 -0
- package/dist/public/assets/_CWVfqNQo.js +1 -0
- package/dist/public/assets/{_D1UdpxlS.js → _CWk2VS_I.js} +1 -1
- package/dist/public/assets/_CWk2VS_I.js.br +0 -0
- package/dist/public/assets/_CY4hTWku.js +1 -0
- package/dist/public/assets/{_Ds7va5jD.js → _CYSSSuCb.js} +1 -1
- package/dist/public/assets/_CYSSSuCb.js.br +0 -0
- package/dist/public/assets/{_DpjGfaq2.js → _CYgWLheP.js} +1 -1
- package/dist/public/assets/_CYgWLheP.js.br +0 -0
- package/dist/public/assets/_C_nSglk2.js +1 -0
- package/dist/public/assets/{_Obr-fYhv.js → _Cd8c4PSh.js} +1 -1
- package/dist/public/assets/_Cd8c4PSh.js.br +0 -0
- package/dist/public/assets/_CdJLcCrm.js +1 -0
- package/dist/public/assets/_CfokNTV_.js +1 -0
- package/dist/public/assets/_CiEMRth5.js +1 -0
- package/dist/public/assets/{_B7aQVpV3.js → _Cm1I-hKh.js} +1 -1
- package/dist/public/assets/_Cm1I-hKh.js.br +0 -0
- package/dist/public/assets/_CmLCVt7J.js +1 -0
- package/dist/public/assets/{_OCdp7nNx.js → _CmUx4_Bt.js} +1 -1
- package/dist/public/assets/_CmUx4_Bt.js.br +0 -0
- package/dist/public/assets/_CnueDewW.js +1 -0
- package/dist/public/assets/{_7KvcL7du.js → _Cp_JPNki.js} +1 -1
- package/dist/public/assets/_Cp_JPNki.js.br +0 -0
- package/dist/public/assets/{_DpNTfbTV.js → _Cr4Oy8_t.js} +1 -1
- package/dist/public/assets/_Cr4Oy8_t.js.br +0 -0
- package/dist/public/assets/{_DmXnNSMT.js → _Cr5W6B-6.js} +4 -4
- package/dist/public/assets/_Cr5W6B-6.js.br +0 -0
- package/dist/public/assets/{_ArzGOZ9l.js → _Cv3s6Xp-.js} +1 -1
- package/dist/public/assets/_Cv3s6Xp-.js.br +0 -0
- package/dist/public/assets/_Cv4hFQam.js +1 -0
- package/dist/public/assets/{_ClfT9ujN.js → _CvBmty_K.js} +1 -1
- package/dist/public/assets/_CvBmty_K.js.br +0 -0
- package/dist/public/assets/{_Cx9QT0Ap.js → _Cw3k2XBZ.js} +1 -1
- package/dist/public/assets/_Cw3k2XBZ.js.br +0 -0
- package/dist/public/assets/_CxY9E2hz.js +1 -0
- package/dist/public/assets/_D-fuwCCf.js +1 -0
- package/dist/public/assets/_D02QPwwQ.js +1 -0
- package/dist/public/assets/{_hwoPhsey.js → _D1Z4n1p9.js} +1 -1
- package/dist/public/assets/_D1Z4n1p9.js.br +0 -0
- package/dist/public/assets/{_CBgm70nI.js → _D2U306wq.js} +1 -1
- package/dist/public/assets/_D2U306wq.js.br +0 -0
- package/dist/public/assets/{_BO-pdemg.js → _D5EAilLC.js} +1 -1
- package/dist/public/assets/_D5EAilLC.js.br +0 -0
- package/dist/public/assets/{_ClTmT7Py.js → _D5GMaPo8.js} +7 -7
- package/dist/public/assets/_D5GMaPo8.js.br +0 -0
- package/dist/public/assets/_D8rARl04.js +1 -0
- package/dist/public/assets/{__aP-qPRk.js → _D9zNjeRI.js} +1 -1
- package/dist/public/assets/_D9zNjeRI.js.br +0 -0
- package/dist/public/assets/_DA6HGXtA.js +1 -0
- package/dist/public/assets/{_uU4qEkMz.js → _DAV_5HR7.js} +1 -1
- package/dist/public/assets/_DAV_5HR7.js.br +0 -0
- package/dist/public/assets/{_sTN8kYjI.js → _DBXjVwsw.js} +1 -1
- package/dist/public/assets/_DBXjVwsw.js.br +0 -0
- package/dist/public/assets/{_Cx_BfTEU.js → _DC_da0FV.js} +1 -1
- package/dist/public/assets/_DC_da0FV.js.br +0 -0
- package/dist/public/assets/_DF5P54CM.js +1 -0
- package/dist/public/assets/{_Dl0TpuQ-.js → _DGbt82mt.js} +1 -1
- package/dist/public/assets/_DGbt82mt.js.br +0 -0
- package/dist/public/assets/{_avj9xAj5.js → _DH7A624l.js} +1 -1
- package/dist/public/assets/_DH7A624l.js.br +0 -0
- package/dist/public/assets/{_seVXMKQt.js → _DI4QssNP.js} +1 -1
- package/dist/public/assets/_DI4QssNP.js.br +0 -0
- package/dist/public/assets/{_Y_l-CFEH.js → _DJMhuHLY.js} +1 -1
- package/dist/public/assets/_DJMhuHLY.js.br +0 -0
- package/dist/public/assets/_DKAw0vK-.js +1 -0
- package/dist/public/assets/{_DXebsR9g.js → _DLoUvR5m.js} +1 -1
- package/dist/public/assets/_DLoUvR5m.js.br +0 -0
- package/dist/public/assets/{_DdCe1MZZ.js → _DMr91cMi.js} +1 -1
- package/dist/public/assets/_DMr91cMi.js.br +0 -0
- package/dist/public/assets/_DNGZgeFT.js +1 -0
- package/dist/public/assets/_DP8Uj-oM.js +1 -0
- package/dist/public/assets/_DQX27gRI.js +1 -0
- package/dist/public/assets/_DR6o2x05.js +1 -0
- package/dist/public/assets/_DS8AHEh6.js +1 -0
- package/dist/public/assets/{_DF3ABWG6.js → _DUHCXc9J.js} +1 -1
- package/dist/public/assets/_DUHCXc9J.js.br +0 -0
- package/dist/public/assets/_DUtVpppi.js +1 -0
- package/dist/public/assets/{_h9BpHTjU.js → _DVLoe9Pc.js} +1 -1
- package/dist/public/assets/_DVLoe9Pc.js.br +0 -0
- package/dist/public/assets/{_DLtdX4rI.js → _DVO8e0Xm.js} +1 -1
- package/dist/public/assets/_DVO8e0Xm.js.br +0 -0
- package/dist/public/assets/_DYuO6Pfv.js +1 -0
- package/dist/public/assets/{_6oc-GFAh.js → _Dahfmgsf.js} +1 -1
- package/dist/public/assets/_Dahfmgsf.js.br +0 -0
- package/dist/public/assets/_DcJx6iNO.js +1 -0
- package/dist/public/assets/{_CEpwIWBU.js → _De7PkJ-N.js} +2 -2
- package/dist/public/assets/_De7PkJ-N.js.br +0 -0
- package/dist/public/assets/{_DGwqUWdL.js → _DfI5x1OI.js} +1 -1
- package/dist/public/assets/_DfI5x1OI.js.br +0 -0
- package/dist/public/assets/_DgS0CwT5.js +1 -0
- package/dist/public/assets/_DivnTrDG.js +1 -0
- package/dist/public/assets/{_B1e_1JRm.js → _DjAndhPa.js} +1 -1
- package/dist/public/assets/_DjAndhPa.js.br +0 -0
- package/dist/public/assets/_Dkhg-eiV.js +1 -0
- package/dist/public/assets/_Do-qobXO.js +1 -0
- package/dist/public/assets/{_BxLisOkD.js → _DotndNSz.js} +1 -1
- package/dist/public/assets/_DotndNSz.js.br +0 -0
- package/dist/public/assets/{_SeG2wXTL.js → _DpjmzCUN.js} +1 -1
- package/dist/public/assets/_DpjmzCUN.js.br +0 -0
- package/dist/public/assets/_DtOhy8Mh.js +1 -0
- package/dist/public/assets/{_DrSn2Oj-.js → _DvHQcCzS.js} +1 -1
- package/dist/public/assets/_DvHQcCzS.js.br +0 -0
- package/dist/public/assets/_DwP1hRNo.js +1 -0
- package/dist/public/assets/{_Cqwn6CHb.js → _Dx4SU_jN.js} +1 -1
- package/dist/public/assets/_Dx4SU_jN.js.br +0 -0
- package/dist/public/assets/_DysvZo-w.js +1 -0
- package/dist/public/assets/_HUjIw5DS.js +1 -0
- package/dist/public/assets/_IA4CZoMB.js +1 -0
- package/dist/public/assets/{_D-902IrK.js → _ILBntD6M.js} +1 -1
- package/dist/public/assets/_ILBntD6M.js.br +0 -0
- package/dist/public/assets/{_DamfFGBI.js → _IURkrQ_o.js} +1 -1
- package/dist/public/assets/_IURkrQ_o.js.br +0 -0
- package/dist/public/assets/{_DfUlXj7r.js → _NJue9xHW.js} +1 -1
- package/dist/public/assets/_NJue9xHW.js.br +0 -0
- package/dist/public/assets/_O1JGiuCP.js +1 -0
- package/dist/public/assets/{_BpNyK02J.js → _O5UUIgi8.js} +1 -1
- package/dist/public/assets/_O5UUIgi8.js.br +0 -0
- package/dist/public/assets/_RxPIKsJw.js +1 -0
- package/dist/public/assets/{_Bgbe-7aj.js → _SuqJfdVH.js} +1 -1
- package/dist/public/assets/_SuqJfdVH.js.br +0 -0
- package/dist/public/assets/{_Dx52V1cN.js → _V6FTaZqD.js} +1 -1
- package/dist/public/assets/_V6FTaZqD.js.br +0 -0
- package/dist/public/assets/_WgZFFiPN.js +1 -0
- package/dist/public/assets/{_ldFi4QQA.js → _X4p2nzIk.js} +1 -1
- package/dist/public/assets/_X4p2nzIk.js.br +0 -0
- package/dist/public/assets/_YmlaDtrc.js +1 -0
- package/dist/public/assets/_Z0qUZ7TS.js +1 -0
- package/dist/public/assets/__KEp9l3B.js +1 -0
- package/dist/public/assets/{_D9ZH9LpH.js → __ejq8CPS.js} +4 -4
- package/dist/public/assets/__ejq8CPS.js.br +0 -0
- package/dist/public/assets/_aCNQDg5E.js +1 -0
- package/dist/public/assets/{_DMW328Kf.js → _aV5Hk6SK.js} +1 -1
- package/dist/public/assets/_aV5Hk6SK.js.br +0 -0
- package/dist/public/assets/_bvNwRl4P.js +1 -0
- package/dist/public/assets/_eNcZtr8f.js +1 -0
- package/dist/public/assets/{_CKiOrTnh.js → _l2Wb-7XB.js} +1 -1
- package/dist/public/assets/_nC3VjBzx.js +1 -0
- package/dist/public/assets/_nrHxA3q4.js +1 -0
- package/dist/public/assets/_oIJ_fJ9P.js +1 -0
- package/dist/public/assets/{_Ch6_20uB.js → _pw0e32fu.js} +1 -1
- package/dist/public/assets/_pw0e32fu.js.br +0 -0
- package/dist/public/assets/{_BV0eYd0z.js → _qEwwtm8i.js} +1 -1
- package/dist/public/assets/_qEwwtm8i.js.br +0 -0
- package/dist/public/assets/{_Dxz4tLla.js → _rKB7fIip.js} +1 -1
- package/dist/public/assets/_yBwdVdIm.js +1 -0
- package/dist/public/assets/{_BNLbOcbi.js → _zRKj2hj-.js} +1 -1
- package/dist/public/assets/_zRKj2hj-.js.br +0 -0
- package/dist/public/assets/{app-shell-C8QpOEBC.css → app-shell-G8TTs3rO.css} +1 -1
- package/dist/public/assets/app-shell-G8TTs3rO.css.br +0 -0
- package/dist/public/assets/files-view-CN-q9At6.js +2 -0
- package/dist/public/assets/files-view-CvyjYPF7.css +1 -0
- package/dist/public/assets/files-view-CvyjYPF7.css.br +0 -0
- package/dist/public/assets/group.css.ts-C22E-_5S.css +1 -0
- package/dist/public/assets/group.css.ts-C22E-_5S.css.br +0 -0
- package/dist/public/assets/icon-folder-CJWc8JTw.css +1 -0
- package/dist/public/assets/icon-folder-CJWc8JTw.css.br +0 -0
- package/dist/public/assets/{icon-search-CQX_Oqgo.css → icon-search-B591pgSk.css} +1 -1
- package/dist/public/assets/icon-search-B591pgSk.css.br +0 -0
- package/dist/public/assets/manage-workspace-BhaxB-GD.js +2 -0
- package/dist/public/assets/manage-workspace-DTIBTbqM.css +1 -0
- package/dist/public/assets/{modal-view-Dz0sc8qS.css → modal-view-D77dfzpo.css} +1 -1
- package/dist/public/assets/modal-view-D77dfzpo.css.br +0 -0
- package/dist/public/assets/new-qRb2LoH5.js +1 -0
- package/dist/public/assets/new-workspace-BpFu7xoV.css +1 -0
- package/dist/public/assets/new-workspace-BpFu7xoV.css.br +0 -0
- package/dist/public/assets/new-workspace-CdrRpfAw.js +2 -0
- package/dist/public/assets/port-chip-ffxOAk-G.css +1 -0
- package/dist/public/assets/port-chip-ffxOAk-G.css.br +0 -0
- package/dist/public/assets/prompt-dialog-CYIQSfln.css +1 -0
- package/dist/public/assets/prompt-dialog-CYIQSfln.css.br +0 -0
- package/dist/public/assets/{quick-open-C0Lixd0Y.css → quick-open-Bj5Skvc6.css} +1 -1
- package/dist/public/assets/quick-open-Bj5Skvc6.css.br +0 -0
- package/dist/public/assets/repo-picker-DG32XR8R.css +1 -0
- package/dist/public/assets/repo-picker-DG32XR8R.css.br +2 -0
- package/dist/public/assets/review-view-Cc8EgIVv.js +2 -0
- package/dist/public/assets/review-view-GHE-M0ZF.css +1 -0
- package/dist/public/assets/review-view-GHE-M0ZF.css.br +0 -0
- package/dist/public/assets/{section-38xGzPer.css → section-DUuHiVs9.css} +1 -1
- package/dist/public/assets/section-DUuHiVs9.css.br +0 -0
- package/dist/public/assets/settings-page-BHI2r3EL.js +2 -0
- package/dist/public/assets/settings-page-DPxR1084.css +1 -0
- package/dist/public/assets/settings-page-DPxR1084.css.br +0 -0
- package/dist/public/assets/settings-qRb2LoH5.js +1 -0
- package/dist/public/assets/skill-row-CmoGCgnT.css +1 -0
- package/dist/public/assets/sso-auth-DkC8BGSF.css +1 -0
- package/dist/public/assets/sso-auth-DkC8BGSF.css.br +0 -0
- package/dist/public/assets/w-qRb2LoH5.js +1 -0
- package/dist/public/assets/w._-DB35uUq7.js +1 -0
- package/dist/public/assets/w._-Dahq2PDs.js +1 -0
- package/dist/public/assets/w._-qRb2LoH5.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_1oXJ_fXc.js.br +0 -0
- package/dist/public/assets/_2388MgWe.js +0 -1
- package/dist/public/assets/_2MeFJ54s.js +0 -1
- package/dist/public/assets/_2s5aIO7T.js.br +0 -0
- package/dist/public/assets/_4p00VfQ0.js +0 -1
- package/dist/public/assets/_6oc-GFAh.js.br +0 -0
- package/dist/public/assets/_7KvcL7du.js.br +0 -0
- package/dist/public/assets/_9QnMfcjQ.js +0 -1
- package/dist/public/assets/_AqHgeNcH.js +0 -1
- package/dist/public/assets/_ArzGOZ9l.js.br +0 -0
- package/dist/public/assets/_B1e_1JRm.js.br +0 -0
- package/dist/public/assets/_B2-HFdkc.js +0 -1
- package/dist/public/assets/_B3nw4t3h.js +0 -1
- package/dist/public/assets/_B6LpMAVW.js +0 -1
- package/dist/public/assets/_B6Mgov6z.js +0 -1
- package/dist/public/assets/_B7aQVpV3.js.br +0 -0
- package/dist/public/assets/_B8tAmyIM.js +0 -1
- package/dist/public/assets/_B9IwHdnd.js.br +0 -0
- package/dist/public/assets/_B9zB59Bl.js +0 -1
- package/dist/public/assets/_BFVbF5oQ.js.br +0 -0
- package/dist/public/assets/_BJ0c8UwQ.js +0 -1
- package/dist/public/assets/_BM3qc_J2.js +0 -1
- package/dist/public/assets/_BNLbOcbi.js.br +0 -0
- package/dist/public/assets/_BO-pdemg.js.br +0 -0
- package/dist/public/assets/_BOCjC_BC.js.br +0 -0
- package/dist/public/assets/_BQtuoFuS.js.br +0 -0
- package/dist/public/assets/_BV0eYd0z.js.br +0 -0
- package/dist/public/assets/_BVBnjbBZ.js.br +0 -0
- package/dist/public/assets/_BVoZyKD1.js.br +0 -0
- package/dist/public/assets/_B_lF3ui3.js.br +0 -0
- package/dist/public/assets/_BbREF1Zx.js +0 -1
- package/dist/public/assets/_BfUMBq7F.js +0 -1
- package/dist/public/assets/_BfxIYe9z.js +0 -1
- package/dist/public/assets/_Bgbe-7aj.js.br +0 -0
- package/dist/public/assets/_BnKAavAk.js +0 -1
- package/dist/public/assets/_BoONB8ss.js.br +0 -0
- package/dist/public/assets/_BpNyK02J.js.br +0 -0
- package/dist/public/assets/_BrzVWCSX.js +0 -1
- package/dist/public/assets/_BteNg33P.js.br +0 -0
- package/dist/public/assets/_BxLisOkD.js.br +0 -0
- package/dist/public/assets/_BxZpuv0X.js +0 -1
- package/dist/public/assets/_C1AW1vB4.js.br +0 -0
- package/dist/public/assets/_C6-9O9jl.js.br +0 -0
- package/dist/public/assets/_C7XVSiWe.js +0 -1
- package/dist/public/assets/_C86aK8-z.js +0 -1
- package/dist/public/assets/_C90cysyS.js +0 -1
- package/dist/public/assets/_C9mdGD6d.js.br +0 -0
- package/dist/public/assets/_CBSlMO5I.js +0 -1
- package/dist/public/assets/_CBgm70nI.js.br +0 -0
- package/dist/public/assets/_CDmpXSnA.js.br +0 -0
- package/dist/public/assets/_CEpwIWBU.js.br +0 -0
- package/dist/public/assets/_CII0-ry5.js.br +0 -0
- package/dist/public/assets/_CIqxPXP5.js +0 -1
- package/dist/public/assets/_CJDY3Ny_.js +0 -1
- package/dist/public/assets/_CJuAmLQX.js +0 -1
- package/dist/public/assets/_CNSU4vKA.js +0 -1
- package/dist/public/assets/_CNob7ZlS.js.br +0 -0
- package/dist/public/assets/_CNrb8Y7d.js +0 -1
- package/dist/public/assets/_CQB3cvUR.js +0 -1
- package/dist/public/assets/_CTKL3AOZ.js +0 -1
- package/dist/public/assets/_CWH8277I.js +0 -1
- package/dist/public/assets/_CeLc2Erd.js.br +0 -0
- package/dist/public/assets/_CeQLWUiN.js.br +0 -0
- package/dist/public/assets/_CeTJWJYs.js +0 -1
- package/dist/public/assets/_Cf5r1-CS.js +0 -1
- package/dist/public/assets/_CfTFbxqj.js +0 -1
- package/dist/public/assets/_Ch6_20uB.js.br +0 -0
- package/dist/public/assets/_Cj1pwntf.js +0 -1
- package/dist/public/assets/_ClJyo5Ii.js +0 -1
- package/dist/public/assets/_ClTmT7Py.js.br +0 -0
- package/dist/public/assets/_ClfT9ujN.js.br +0 -0
- package/dist/public/assets/_Co72ZQ_S.js +0 -1
- package/dist/public/assets/_CpGJzUbJ.js +0 -1
- package/dist/public/assets/_Cqwn6CHb.js.br +0 -0
- package/dist/public/assets/_Ct0cUAfe.js +0 -1
- package/dist/public/assets/_CvtbFMPu.js.br +0 -0
- package/dist/public/assets/_Cx9QT0Ap.js.br +0 -0
- package/dist/public/assets/_Cx_BfTEU.js.br +0 -0
- package/dist/public/assets/_D-902IrK.js.br +0 -0
- package/dist/public/assets/_D0UZcZyg.js +0 -1
- package/dist/public/assets/_D1UdpxlS.js.br +0 -0
- package/dist/public/assets/_D1yEMe8E.js +0 -1
- package/dist/public/assets/_D5U3Sy3D.js +0 -1
- package/dist/public/assets/_D9ZH9LpH.js.br +0 -0
- package/dist/public/assets/_DA023eBn.js +0 -1
- package/dist/public/assets/_DCMzcHdi.js +0 -1
- package/dist/public/assets/_DEyCb-ux.js +0 -1
- package/dist/public/assets/_DF3ABWG6.js.br +0 -0
- package/dist/public/assets/_DGiGh5vp.js.br +0 -0
- package/dist/public/assets/_DGwqUWdL.js.br +0 -0
- package/dist/public/assets/_DHKNb-1Y.js +0 -1
- package/dist/public/assets/_DILlGU4L.js.br +0 -0
- package/dist/public/assets/_DJecKgb-.js.br +0 -0
- package/dist/public/assets/_DLJ0U4Bn.js.br +0 -0
- package/dist/public/assets/_DLtdX4rI.js.br +0 -0
- package/dist/public/assets/_DMW328Kf.js.br +0 -0
- package/dist/public/assets/_DOUmSUw8.js.br +0 -0
- package/dist/public/assets/_DOsKUwo_.js.br +0 -0
- package/dist/public/assets/_DQCzG_S6.js +0 -1
- package/dist/public/assets/_DRaz4kd8.js.br +0 -0
- package/dist/public/assets/_DV03Pmgu.js +0 -1
- package/dist/public/assets/_DVWjNiWU.js +0 -1
- package/dist/public/assets/_DXQPZ4jb.js +0 -1
- package/dist/public/assets/_DXebsR9g.js.br +0 -0
- package/dist/public/assets/_DamfFGBI.js.br +0 -0
- package/dist/public/assets/_Db8durDa.js +0 -1
- package/dist/public/assets/_DbbWE5Nj.js +0 -1
- package/dist/public/assets/_DblDTzjE.js +0 -1
- package/dist/public/assets/_DdCe1MZZ.js.br +0 -0
- package/dist/public/assets/_DfUlXj7r.js.br +0 -0
- package/dist/public/assets/_DiPD8W1d.js +0 -1
- package/dist/public/assets/_DizA4xBY.js +0 -1
- package/dist/public/assets/_Dl0TpuQ-.js.br +0 -0
- package/dist/public/assets/_DlJiwrl6.js.br +0 -0
- package/dist/public/assets/_DmXnNSMT.js.br +0 -0
- package/dist/public/assets/_Dnrtoccx.js.br +0 -0
- package/dist/public/assets/_DpNTfbTV.js.br +0 -0
- package/dist/public/assets/_DpWzGwz0.js.br +0 -0
- package/dist/public/assets/_DpjGfaq2.js.br +0 -0
- package/dist/public/assets/_DrSn2Oj-.js.br +0 -0
- package/dist/public/assets/_Ds7va5jD.js.br +0 -0
- package/dist/public/assets/_Dx52V1cN.js.br +0 -0
- package/dist/public/assets/_E01-HnMI.js +0 -1
- package/dist/public/assets/_HZsImZiZ.js +0 -1
- package/dist/public/assets/_JS0lRtel.js.br +0 -0
- package/dist/public/assets/_KVEwH8nb.js +0 -1
- package/dist/public/assets/_K_yqvP79.js.br +0 -0
- package/dist/public/assets/_OCdp7nNx.js.br +0 -0
- package/dist/public/assets/_Obr-fYhv.js.br +0 -0
- package/dist/public/assets/_PBJArZ1p.js.br +0 -0
- package/dist/public/assets/_SeG2wXTL.js.br +0 -0
- package/dist/public/assets/_T-E3PA4d.js +0 -1
- package/dist/public/assets/_UQs3VSMr.js +0 -1
- package/dist/public/assets/_VtbrTUw9.js +0 -1
- package/dist/public/assets/_Xqig002F.js.br +0 -0
- package/dist/public/assets/_YFtcOEs7.js.br +0 -0
- package/dist/public/assets/_Y_l-CFEH.js.br +0 -0
- package/dist/public/assets/_Z4sh9Ho7.js +0 -1
- package/dist/public/assets/_Z5QRQynL.js.br +0 -0
- package/dist/public/assets/_ZLHJj9f7.js +0 -1
- package/dist/public/assets/__3qcq04I.js +0 -1
- package/dist/public/assets/__aP-qPRk.js.br +0 -0
- package/dist/public/assets/_avj9xAj5.js.br +0 -0
- package/dist/public/assets/_cy4VMy_L.js.br +0 -0
- package/dist/public/assets/_dFusxGOy.js.br +0 -0
- package/dist/public/assets/_g6d6xlTI.js +0 -1
- package/dist/public/assets/_g7Sbw0hA.js.br +0 -0
- package/dist/public/assets/_h9BpHTjU.js.br +0 -0
- package/dist/public/assets/_hwoPhsey.js.br +0 -0
- package/dist/public/assets/_l4AEWbcW.js.br +0 -0
- package/dist/public/assets/_ldFi4QQA.js.br +0 -0
- package/dist/public/assets/_mGNSgANV.js.br +0 -0
- package/dist/public/assets/_oFTc2LAz.js +0 -1
- package/dist/public/assets/_oQAvs0EV.js.br +0 -0
- package/dist/public/assets/_q_80sD4l.js +0 -1
- package/dist/public/assets/_sDACxsjA.js +0 -1
- package/dist/public/assets/_sTN8kYjI.js.br +0 -0
- package/dist/public/assets/_seVXMKQt.js.br +0 -0
- package/dist/public/assets/_uU4qEkMz.js.br +0 -0
- package/dist/public/assets/_w55jSHIv.js.br +0 -0
- package/dist/public/assets/_wFMJGb4f.js +0 -1
- package/dist/public/assets/_waGx87p0.js +0 -1
- package/dist/public/assets/_x8W1p-H9.js +0 -1
- package/dist/public/assets/_zSjtywZT.js +0 -1
- package/dist/public/assets/app-shell-C8QpOEBC.css.br +0 -0
- package/dist/public/assets/files-view-BtzP6a34.js +0 -2
- package/dist/public/assets/files-view-qm6JV48U.css +0 -1
- package/dist/public/assets/files-view-qm6JV48U.css.br +0 -0
- package/dist/public/assets/group.css.ts-DFZoAEy5.css +0 -1
- package/dist/public/assets/group.css.ts-DFZoAEy5.css.br +0 -0
- package/dist/public/assets/icon-folder-RIhkm_kx.css +0 -1
- package/dist/public/assets/icon-folder-RIhkm_kx.css.br +0 -0
- package/dist/public/assets/icon-search-CQX_Oqgo.css.br +0 -0
- package/dist/public/assets/manage-workspace-C6ReU94P.js +0 -2
- package/dist/public/assets/manage-workspace-mgPxQRhA.css +0 -1
- package/dist/public/assets/modal-view-Dz0sc8qS.css.br +0 -0
- package/dist/public/assets/new-BBW7BZcW.js +0 -1
- package/dist/public/assets/new-workspace-DFai0L-S.css +0 -1
- package/dist/public/assets/new-workspace-DFai0L-S.css.br +0 -0
- package/dist/public/assets/new-workspace-q9ii30_9.js +0 -2
- package/dist/public/assets/port-chip-CnkTkZCz.css +0 -1
- package/dist/public/assets/port-chip-CnkTkZCz.css.br +0 -0
- package/dist/public/assets/prompt-dialog-CJ0rE6B0.css +0 -1
- package/dist/public/assets/prompt-dialog-CJ0rE6B0.css.br +0 -0
- package/dist/public/assets/quick-open-C0Lixd0Y.css.br +0 -0
- package/dist/public/assets/repo-picker-6pVQlLdh.css +0 -1
- package/dist/public/assets/repo-picker-6pVQlLdh.css.br +0 -3
- package/dist/public/assets/review-view-BgrQOOPG.css +0 -1
- package/dist/public/assets/review-view-BgrQOOPG.css.br +0 -0
- package/dist/public/assets/review-view-Brhb1XXH.js +0 -2
- package/dist/public/assets/section-38xGzPer.css.br +0 -0
- package/dist/public/assets/settings-BBW7BZcW.js +0 -1
- package/dist/public/assets/settings-page-CHeIhxOI.css +0 -1
- package/dist/public/assets/settings-page-CHeIhxOI.css.br +0 -0
- package/dist/public/assets/settings-page-CfenVKsJ.js +0 -2
- package/dist/public/assets/skill-row-Cxl2bzYw.css +0 -1
- package/dist/public/assets/sso-auth-BGmdFiaB.css +0 -1
- package/dist/public/assets/sso-auth-BGmdFiaB.css.br +0 -0
- package/dist/public/assets/w-BBW7BZcW.js +0 -1
- package/dist/public/assets/w._-BBW7BZcW.js +0 -1
- package/dist/public/assets/w._-C0uUm56a.js +0 -1
- package/dist/public/assets/w._-CO_67Nb_.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/
|
|
2
|
-
import{At as e,C as t,Ct as n,E as r,Ft as i,P as a,Qt as o,S as s,T as c,U as l,Un as u,Vn as d,Zt as f,_ as p,a as m,b as h,en as g,i as _,k as v,kt as y,n as b,nt as x,pn as S,q as C,r as ee,t as te,v as w,w as ne,wt as re,x as T,xt as E,y as ie,zn as D}from"./_K_yqvP79.js";import{A as ae,B as O,C as oe,G as se,H as k,I as ce,J as le,K as A,L as j,N as ue,R as M,S as N,U as P,V as de,W as F,Y as fe,Z as pe,a as I,b as me,d as he,f as ge,i as L,k as _e,n as ve,q as R,r as ye,t as z,x as B,y as be,z as V}from"./_Csdgg-p8.js";import{A as xe,L as Se,N as Ce,_ as we,g as Te,h as Ee,k as De,n as Oe,v as ke}from"./_B7aQVpV3.js";import{A as Ae,B as je,D as Me,F as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,N as ze,O as Be,P as Ve,R as He,V as Ue,a as We,i as Ge,j as Ke,k as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,z as $e}from"./_Cx_BfTEU.js";import{n as et}from"./_BoPk1gXL.js";import{a as tt,c as nt,d as H,f as U,i as rt,l as it,n as at,o as ot,p as st,r as ct,s as lt,t as ut,u as dt}from"./_BQtuoFuS.js";import{t as ft}from"./_CcFCI5Av.js";import{_ as pt,c as mt,d as ht,f as gt,g as _t,h as vt,l as yt,o as bt,p as xt,s as St,u as Ct,v as wt}from"./_Bgbe-7aj.js";import{a as Tt,i as Et,n as Dt,o as Ot,r as kt,t as At}from"./_BDoav0oh.js";import{a as jt,i as Mt,n as Nt,r as Pt,t as Ft}from"./_BnKAavAk.js";var It=Object.create,Lt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyNames,Bt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Ht=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Ut=(e,t)=>{let n={};for(var r in e)Lt(n,r,{get:e[r],enumerable:!0});return t||Lt(n,Symbol.toStringTag,{value:`Module`}),n},Wt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=zt(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Vt.call(e,s)&&s!==n&&Lt(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Rt(t,s))||r.enumerable});return e},Gt=(e,t,n)=>(n=e==null?{}:It(Bt(e)),Wt(t||!e||!e.__esModule||!Vt.call(e,`default`)?Lt(n,`default`,{value:e,enumerable:!0}):n,e)),Kt=`diffs-container`,qt=(()=>{try{return!1}catch{return!1}})(),Jt=/(?=^From [a-f0-9]+ .+$)/m,Yt=/(?=^diff --git)/gm,Xt=/(?<=\n)/,Zt=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Qt=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,$t=`header-prefix`,en=`header-filename-suffix`,tn=`header-metadata`,nn=`header-custom`,rn={dark:`pierre-dark`,light:`pierre-light`},an=`data-theme-css`,on=`data-unsafe-css`,sn=`data-diffs-scrollbar-measure`,cn=`data-diffs-code-view-header`,ln=`data-diffs-code-view-footer`,un=`--diffs-scrollbar-gutter-measured`,dn=1e5,fn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},pn={...fn,hunkLineCount:1},mn={paddingTop:8,paddingBottom:8,gap:8},hn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},gn=Object.freeze({fromStart:0,fromEnd:0}),_n={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},vn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},yn=new Map,bn=new Map,xn=new Map,Sn=new Set;function Cn(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!Sn.has(t))return!1;return!0}function wn(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Sn.has(n.name))continue;let e=yn.get(n.name);e??(e=n,yn.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.`)}Sn.add(e.name)}}function Tn(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var En=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,On=Object.getOwnPropertyNames,kn=Object.prototype.hasOwnProperty,An=(e,t)=>{let n={};for(var r in e)En(n,r,{get:e[r],enumerable:!0});return t||En(n,Symbol.toStringTag,{value:`Module`}),n},jn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=On(t),a=0,o=i.length,s;a<o;a++)s=i[a],!kn.call(e,s)&&s!==n&&En(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Dn(t,s))||r.enumerable});return e},Mn=(e,t,n)=>(jn(e,t,`default`),n&&jn(n,t,`default`)),Nn=[{id:`abap`,name:`ABAP`,import:(()=>z(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>z(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>z(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>z(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>z(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>z(()=>import(`./_YFtcOEs7.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>z(()=>import(`./_BFVbF5oQ.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>z(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>z(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>z(()=>import(`./_6oc-GFAh.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>z(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>z(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>z(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>z(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>z(()=>import(`./_Cx9QT0Ap.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>z(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>z(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>z(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>z(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>z(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>z(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>z(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>z(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>z(()=>import(`./_CBgm70nI.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>z(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>z(()=>import(`./_BteNg33P.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>z(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>z(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>z(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>z(()=>import(`./_CeQLWUiN.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>z(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>z(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>z(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>z(()=>import(`./_Z5QRQynL.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>z(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>z(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>z(()=>import(`./_DlJiwrl6.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>z(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>z(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>z(()=>import(`./_Dl0TpuQ-.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>z(()=>import(`./_avj9xAj5.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>z(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>z(()=>import(`./_CeLc2Erd.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>z(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>z(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>z(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>z(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>z(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>z(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>z(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>z(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>z(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>z(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>z(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>z(()=>import(`./_7KvcL7du.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>z(()=>import(`./_DGwqUWdL.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>z(()=>import(`./_Cqwn6CHb.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>z(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>z(()=>import(`./_DOsKUwo_.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:(()=>z(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>z(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>z(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>z(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>z(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>z(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>z(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>z(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>z(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>z(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>z(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>z(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>z(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>z(()=>import(`./_BY5WfF4l.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>z(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>z(()=>import(`./_DLtdX4rI.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>z(()=>import(`./_PBJArZ1p.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>z(()=>import(`./_DLJ0U4Bn.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>z(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>z(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>z(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>z(()=>import(`./_C1AW1vB4.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>z(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>z(()=>import(`./_C9mdGD6d.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>z(()=>import(`./_BO-pdemg.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>z(()=>import(`./_w55jSHIv.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>z(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>z(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>z(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>z(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>z(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>z(()=>import(`./_CDmpXSnA.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>z(()=>import(`./_DWppCLQS.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>z(()=>import(`./_DJecKgb-.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>z(()=>import(`./_uU4qEkMz.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>z(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>z(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>z(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>z(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>z(()=>import(`./_BNLbOcbi.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>z(()=>import(`./_DpNTfbTV.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>z(()=>import(`./_hwoPhsey.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>z(()=>import(`./_BVBnjbBZ.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>z(()=>import(`./_l4AEWbcW.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>z(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>z(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>z(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>z(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>z(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>z(()=>import(`./_Ch6_20uB.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>z(()=>import(`./_Dnrtoccx.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>z(()=>import(`./_ClfT9ujN.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:(()=>z(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>z(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>z(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>z(()=>import(`./_DrSn2Oj-.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>z(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>z(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>z(()=>import(`./_BOCjC_BC.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>z(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>z(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>z(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>z(()=>import(`./_ldFi4QQA.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>z(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>z(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>z(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>z(()=>import(`./_DXebsR9g.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>z(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>z(()=>import(`./_CvtbFMPu.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>z(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>z(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>z(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>z(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>z(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>z(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>z(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>z(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>z(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>z(()=>import(`./_DdCe1MZZ.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>z(()=>import(`./_JS0lRtel.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>z(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>z(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>z(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>z(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>z(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>z(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>z(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>z(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>z(()=>import(`./_CNob7ZlS.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:(()=>z(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>z(()=>import(`./_B9IwHdnd.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>z(()=>import(`./_BxLisOkD.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>z(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>z(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>z(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>z(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>z(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>z(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>z(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>z(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>z(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>z(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>z(()=>import(`./_DF3ABWG6.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>z(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>z(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>z(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>z(()=>import(`./_1oXJ_fXc.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>z(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>z(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>z(()=>import(`./_BoONB8ss.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>z(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>z(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>z(()=>import(`./_Dx52V1cN.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>z(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>z(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>z(()=>import(`./_B_lF3ui3.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>z(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>z(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>z(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>z(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>z(()=>import(`./_DfUlXj7r.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:(()=>z(()=>import(`./_ArzGOZ9l.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:(()=>z(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>z(()=>import(`./_Ds7va5jD.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>z(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>z(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>z(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>z(()=>import(`./__aP-qPRk.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>z(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>z(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>z(()=>import(`./_DpWzGwz0.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>z(()=>import(`./_Dxz4tLla.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>z(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>z(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>z(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>z(()=>import(`./_DGiGh5vp.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>z(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>z(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>z(()=>import(`./_BVoZyKD1.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>z(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>z(()=>import(`./_seVXMKQt.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>z(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>z(()=>import(`./_cy4VMy_L.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>z(()=>import(`./_mGNSgANV.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>z(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>z(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>z(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>z(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>z(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>z(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>z(()=>import(`./_Obr-fYhv.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>z(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>z(()=>import(`./_SeG2wXTL.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>z(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>z(()=>import(`./_DMW328Kf.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>z(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>z(()=>import(`./_sTN8kYjI.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>z(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>z(()=>import(`./_B1e_1JRm.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:(()=>z(()=>import(`./_Y_l-CFEH.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>z(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>z(()=>import(`./_BV0eYd0z.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:(()=>z(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>z(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>z(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>z(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>z(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>z(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>z(()=>import(`./_oQAvs0EV.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>z(()=>import(`./_DOUmSUw8.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>z(()=>import(`./_DRaz4kd8.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>z(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>z(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>z(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>z(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>z(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>z(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>z(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>z(()=>import(`./_h9BpHTjU.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>z(()=>import(`./_g7Sbw0hA.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>z(()=>import(`./_2s5aIO7T.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>z(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>z(()=>import(`./_CMLA9XwU.js`),[]))}],Pn=Object.fromEntries(Nn.map(e=>[e.id,e.import])),Fn=Object.fromEntries(Nn.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),In={...Pn,...Fn},Ln=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>z(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>z(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>z(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>z(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>z(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>z(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>z(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>z(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>z(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>z(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>z(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>z(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>z(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>z(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>z(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>z(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>z(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>z(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>z(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>z(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>z(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>z(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>z(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>z(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>z(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>z(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>z(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>z(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>z(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>z(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>z(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>z(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>z(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>z(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>z(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>z(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>z(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>z(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>z(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>z(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>z(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>z(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>z(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>z(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>z(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>z(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>z(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>z(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>z(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>z(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>z(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>z(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>z(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>z(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>z(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>z(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>z(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>z(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>z(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>z(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>z(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>z(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>z(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>z(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>z(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),Rn=Ut({createOnigurumaEngine:()=>fr,getDefaultWasmLoader:()=>dr,loadWasm:()=>ar,setDefaultWasmLoader:()=>ur}),zn=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Bn(){return 2147483648}function Vn(){return typeof performance<`u`?performance.now():Date.now()}var Hn=(e,t)=>e+(t-e%t)%t;async function Un(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=Bn();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,Hn(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:Vn,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 Wn=Object.defineProperty,Gn=(e,t,n)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kn=(e,t,n)=>Gn(e,typeof t==`symbol`?t:t+``,n),qn=null;function Jn(e){throw new zn(e.UTF8ToString(e.getLastOnigError()))}var Yn=class e{constructor(t){Kn(this,`utf16Length`),Kn(this,`utf8Length`),Kn(this,`utf16Value`),Kn(this,`utf8Value`),Kn(this,`utf16OffsetToUtf8`),Kn(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}},Xn=class e{constructor(t){if(Kn(this,`id`,++e.LAST_ID),Kn(this,`_onigBinding`),Kn(this,`content`),Kn(this,`utf16Length`),Kn(this,`utf8Length`),Kn(this,`utf16OffsetToUtf8`),Kn(this,`utf8OffsetToUtf16`),Kn(this,`ptr`),!qn)throw new zn(`Must invoke loadWasm first.`);this._onigBinding=qn,this.content=t;let n=new Yn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=qn.omalloc(1e4),e._sharedPtrInUse=!0,qn.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(qn)}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)}};Kn(Xn,`LAST_ID`,0),Kn(Xn,`_sharedPtr`,0),Kn(Xn,`_sharedPtrInUse`,!1);var Zn=Xn,Qn=class{constructor(e){if(Kn(this,`_onigBinding`),Kn(this,`_ptr`),!qn)throw new zn(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Yn(e[r]);t[r]=i.createString(qn),n[r]=i.utf8Length}let r=qn.omalloc(4*e.length);qn.HEAPU32.set(t,r/4);let i=qn.omalloc(4*e.length);qn.HEAPU32.set(n,i/4);let a=qn.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)qn.ofree(t[n]);qn.ofree(i),qn.ofree(r),a===0&&Jn(qn),this._onigBinding=qn,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 Zn(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 $n(e){return typeof e.instantiator==`function`}function er(e){return typeof e.default==`function`}function tr(e){return e.data!==void 0}function nr(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 ir;function ar(e){if(ir)return ir;async function t(){qn=await Un(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),$n(n)?n=await n.instantiator(t):er(n)?n=await n.default(t):(tr(n)&&(n=n.data),nr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await sr(n)(t):await cr(n)(t):rr(n)||n instanceof WebAssembly.Module?n=await or(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await or(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return ir=t(),ir}function or(e){return t=>WebAssembly.instantiate(e,t)}function sr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function cr(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var lr;function ur(e){lr=e}function dr(){return lr}async function fr(e){return e&&await ar(e),{createScanner(e){return new Qn(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Zn(e)}}}var pr=An({});Mn(pr,Rn);var mr=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function hr(e){return gr(e)}function gr(e){return Array.isArray(e)?_r(e):e instanceof RegExp?e:typeof e==`object`?vr(e):e}function _r(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=gr(e[n]);return t}function vr(e){let t={};for(let n in e)t[n]=gr(e[n]);return t}function yr(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function br(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?br(e.substring(0,e.length-1)):e.substr(~t+1)}var xr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Sr=class{static hasCaptures(e){return e!==null&&(xr.lastIndex=0,xr.test(e))}static replaceCaptures(e,t,n){return e.replace(xr,(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 Cr(e,t){return e<t?-1:+(e>t)}function wr(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=Cr(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Tr(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 Er(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Dr=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}},Or=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Nr(e),t)}static createFromParsedTheme(e,t){return Ir(e,t)}_cachedMatchRoot=new Dr(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=>Ar(e.parent,t.parentScopes));return n?new Mr(n.fontStyle,n.foreground,n.background):null}},kr=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 Ar(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&&!jr(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function jr(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Mr=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Nr(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`&&Tr(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Tr(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 Pr(l,u,e,o,s,c)}}return n}var Pr=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}},Fr=(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))(Fr||{});function Ir(e,t){e.sort((e,t)=>{let n=Cr(e.scope,t.scope);return n!==0||(n=wr(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 Lr(t),o=new Mr(n,a.getId(r),a.getId(i)),s=new Br(new zr(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 Or(a,o,s)}var Lr=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)}},Rr=Object.freeze([]),zr=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Rr,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)}},Br=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(),zr.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(wr(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 zr(e,t,n,r,i))}},Vr=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=Ur(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 Hr(e){return e}function Ur(e){return e}function Wr(e,t){let n=[],r=Kr(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(Gr(i)){let e=[];do e.push(i),i=r.next();while(Gr(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 Gr(e){return!!e&&!!e.match(/[\w\.:]+/)}function Kr(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 qr(e){typeof e.dispose==`function`&&e.dispose()}var Jr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Yr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Xr=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))}},Zr=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Jr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Xr;for(let n of e)Qr(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Jr){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 Qr(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 Jr?ei({baseGrammar:a,selfGrammar:i},r):$r(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 Jr(e))}function $r(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];ti([r],t,n)}}function ei(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ti(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ti(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ti(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?yr({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ti(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=si(i);switch(a.kind){case 0:ei({...t,selfGrammar:t.baseGrammar},n);break;case 1:ei(t,n);break;case 2:$r(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?$r(a.ruleName,i,n):ei(i,n)}else a.kind===4?n.add(new Yr(a.scopeName,a.ruleName)):n.add(new Jr(a.scopeName))}}}var ni=class{kind=0},ri=class{kind=1},ii=class{constructor(e){this.ruleName=e}kind=2},ai=class{constructor(e){this.scopeName=e}kind=3},oi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function si(e){if(e===`$base`)return new ni;if(e===`$self`)return new ri;let t=e.indexOf(`#`);return t===-1?new ai(e):t===0?new ii(e.substring(1)):new oi(e.substring(0,t),e.substring(t+1))}var ci=/\\(\d+)/,li=/\\(\d+)/g,ui=-1,di=-2;function fi(e){return e}function pi(e){return e}var mi=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Sr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Sr.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${br(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:Sr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Sr.replaceCaptures(this._contentName,e,t)}},hi=class extends mi{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!`)}},gi=class extends mi{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new xi(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 Si,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_i=class extends mi{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 Si,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vi=class extends mi{_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 xi(i,this.id),this.beginCaptures=a,this._end=new xi(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 Si;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}},yi=class extends mi{_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 xi(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new xi(o,di),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 Si;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 Si,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},bi=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new hi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new gi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=yr({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new _i(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new yi(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 vi(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=si(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 _i||e instanceof vi||e instanceof yi)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},xi=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`&&ci.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 li.lastIndex=0,this.source.replace(li,(e,t)=>Er(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}},Si=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 Ci(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 Ci(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ci=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/_CTpPjHco.js","assets/_5TqJSgWL.js","assets/_Cr4Oy8_t.js","assets/_BCmNE61A.js","assets/_B8dP-kqd.js","assets/_D9zNjeRI.js","assets/_Dahfmgsf.js","assets/_DVLoe9Pc.js","assets/_zRKj2hj-.js","assets/_BJe6LBX7.js","assets/_Cw3k2XBZ.js","assets/_DJMhuHLY.js","assets/_BXeXVLqQ.js","assets/_DBXjVwsw.js","assets/_D2U306wq.js","assets/_2IZlnqhY.js","assets/_BE3CuMf7.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_5quFhVsn.js","assets/_B-o0hipU.js","assets/_BkSflQmx.js","assets/_Bp84stK2.js","assets/_DGbt82mt.js","assets/_CLfPKPrU.js","assets/_B8Ec9l8y.js","assets/_DH7A624l.js","assets/_B7lR7eAZ.js","assets/_Cp_JPNki.js","assets/_DfI5x1OI.js","assets/_Dx4SU_jN.js","assets/_BxzS9QSB.js","assets/_Cv3s6Xp-.js","assets/_D5EAilLC.js","assets/_BavJf_Q6.js","assets/_pw0e32fu.js","assets/_X4p2nzIk.js","assets/_BPi3vLIt.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/_BlDQMNAl.js","assets/_DVO8e0Xm.js","assets/_1RihXiRD.js","assets/_CQkuDeX9.js","assets/_BSb4uvO5.js","assets/_CMqedECK.js","assets/_DAV_5HR7.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_D1Z4n1p9.js","assets/_BqmjQZ4_.js","assets/_C82YmUQy.js","assets/_BUdYMp4R.js","assets/_CvBmty_K.js","assets/_BarLVnTI.js","assets/_DvHQcCzS.js","assets/_DpjmzCUN.js","assets/_BgY1ZI9N.js","assets/_DLoUvR5m.js","assets/_DVTAwKKz.js","assets/_CI6XTTs8.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_DMr91cMi.js","assets/_CBA97mrS.js","assets/_BinZ2nfU.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/_DotndNSz.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_CFoL94zo.js","assets/_DUHCXc9J.js","assets/_BgFz3k6s.js","assets/_V6FTaZqD.js","assets/_NJue9xHW.js","assets/_Bj61d0ZC.js","assets/_CYSSSuCb.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_rKB7fIip.js","assets/_CTu2p7LH.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_DI4QssNP.js","assets/_ByS9W2jx.js","assets/_-O_h9ujp.js","assets/_Cd8c4PSh.js","assets/_aV5Hk6SK.js","assets/_DjAndhPa.js","assets/_qEwwtm8i.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/_BKX8Xe2u.js","assets/_BUjjYA3N.js","assets/_BOW7LZ8g.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{At as e,C as t,Ct as n,E as r,Ft as i,P as a,Qt as o,S as s,T as c,U as l,Un as u,Vn as d,Zt as f,_ as p,a as m,b as h,en as g,i as _,k as v,kt as y,n as b,nt as x,pn as S,q as C,r as ee,t as te,v as w,w as ne,wt as re,x as T,xt as E,y as ie,zn as D}from"./_B8zFRTH5.js";import{A as ae,B as O,C as oe,G as se,H as k,I as ce,J as le,K as A,L as j,N as ue,R as M,S as N,U as P,V as de,W as F,Y as fe,Z as pe,a as I,b as me,d as he,f as ge,i as L,k as _e,n as ve,q as R,r as ye,t as z,x as B,y as be,z as V}from"./_Csdgg-p8.js";import{A as xe,L as Se,N as Ce,_ as we,g as Te,h as Ee,k as De,n as Oe,v as ke}from"./_Cm1I-hKh.js";import{A as Ae,B as je,D as Me,F as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,N as ze,O as Be,P as Ve,R as He,V as Ue,a as We,i as Ge,j as Ke,k as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,z as $e}from"./_DC_da0FV.js";import{n as et}from"./_BoPk1gXL.js";import{a as tt,c as nt,d as H,f as U,i as rt,l as it,n as at,o as ot,p as st,r as ct,s as lt,t as ut,u as dt}from"./_CCMrMcQS.js";import{t as ft}from"./_CcFCI5Av.js";import{_ as pt,c as mt,d as ht,f as gt,g as _t,h as vt,l as yt,o as bt,p as xt,s as St,u as Ct,v as wt}from"./_SuqJfdVH.js";import{a as Tt,i as Et,n as Dt,o as Ot,r as kt,t as At}from"./_CMZMp0RG.js";import{a as jt,i as Mt,n as Nt,r as Pt,t as Ft}from"./_DP8Uj-oM.js";var It=Object.create,Lt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyNames,Bt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Ht=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Ut=(e,t)=>{let n={};for(var r in e)Lt(n,r,{get:e[r],enumerable:!0});return t||Lt(n,Symbol.toStringTag,{value:`Module`}),n},Wt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=zt(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Vt.call(e,s)&&s!==n&&Lt(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Rt(t,s))||r.enumerable});return e},Gt=(e,t,n)=>(n=e==null?{}:It(Bt(e)),Wt(t||!e||!e.__esModule||!Vt.call(e,`default`)?Lt(n,`default`,{value:e,enumerable:!0}):n,e)),Kt=`diffs-container`,qt=(()=>{try{return!1}catch{return!1}})(),Jt=/(?=^From [a-f0-9]+ .+$)/m,Yt=/(?=^diff --git)/gm,Xt=/(?<=\n)/,Zt=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Qt=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,$t=`header-prefix`,en=`header-filename-suffix`,tn=`header-metadata`,nn=`header-custom`,rn={dark:`pierre-dark`,light:`pierre-light`},an=`data-theme-css`,on=`data-unsafe-css`,sn=`data-diffs-scrollbar-measure`,cn=`data-diffs-code-view-header`,ln=`data-diffs-code-view-footer`,un=`--diffs-scrollbar-gutter-measured`,dn=1e5,fn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},pn={...fn,hunkLineCount:1},mn={paddingTop:8,paddingBottom:8,gap:8},hn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},gn=Object.freeze({fromStart:0,fromEnd:0}),_n={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},vn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},yn=new Map,bn=new Map,xn=new Map,Sn=new Set;function Cn(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!Sn.has(t))return!1;return!0}function wn(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Sn.has(n.name))continue;let e=yn.get(n.name);e??(e=n,yn.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.`)}Sn.add(e.name)}}function Tn(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var En=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,On=Object.getOwnPropertyNames,kn=Object.prototype.hasOwnProperty,An=(e,t)=>{let n={};for(var r in e)En(n,r,{get:e[r],enumerable:!0});return t||En(n,Symbol.toStringTag,{value:`Module`}),n},jn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=On(t),a=0,o=i.length,s;a<o;a++)s=i[a],!kn.call(e,s)&&s!==n&&En(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Dn(t,s))||r.enumerable});return e},Mn=(e,t,n)=>(jn(e,t,`default`),n&&jn(n,t,`default`)),Nn=[{id:`abap`,name:`ABAP`,import:(()=>z(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>z(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>z(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>z(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>z(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>z(()=>import(`./_CTpPjHco.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>z(()=>import(`./_B8dP-kqd.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>z(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>z(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>z(()=>import(`./_Dahfmgsf.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>z(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>z(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>z(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>z(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>z(()=>import(`./_Cw3k2XBZ.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>z(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>z(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>z(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>z(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>z(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>z(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>z(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>z(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>z(()=>import(`./_D2U306wq.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>z(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>z(()=>import(`./_B-o0hipU.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>z(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>z(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>z(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>z(()=>import(`./_5quFhVsn.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>z(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>z(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>z(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>z(()=>import(`./_BkSflQmx.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>z(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>z(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>z(()=>import(`./_Bp84stK2.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>z(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>z(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>z(()=>import(`./_DGbt82mt.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>z(()=>import(`./_DH7A624l.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>z(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>z(()=>import(`./_BCmNE61A.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>z(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>z(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>z(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>z(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>z(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>z(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>z(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>z(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>z(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>z(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>z(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>z(()=>import(`./_Cp_JPNki.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>z(()=>import(`./_DfI5x1OI.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>z(()=>import(`./_Dx4SU_jN.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>z(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>z(()=>import(`./_BxzS9QSB.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:(()=>z(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>z(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>z(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>z(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>z(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>z(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>z(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>z(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>z(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>z(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>z(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>z(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>z(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>z(()=>import(`./_BlDQMNAl.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>z(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>z(()=>import(`./_DVO8e0Xm.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>z(()=>import(`./_1RihXiRD.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>z(()=>import(`./_B8Ec9l8y.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>z(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>z(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>z(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>z(()=>import(`./_BavJf_Q6.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>z(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>z(()=>import(`./_CQkuDeX9.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>z(()=>import(`./_D5EAilLC.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>z(()=>import(`./_BSb4uvO5.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>z(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>z(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>z(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>z(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>z(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>z(()=>import(`./_5TqJSgWL.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>z(()=>import(`./_2IZlnqhY.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>z(()=>import(`./_CMqedECK.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>z(()=>import(`./_DAV_5HR7.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>z(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>z(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>z(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>z(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>z(()=>import(`./_zRKj2hj-.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>z(()=>import(`./_Cr4Oy8_t.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>z(()=>import(`./_D1Z4n1p9.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>z(()=>import(`./_BqmjQZ4_.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>z(()=>import(`./_BJe6LBX7.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>z(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>z(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>z(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>z(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>z(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>z(()=>import(`./_pw0e32fu.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>z(()=>import(`./_C82YmUQy.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>z(()=>import(`./_CvBmty_K.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:(()=>z(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>z(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>z(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>z(()=>import(`./_DvHQcCzS.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>z(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>z(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>z(()=>import(`./_BgY1ZI9N.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>z(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>z(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>z(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>z(()=>import(`./_X4p2nzIk.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>z(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>z(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>z(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>z(()=>import(`./_DLoUvR5m.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>z(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>z(()=>import(`./_CI6XTTs8.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>z(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>z(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>z(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>z(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>z(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>z(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>z(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>z(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>z(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>z(()=>import(`./_DMr91cMi.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>z(()=>import(`./_CBA97mrS.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>z(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>z(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>z(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>z(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>z(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>z(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>z(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>z(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>z(()=>import(`./_BinZ2nfU.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:(()=>z(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>z(()=>import(`./_BarLVnTI.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>z(()=>import(`./_DotndNSz.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>z(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>z(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>z(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>z(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>z(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>z(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>z(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>z(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>z(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>z(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>z(()=>import(`./_DUHCXc9J.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>z(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>z(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>z(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>z(()=>import(`./_BgFz3k6s.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>z(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>z(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>z(()=>import(`./_BUdYMp4R.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>z(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>z(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>z(()=>import(`./_V6FTaZqD.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>z(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>z(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>z(()=>import(`./_CLfPKPrU.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>z(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>z(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>z(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>z(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>z(()=>import(`./_NJue9xHW.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:(()=>z(()=>import(`./_Cv3s6Xp-.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:(()=>z(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>z(()=>import(`./_CYSSSuCb.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>z(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>z(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>z(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>z(()=>import(`./_D9zNjeRI.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>z(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>z(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>z(()=>import(`./_B7lR7eAZ.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>z(()=>import(`./_rKB7fIip.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>z(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>z(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>z(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>z(()=>import(`./_CTu2p7LH.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>z(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>z(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>z(()=>import(`./_BE3CuMf7.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>z(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>z(()=>import(`./_DI4QssNP.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>z(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>z(()=>import(`./_ByS9W2jx.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>z(()=>import(`./_-O_h9ujp.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>z(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>z(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>z(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>z(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>z(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>z(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>z(()=>import(`./_Cd8c4PSh.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>z(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>z(()=>import(`./_DpjmzCUN.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>z(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>z(()=>import(`./_aV5Hk6SK.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>z(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>z(()=>import(`./_DBXjVwsw.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>z(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>z(()=>import(`./_DjAndhPa.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:(()=>z(()=>import(`./_DJMhuHLY.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>z(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>z(()=>import(`./_qEwwtm8i.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:(()=>z(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>z(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>z(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>z(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>z(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>z(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>z(()=>import(`./_BKX8Xe2u.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>z(()=>import(`./_BUjjYA3N.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>z(()=>import(`./_BOW7LZ8g.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>z(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>z(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>z(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>z(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>z(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>z(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>z(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>z(()=>import(`./_DVLoe9Pc.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>z(()=>import(`./_CFoL94zo.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>z(()=>import(`./_BPi3vLIt.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>z(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>z(()=>import(`./_CMLA9XwU.js`),[]))}],Pn=Object.fromEntries(Nn.map(e=>[e.id,e.import])),Fn=Object.fromEntries(Nn.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),In={...Pn,...Fn},Ln=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>z(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>z(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>z(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>z(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>z(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>z(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>z(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>z(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>z(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>z(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>z(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>z(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>z(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>z(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>z(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>z(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>z(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>z(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>z(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>z(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>z(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>z(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>z(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>z(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>z(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>z(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>z(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>z(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>z(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>z(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>z(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>z(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>z(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>z(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>z(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>z(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>z(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>z(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>z(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>z(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>z(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>z(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>z(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>z(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>z(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>z(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>z(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>z(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>z(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>z(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>z(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>z(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>z(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>z(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>z(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>z(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>z(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>z(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>z(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>z(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>z(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>z(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>z(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>z(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>z(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),Rn=Ut({createOnigurumaEngine:()=>fr,getDefaultWasmLoader:()=>dr,loadWasm:()=>ar,setDefaultWasmLoader:()=>ur}),zn=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Bn(){return 2147483648}function Vn(){return typeof performance<`u`?performance.now():Date.now()}var Hn=(e,t)=>e+(t-e%t)%t;async function Un(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=Bn();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,Hn(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:Vn,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 Wn=Object.defineProperty,Gn=(e,t,n)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kn=(e,t,n)=>Gn(e,typeof t==`symbol`?t:t+``,n),qn=null;function Jn(e){throw new zn(e.UTF8ToString(e.getLastOnigError()))}var Yn=class e{constructor(t){Kn(this,`utf16Length`),Kn(this,`utf8Length`),Kn(this,`utf16Value`),Kn(this,`utf8Value`),Kn(this,`utf16OffsetToUtf8`),Kn(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}},Xn=class e{constructor(t){if(Kn(this,`id`,++e.LAST_ID),Kn(this,`_onigBinding`),Kn(this,`content`),Kn(this,`utf16Length`),Kn(this,`utf8Length`),Kn(this,`utf16OffsetToUtf8`),Kn(this,`utf8OffsetToUtf16`),Kn(this,`ptr`),!qn)throw new zn(`Must invoke loadWasm first.`);this._onigBinding=qn,this.content=t;let n=new Yn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=qn.omalloc(1e4),e._sharedPtrInUse=!0,qn.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(qn)}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)}};Kn(Xn,`LAST_ID`,0),Kn(Xn,`_sharedPtr`,0),Kn(Xn,`_sharedPtrInUse`,!1);var Zn=Xn,Qn=class{constructor(e){if(Kn(this,`_onigBinding`),Kn(this,`_ptr`),!qn)throw new zn(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Yn(e[r]);t[r]=i.createString(qn),n[r]=i.utf8Length}let r=qn.omalloc(4*e.length);qn.HEAPU32.set(t,r/4);let i=qn.omalloc(4*e.length);qn.HEAPU32.set(n,i/4);let a=qn.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)qn.ofree(t[n]);qn.ofree(i),qn.ofree(r),a===0&&Jn(qn),this._onigBinding=qn,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 Zn(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 $n(e){return typeof e.instantiator==`function`}function er(e){return typeof e.default==`function`}function tr(e){return e.data!==void 0}function nr(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 ir;function ar(e){if(ir)return ir;async function t(){qn=await Un(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),$n(n)?n=await n.instantiator(t):er(n)?n=await n.default(t):(tr(n)&&(n=n.data),nr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await sr(n)(t):await cr(n)(t):rr(n)||n instanceof WebAssembly.Module?n=await or(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await or(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return ir=t(),ir}function or(e){return t=>WebAssembly.instantiate(e,t)}function sr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function cr(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var lr;function ur(e){lr=e}function dr(){return lr}async function fr(e){return e&&await ar(e),{createScanner(e){return new Qn(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Zn(e)}}}var pr=An({});Mn(pr,Rn);var mr=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function hr(e){return gr(e)}function gr(e){return Array.isArray(e)?_r(e):e instanceof RegExp?e:typeof e==`object`?vr(e):e}function _r(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=gr(e[n]);return t}function vr(e){let t={};for(let n in e)t[n]=gr(e[n]);return t}function yr(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function br(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?br(e.substring(0,e.length-1)):e.substr(~t+1)}var xr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Sr=class{static hasCaptures(e){return e!==null&&(xr.lastIndex=0,xr.test(e))}static replaceCaptures(e,t,n){return e.replace(xr,(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 Cr(e,t){return e<t?-1:+(e>t)}function wr(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=Cr(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Tr(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 Er(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Dr=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}},Or=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Nr(e),t)}static createFromParsedTheme(e,t){return Ir(e,t)}_cachedMatchRoot=new Dr(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=>Ar(e.parent,t.parentScopes));return n?new Mr(n.fontStyle,n.foreground,n.background):null}},kr=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 Ar(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&&!jr(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function jr(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Mr=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Nr(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`&&Tr(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Tr(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 Pr(l,u,e,o,s,c)}}return n}var Pr=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}},Fr=(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))(Fr||{});function Ir(e,t){e.sort((e,t)=>{let n=Cr(e.scope,t.scope);return n!==0||(n=wr(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 Lr(t),o=new Mr(n,a.getId(r),a.getId(i)),s=new Br(new zr(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 Or(a,o,s)}var Lr=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)}},Rr=Object.freeze([]),zr=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Rr,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)}},Br=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(),zr.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(wr(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 zr(e,t,n,r,i))}},Vr=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=Ur(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 Hr(e){return e}function Ur(e){return e}function Wr(e,t){let n=[],r=Kr(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(Gr(i)){let e=[];do e.push(i),i=r.next();while(Gr(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 Gr(e){return!!e&&!!e.match(/[\w\.:]+/)}function Kr(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 qr(e){typeof e.dispose==`function`&&e.dispose()}var Jr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Yr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Xr=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))}},Zr=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Jr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Xr;for(let n of e)Qr(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Jr){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 Qr(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 Jr?ei({baseGrammar:a,selfGrammar:i},r):$r(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 Jr(e))}function $r(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];ti([r],t,n)}}function ei(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ti(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ti(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ti(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?yr({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ti(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=si(i);switch(a.kind){case 0:ei({...t,selfGrammar:t.baseGrammar},n);break;case 1:ei(t,n);break;case 2:$r(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?$r(a.ruleName,i,n):ei(i,n)}else a.kind===4?n.add(new Yr(a.scopeName,a.ruleName)):n.add(new Jr(a.scopeName))}}}var ni=class{kind=0},ri=class{kind=1},ii=class{constructor(e){this.ruleName=e}kind=2},ai=class{constructor(e){this.scopeName=e}kind=3},oi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function si(e){if(e===`$base`)return new ni;if(e===`$self`)return new ri;let t=e.indexOf(`#`);return t===-1?new ai(e):t===0?new ii(e.substring(1)):new oi(e.substring(0,t),e.substring(t+1))}var ci=/\\(\d+)/,li=/\\(\d+)/g,ui=-1,di=-2;function fi(e){return e}function pi(e){return e}var mi=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Sr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Sr.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${br(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:Sr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Sr.replaceCaptures(this._contentName,e,t)}},hi=class extends mi{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!`)}},gi=class extends mi{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new xi(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 Si,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_i=class extends mi{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 Si,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vi=class extends mi{_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 xi(i,this.id),this.beginCaptures=a,this._end=new xi(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 Si;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}},yi=class extends mi{_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 xi(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new xi(o,di),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 Si;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 Si,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},bi=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new hi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new gi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=yr({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new _i(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new yi(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 vi(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=si(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 _i||e instanceof vi||e instanceof yi)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},xi=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`&&ci.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 li.lastIndex=0,this.source.replace(li,(e,t)=>Er(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}},Si=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 Ci(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 Ci(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ci=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}},wi=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ti=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new wi(e,8),this._embeddedLanguagesMatcher=new Ei(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 wi(0,0);_getBasicScopeAttributes=new Dr(e=>new wi(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/},Ei=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])=>Er(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 Di=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Oi(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=ki(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 Di(i,!0);f()}return new Di(i,!1);function f(){let o=Ai(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===ui){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Fi(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 vi){let r=o;Fi(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 yi){let r=o;Fi(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(Fi(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 ki(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 yi&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Pi(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==di){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Fi(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 Ai(e,t,n,r,i,a){let o=ji(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Mi(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 ji(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Ni(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 Mi(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}=Ni(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 Ni(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Pi(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Fi(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));Oi(e,p,n&&d.start===0,d.start,f,i,!1,0),qr(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 Ii(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Ii=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Li(e,t,n,r,i,a,o,s){return new Vi(e,t,n,r,i,a,o,s)}function Ri(e,t,n,r,i){let a=Wr(t,zi),o=bi.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 zi(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(Bi(t[r],e))return n=r+1,!0;return!1})}function Bi(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 Vi=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Ti(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Hi(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Wr(e,zi);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)Ri(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&&Ri(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(fi(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[pi(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]=Hi(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=bi.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Wi.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=Vr.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Ui.createRootAndLookUpScopeName(a,r,this):Ui.createRoot(`unknown`,r),t=new Wi(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 Ki(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Oi(this,a,i,0,t,s,!0,r);return qr(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Hi(e,t){return e=hr(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 Ui=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=kr.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new kr(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new kr(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),Vr.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}},Wi=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)?Ui.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:pi(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=Ui.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,fi(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ui.fromExtension(r,n.contentNameScopesList))}},Gi=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Wr(e,zi).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Wr(e,zi).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}},Ki=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=Vr.set(n,0,Hr(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=Vr.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}},qi=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,Li(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Ji=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new qi(Or.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Or.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 Gi(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new Zr(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)}},Yi=Wi.NULL;function Xi(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 Zi(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Qi(e){return Array.isArray(e)?e:[e]}async function $i(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function ea(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function ta(e){return e===`ansi`||ea(e)}function na(e){return e===`none`}function ra(e){return na(e)}var ia=/(\r?\n)/g;function aa(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(ia),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 oa={light:`#333333`,dark:`#bbbbbb`},sa={light:`#fffffe`,dark:`#1e1e1e`},ca=`__shiki_resolved`;function la(e){if(e?.[ca])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`?oa.light:oa.dark,n||=t.type===`light`?sa.light:sa.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,ca,{enumerable:!1,writable:!1,value:!0}),t}async function ua(e){return[...new Set((await Promise.all(e.filter(e=>!ta(e)).map(async e=>await $i(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function da(e){return(await Promise.all(e.map(async e=>ra(e)?null:la(await $i(e))))).filter(e=>!!e)}function fa(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 mr(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var pa=class extends Ji{_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=la(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=Or.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=fa(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 mr(`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))}},ma=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}},ha=0;function ga(e){ha+=1,e.warnings!==!1&&ha>=10&&ha%10==0&&console.warn(`[Shiki] ${ha} 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 mr("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(la),i=new pa(new ma(e.engine,n),r,n,e.langAlias),a;function o(t){return fa(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new mr(`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 mr(`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 ua(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await da(e))}function g(){if(t)throw new mr(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--ha)}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 _a(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([da(e.themes||[]),ua(e.langs||[]),e.engine]);return ga({...e,themes:t,langs:n,engine:r})}var va=new WeakMap;function ya(e,t){va.set(e,t)}function ba(e){return va.get(e)}var xa=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(Qi(n).map(e=>[e,Yi])),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 Sa(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Sa(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 Ca(e,t){if(!(e instanceof xa))throw new mr(`Invalid grammar state`);return e.getInternalStack(t)}var wa=/,/,Ta=/ /;function Ea(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(ea(e.resolveLangAlias(n.lang||`text`))||na(r))return aa(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 mr(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new mr(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Oa(t,o,i,a,n)}function Da(...e){if(e.length===2)return ba(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(ea(i)||na(a))throw new mr(`Plain language does not have grammar state`);if(i===`ansi`)throw new mr(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new xa(ka(n,c,o,s,r).stateStack,c.name,o.name)}function Oa(e,t,n,r,i){let a=ka(e,t,n,r,i),o=new xa(a.stateStack,t.name,n.name);return ya(a.tokens,o),a.tokens}function ka(e,t,n,r,i){let a=Xi(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=aa(e),u=i.grammarState?Ca(i.grammarState,n.name)??Yi:i.grammarContextCode==null?Yi:ka(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=Zi(r[Vr.getForeground(s)],a),u=Vr.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=Vr.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(wa).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Ta))})}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`?Aa(t.scopes):ja(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Aa(e){return e.map(e=>({scopeName:e}))}function ja(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Pa(e,i,t.slice(0,r))}}return n}function Ma(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Na(e,t,n){if(!Ma(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Ma(e[r],n[i])&&--r,--i;return r===-1}function Pa(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Na(e,t,n)){r.push(a);break}return r}function Fa(e,t,n,r=Ea){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:ba(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Ia(...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 xa(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&ya(s,c),s}function Ia(...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 La=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Ra=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ra.prototype.normal={},Ra.prototype.property={},Ra.prototype.space=void 0;function za(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ra(n,r,t)}function Ba(e){return e.toLowerCase()}var Va=class{constructor(e,t){this.attribute=t,this.property=e}};Va.prototype.attribute=``,Va.prototype.booleanish=!1,Va.prototype.boolean=!1,Va.prototype.commaOrSpaceSeparated=!1,Va.prototype.commaSeparated=!1,Va.prototype.defined=!1,Va.prototype.mustUseProperty=!1,Va.prototype.number=!1,Va.prototype.overloadedBoolean=!1,Va.prototype.property=``,Va.prototype.spaceSeparated=!1,Va.prototype.space=void 0;var Ha=Ut({boolean:()=>W,booleanish:()=>Wa,commaOrSpaceSeparated:()=>Ja,commaSeparated:()=>qa,number:()=>G,overloadedBoolean:()=>Ga,spaceSeparated:()=>Ka}),Ua=0,W=Ya(),Wa=Ya(),Ga=Ya(),G=Ya(),Ka=Ya(),qa=Ya(),Ja=Ya();function Ya(){return 2**++Ua}var Xa=Object.keys(Ha),Za=class extends Va{constructor(e,t,n,r){let i=-1;if(super(e,t),Qa(this,`space`,r),typeof n==`number`)for(;++i<Xa.length;){let e=Xa[i];Qa(this,Xa[i],(n&Ha[e])===Ha[e])}}};Za.prototype.defined=!0;function Qa(e,t,n){n&&(e[t]=n)}function $a(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Za(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ba(r)]=r,n[Ba(a.attribute)]=r}return new Ra(t,n,e.space)}var eo=$a({properties:{ariaActiveDescendant:null,ariaAtomic:Wa,ariaAutoComplete:null,ariaBusy:Wa,ariaChecked:Wa,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:Ka,ariaCurrent:null,ariaDescribedBy:Ka,ariaDetails:null,ariaDisabled:Wa,ariaDropEffect:Ka,ariaErrorMessage:null,ariaExpanded:Wa,ariaFlowTo:Ka,ariaGrabbed:Wa,ariaHasPopup:null,ariaHidden:Wa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ka,ariaLevel:G,ariaLive:null,ariaModal:Wa,ariaMultiLine:Wa,ariaMultiSelectable:Wa,ariaOrientation:null,ariaOwns:Ka,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:Wa,ariaReadOnly:Wa,ariaRelevant:null,ariaRequired:Wa,ariaRoleDescription:Ka,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:Wa,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function to(e,t){return t in e?e[t]:t}function no(e,t){return to(e,t.toLowerCase())}var ro=$a({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:qa,acceptCharset:Ka,accessKey:Ka,action:null,allow:null,allowFullScreen:W,allowPaymentRequest:W,allowUserMedia:W,alpha:W,alt:null,as:null,async:W,autoCapitalize:null,autoComplete:Ka,autoFocus:W,autoPlay:W,blocking:Ka,capture:null,charSet:null,checked:W,cite:null,className:Ka,closedBy:null,colorSpace:null,cols:G,colSpan:G,command:null,commandFor:null,content:null,contentEditable:Wa,controls:W,controlsList:Ka,coords:G|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:W,defer:W,dir:null,dirName:null,disabled:W,download:Ga,draggable:Wa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:W,formTarget:null,headers:Ka,height:G,hidden:Ga,high:G,href:null,hrefLang:null,htmlFor:Ka,httpEquiv:Ka,id:null,imageSizes:null,imageSrcSet:null,inert:W,inputMode:null,integrity:null,is:null,isMap:W,itemId:null,itemProp:Ka,itemRef:Ka,itemScope:W,itemType:Ka,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:W,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:W,muted:W,name:null,nonce:null,noModule:W,noValidate:W,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:W,optimum:G,pattern:null,ping:Ka,placeholder:null,playsInline:W,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:W,referrerPolicy:null,rel:Ka,required:W,reversed:W,rows:G,rowSpan:G,sandbox:Ka,scope:null,scoped:W,seamless:W,selected:W,shadowRootClonable:W,shadowRootCustomElementRegistry:W,shadowRootDelegatesFocus:W,shadowRootMode:null,shadowRootSerializable:W,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:Wa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:W,useMap:null,value:Wa,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ka,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:W,declare:W,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:W,noHref:W,noShade:W,noWrap:W,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:Wa,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:W,disablePictureInPicture:W,disableRemotePlayback:W,exportParts:qa,part:Ka,prefix:null,property:null,results:G,security:null,unselectable:null},space:`html`,transform:no}),io=$a({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:Ja,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:Ka,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:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:W,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,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:qa,g2:qa,glyphName:qa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ja,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,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:G,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:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ka,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ja,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ja,rev:Ja,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ja,requiredFeatures:Ja,requiredFonts:Ja,requiredFormats:Ja,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:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ja,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ja,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ja,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:to}),ao=$a({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()}}),oo=$a({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:no}),so=$a({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),co=/[A-Z]/g,lo=/-[a-z]/g,uo=/^data[-\w.:]+$/i;function fo(e,t){let n=Ba(t),r=t,i=Va;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&uo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(lo,mo);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!lo.test(e)){let n=e.replace(co,po);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Za}return new i(r,t)}function po(e){return`-`+e.toLowerCase()}function mo(e){return e.charAt(1).toUpperCase()}var ho=za([eo,ro,ao,oo,so],`html`),go=za([eo,io,ao,oo,so],`svg`),_o={}.hasOwnProperty;function vo(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&_o.call(t,e)){let n=String(t[e]);i=_o.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 yo=/["&'<>`]/g,bo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,So=/[|\\{}()[\]^$+*?.]/g,Co=new WeakMap;function wo(e,t){return e=e.replace(t.subset?To(t.subset):yo,r),t.subset||t.escapeOnly?e:e.replace(bo,n).replace(xo,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 To(e){let t=Co.get(e);return t||(t=Eo(e),Co.set(e,t)),t}function Eo(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(So,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Do=/[\dA-Fa-f]/;function Oo(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Do.test(String.fromCharCode(t))?r:r+`;`}var ko=/\d/;function Ao(e,t,n){let r=`&#`+String(e);return n&&t&&!ko.test(String.fromCharCode(t))?r:r+`;`}var jo=`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(`.`),Mo={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:`€`},No=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Po={}.hasOwnProperty,Fo={},Io;for(Io in Mo)Po.call(Mo,Io)&&(Fo[Mo[Io]]=Io);var Lo=/[^\dA-Za-z]/;function Ro(e,t,n,r){let i=String.fromCharCode(e);if(Po.call(Fo,i)){let e=Fo[i],a=`&`+e;return n&&jo.includes(e)&&!No.includes(e)&&(!r||t&&t!==61&&Lo.test(String.fromCharCode(t)))?a:a+`;`}return``}function zo(e,t,n){let r=Oo(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Ro(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Ao(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Bo(e,t){return wo(e,Object.assign({format:zo},t))}var Vo=/^>|^->|<!--|-->|--!>|<!-$/g,Ho=[`>`],Uo=[`<`,`>`];function Wo(e,t,n,r){return r.settings.bogusComments?`<?`+Bo(e.value,Object.assign({},r.settings.characterReferences,{subset:Ho}))+`>`:`<!--`+e.value.replace(Vo,i)+`-->`;function i(e){return Bo(e,Object.assign({},r.settings.characterReferences,{subset:Uo}))}}function Go(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Ko(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 qo(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Jo(e){return e.join(` `).trim()}var Yo=/[ \t\n\f\r]/g;function Xo(e){return typeof e==`object`?e.type===`text`&&Zo(e.value):Zo(e)}function Zo(e){return e.replace(Yo,``)===``}var Qo=ts(1),$o=ts(-1),es=[];function ts(e){return t;function t(t,n,r){let i=t?t.children:es,a=(n||0)+e,o=i[a];if(!r)for(;o&&Xo(o);)a+=e,o=i[a];return o}}var ns={}.hasOwnProperty;function rs(e){return t;function t(t,n,r){return ns.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var is=rs({body:ss,caption:as,colgroup:as,dd:ds,dt:us,head:as,html:os,li:ls,optgroup:ps,option:ms,p:cs,rp:fs,rt:fs,tbody:gs,td:ys,tfoot:_s,th:ys,thead:hs,tr:vs});function as(e,t,n){let r=Qo(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Xo(r.value.charAt(0)))}function os(e,t,n){let r=Qo(n,t);return!r||r.type!==`comment`}function ss(e,t,n){let r=Qo(n,t);return!r||r.type!==`comment`}function cs(e,t,n){let r=Qo(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 ls(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&r.tagName===`li`}function us(e,t,n){let r=Qo(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function ds(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function fs(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function ps(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function ms(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function hs(e,t,n){let r=Qo(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function gs(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function _s(e,t,n){return!Qo(n,t)}function vs(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function ys(e,t,n){let r=Qo(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var bs=rs({body:Cs,colgroup:ws,head:Ss,html:xs,tbody:Ts});function xs(e){let t=Qo(e,-1);return!t||t.type!==`comment`}function Ss(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 Cs(e){let t=Qo(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Xo(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function ws(e,t,n){let r=$o(n,t),i=Qo(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&is(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Ts(e,t,n){let r=$o(n,t),i=Qo(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&is(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Es={name:[[`
|
|
5
5
|
\f\r &/=>`.split(``),`
|
|
@@ -320,10 +320,10 @@ diff --git`)}function O_(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
320
320
|
`),a=Math.max(1,t-tC),o=Math.min(i.length,n+tC),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 pC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function mC(e){return e.split(/[@#]/)[0]}function hC(e){return e.pr?.headRefName??e.headRef??e.branch}function gC(e){return e.split(`
|
|
322
322
|
`).filter(e=>e[0]===`+`||e[0]===`-`||e[0]===`>`).map(e=>e.slice(1)).join(`
|
|
323
|
-
`)}var _C=`
|
|
324
|
-
`)}var SC=new WeakMap;function CC(e){SC.get(e)?.()}function wC(e,t,n,r){let i={el:TC(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=TC(),a=()=>{};else{let l=DC(`Send`,``);l.dataset.role=`send`;let u=yC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=bC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,EC([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,EC([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=OC(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 TC(){let e=document.createElement(`span`);return e.hidden=!0,e}function EC(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function DC(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function OC(e,t,n,r){if(!t){e.className=`_r ${r?E:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Ie(t)}`),e}let i=document.createElement(`span`);return i.className=`_lL ${r?`_ln`:``}`,e.className=`_s _lM`,e.textContent=`Send to`,i.append(e,t),i}function kC(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function AC(t,n,r){let i=document.createElement(`div`);i.className=`_lj`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_lm`;let s=null;SC.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_lk`,i.textContent=t.text;let c=DC(`Remove`,`_r ${E}`);c.onclick=()=>r.onDelete(t.id);let u=DC(`Edit`,`_r ${E}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let e=wC(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=`_9 ${e.warn} _lo`,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=`_bj _ll`;let n=DC(`Save`,`_r _s`),i=DC(`Cancel`,`_r`),l=()=>{let a=e.value.trim();if(!a||a===t.text){c();return}(async()=>{EC([n,i],!0);try{await r.onEdit?.(t.id,a),t.text=a,c()}catch{EC([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),kC(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 jC(e,t){let n=document.createElement(`div`);n.className=`_lj`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _ll`;let i=DC(`Add`,`_r`),a=DC(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?wC(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&SC.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),kC(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_lm`,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 MC=e=>`/api/workspaces/${e}/review`;async function NC(e){return(await D(MC(e))).comments||[]}function PC(e,t){return u(MC(e),{action:`comment`,...t})}function FC(e,t,n){return u(`${MC(e)}/${t}`,{text:n},`PATCH`)}async function IC(e,t){if(!t.some(e=>e.head))return null;try{return(await D(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function LC(e,t){t.length&&await u(MC(e),{action:`clear`,ids:t})}async function RC(e,t){t.length&&await u(MC(e),{action:`view`,marks:t})}var zC=`search-mark`,BC=`mark.${zC}`,VC=`mark.${zC}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${zC} *,mark.${zC} *::before,mark.${zC} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${zC}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,HC={query:``,hit:null,keys:null},UC=new Map,WC=new WeakMap,GC=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function KC(e,t,n){HC.query=e,HC.hit=t,HC.keys=n?new Set(n):null;for(let[e,t]of UC)ZC(e,t,!1);t&&qC(t)}function qC(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of UC)if(i===e.key&&(n=!0,XC(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>qC(e,t+1),n?32:48)})})}function JC(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 YC(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 XC(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=>tw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=YC(r,e);return a&&JC(a,r),!0}function ZC(e,t,n=!0){let r=t&&HC.hit?.key===t?HC.hit:null,i=HC.query.trim(),a=!!i&&!!HC.keys&&!!t&&!HC.keys.has(t),o=a?``:GC(i,r),s=WC.get(e)!==o;(n||s)&&(WC.set(e,o),sw(e,a?``:i,r),n||ZS(e),r&&s&&qC(r))}function QC(e,t){return UC.set(e,t),ZC(e,t),()=>{UC.delete(e),WC.delete(e)}}function $C(e){ZC(e,UC.get(e))}function ew(e){let t=e.querySelectorAll(BC);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 tw(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 nw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(BC)||n.push(e);return n}function rw(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 iw(e,t,n,r,i){let a=rw(e,t,n),o=rw(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 aw(e,t,n,r){let i=nw(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=cw(e,r)?`${zC} active`:zC;for(let e=c.length-1;e>=0;e--)iw(i,a,c[e][0],c[e][1],l)}var ow=new WeakMap;function sw(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){ew(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${+!!cw(t,n)}`:``,a=!!t.querySelector(BC);i!==(a?ow.get(t):``)&&(a&&ew(t),ow.set(t,i),r&&aw(t,s,o,n))}}}function cw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===tw(e)}function lw(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(dw(i,e?uw:ft))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function uw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function dw(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)}}var fw={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`,mp4:`video/mp4`,m4v:`video/mp4`,mov:`video/quicktime`,webm:`video/webm`};function pw(e){let t=e.lastIndexOf(`.`),n=fw[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:n.startsWith(`video/`)?`video`:`image`,type:n}:null}function mw(e){let t=e.replace(/^origin\//,``);return hw(t.includes(`/`)?t.slice(t.lastIndexOf(`/`)+1):t)}function hw(e){return e.replace(/-[a-z0-9]{1,6}$/i,``)||e}function gw(e,t){if(!t)return``;let n=e.replace(/^origin\//,``),r=t.replace(/^origin\//,``);return n.startsWith(`${r}-`)?n.slice(r.length+1):``}function _w(e){let t=e.indexOf(`.`);return t<=0||t===e.length-1?null:{group:e.slice(0,t),name:e.slice(t+1)}}function vw(e){let t=hw(e);if(t.length<=20)return t;let n=t.split(`-`);return n.length>1?n[n.length-1]:t}function yw(e,t,n=``,r=``,i){let a=(e||`base`).replace(/^origin\//,``),o=(t||`HEAD`).replace(/^origin\//,``),s=(n||``).replace(/^origin\//,``),c=!!s&&(o===s||o.startsWith(`${s}-`)),l=c?r||mw(s):vw(o),u=c?i?.get(o)??gw(o,s):``,d=o===a?a:`${o} vs ${a}`;return{base:s&&a===s?r||mw(s):i?.get(a)||gw(a,s)||a,head:l,topic:u,onWs:c,title:d}}function bw(e,t=``,n=``,r){let i=yw(e.base,e.head,t,n,r),a=(e.base||`base`).replace(/^origin\//,``),o=(e.head||`HEAD`).replace(/^origin\//,``),s=t.replace(/^origin\//,``);if(!(i.topic||s&&o!==s||e.defaultBranch&&a!==e.defaultBranch))return null;let c=!!e.defaultBranch&&a===e.defaultBranch&&(!e.repoBase||e.repoBase===e.defaultBranch);return{head:i.onWs?``:i.head,topic:i.topic,base:c?``:i.base,title:i.title}}function xw(e,t=``,n=``){let r=e.replace(/^origin\//,``);if(!r||r===`HEAD`)return r||`HEAD`;let i=t.replace(/^origin\//,``);if(i&&(r===i||r.startsWith(`${i}-`))){let e=n||mw(i),t=gw(r,i);return t?`${e} [${t}]`:e}return vw(r)}var Sw=`_gQ _bp _m`;function Cw(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function ww(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${Cw(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${et(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; ${Cw(e.edits)}`:null}function Tw(e){return!!e.pr||!e.contained||!!e.edits}var Ew=`<h1> </h1><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`,Dw=` D l D b l`;function Ow(e){I(e.a,`_Q`),I(e.c,[`_bB`,`_kM`])}var kw=(e,t)=>{R(e.b,t===`files`?`Files`:`Review`),I(e.d,[`_bD`,t===`files`&&`_bC`]),L(e.d,`aria-current`,t===`files`?`page`:void 0),I(e.e,[`_bD`,t===`changes`&&`_bC`]),L(e.e,`aria-current`,t===`changes`?`page`:void 0)},Aw=(e,t)=>L(e.d,`href`,t),jw=(e,t)=>L(e.e,`href`,t),Mw=`_lR _cE _bw`,Nw=c,Pw=(e=>`/${e}&`)(r);function Fw(e){t(e.a,x)}var Iw=(e,t)=>ne(e.a,t),Lw=(e,t)=>s(e.a,t),Rw=`_ni _o`,zw=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(Nw),Bw=(e=>` D/${e}& l`)(Pw),Vw=P(16,e=>he(e,`c`,e.n,tT(e))),Hw=N(13,Vw),Uw=N(14),Ww=P(12,e=>{Hw(e,(e.l??e.j)||``),Uw(e,nT(e))}),Gw=O(9,Ww),Kw=P(7,e=>Gw(e,e.f,e.g)),qw=N(5,Kw),Jw=N(6,Kw),Yw=A(`u5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{Xw(e,null),Gw(e,t)},150);ve(e,0).onabort=()=>clearTimeout(n)}}}),Xw=V(11,e=>{ye(e,0),Ww(e),Yw(e)}),Zw=N(15,Vw),Qw=A(`u4`,e=>{ge(e,`c`),k(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()))}),k(e.c,`blur`,function(){e.l!==null&&e.o()})});function $w(e){I(e.a,[`_bl`,`_nh`]),Fw(e.b),Iw(e.b,14),Lw(e.b,`_bm`),I(e.c,[`_bn`,Rw]),se(e,iT(e)),Xw(e,null),Zw(e,rT(e)),Qw(e)}var eT=N(8),tT=e=>function(t){e.p(t)},nT=e=>()=>{let t=e.l??e.j??``;Xw(e,null),Gw(e,t)},rT=e=>t=>{if(!t){Xw(e,null),Gw(e,``);return}Xw(e,t)},iT=e=>()=>{e.c.focus(),e.c.select()};F.u2=tT,F.u0=nT,F.u1=rT,F.u3=iT;var aT=`<!><!><!>`,oT=M(0,0,e=>R(e.c,bt(e._.d))),sT=e=>{oT._(e),cT._(e),I(e.a,`_m7`),I(e.b,`_m8`),I(e.d,`_m9`)},cT=M(0,0,e=>R(e.e,bt(e._.e))),lT=j(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,sT),uT=P(5,e=>lT(e,e.d||e.e?0:1)),dT=N(3,e=>{uT(e),oT(e)}),fT=N(4,e=>{uT(e),cT(e)}),pT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(zw),mT=(e=>` D0${e}&%b D D l%b%m`)(Bw),hT=A(`y4`,e=>k(e.a,`click`,function(){ET(e._,``),AT(e._,!1)})),gT=e=>{I(e.a,`_l3`),hT(e)},_T=M(7,0,e=>dT(e.a,e._.w)),vT=e=>{_T._(e),yT._(e)},yT=M(7,0,e=>fT(e.a,e._.x??0)),bT=M(3,0,e=>R(e.e,bt(e._.r))),xT=A(`y3`,e=>k(e.f,`click`,function(){AT(e._,!e._.a0)})),ST=e=>{bT._(e),CT._(e),wT._(e),I(e.a,`_lY`),I(e.b,`_lZ`),I(e.c,`_l0`),I(e.f,`_3`),xT(e)},CT=M(3,0,e=>R(e.d,bt(e._.v))),wT=M(3,0,e=>L(e.f,`aria-checked`,e._.a0?`true`:`false`)),TT=ue(31),ET=O(24,e=>qw(e.b,e.y)),DT=P(13,e=>ET(e,e.l,e.m)),OT=N(11,DT),kT=N(12,DT),AT=O(26,wT),jT=P(16,e=>AT(e,e.o,e.p)),MT=N(14,jT),NT=N(15,jT),PT=j(8,`<button type=button>Clear</button>`,` `,gT),FT=(e,t)=>R(e.g,t),IT=P(29,e=>FT(e,`${e.a2>0?`${bt(e.s)} of `:``}${bt(e.r)} ${e.r===1?`file`:`files`}`),2),LT=N(28,e=>{PT(e,e.a2>0?0:1),IT(e)}),RT=P(19,e=>LT(e,e.r-e.s)),zT=N(17,e=>{RT(e),IT(e),bT(e)}),BT=N(18,e=>{RT(e),IT(e)});function VT(e){fe(e,1,HT),I(e.a,`_lX`),$w(e.b),Jw(e.b,XT(e)),I(e.e,`_l1`),I(e.f,`_l2`),se(e,YT(e))}var HT=pe(`y2`,N(31)),UT=(e,t)=>eT(e.b,t),WT=j(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,ST),GT=N(21,e=>{WT(e,+(e.v==null)),CT(e)}),KT=j(7,(e=>`<!>${e}<!>`)(aT),(e=>`b/${e}&b`)(`b%c`),vT),qT=N(22,e=>{KT(e,+(e.w==null)),_T(e)}),JT=N(23,yT),YT=e=>()=>TT(e)(),XT=e=>t=>{ET(e,t)};F.y1=YT,F.y0=XT;var ZT=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(Nw,pT),QT=((e,t)=>` D/${e}&%l D0${t}&l`)(Pw,mT),$T=M(2,0,e=>R(e.b,e._.a0>99?`99+`:bt(e._.a0))),eE=e=>{$T._(e),I(e.a,`_lQ`)},tE=ue(30),nE=P(24,e=>I(e.a,[Sw,`_lO`,{_lP:!!e.u?.trim()||!!e.w}])),rE=O(20,e=>{OT(e.e,e.u),nE(e)}),iE=P(10,e=>rE(e,e.i,e.j)),aE=N(8,iE),oE=N(9,iE),sE=O(22,e=>{MT(e.e,e.w),nE(e)}),cE=P(13,e=>sE(e,e.l,e.m)),lE=N(11,cE),uE=N(12,cE),dE=(e,t)=>{L(e.a,`aria-controls`,t),L(e.d,`id`,t)},fE=V(29),pE=A(`x4`,e=>{k(e.a,`pointerdown`,function(){fE(e,e.d.matches(`:popover-open`))}),k(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(fE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&i()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Fe(t,e.a.getBoundingClientRect()),tE(e)()})});function mE(e){fe(e,4,TE),Fw(e.b),Iw(e.b,14),Lw(e.b),I(e.d,Mw),VT(e.e),kT(e.e,kE(e)),NT(e.e,OE(e)),UT(e.e,DE(e)),dE(e,ce(e)),fE(e,!1),pE(e)}var hE=j(2,`<span aria-hidden=true> </span>`,` D `,eE),gE=(e,t)=>{L(e.a,`title`,`Filter files\n${t}`),L(e.a,`aria-label`,`Filter files: ${t}`)},_E=P(27,e=>gE(e,`${e.a0>0?`${bt(e.p)} of `:``}${bt(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${bt(e.r)} −${bt(e.s??0)}`)+(e.t==null?``:`\n${bt(e.t)} of ${bt(e.o)} viewed`)),5),vE=N(26,e=>{hE(e,e.a0>0?0:1),_E(e),$T(e)}),yE=P(16,e=>vE(e,e.o-e.p)),bE=N(14,e=>{zT(e.e,e.o),yE(e),_E(e)}),xE=N(15,e=>{BT(e.e,e.p),yE(e),_E(e)}),SE=N(17,e=>{qT(e.e,e.r),_E(e)}),CE=N(18,e=>{JT(e.e,e.s),_E(e)}),wE=N(19,e=>{GT(e.e,e.t),_E(e)}),TE=pe(`x3`,N(30)),EE=N(7,e=>{aE(e,e.h.filter),oE(e,e.h.filterChange),lE(e,e.h.hideViewed),uE(e,e.h.hideViewedChange),bE(e,e.h.total),xE(e,e.h.shown),SE(e,e.h.additions),CE(e,e.h.deletions),wE(e,e.h.viewed)}),DE=e=>function(){e.d.hidePopover(),e.a.focus()},OE=e=>t=>{sE(e,t)},kE=e=>t=>{rE(e,t)};F.x2=DE,F.x1=OE,F.x0=kE;var AE=`<!><!><!>`,jE=M(0,0,e=>{L(e.a,`aria-label`,Cw(e._.d)),L(e.a,`title`,Cw(e._.d))}),ME=j(0,(e=>`<span role=img>${e}</span>`)(Ne),(e=>` D/${e}&l`)(Pe),e=>{jE._(e),I(e.a,`_m_`),Ve(e.b),ze(e.b,12),Re(e.b)}),NE=N(3,e=>{ME(e,+!e.d),jE(e)}),PE=(e=>` D%b%b%b/${e}&l`)(`b%c`),FE=(e=>`<button type=button><!><!><!>${e}</button>`)(AE),IE=(e=>` D%b D l%b/${e}&l`)(`b%c`),LE=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(AE),RE=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,zE=` D%b D b%l%b l`,BE=200,VE=250;function HE(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function UE(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 WE(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 GE=B(19,e=>I(e.a,[y[et(e._._.n)],`_m6`]),e=>e._._,`T19`),KE=e=>{GE(e),qE(e)},qE=B(20,e=>R(e.b,e._._.o),e=>e._._,`T20`),JE=B(19,e=>R(e.a,e._._.i),e=>e._._,`T23`),YE=JE,XE=e=>{I(e.a,[`_mL`,`_mM`]),R(e.b,e._._.M)},ZE=M(1,0,e=>R(e.b,e._.r)),QE=e=>{ZE._(e),I(e.a,`_m2`)},$E=M(4,0,e=>I(e.a,[y[et(e._.n)],`_m6`])),eD=e=>{$E._(e),tD._(e)},tD=M(4,0,e=>R(e.b,e._.o)),nD=B(34,e=>R(e.b,e._._.a2),e=>e._._,`T10`),rD=e=>{nD(e),I(e.a,`_mZ`)},iD=M(3,0,e=>I(e.a,[y[et(e._.s)],`_m6`])),aD=e=>{iD._(e),oD._(e)},oD=M(3,0,e=>R(e.b,e._.t)),sD=M(2,1,e=>R(e.b,e._.w)),cD=e=>{sD._(e),I(e.a,`_m5`)},lD=M(2,0,e=>R(e.b,e._.o)),uD=e=>{lD._(e),fD._(e)},dD=j(0,`<span><!>/</span>`,` D%`,rD),fD=M(2,0,e=>dD(e,+!e._.a2)),pD=M(1,0,e=>R(e.b,e._.m)),mD=e=>{pD._(e),I(e.a,`_mM`)},hD=P(1,e=>QA(e.a,e._.o===e._._._.k)),gD=B(18,hD,e=>e._._._,`T32`),_D=e=>{gD(e),vD._(e),RA._(e.a,e._._._._),VA(e.a,!0),aj(e.a)},vD=M(0,2,e=>{rj(e.a,e._.o),hD(e)}),yD=P(3,e=>OA(e.a,e._._._.a1(e.c,e._._._.ah)),2),bD=B(56,yD,e=>e._._._),xD=e=>{bD(e),SD(e),xA._(e.a,e._._._),wA(e.a)},SD=B(62,yD,e=>e._._._,`T47`),CD=N(2,e=>{MA(e.a,e.c),yD(e)}),wD=(e,t)=>DA(e.a,t+1),TD=(e,t)=>{CD(e,t[0]),wD(e,t[1])},ED=P(4,e=>R(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),DD=B(57,ED,e=>e._._),OD=e=>{DD(e),kD(e),AD(e),jD(e),ND(e),I(e.a,`_mW`),I(e.b,`_mX`)},kD=B(61,ED,e=>e._._,`T48`),AD=B(62,ED,e=>e._._,`T49`),jD=B(63,ED,e=>e._._,`T50`),MD=_e(3,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),xD,TD),ND=B(66,e=>MD(e,[e._._.aq,`id`]),e=>e._._,`T51`),PD=P(1,e=>OA(e.a,HE(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),FD=B(56,PD,e=>e._._._._),ID=e=>{FD(e),LD(e),RD(e),zD._(e),xA._(e.a,e._._._._),DA(e.a),wA(e.a)},LD=B(60,PD,e=>e._._._._,`T42`),RD=B(62,PD,e=>e._._._._,`T43`),zD=M(0,1,e=>{MA(e.a,e._.f),PD(e)}),BD=P(3,e=>OA(e.a,HE(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),VD=B(56,BD,e=>e._._._._._),HD=e=>{VD(e),UD(e),WD(e),xA._(e.a,e._._._._._),wA(e.a,!0)},UD=B(60,BD,e=>e._._._._._,`T37`),WD=B(62,BD,e=>e._._._._._,`T38`),GD=N(2,e=>{MA(e.a,e.c),BD(e)}),KD=(e,t)=>DA(e.a,t+1),qD=(e,t)=>{GD(e,t[0]),KD(e,t[1])},JD=P(4,e=>R(e.c,HE(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),YD=B(57,JD,e=>e._._._._),XD=e=>{YD(e),ZD(e),QD(e),$D(e),eO._(e),nO._(e),I(e.a,`_mY`),$e(e.b),He(e.b,12),Le(e.b)},ZD=B(60,JD,e=>e._._._._,`T39`),QD=B(62,JD,e=>e._._._._,`T40`),$D=B(63,JD,e=>e._._._._,`T41`),eO=M(0,0,JD),tO=_e(3,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),HD,qD),nO=M(0,0,e=>tO(e,[e._.e,`id`])),rO=j(0,(e=>`<span>${e} </span><!><!>`)(je),(e=>` D/${e}& l%c`)(Ue),XD,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),ID),iO=(e,t)=>rO(e,+!t),aO=(e,t)=>oO(e,t[0]),oO=N(2,e=>{iO(e,e.c?.stack),sO(e,e.c?.sections),eO(e)}),sO=N(4,e=>{cO(e,e.e?.[0]),nO(e)}),cO=N(5,zD),lO=B(60,e=>R(e.c,e._._.ae),e=>e._._,`T44`),uO=e=>{lO(e),dO(e),pO(e),I(e.a,`_mW`),I(e.b,`_mX`)},dO=B(64,e=>{R(e.d,e._._.ao),R(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`T45`),fO=_e(5,`<!><!><!>`,`b%`,0,aO),pO=B(65,e=>fO(e,[e._._.ap,`root`]),e=>e._._,`T46`),mO=j(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,uO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,OD),hO=M(6,0,e=>mO(e,e._.ad===`group`?0:1)),gO=hO,_O=P(6,e=>R(e.d,HE(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),vO=B(56,_O,e=>e._._._._._),yO=e=>{vO(e),bO(e),SO(e),CO._(e),TO._(e),EO._(e),I(e.a,`_mZ`)},bO=B(18,_O,e=>e._._._._,`T21`),xO=P(5,e=>R(e.c,e._.r?`${HE(e._.r,e._._.i)}/`:``)),SO=B(19,e=>{R(e.b,e._._.i),xO(e),_O(e)},e=>e._._,`T22`),CO=M(1,0,_O),wO=j(4,`<span>#<!></span>`,` Db%`,KE),TO=M(1,0,e=>wO(e,+!e._.n)),EO=M(1,0,xO),DO=A(`T36`,e=>k(e.a,`click`,function(){e._.x(1)})),OO=e=>{I(e.a,[`_mD`,`_mF`]),qe(e.b),Be(e.b,12),Me(e.b),DO(e)},kO=A(`T17`,e=>k(e.a,`click`,function(){e._.x(-1)})),AO=e=>{I(e.a,[`_mD`,`_mE`]),qe(e.b),Be(e.b,12),Me(e.b,`_mG`),kO(e)},jO=P(14,e=>I(e.a,[`_mO`,{_mP:e.n===e._._._._.k}])),MO=B(53,jO,e=>e._._._._,`T29`),NO=A(`T28`,e=>{k(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),k(e.c,`mouseleave`,function(){e._._._._.ak()}),k(e.c,`pointerdown`,function(){e._._._._.al()}),k(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),k(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Fj(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),PO=e=>{MO(e),zO(e),UO(e),WO(e),KO._(e),qO._(e),RA._(e.b,e._._._._),VA(e.b,!0),L(e.c,`data-pop`,e._.M),$e(e.d),He(e.d,12),Le(e.d),NO(e)},FO=P(12,e=>QA(e.b,e.l===e._._._.k)),IO=P(18,e=>aj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),LO=N(11,e=>{rj(e.b,e.l),ZO(e,e.l?.id),FO(e),IO(e)}),RO=P(6,e=>LO(e,e._._._._.a0(e.f))),zO=B(55,RO,e=>e._._._._,`T30`),BO=P(16,e=>{L(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),L(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),VO=N(15,e=>{IO(e),BO(e)}),HO=P(7,e=>VO(e,e._._._._.a2(e.f,e._._._.k)),2),UO=B(57,HO,e=>e._._._._),WO=B(18,e=>{HO(e),FO(e)},e=>e._._._,`T31`),GO=N(5,e=>{JO(e,e.f?.root),YO(e,e.f?.sections),RO(e),HO(e)}),KO=M(0,1,e=>GO(e,e._.k)),qO=M(0,1,e=>{I(e.c,[`_mQ`,{_mR:e._.p}]),L(e.c,`aria-expanded`,e._.p?`true`:`false`)}),JO=(e,t)=>L(e.a,`data-stack`,t),YO=N(9,e=>{XO(e,e.j?.length),IO(e)}),XO=N(10,e=>{R(e.e,e.k),BO(e)}),ZO=N(13,jO),QO=P(9,e=>I(e.a,[`_mI`,`_mN`,`_mS`,{_m4:!!e.h?.repo.unpushed,_mH:!!e.h&&e.h?.id===e._._._._.k,_mT:e._.p}]),2),$O=B(53,QO,e=>e._._._._,`T25`),ek=A(`T24`,e=>{k(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),k(e.a,`mouseleave`,function(){e._._._._.ak()}),k(e.a,`pointerdown`,function(){e._._._._.al()}),k(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),k(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Fj(e._._._._,null),e._._._._.am(e._.M,n))})}),tk=e=>{$O(e),uk(e),dk(e),fk(e),pk._(e),mk._(e),gk._(e),_k._(e),vk._(e),L(e.a,`data-pop`,e._.M),I(e.c,`_mU`),Xe(e.d),Je(e.d,12),Qe(e.d),ek(e)},nk=j(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,yO,`<span> </span>`,`D `,YE),rk=N(17,EO),ik=P(16,e=>rk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),ak=N(15,ik),ok=P(8,e=>ak(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),sk=P(10,e=>L(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${ww(e.h?.repo)??``}`:``}`),2),ck=N(7,e=>{bk(e,e.h?.repo?.pr),Sk(e,e.h?.id),nk(e,+!e.h),ok(e),ik(e),QO(e),sk(e),CO(e)}),lk=P(5,e=>ck(e,e._._._._.z(e._.g))),uk=B(54,lk,e=>e._._._._,`T26`),dk=B(57,ik,e=>e._._._._),fk=B(18,ik,e=>e._._._,`T27`),pk=M(0,0,lk),mk=M(0,0,ok),hk=P(6,e=>L(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),gk=M(0,0,e=>{sk(e),hk(e)}),_k=M(0,0,e=>{R(e.e,e._.j),sk(e),hk(e)}),vk=M(0,0,e=>{L(e.a,`aria-expanded`,e._.p?`true`:`false`),QO(e)}),yk=me(GE),bk=N(13,e=>{xk(e,e.n?.number),TO(e),yk(e)}),xk=N(14,me(qE)),Sk=(e,t)=>L(e.a,`data-pick`,t),Ck=N(15,e=>{vk(e),qO(e)}),wk=B(58,e=>Ck(e,e._._._.a5===e.M),e=>e._._._,`T33`),Tk=wk,Ek=j(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ge),(e=>` D%b D/${e}& m`)(We),tk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(FE,je),((e,t)=>` D/${e}& D/${t}& m`)(PE,Ue),PO,(e=>`<!>${e}<!>`)(FE),(e=>`b/${e}&b`)(PE),_D),Dk=P(12,e=>Ek(e,e.f===`group`?0:e.l?1:2)),Ok=N(5,Dk),kk=N(11,Dk),Ak=(e,t)=>{Ok(e,t[0]?.kind),jk(e,t[0]?.sections),Nk(e,t[0]?.runs),Fk(e,t[0]?.name),Ik(e,t[0]?.run)},jk=N(6,e=>{Mk(e,e.g?.length),pk(e)}),Mk=N(9,_k),Nk=N(7,mk),Pk=me(SO,JE),Fk=N(8,e=>{gk(e),Pk(e)}),Ik=N(10,e=>{kk(e,e.k?.stack),Lk(e,e.k?.sections?.[0]),KO(e)}),Lk=N(14,vD),Rk=P(3,e=>I(e.a,[`_mJ`,{_mK:e._.d.some(t=>t.id===e._._.k)}])),zk=B(53,Rk,e=>e._._,`T34`),Bk=e=>{zk(e),Gk(e),Kk._(e),qk._(e),Yk._(e),Zk._(e),Qk._(e)},Vk=j(1,`<span> </span>`,` D `,XE),Hk=P(10,e=>Vk(e,!e._.k||e.j!==e._.k?0:1)),Uk=N(9,Hk),Wk=P(8,e=>Uk(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),Gk=B(55,Wk,e=>e._._,`T35`),Kk=M(0,1,Rk),qk=M(0,1,e=>L(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),Jk=_e(2,`<!><!><!>`,`b%`,Tk,Ak),Yk=M(0,1,e=>Jk(e,[e._.i,`key`])),Xk=(e,t)=>{$k(e,t?.kind),eA(e,t?.run)},Zk=M(0,1,e=>Xk(e,e._.j)),Qk=M(0,1,Hk),$k=N(6,Wk),eA=N(7,Wk),tA=P(2,e=>I(e.a,[`_mJ`,{_mK:e._.g===e._._.k}])),nA=B(53,tA,e=>e._._,`T18`),rA=e=>{nA(e),iA._(e),aA._(e),RA._(e.b,e._._),QA(e.b,!0),VA(e.b,!0),aj(e.b)},iA=M(0,0,e=>rj(e.b,e._.f)),aA=M(0,0,tA),oA=j(0,(e=>`<span>${e}</span>`)(FE),(e=>` D/${e}&l`)(PE),rA,`<span role=group><!><!></span>`,` D%b%`,Bk),sA=N(4,e=>{oA(e,e.e===1?0:1),qk(e)}),cA=(e,t)=>{lA(e,t[0]?.sections),fA(e,t[0]?.items),hA(e,t[0]?.main)},lA=N(3,e=>{sA(e,e.d?.length),uA(e,e.d?.[0]),Kk(e)}),uA=N(5,e=>{dA(e,e.f?.id),iA(e)}),dA=N(6,aA),fA=N(8,e=>{pA(e,e.i?.[0]),Yk(e)}),pA=N(9,Zk),mA=me(fk,WO,bO,gD),hA=N(10,e=>{Qk(e),mA(e)}),gA=P(20,e=>I(e.a,[`_m0`,{_m1:e.s,_m4:!!e.m,_mH:e.t}]),2),_A=N(19,e=>{L(e.a,`aria-current`,e.t?`true`:void 0),gA(e)}),vA=P(10,e=>_A(e,e._.k===e.j)),yA=B(53,vA,0,`T16`),bA=A(`T15`,e=>k(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),xA=be(e=>{yA(e),I(e.c,`_m3`),bA(e)}),SA=N(9,vA),CA=N(12,gA),wA=N(18,gA),TA=(e,t)=>{L(e.a,`title`,[ww(t),t?.pr?.title].filter(Boolean).join(`
|
|
325
|
-
`)),CA(e,t?.unpushed),AA(e,t?.pr),jA(e,t?.edits)},EA=j(1,`<span> </span>`,` D `,QE),DA=N(17,e=>{EA(e,+!e.r),ZE(e)}),OA=(e,t)=>R(e.d,t),kA=j(4,`<span>#<!></span>`,` Db%`,eD),AA=N(13,e=>{NA(e,e.n?.number),kA(e,+!e.n),$E(e)}),jA=(e,t)=>NE(e.f,t),MA=(e,t)=>{SA(e,t?.id),TA(e,t?.repo)},NA=N(14,tD),PA=P(27,e=>I(e.a,[`
|
|
326
|
-
`)),5),UA=N(8,e=>{zA(e,e.i?.unpushed),oj(e,e.i?.worktree),tj(e,e.i?.pr),nj(e,e.i?.edits),HA(e)}),WA=j(2,`<span><!><!></span>`,`D%b%`,uD,`<span> </span>`,` D `,cD),GA=P(23,e=>WA(e,e.o?0:e.w?1:2)),KA=N(14,e=>{HA(e),GA(e),lD(e)}),qA=N(15,HA),JA=N(16,HA),YA=N(17,HA),XA=N(20,HA),ZA=j(1,`<span> </span>`,` D `,mD),QA=(e,t)=>ZA(e,+!t),$A=N(22,e=>{GA(e),sD(e)}),ej=j(3,`<span>#<!></span>`,` Db%`,aD),tj=N(18,e=>{sj(e,e.s?.number),ej(e,+!e.s),iD(e)}),nj=(e,t)=>NE(e.e,t),rj=(e,t)=>{UA(e,t?.repo),BA(e,t?.id),cj(e,t?.compare),qA(e,t?.files),JA(e,t?.additions),YA(e,t?.deletions)},ij=me(nD),aj=N(28,e=>{fD(e),ij(e)}),oj=N(12,pD),sj=N(19,oD),cj=(e,t)=>{KA(e,t?.topic),XA(e,t?.title),$A(e,t?.head)},lj=V(15,e=>{L(e.c,`title`,Se(`prevSection`,e.p)||Se(`nextSection`,e.p)?`Sections (${[Se(`prevSection`,e.p),Se(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),uj=j(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Ae),(e=>` D/${e}&l`)(Ke),AO),dj=P(20,e=>I(e.c,[`
|
|
323
|
+
`)}var _C=`_ku _di _bw`,vC=`_kw _4`;function yC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_kC`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=Ie(n),t.append(e)}return t}var bC=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function xC(e){return e.map(e=>`${e.id}\t${Ie(e)}`).join(`
|
|
324
|
+
`)}var SC=new WeakMap;function CC(e){SC.get(e)?.()}function wC(e,t,n,r){let i={el:TC(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=TC(),a=()=>{};else{let l=DC(`Send`,``);l.dataset.role=`send`;let u=yC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=bC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,EC([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,EC([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=OC(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 TC(){let e=document.createElement(`span`);return e.hidden=!0,e}function EC(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function DC(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function OC(e,t,n,r){if(!t){e.className=`_r ${r?E:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Ie(t)}`),e}let i=document.createElement(`span`);return i.className=`_kA ${r?`_ki`:``}`,e.className=`_s _kB`,e.textContent=`Send to`,i.append(e,t),i}function kC(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function AC(t,n,r){let i=document.createElement(`div`);i.className=`_ke`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_kh`;let s=null;SC.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_kf`,i.textContent=t.text;let c=DC(`Remove`,`_r ${E}`);c.onclick=()=>r.onDelete(t.id);let u=DC(`Edit`,`_r ${E}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let e=wC(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=`_9 ${e.warn} _kj`,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=`_bj _kg`;let n=DC(`Save`,`_r _s`),i=DC(`Cancel`,`_r`),l=()=>{let a=e.value.trim();if(!a||a===t.text){c();return}(async()=>{EC([n,i],!0);try{await r.onEdit?.(t.id,a),t.text=a,c()}catch{EC([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),kC(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 jC(e,t){let n=document.createElement(`div`);n.className=`_ke`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _kg`;let i=DC(`Add`,`_r`),a=DC(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?wC(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&SC.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),kC(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_kh`,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 MC=e=>`/api/workspaces/${e}/review`;async function NC(e){return(await D(MC(e))).comments||[]}function PC(e,t){return u(MC(e),{action:`comment`,...t})}function FC(e,t,n){return u(`${MC(e)}/${t}`,{text:n},`PATCH`)}async function IC(e,t){if(!t.some(e=>e.head))return null;try{return(await D(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function LC(e,t){t.length&&await u(MC(e),{action:`clear`,ids:t})}async function RC(e,t){t.length&&await u(MC(e),{action:`view`,marks:t})}var zC=`search-mark`,BC=`mark.${zC}`,VC=`mark.${zC}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${zC} *,mark.${zC} *::before,mark.${zC} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${zC}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,HC={query:``,hit:null,keys:null},UC=new Map,WC=new WeakMap,GC=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function KC(e,t,n){HC.query=e,HC.hit=t,HC.keys=n?new Set(n):null;for(let[e,t]of UC)ZC(e,t,!1);t&&qC(t)}function qC(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of UC)if(i===e.key&&(n=!0,XC(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>qC(e,t+1),n?32:48)})})}function JC(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 YC(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 XC(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=>tw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=YC(r,e);return a&&JC(a,r),!0}function ZC(e,t,n=!0){let r=t&&HC.hit?.key===t?HC.hit:null,i=HC.query.trim(),a=!!i&&!!HC.keys&&!!t&&!HC.keys.has(t),o=a?``:GC(i,r),s=WC.get(e)!==o;(n||s)&&(WC.set(e,o),sw(e,a?``:i,r),n||ZS(e),r&&s&&qC(r))}function QC(e,t){return UC.set(e,t),ZC(e,t),()=>{UC.delete(e),WC.delete(e)}}function $C(e){ZC(e,UC.get(e))}function ew(e){let t=e.querySelectorAll(BC);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 tw(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 nw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(BC)||n.push(e);return n}function rw(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 iw(e,t,n,r,i){let a=rw(e,t,n),o=rw(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 aw(e,t,n,r){let i=nw(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=cw(e,r)?`${zC} active`:zC;for(let e=c.length-1;e>=0;e--)iw(i,a,c[e][0],c[e][1],l)}var ow=new WeakMap;function sw(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){ew(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${+!!cw(t,n)}`:``,a=!!t.querySelector(BC);i!==(a?ow.get(t):``)&&(a&&ew(t),ow.set(t,i),r&&aw(t,s,o,n))}}}function cw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===tw(e)}function lw(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(dw(i,e?uw:ft))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function uw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function dw(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)}}var fw={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`,mp4:`video/mp4`,m4v:`video/mp4`,mov:`video/quicktime`,webm:`video/webm`};function pw(e){let t=e.lastIndexOf(`.`),n=fw[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:n.startsWith(`video/`)?`video`:`image`,type:n}:null}function mw(e){let t=e.replace(/^origin\//,``);return hw(t.includes(`/`)?t.slice(t.lastIndexOf(`/`)+1):t)}function hw(e){return e.replace(/-[a-z0-9]{1,6}$/i,``)||e}function gw(e,t){if(!t)return``;let n=e.replace(/^origin\//,``),r=t.replace(/^origin\//,``);return n.startsWith(`${r}-`)?n.slice(r.length+1):``}function _w(e){let t=e.indexOf(`.`);return t<=0||t===e.length-1?null:{group:e.slice(0,t),name:e.slice(t+1)}}function vw(e){let t=hw(e);if(t.length<=20)return t;let n=t.split(`-`);return n.length>1?n[n.length-1]:t}function yw(e,t,n=``,r=``,i){let a=(e||`base`).replace(/^origin\//,``),o=(t||`HEAD`).replace(/^origin\//,``),s=(n||``).replace(/^origin\//,``),c=!!s&&(o===s||o.startsWith(`${s}-`)),l=c?r||mw(s):vw(o),u=c?i?.get(o)??gw(o,s):``,d=o===a?a:`${o} vs ${a}`;return{base:s&&a===s?r||mw(s):i?.get(a)||gw(a,s)||a,head:l,topic:u,onWs:c,title:d}}function bw(e,t=``,n=``,r){let i=yw(e.base,e.head,t,n,r),a=(e.base||`base`).replace(/^origin\//,``),o=(e.head||`HEAD`).replace(/^origin\//,``),s=t.replace(/^origin\//,``);if(!(i.topic||s&&o!==s||e.defaultBranch&&a!==e.defaultBranch))return null;let c=!!e.defaultBranch&&a===e.defaultBranch&&(!e.repoBase||e.repoBase===e.defaultBranch);return{head:i.onWs?``:i.head,topic:i.topic,base:c?``:i.base,title:i.title}}function xw(e,t=``,n=``){let r=e.replace(/^origin\//,``);if(!r||r===`HEAD`)return r||`HEAD`;let i=t.replace(/^origin\//,``);if(i&&(r===i||r.startsWith(`${i}-`))){let e=n||mw(i),t=gw(r,i);return t?`${e} [${t}]`:e}return vw(r)}var Sw=`_fc _bp _m`;function Cw(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function ww(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${Cw(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${et(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; ${Cw(e.edits)}`:null}function Tw(e){return!!e.pr||!e.contained||!!e.edits}var Ew=`<h1> </h1><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`,Dw=` D l D b l`;function Ow(e){I(e.a,`_Q`),I(e.c,[`_bB`,`_kH`])}var kw=(e,t)=>{R(e.b,t===`files`?`Files`:`Review`),I(e.d,[`_bD`,t===`files`&&`_bC`]),L(e.d,`aria-current`,t===`files`?`page`:void 0),I(e.e,[`_bD`,t===`changes`&&`_bC`]),L(e.e,`aria-current`,t===`changes`?`page`:void 0)},Aw=(e,t)=>L(e.d,`href`,t),jw=(e,t)=>L(e.e,`href`,t),Mw=`_kG _di _bw`,Nw=c,Pw=(e=>`/${e}&`)(r);function Fw(e){t(e.a,x)}var Iw=(e,t)=>ne(e.a,t),Lw=(e,t)=>s(e.a,t),Rw=`_na _o`,zw=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(Nw),Bw=(e=>` D/${e}& l`)(Pw),Vw=P(16,e=>he(e,`c`,e.n,tT(e))),Hw=N(13,Vw),Uw=N(14),Ww=P(12,e=>{Hw(e,(e.l??e.j)||``),Uw(e,nT(e))}),Gw=O(9,Ww),Kw=P(7,e=>Gw(e,e.f,e.g)),qw=N(5,Kw),Jw=N(6,Kw),Yw=A(`u5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{Xw(e,null),Gw(e,t)},150);ve(e,0).onabort=()=>clearTimeout(n)}}}),Xw=V(11,e=>{ye(e,0),Ww(e),Yw(e)}),Zw=N(15,Vw),Qw=A(`u4`,e=>{ge(e,`c`),k(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()))}),k(e.c,`blur`,function(){e.l!==null&&e.o()})});function $w(e){I(e.a,[`_bl`,`_m_`]),Fw(e.b),Iw(e.b,14),Lw(e.b,`_bm`),I(e.c,[`_bn`,Rw]),se(e,iT(e)),Xw(e,null),Zw(e,rT(e)),Qw(e)}var eT=N(8),tT=e=>function(t){e.p(t)},nT=e=>()=>{let t=e.l??e.j??``;Xw(e,null),Gw(e,t)},rT=e=>t=>{if(!t){Xw(e,null),Gw(e,``);return}Xw(e,t)},iT=e=>()=>{e.c.focus(),e.c.select()};F.u2=tT,F.u0=nT,F.u1=rT,F.u3=iT;var aT=`<!><!><!>`,oT=M(0,0,e=>R(e.c,bt(e._.d))),sT=e=>{oT._(e),cT._(e),I(e.a,`_ns`),I(e.b,`_nt`),I(e.d,`_nu`)},cT=M(0,0,e=>R(e.e,bt(e._.e))),lT=j(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,sT),uT=P(5,e=>lT(e,e.d||e.e?0:1)),dT=N(3,e=>{uT(e),oT(e)}),fT=N(4,e=>{uT(e),cT(e)}),pT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(zw),mT=(e=>` D0${e}&%b D D l%b%m`)(Bw),hT=A(`y4`,e=>k(e.a,`click`,function(){ET(e._,``),AT(e._,!1)})),gT=e=>{I(e.a,`_m2`),hT(e)},_T=M(7,0,e=>dT(e.a,e._.w)),vT=e=>{_T._(e),yT._(e)},yT=M(7,0,e=>fT(e.a,e._.x??0)),bT=M(3,0,e=>R(e.e,bt(e._.r))),xT=A(`y3`,e=>k(e.f,`click`,function(){AT(e._,!e._.a0)})),ST=e=>{bT._(e),CT._(e),wT._(e),I(e.a,`_mX`),I(e.b,`_mY`),I(e.c,`_mZ`),I(e.f,`_3`),xT(e)},CT=M(3,0,e=>R(e.d,bt(e._.v))),wT=M(3,0,e=>L(e.f,`aria-checked`,e._.a0?`true`:`false`)),TT=ue(31),ET=O(24,e=>qw(e.b,e.y)),DT=P(13,e=>ET(e,e.l,e.m)),OT=N(11,DT),kT=N(12,DT),AT=O(26,wT),jT=P(16,e=>AT(e,e.o,e.p)),MT=N(14,jT),NT=N(15,jT),PT=j(8,`<button type=button>Clear</button>`,` `,gT),FT=(e,t)=>R(e.g,t),IT=P(29,e=>FT(e,`${e.a2>0?`${bt(e.s)} of `:``}${bt(e.r)} ${e.r===1?`file`:`files`}`),2),LT=N(28,e=>{PT(e,e.a2>0?0:1),IT(e)}),RT=P(19,e=>LT(e,e.r-e.s)),zT=N(17,e=>{RT(e),IT(e),bT(e)}),BT=N(18,e=>{RT(e),IT(e)});function VT(e){fe(e,1,HT),I(e.a,`_mW`),$w(e.b),Jw(e.b,XT(e)),I(e.e,`_m0`),I(e.f,`_m1`),se(e,YT(e))}var HT=pe(`y2`,N(31)),UT=(e,t)=>eT(e.b,t),WT=j(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,ST),GT=N(21,e=>{WT(e,+(e.v==null)),CT(e)}),KT=j(7,(e=>`<!>${e}<!>`)(aT),(e=>`b/${e}&b`)(`b%c`),vT),qT=N(22,e=>{KT(e,+(e.w==null)),_T(e)}),JT=N(23,yT),YT=e=>()=>TT(e)(),XT=e=>t=>{ET(e,t)};F.y1=YT,F.y0=XT;var ZT=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(Nw,pT),QT=((e,t)=>` D/${e}&%l D0${t}&l`)(Pw,mT),$T=M(2,0,e=>R(e.b,e._.a0>99?`99+`:bt(e._.a0))),eE=e=>{$T._(e),I(e.a,`_kF`)},tE=ue(30),nE=P(24,e=>I(e.a,[Sw,`_kD`,{_kE:!!e.u?.trim()||!!e.w}])),rE=O(20,e=>{OT(e.e,e.u),nE(e)}),iE=P(10,e=>rE(e,e.i,e.j)),aE=N(8,iE),oE=N(9,iE),sE=O(22,e=>{MT(e.e,e.w),nE(e)}),cE=P(13,e=>sE(e,e.l,e.m)),lE=N(11,cE),uE=N(12,cE),dE=(e,t)=>{L(e.a,`aria-controls`,t),L(e.d,`id`,t)},fE=V(29),pE=A(`x4`,e=>{k(e.a,`pointerdown`,function(){fE(e,e.d.matches(`:popover-open`))}),k(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(fE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&i()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Fe(t,e.a.getBoundingClientRect()),tE(e)()})});function mE(e){fe(e,4,TE),Fw(e.b),Iw(e.b,14),Lw(e.b),I(e.d,Mw),VT(e.e),kT(e.e,kE(e)),NT(e.e,OE(e)),UT(e.e,DE(e)),dE(e,ce(e)),fE(e,!1),pE(e)}var hE=j(2,`<span aria-hidden=true> </span>`,` D `,eE),gE=(e,t)=>{L(e.a,`title`,`Filter files\n${t}`),L(e.a,`aria-label`,`Filter files: ${t}`)},_E=P(27,e=>gE(e,`${e.a0>0?`${bt(e.p)} of `:``}${bt(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${bt(e.r)} −${bt(e.s??0)}`)+(e.t==null?``:`\n${bt(e.t)} of ${bt(e.o)} viewed`)),5),vE=N(26,e=>{hE(e,e.a0>0?0:1),_E(e),$T(e)}),yE=P(16,e=>vE(e,e.o-e.p)),bE=N(14,e=>{zT(e.e,e.o),yE(e),_E(e)}),xE=N(15,e=>{BT(e.e,e.p),yE(e),_E(e)}),SE=N(17,e=>{qT(e.e,e.r),_E(e)}),CE=N(18,e=>{JT(e.e,e.s),_E(e)}),wE=N(19,e=>{GT(e.e,e.t),_E(e)}),TE=pe(`x3`,N(30)),EE=N(7,e=>{aE(e,e.h.filter),oE(e,e.h.filterChange),lE(e,e.h.hideViewed),uE(e,e.h.hideViewedChange),bE(e,e.h.total),xE(e,e.h.shown),SE(e,e.h.additions),CE(e,e.h.deletions),wE(e,e.h.viewed)}),DE=e=>function(){e.d.hidePopover(),e.a.focus()},OE=e=>t=>{sE(e,t)},kE=e=>t=>{rE(e,t)};F.x2=DE,F.x1=OE,F.x0=kE;var AE=`<!><!><!>`,jE=M(0,0,e=>{L(e.a,`aria-label`,Cw(e._.d)),L(e.a,`title`,Cw(e._.d))}),ME=j(0,(e=>`<span role=img>${e}</span>`)(Ne),(e=>` D/${e}&l`)(Pe),e=>{jE._(e),I(e.a,`_nm`),Ve(e.b),ze(e.b,12),Re(e.b)}),NE=N(3,e=>{ME(e,+!e.d),jE(e)}),PE=(e=>` D%b%b%b/${e}&l`)(`b%c`),FE=(e=>`<button type=button><!><!><!>${e}</button>`)(AE),IE=(e=>` D%b D l%b/${e}&l`)(`b%c`),LE=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(AE),RE=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,zE=` D%b D b%l%b l`,BE=200,VE=250;function HE(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function UE(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 WE(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 GE=B(19,e=>I(e.a,[y[et(e._._.n)],`_mx`]),e=>e._._,`T19`),KE=e=>{GE(e),qE(e)},qE=B(20,e=>R(e.b,e._._.o),e=>e._._,`T20`),JE=B(19,e=>R(e.a,e._._.i),e=>e._._,`T23`),YE=JE,XE=e=>{I(e.a,[`_mc`,`_md`]),R(e.b,e._._.M)},ZE=M(1,0,e=>R(e.b,e._.r)),QE=e=>{ZE._(e),I(e.a,`_mt`)},$E=M(4,0,e=>I(e.a,[y[et(e._.n)],`_mx`])),eD=e=>{$E._(e),tD._(e)},tD=M(4,0,e=>R(e.b,e._.o)),nD=B(34,e=>R(e.b,e._._.a2),e=>e._._,`T10`),rD=e=>{nD(e),I(e.a,`_mq`)},iD=M(3,0,e=>I(e.a,[y[et(e._.s)],`_mx`])),aD=e=>{iD._(e),oD._(e)},oD=M(3,0,e=>R(e.b,e._.t)),sD=M(2,1,e=>R(e.b,e._.w)),cD=e=>{sD._(e),I(e.a,`_mw`)},lD=M(2,0,e=>R(e.b,e._.o)),uD=e=>{lD._(e),fD._(e)},dD=j(0,`<span><!>/</span>`,` D%`,rD),fD=M(2,0,e=>dD(e,+!e._.a2)),pD=M(1,0,e=>R(e.b,e._.m)),mD=e=>{pD._(e),I(e.a,`_md`)},hD=P(1,e=>QA(e.a,e._.o===e._._._.k)),gD=B(18,hD,e=>e._._._,`T32`),_D=e=>{gD(e),vD._(e),RA._(e.a,e._._._._),VA(e.a,!0),aj(e.a)},vD=M(0,2,e=>{rj(e.a,e._.o),hD(e)}),yD=P(3,e=>OA(e.a,e._._._.a1(e.c,e._._._.ah)),2),bD=B(56,yD,e=>e._._._),xD=e=>{bD(e),SD(e),xA._(e.a,e._._._),wA(e.a)},SD=B(62,yD,e=>e._._._,`T47`),CD=N(2,e=>{MA(e.a,e.c),yD(e)}),wD=(e,t)=>DA(e.a,t+1),TD=(e,t)=>{CD(e,t[0]),wD(e,t[1])},ED=P(4,e=>R(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),DD=B(57,ED,e=>e._._),OD=e=>{DD(e),kD(e),AD(e),jD(e),ND(e),I(e.a,`_mn`),I(e.b,`_mo`)},kD=B(61,ED,e=>e._._,`T48`),AD=B(62,ED,e=>e._._,`T49`),jD=B(63,ED,e=>e._._,`T50`),MD=_e(3,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),xD,TD),ND=B(66,e=>MD(e,[e._._.aq,`id`]),e=>e._._,`T51`),PD=P(1,e=>OA(e.a,HE(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),FD=B(56,PD,e=>e._._._._),ID=e=>{FD(e),LD(e),RD(e),zD._(e),xA._(e.a,e._._._._),DA(e.a),wA(e.a)},LD=B(60,PD,e=>e._._._._,`T42`),RD=B(62,PD,e=>e._._._._,`T43`),zD=M(0,1,e=>{MA(e.a,e._.f),PD(e)}),BD=P(3,e=>OA(e.a,HE(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),VD=B(56,BD,e=>e._._._._._),HD=e=>{VD(e),UD(e),WD(e),xA._(e.a,e._._._._._),wA(e.a,!0)},UD=B(60,BD,e=>e._._._._._,`T37`),WD=B(62,BD,e=>e._._._._._,`T38`),GD=N(2,e=>{MA(e.a,e.c),BD(e)}),KD=(e,t)=>DA(e.a,t+1),qD=(e,t)=>{GD(e,t[0]),KD(e,t[1])},JD=P(4,e=>R(e.c,HE(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),YD=B(57,JD,e=>e._._._._),XD=e=>{YD(e),ZD(e),QD(e),$D(e),eO._(e),nO._(e),I(e.a,`_mp`),$e(e.b),He(e.b,12),Le(e.b)},ZD=B(60,JD,e=>e._._._._,`T39`),QD=B(62,JD,e=>e._._._._,`T40`),$D=B(63,JD,e=>e._._._._,`T41`),eO=M(0,0,JD),tO=_e(3,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),HD,qD),nO=M(0,0,e=>tO(e,[e._.e,`id`])),rO=j(0,(e=>`<span>${e} </span><!><!>`)(je),(e=>` D/${e}& l%c`)(Ue),XD,(e=>`<!>${e}<!>`)(LE),(e=>`b/${e}&b`)(IE),ID),iO=(e,t)=>rO(e,+!t),aO=(e,t)=>oO(e,t[0]),oO=N(2,e=>{iO(e,e.c?.stack),sO(e,e.c?.sections),eO(e)}),sO=N(4,e=>{cO(e,e.e?.[0]),nO(e)}),cO=N(5,zD),lO=B(60,e=>R(e.c,e._._.ae),e=>e._._,`T44`),uO=e=>{lO(e),dO(e),pO(e),I(e.a,`_mn`),I(e.b,`_mo`)},dO=B(64,e=>{R(e.d,e._._.ao),R(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`T45`),fO=_e(5,`<!><!><!>`,`b%`,0,aO),pO=B(65,e=>fO(e,[e._._.ap,`root`]),e=>e._._,`T46`),mO=j(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,uO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,OD),hO=M(6,0,e=>mO(e,e._.ad===`group`?0:1)),gO=hO,_O=P(6,e=>R(e.d,HE(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),vO=B(56,_O,e=>e._._._._._),yO=e=>{vO(e),bO(e),SO(e),CO._(e),TO._(e),EO._(e),I(e.a,`_mq`)},bO=B(18,_O,e=>e._._._._,`T21`),xO=P(5,e=>R(e.c,e._.r?`${HE(e._.r,e._._.i)}/`:``)),SO=B(19,e=>{R(e.b,e._._.i),xO(e),_O(e)},e=>e._._,`T22`),CO=M(1,0,_O),wO=j(4,`<span>#<!></span>`,` Db%`,KE),TO=M(1,0,e=>wO(e,+!e._.n)),EO=M(1,0,xO),DO=A(`T36`,e=>k(e.a,`click`,function(){e._.x(1)})),OO=e=>{I(e.a,[`_l5`,`_l7`]),qe(e.b),Be(e.b,12),Me(e.b),DO(e)},kO=A(`T17`,e=>k(e.a,`click`,function(){e._.x(-1)})),AO=e=>{I(e.a,[`_l5`,`_l6`]),qe(e.b),Be(e.b,12),Me(e.b,`_l8`),kO(e)},jO=P(14,e=>I(e.a,[`_mf`,{_mg:e.n===e._._._._.k}])),MO=B(53,jO,e=>e._._._._,`T29`),NO=A(`T28`,e=>{k(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),k(e.c,`mouseleave`,function(){e._._._._.ak()}),k(e.c,`pointerdown`,function(){e._._._._.al()}),k(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),k(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Fj(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),PO=e=>{MO(e),zO(e),UO(e),WO(e),KO._(e),qO._(e),RA._(e.b,e._._._._),VA(e.b,!0),L(e.c,`data-pop`,e._.M),$e(e.d),He(e.d,12),Le(e.d),NO(e)},FO=P(12,e=>QA(e.b,e.l===e._._._.k)),IO=P(18,e=>aj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),LO=N(11,e=>{rj(e.b,e.l),ZO(e,e.l?.id),FO(e),IO(e)}),RO=P(6,e=>LO(e,e._._._._.a0(e.f))),zO=B(55,RO,e=>e._._._._,`T30`),BO=P(16,e=>{L(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),L(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),VO=N(15,e=>{IO(e),BO(e)}),HO=P(7,e=>VO(e,e._._._._.a2(e.f,e._._._.k)),2),UO=B(57,HO,e=>e._._._._),WO=B(18,e=>{HO(e),FO(e)},e=>e._._._,`T31`),GO=N(5,e=>{JO(e,e.f?.root),YO(e,e.f?.sections),RO(e),HO(e)}),KO=M(0,1,e=>GO(e,e._.k)),qO=M(0,1,e=>{I(e.c,[`_mh`,{_mi:e._.p}]),L(e.c,`aria-expanded`,e._.p?`true`:`false`)}),JO=(e,t)=>L(e.a,`data-stack`,t),YO=N(9,e=>{XO(e,e.j?.length),IO(e)}),XO=N(10,e=>{R(e.e,e.k),BO(e)}),ZO=N(13,jO),QO=P(9,e=>I(e.a,[`_l_`,`_me`,`_mj`,{_mv:!!e.h?.repo.unpushed,_l9:!!e.h&&e.h?.id===e._._._._.k,_mk:e._.p}]),2),$O=B(53,QO,e=>e._._._._,`T25`),ek=A(`T24`,e=>{k(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),k(e.a,`mouseleave`,function(){e._._._._.ak()}),k(e.a,`pointerdown`,function(){e._._._._.al()}),k(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),k(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Fj(e._._._._,null),e._._._._.am(e._.M,n))})}),tk=e=>{$O(e),uk(e),dk(e),fk(e),pk._(e),mk._(e),gk._(e),_k._(e),vk._(e),L(e.a,`data-pop`,e._.M),I(e.c,`_ml`),Xe(e.d),Je(e.d,12),Qe(e.d),ek(e)},nk=j(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,yO,`<span> </span>`,`D `,YE),rk=N(17,EO),ik=P(16,e=>rk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),ak=N(15,ik),ok=P(8,e=>ak(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),sk=P(10,e=>L(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${ww(e.h?.repo)??``}`:``}`),2),ck=N(7,e=>{bk(e,e.h?.repo?.pr),Sk(e,e.h?.id),nk(e,+!e.h),ok(e),ik(e),QO(e),sk(e),CO(e)}),lk=P(5,e=>ck(e,e._._._._.z(e._.g))),uk=B(54,lk,e=>e._._._._,`T26`),dk=B(57,ik,e=>e._._._._),fk=B(18,ik,e=>e._._._,`T27`),pk=M(0,0,lk),mk=M(0,0,ok),hk=P(6,e=>L(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),gk=M(0,0,e=>{sk(e),hk(e)}),_k=M(0,0,e=>{R(e.e,e._.j),sk(e),hk(e)}),vk=M(0,0,e=>{L(e.a,`aria-expanded`,e._.p?`true`:`false`),QO(e)}),yk=me(GE),bk=N(13,e=>{xk(e,e.n?.number),TO(e),yk(e)}),xk=N(14,me(qE)),Sk=(e,t)=>L(e.a,`data-pick`,t),Ck=N(15,e=>{vk(e),qO(e)}),wk=B(58,e=>Ck(e,e._._._.a5===e.M),e=>e._._._,`T33`),Tk=wk,Ek=j(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ge),(e=>` D%b D/${e}& m`)(We),tk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(FE,je),((e,t)=>` D/${e}& D/${t}& m`)(PE,Ue),PO,(e=>`<!>${e}<!>`)(FE),(e=>`b/${e}&b`)(PE),_D),Dk=P(12,e=>Ek(e,e.f===`group`?0:e.l?1:2)),Ok=N(5,Dk),kk=N(11,Dk),Ak=(e,t)=>{Ok(e,t[0]?.kind),jk(e,t[0]?.sections),Nk(e,t[0]?.runs),Fk(e,t[0]?.name),Ik(e,t[0]?.run)},jk=N(6,e=>{Mk(e,e.g?.length),pk(e)}),Mk=N(9,_k),Nk=N(7,mk),Pk=me(SO,JE),Fk=N(8,e=>{gk(e),Pk(e)}),Ik=N(10,e=>{kk(e,e.k?.stack),Lk(e,e.k?.sections?.[0]),KO(e)}),Lk=N(14,vD),Rk=P(3,e=>I(e.a,[`_ma`,{_mb:e._.d.some(t=>t.id===e._._.k)}])),zk=B(53,Rk,e=>e._._,`T34`),Bk=e=>{zk(e),Gk(e),Kk._(e),qk._(e),Yk._(e),Zk._(e),Qk._(e)},Vk=j(1,`<span> </span>`,` D `,XE),Hk=P(10,e=>Vk(e,!e._.k||e.j!==e._.k?0:1)),Uk=N(9,Hk),Wk=P(8,e=>Uk(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),Gk=B(55,Wk,e=>e._._,`T35`),Kk=M(0,1,Rk),qk=M(0,1,e=>L(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),Jk=_e(2,`<!><!><!>`,`b%`,Tk,Ak),Yk=M(0,1,e=>Jk(e,[e._.i,`key`])),Xk=(e,t)=>{$k(e,t?.kind),eA(e,t?.run)},Zk=M(0,1,e=>Xk(e,e._.j)),Qk=M(0,1,Hk),$k=N(6,Wk),eA=N(7,Wk),tA=P(2,e=>I(e.a,[`_ma`,{_mb:e._.g===e._._.k}])),nA=B(53,tA,e=>e._._,`T18`),rA=e=>{nA(e),iA._(e),aA._(e),RA._(e.b,e._._),QA(e.b,!0),VA(e.b,!0),aj(e.b)},iA=M(0,0,e=>rj(e.b,e._.f)),aA=M(0,0,tA),oA=j(0,(e=>`<span>${e}</span>`)(FE),(e=>` D/${e}&l`)(PE),rA,`<span role=group><!><!></span>`,` D%b%`,Bk),sA=N(4,e=>{oA(e,e.e===1?0:1),qk(e)}),cA=(e,t)=>{lA(e,t[0]?.sections),fA(e,t[0]?.items),hA(e,t[0]?.main)},lA=N(3,e=>{sA(e,e.d?.length),uA(e,e.d?.[0]),Kk(e)}),uA=N(5,e=>{dA(e,e.f?.id),iA(e)}),dA=N(6,aA),fA=N(8,e=>{pA(e,e.i?.[0]),Yk(e)}),pA=N(9,Zk),mA=me(fk,WO,bO,gD),hA=N(10,e=>{Qk(e),mA(e)}),gA=P(20,e=>I(e.a,[`_mr`,{_ms:e.s,_mv:!!e.m,_l9:e.t}]),2),_A=N(19,e=>{L(e.a,`aria-current`,e.t?`true`:void 0),gA(e)}),vA=P(10,e=>_A(e,e._.k===e.j)),yA=B(53,vA,0,`T16`),bA=A(`T15`,e=>k(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),xA=be(e=>{yA(e),I(e.c,`_mu`),bA(e)}),SA=N(9,vA),CA=N(12,gA),wA=N(18,gA),TA=(e,t)=>{L(e.a,`title`,[ww(t),t?.pr?.title].filter(Boolean).join(`
|
|
325
|
+
`)),CA(e,t?.unpushed),AA(e,t?.pr),jA(e,t?.edits)},EA=j(1,`<span> </span>`,` D `,QE),DA=N(17,e=>{EA(e,+!e.r),ZE(e)}),OA=(e,t)=>R(e.d,t),kA=j(4,`<span>#<!></span>`,` Db%`,eD),AA=N(13,e=>{NA(e,e.n?.number),kA(e,+!e.n),$E(e)}),jA=(e,t)=>NE(e.f,t),MA=(e,t)=>{SA(e,t?.id),TA(e,t?.repo)},NA=N(14,tD),PA=P(27,e=>I(e.a,[`_l_`,{_mv:!!e.j,_me:e.a0,_l9:e._.k===e.k}]),3),FA=P(11,e=>L(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),IA=B(53,e=>{PA(e),FA(e)},0,`T13`),LA=A(`T12`,e=>k(e.a,`click`,function(){e._.l(e.k)})),RA=be(e=>{IA(e),LA(e)}),zA=N(9,PA),BA=N(10,e=>{L(e.a,`data-pick`,e.k),PA(e),FA(e)}),VA=N(26,PA),HA=P(21,e=>L(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${bt(e.p.length)} ${e.p.length===1?`file`:`files`}, +${bt(e.q??0)} −${bt(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,ww(e.i),e.u].filter(Boolean).join(`
|
|
326
|
+
`)),5),UA=N(8,e=>{zA(e,e.i?.unpushed),oj(e,e.i?.worktree),tj(e,e.i?.pr),nj(e,e.i?.edits),HA(e)}),WA=j(2,`<span><!><!></span>`,`D%b%`,uD,`<span> </span>`,` D `,cD),GA=P(23,e=>WA(e,e.o?0:e.w?1:2)),KA=N(14,e=>{HA(e),GA(e),lD(e)}),qA=N(15,HA),JA=N(16,HA),YA=N(17,HA),XA=N(20,HA),ZA=j(1,`<span> </span>`,` D `,mD),QA=(e,t)=>ZA(e,+!t),$A=N(22,e=>{GA(e),sD(e)}),ej=j(3,`<span>#<!></span>`,` Db%`,aD),tj=N(18,e=>{sj(e,e.s?.number),ej(e,+!e.s),iD(e)}),nj=(e,t)=>NE(e.e,t),rj=(e,t)=>{UA(e,t?.repo),BA(e,t?.id),cj(e,t?.compare),qA(e,t?.files),JA(e,t?.additions),YA(e,t?.deletions)},ij=me(nD),aj=N(28,e=>{fD(e),ij(e)}),oj=N(12,pD),sj=N(19,oD),cj=(e,t)=>{KA(e,t?.topic),XA(e,t?.title),$A(e,t?.head)},lj=V(15,e=>{L(e.c,`title`,Se(`prevSection`,e.p)||Se(`nextSection`,e.p)?`Sections (${[Se(`prevSection`,e.p),Se(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),uj=j(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Ae),(e=>` D/${e}&l`)(Ke),AO),dj=P(20,e=>I(e.c,[`_l2`,{_l3:e.s,_l4:e.t}])),fj=V(18,e=>{uj(e,+!e.s),dj(e)}),pj=j(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Ae),(e=>` D/${e}&l`)(Ke),OO),mj=V(19,e=>{pj(e,+!e.t),dj(e)}),hj=A(`T52`,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;a<r.scrollLeft?r.scrollTo({left:a-8,behavior:`smooth`}):o>r.scrollLeft+r.clientWidth&&r.scrollTo({left:o-r.clientWidth+8,behavior:`smooth`})});ve(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),gj=P(22,e=>{ye(e,2),hj(e)},2),_j=A(`T53`,e=>de(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()}})),vj=N(21,e=>{gj(e),_j(e)}),yj=N(23),bj=N(27),xj=P(36,e=>L(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)),Sj=N(28,xj),Cj=N(47),wj=j(6,`<!><!><!>`,`b%`,gO),Tj=A(`T54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Fe(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()}}),Ej=P(37,Tj),Dj=N(35,e=>{Yj(e,e.a9?.item?.kind),Xj(e,e.a9?.item?.name),Qj(e,e.a9?.item?.run),eM(e,e.a9?.item?.sections?.length),tM(e,e.a9?.item?.runs),nM(e,e.a9?.g?.main),rM(e,e.a9?.g?.worktree),wj(e,+!e.a9),Ej(e),xj(e)}),Oj=P(30,e=>Dj(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}}})())),kj=N(45),Aj=e=>{kj(e,pM(e))},jj=V(29,e=>{Kj(e,e.a3?.key),Jj(e,e.a3?.via),Cj(e,fM(e)),Oj(e),Aj(e),Ej(e)}),Mj=A(`T55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{Nj(e,null),jj(e,t.pop)},t.pop?BE:VE);ve(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),Nj=V(33,e=>{ye(e,1),Mj(e)}),Pj=N(48),Fj=V(34,e=>Pj(e,mM(e))),Ij=A(`T56`,e=>{lj(e,xe()),Ce(()=>{lj(e,xe())},ve(e,0)),k(e.c,`scroll`,function(){e.v()}),k(e.d,`click`,function(){e.l(null)}),k(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&Nj(e,null)}),k(e.g,`mouseleave`,function(){e.ak()}),k(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),Nj(e,null),jj(e,null))}),k(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 Lj(e){ye(e,0),I(e.g,[`_bw`,`_mm`]),lj(e,0),fj(e,!1),mj(e,!1),vj(e,cM(e)),yj(e,lM(e)),bj(e,uM),Sj(e,dM),jj(e,null),Nj(e,null),Fj(e,null),Ij(e)}var Rj=_e(4,`<!><!><!>`,`b%`,0,cA),zj=N(24,e=>{Rj(e,[e.y,`worktree`]),Oj(e)}),Bj=(e,t)=>{oM(e,t?.length),zj(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=WE(UE(t.sections),t.main);return e})())},Vj=N(26,me(Gk,zO)),Hj=me(uk),Uj=N(25,e=>{Vj(e,hM(e)),Hj(e)}),Wj=me(IA,yA,nA,zk,$O,MO),Gj=N(10,e=>{I(e.d,[`_l_`,{_l9:!e.k}]),L(e.d,`aria-pressed`,e.k?`false`:`true`),Uj(e,gM(e)),gj(e),Wj(e)}),Kj=N(31,me(wk)),qj=N(46),Jj=N(32,e=>qj(e,_M(e))),Yj=N(39,hO),Xj=N(40,me(lO,ZD,UD,LD)),Zj=me(kD),Qj=N(41,e=>{$j(e,e.af?.sections),Zj(e)}),$j=N(52,me(ND)),eM=N(50,me(dO)),tM=N(51,me(pO)),nM=N(43,me(QD,WD,RD,AD,SD)),rM=N(44,me($D,jD)),iM=(e,t)=>I(e.a,[`_l1`,t]),aM=(e,t)=>L(e.d,`title`,t==null?`Every section`:`Every section: ${bt(t)} ${t===1?`file`:`files`}`),oM=N(14,gj),sM=N(11),cM=e=>()=>{let t=e.c;fj(e,t.scrollLeft>1),mj(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},lM=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function uM(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function dM(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var fM=e=>()=>{Fj(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},pM=e=>(t,n)=>{e.a6!==`click`&&Nj(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},mM=e=>(t,n)=>{let r=e.a8;if(Fj(e,null),Nj(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}jj(e,{key:t,chip:n,via:`click`})},hM=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],gM=e=>t=>t.find(t=>t.id===e.k),_M=e=>()=>{Nj(e,e.a6===`hover`?{pop:null}:null)};F.T0=cM,F.T1=lM,F.T4=uM,F.T5=dM,F.T8=fM,F.T6=pM,F.T9=mM,F.T3=hM,F.T2=gM,F.T7=_M;var vM=c,yM=(e=>`/${e}&`)(r);function bM(e){t(e.a,C)}var xM=(e,t)=>ne(e.a,t),SM=(e,t)=>s(e.a,t),CM=((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>`)(vM,vM,Mt),wM=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(yM,yM,jt),TM=e=>{kt(e.a),Dt(e.a,12),At(e.a)},EM=M(7,3,e=>R(e.b,Ie(e._.a4))),DM=e=>{EM._(e),I(e.a,[`_ks`,`_S`]),I(e.c,`_R`)},OM=M(7,0,e=>R(e.a,e._.a0?`Copied`:`Copy failed`)),kM=OM,AM=j(1,Et,(e=>`/${e}&`)(Tt),TM),jM=B(41,e=>{L(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),AM(e,e.M===e._._.a7?0:1)},e=>e._._,`r3`),MM=A(`r2`,e=>k(e.a,`click`,function(){qM(e._._,e.M),e._._.l.hidePopover()})),NM=e=>{jM(e),I(e.a,vC),I(e.b,`_kx`),we(e.c,14),Te(e.c),I(e.d,`_ky`),MM(e)},PM=(e,t)=>Ee(e.c,t),FM=(e,t)=>{R(e.e,Ie(t)),PM(e,t?.agent)},IM=_e(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(ke),(e=>` D b/${e}& D m`)(`b%c`),NM,(e,t)=>FM(e,t[0])),LM=M(12,0,e=>IM(e,[e._.a1,`id`])),RM=e=>{LM._(e),I(e.a,`_kv`),I(e.c,`_kz`)},zM=N(36),BM=P(31,e=>zM(e,lN(e)),2),VM=j(7,` `,` `,kM,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,DM,`Send`),HM=P(32,e=>VM(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),UM=V(23,e=>{L(e.c,`disabled`,e.x),L(e.i,`disabled`,e.x),BM(e),HM(e)}),WM=P(35,e=>L(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${Ie(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),GM=N(30,e=>{rN(e,e.a4?.id),BM(e),WM(e),HM(e),EM(e)}),KM=P(28,e=>GM(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),qM=V(24,KM),JM=A(`r5`,e=>{if(e.z){let t=setTimeout(()=>{YM(e,null)},1500);ve(e,0).onabort=()=>clearTimeout(t)}}),YM=V(25,e=>{ye(e,0),QM(e,e.z?.ok),HM(e),JM(e)}),XM=A(`r4`,e=>{k(e.c,`click`,function(){e.a4?e.aa():e.ab()}),k(e.i,`click`,function(){let t=e.l;t.showPopover(),Fe(t,e.b.getBoundingClientRect(),{align:`end`})}),k(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function ZM(e){I(e.c,`_kp`),I(e.d,[`_w`,`_kq`]),bM(e.e),xM(e.e,18),SM(e.e,`_x`),I(e.f,[n,`_kr`]),I(e.i,`_kt`),bM(e.k),xM(e.k,16),SM(e.k),I(e.l,_C),I(e.n,vC),I(e.o,`_kx`),Pt(e.p),Nt(e.p,14),Ft(e.p),I(e.q,`_ky`),UM(e,!1),qM(e,null),YM(e,null),XM(e)}var QM=N(26,OM),$M=N(27,e=>{tN(e,e.a1.length),KM(e),LM(e)}),eN=j(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,RM),tN=N(29,e=>{eN(e,+!e.a3),HM(e)}),nN=(e,t)=>$M(e,t||[]),rN=N(33,me(jM)),iN=N(34,e=>{L(e.b,`aria-label`,e.a8),WM(e)}),aN=N(20,e=>{I(e.a,[`_kl`,!e.u&&`_kn`]),I(e.b,[`_kk`,!e.u&&`_km`]),L(e.b,`inert`,!e.u),R(e.g,e.u>99?`99+`:e.u),I(e.j,[`_ko`,!!e.u&&`_km`]),iN(e,St(e.u,`comment`)),WM(e)}),oN=N(21,BM),sN=N(37),cN=N(22,e=>sN(e,uN(e))),lN=e=>()=>{(async()=>{if(e.a4&&!e.x){UM(e,!0);try{await e.v(e.a4?.id)}finally{UM(e,!1)}}})()},uN=e=>()=>{(async()=>{YM(e,{ok:await e.w()})})()};F.r0=lN,F.r1=uN;var dN=`<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 O_(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
1588
1588
|
}`}function ER(e){return`${wR}
|
|
1589
1589
|
@layer unsafe {
|
|
1590
1590
|
${e}
|
|
1591
|
-
}`}var DR=new WeakMap;function OR(e){let t=DR.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(DP,`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(),DR.set(e,i),i}function kR(e,t){if(!e.isConnected)return;let n=OR(t);if(n==null)return;let r=t.querySelector(`style[${OP}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(OP,``),t.appendChild(i)),i.textContent=`:host { ${kP}: ${n}px; }`}var AR;function jR(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){AR??(AR=new CSSStyleSheet,AR.replaceSync(TR(CR)));let t=!1;try{e.adoptedStyleSheets=[AR],t=!0}catch{}if(t){e.querySelector(`style[${TP}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(TP,``),t.textContent=TR(CR),e.prepend(t)}}function MR(e,t){NR(e,t),jR(t),kR(e,t)}function NR(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`});MR(this,e)}}if(customElements.define(wP,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(wP)))e instanceof HTMLElement&&MR(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var PR=e=>e.startsWith(`f::`)?e.slice(3):e;function FR(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function IR(e,t){return e===``?t:`${e}/${t}`}function LR({files:e,path:t,isFolder:n,nextBasename:r}){let i=PR(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}=FR(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=IR(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 RR(e){return e.endsWith(`/`)}function zR(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 BR(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 VR(e,t){return t.includes(e)?BR(t):[e]}function HR(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 UR(e,t){return{draggedPaths:e,target:t}}function WR(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(RR(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function GR(e,t){return t.kind===`root`||t.directoryPath==null?zR(e):t.directoryPath}function KR(e,t){let n=e.map(e=>{let n=GR(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 qR(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 JR(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(!qR(vR.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 YR(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function XR(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 ZR(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function QR(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 ZR(e,t.path)?n?e:null:e;case`move`:return XR(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=QR(r,e,n),r==null)return null;return r}}}function $R(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function ez(e){switch(e.operation){case`add`:return{...$R(e),operation:`add`,path:e.path};case`remove`:return{...$R(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...$R(e),from:e.from,operation:`move`,to:e.to}}}function tz(e){return{...$R(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>ez(e)),operation:`batch`}}function nz(e){switch(e.operation){case`add`:case`remove`:case`move`:return ez(e);case`batch`:return tz(e);default:return null}}function rz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function iz(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 az(e){return iz(e).at(-1)??null}function oz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function sz(e){return e.endsWith(`/`)}var cz=e=>e.toLowerCase();function lz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function uz(e){return e.endsWith(`/`)?e.slice(0,-1):e}function dz(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var fz=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},pz=Symbol(`FILE_TREE_RENAME_VIEW`),mz=512,hz=512;function gz(e){return e===`top`||e===`center`?e:`nearest`}function _z(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=iz(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 vz(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:_z(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var yz=class e{static{Object.defineProperty(e.prototype,pz,{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=JR({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=az(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:gz(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<=hz){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=VR(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=UR(t.draggedPaths,n);(WR(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}HR(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=UR(e.draggedPaths,t);if(WR(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=KR(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=sz(r),a=uz(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of iz(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=lz(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,sz(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,sz(e)?{recursive:!0}:void 0);return}let t=sz(e),n=LR({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:uz(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(dz(n.sourcePath,t),dz(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=JR({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=!rz(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=az(e),n=oz(e,t),r=null,i=null;for(let e of this.#be()){if(az(e)!==t)continue;let a=oz(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=iz(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=!rz(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 vR({...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 iz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(cz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(cz),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 iz(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:fz(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 iz(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 iz(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=vz(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,mz)),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=QR(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=QR(this.#c,e,!0),r=[...this.#B].map(t=>QR(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=QR(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return rz(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&&YR(e)&&(this.#i=null);let t=YR(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=nz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},bz=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 xz(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 Sz(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 Cz(e,t){return t?`${e}/`:e}function wz(e,t=null){let n=bz(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=Ez(t);e!=null&&kz({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 Tz(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=Dz(e);t!=null&&(c=Oz({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=Ez(e);t!=null&&(c=kz({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:Mz(i),statusByPath:i}:e}function Ez(e){return Dz(e.path)}function Dz(e){let t=xz(e);if(t!=null)return{canonicalPath:Cz(t.path,t.isDirectory),isDirectory:t.isDirectory}}function Oz({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),jz(t,n,e),!0)}function kz({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??Az(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function Az(e,t,n){for(let r of Sz(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function jz(e,t,n){for(let r of Sz(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function Mz(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz={},Uz=[],Wz=Array.isArray,Gz=Uz.slice,Kz=Object.assign;function qz(e){e&&e.parentNode&&e.remove()}function Jz(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?Gz.call(arguments,2):n),Yz(e,o,r,i,null)}function Yz(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??++Nz,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function Xz(e){return e.children}function Zz(e,t){this.props=e,this.context=t,this.__g=0}function Qz(e,t){if(t==null)return e.__?Qz(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`?Qz(e):null}function $z(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 $z(e)}}function eB(e){(8&e.__g||!(e.__g|=8)||!Pz.push(e)||Iz++)&&Fz==Z.debounceRendering||((Fz=Z.debounceRendering)||queueMicrotask)(tB)}function tB(){for(var e,t,n,r,i,a,o,s,c=1;Pz.length;)Pz.length>c&&Pz.sort(Lz),e=Pz.shift(),c=Pz.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=Kz({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),lB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??Qz(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,dB(a,n,o),n.__e!=i&&$z(n)));Iz=0}function nB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||Uz,b=t.length;for(c=rB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?Hz:y[m.__i]||Hz,m.__i=f,_=lB(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&mB(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=iB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function rB(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?Yz(null,o,null,null,null):Wz(o)?Yz(Xz,{children:o},null,null,null):o.constructor==null&&o.__b>0?Yz(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=aB(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=Qz(s)),hB(s,s));return r}function iB(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=iB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Qz(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function aB(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 oB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function sB(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||oB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||oB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Rz,`$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=zz,e.addEventListener(t,a?Vz:Bz,a)):e.removeEventListener(t,a?Vz:Bz,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 cB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=zz++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function lB(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,ee,te,w,ne,re,T,E,ie,D=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 D==`function`)try{if(v=t.props,y=`prototype`in D&&D.prototype.render,b=(d=D.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 D(v,x):(t.__c=f=new Zz(v,x),f.constructor=D,f.render=gB),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&&D.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Kz({},f.__s)),Kz(f.__s,D.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&D.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&D.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,ee=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),te=0;te<f._sb.length;te++)f.__h.push(f._sb[te]);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&&++ee<25);f.state=f.__s,f.getChildContext!=null&&(r=Kz({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=d,d!=null&&d.type===Xz&&d.key==null&&(w=fB(d.props.children)),s=nB(e,Wz(w)?w:[w],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(ne=0,re=!1,t.__u|=c?160:128,t.__c.__z=[],T=0;T<a.length;T++)(E=a[T])==null||re||(E.nodeType==8&&E.data==`$s`?(ne>0&&t.__c.__z.push(E),ne++,a[T]=null):E.nodeType==8&&E.data==`/$s`?(--ne>0&&t.__c.__z.push(E),re=ne===0,s=a[T],a[T]=null):ne>0&&(t.__c.__z.push(E),a[T]=null));if(!re){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ie=a.length;ie--;)qz(a[ie]);uB(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||uB(t);Z.__e(e,t,n)}else s=t.__e=pB(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function uB(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(uB)}function dB(e,t,n){for(var r=0;r<n.length;r++)mB(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 fB(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Wz(e)?e.map(fB):Kz({},e)}function pB(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&&=Gz.call(e.childNodes),v=n.props||Hz,!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;sB(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&&!_||sB(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=``),nB(b==`template`?e.content:e,Wz(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Qz(n,0),s,c,l),a!=null)for(u=a.length;u--;)qz(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||sB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&sB(e,u,g,v[u],i))}return e}function mB(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 hB(e,t,n){var r,i;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||mB(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]&&hB(r[i],t,n||typeof e.type!=`function`);n||qz(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function gB(e,t,n){return this.constructor(e,n)}function _B(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=Jz(Xz,null,[e]),i=[],a=[],lB(t,e,r||Hz,Hz,t.namespaceURI,r?null:t.firstChild?Gz.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),dB(i,e,a)}function vB(e,t){e.__u|=32,_B(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 Iz=0,e}},Nz=0,Zz.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Kz({},this.state);typeof e==`function`&&(e=e(Kz({},n),this.props)),e&&Kz(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),eB(this))},Zz.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),eB(this))},Zz.prototype.render=Xz,Pz=[],Iz=0,Lz=function(e,t){return e.__v.__b-t.__v.__b},Rz=/(PointerCapture)$|Capture$/i,zz=0,Bz=cB(!1),Vz=cB(!0);var yB=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:--yB,__i:-1,__u:0,__source:i,__self:a};return Z.vnode&&Z.vnode(l),l}var bB=16,xB=16,SB={};function CB({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}=SB[e]??{width:bB,height:xB},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 wB=e=>e!==void 0&&/\s/.test(e),TB=(e,t)=>{let n=t=>wB(e[t-1])||wB(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},EB=e=>TB(e,Math.ceil(e.length/2)),DB=e=>{if(e.length<2)return[e,``];let t=EB(e);return[e.slice(0,t),e.slice(t)]},OB=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:EB(e);return[e.slice(0,r),e.slice(r)]},kB=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)]},AB=(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)]},jB=(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)]},MB=(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 NB({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 PB(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 FB({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(PB,{mode:t,children:e},`content`),o=Q(NB,{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 IB({children:e,...t}){"use no memo";return Q(FB,{mode:`truncate`,...t,children:e})}function LB({children:e,...t}){"use no memo";return Q(FB,{mode:`fruncate`,...t,children:e})}function RB({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(IB,{...s,children:t[0]}),l=Q(LB,{...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`?LB:IB,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=DB:r===`extension`?t=OB:r===`leaf-path`&&(t=kB);else if(typeof r==`number`)t=AB,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=jB:e===`first`&&(t=MB)}else typeof r==`function`&&(t=r);t??=DB;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(IB,{...s,..._,children:f}),l=Q(LB,{...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 zB={endIndex:-1,startIndex:-1};function BB(e,t,n){return Math.min(Math.max(e,t),n)}function VB(e,t){return e<0||t<e?zB:{endIndex:t,startIndex:e}}function HB(e){return e.startIndex<0||e.endIndex<e.startIndex}function UB(e,t){return HB(e)?0:(e.endIndex-e.startIndex+1)*t}function WB(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function GB(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function KB(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 qB(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 JB(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 YB(e,t,n){if(e.length===0||t<=0)return[];let r=JB(e),i=KB(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=qB(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 XB(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=BB(t.scrollTop,0,o),c=t.stickyRows??YB(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=WB(s,n,t.itemHeight),m=WB(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?zB:VB(m,GB(u+d,n,t.itemHeight)),y=g+1,b=HB(v)?zB:VB(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=UB(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:HB(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var ZB={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},QB={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},$B=`Contains git status items`;function eV(e){return e.current?!0:(e.current=!0,!1)}function tV(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 nV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return tV({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 rV(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 iV(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 aV(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 oV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function sV(e,t){return e!=null&&e>0?e:t}function cV(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 lV(e,t,n,r,i=0){let a=tV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function uV(e,t,n,r,i,a,o=0){let s=nV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function dV(e,t,n,r,i,a){let o=rV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function fV(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function pV(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function mV({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 hV(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 gV(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 _V,vV,yV,bV,xV=Object.is,SV=0,CV=[],wV=Z,TV=wV.__b,EV=wV.__r,DV=wV.diffed,OV=wV.__c,kV=wV.unmount,AV=wV.__;function jV(e,t){wV.__h&&wV.__h(vV,e,SV||t),SV=0;var n=vV.__H||(vV.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function MV(e){return SV=1,NV(WV,e)}function NV(e,t,n){var r=jV(_V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):WV(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);xV(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=vV,!vV.__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,xV(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};vV.__f=!0;var a=vV.shouldComponentUpdate,o=vV.componentWillUpdate;vV.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)},vV.shouldComponentUpdate=i}return r.__N||r.__}function PV(e,t){var n=jV(_V++,3);!wV.__s&&UV(n.__H,t)&&(n.__=e,n.u=t,vV.__H.__h.push(n))}function FV(e,t){var n=jV(_V++,4);!wV.__s&&UV(n.__H,t)&&(n.__=e,n.u=t,vV.__h.push(n))}function $(e){return SV=5,IV(function(){return{current:e}},[])}function IV(e,t){var n=jV(_V++,7);return UV(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function LV(e,t){return SV=8,IV(function(){return e},t)}function RV(){for(var e;e=CV.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(VV),e.__H.__h.forEach(HV),e.__H.__h=[]}catch(t){e.__H.__h=[],wV.__e(t,e.__v)}}wV.__b=function(e){vV=null,TV&&TV(e)},wV.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),AV&&AV(e,t)},wV.__r=function(e){EV&&EV(e),_V=0;var t=(vV=e.__c).__H;t&&(yV===vV?(t.__h=[],vV.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(VV),t.__h.forEach(HV),t.__h=[],_V=0)),yV=vV},wV.diffed=function(e){DV&&DV(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(CV.push(t)!==1&&bV===wV.requestAnimationFrame||((bV=wV.requestAnimationFrame)||BV)(RV)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),yV=vV=null},wV.__c=function(e,t){t.some(function(e){try{e.__h.forEach(VV),e.__h=e.__h.filter(function(e){return!e.__||HV(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],wV.__e(n,e.__v)}}),OV&&OV(e,t)},wV.unmount=function(e){kV&&kV(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{VV(e)}catch(e){t=e}}),n.__H=void 0,t&&wV.__e(t,n.__v))};var zV=typeof requestAnimationFrame==`function`;function BV(e){var t,n=function(){clearTimeout(r),zV&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);zV&&(t=requestAnimationFrame(n))}function VV(e){var t=vV,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),vV=t}function HV(e){var t=vV;e.__c=e.__(),vV=t}function UV(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!xV(t,e[n])})}function WV(e,t){return typeof t==`function`?t(e):t}function GV(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(Xz,{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(IB,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function KV(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function qV(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function JV(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 YV({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=XB(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:JV(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?JV(u,1,t,o):i&&r<=0&&c.length>0?YB(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 XV=400,ZV=40,QV=18;function $V(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))?eH(e,t,n):a instanceof HTMLElement?a:null}function eH(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 tH(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 nH(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 rH(){return navigator.vendor!==`Apple Computer, Inc.`}function iH(e,t){let n=e-t.top;if(n<ZV)return-Math.ceil((ZV-Math.max(0,n))/ZV*QV);let r=t.bottom-e;return r<ZV?Math.ceil((ZV-Math.max(0,r))/ZV*QV):0}function aH(e,t){if(e!=null){let t=ZB[e];return t==null?null:{text:t,title:QB[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:$B}:null}function oH(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 sH(e){return e!=null&&`toggle`in e}function cH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function lH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function uH(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function dH(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function fH(e,t){return t&&dH(e)||(e.ctrlKey||e.metaKey)&&cH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var pH=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function mH(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 hH(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 gH(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function _H(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function vH(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function yH(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 bH(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 xH(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 SH(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=xH(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 CH(e,t){return{kind:e.kind,name:qV(e),path:t}}function wH(e){return e==null?void 0:`${e}__tree`}function TH(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function EH(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function DH(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`?EH(e.icon)?t(e.icon):{name:e.icon}:EH(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(CB,{...n})})}function OH(e){e!=null&&iV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function kH(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=KV(e);return Q(Xz,{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(CB,{...t(`file-tree-icon-chevron`)}):Q(CB,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?GV(e,c,a):c??Q(RB,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:DH(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:DH(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(CB,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function AH(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:ee,contextMenuButtonVisibility:te,contextMenuRightClickEnabled:w,registerRenameInput:ne,registerButton:re,resolveIcon:T,renderDecorationForRow:E,openContextMenuForRow:ie,onRowClick:D,onKeyDown:ae}=e,O=KV(t),{isParked:oe=!1,mode:se=`flow`,style:k}=r,ce=se===`sticky`,le=_?.get(O)??null??oH(t.ancestorPaths,v,y),A=t.kind===`directory`&&(b?.has(O)??!1),j=E(t,O),ue=aH(le,A),M=S&&ee,N=j!=null||x||M,P=M&&te===`always`,de=a.getPath()===O,F=de?a.getValue():``,fe=ce||!de?null:Q(mV,{ref:ne,ariaLabel:`Rename ${qV(t)}`,isFlattened:t.isFlattened,value:F,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),pe=kH(t,T,{actionLaneEnabled:M,customDecoration:j,decorationLaneEnabled:N,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:ue,gitLaneActive:x,renameInput:fe,showDecorativeActionAffordance:P}),I={...hV({ariaLabel:qV(t),domId:t.isFocused?TH(h,O,oe):void 0,extraStyle:k,features:{actionLaneEnabled:M,contextMenuButtonVisibility:M?te:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:oe,itemHeight:g,mode:se,row:t,state:{containsGitChange:A,effectiveGitStatus:le,isContextHovered:s===O,isDragTarget:l?.kind===`directory`&&l.directoryPath===O,isDragging:c?.has(O)===!0,isFocusRinged:t.isFocused&&o===O},targetPath:O}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),w&&(i.focusMountedPathFromInput(O),ie(t,O,{anchorRect:gH(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ce?void 0:()=>{i.focusMountedPathFromInput(O)},onKeyDown:ce?void 0:ae,ref:e=>{re(O,e)}};return!ce&&de?Q(`div`,{...I,children:pe}):Q(`button`,{...I,type:`button`,draggable:u&&!oe,onDragEnd:u&&!oe?p:void 0,onDragStart:u&&!oe?e=>{f(e,t,O)}:void 0,onMouseDown:e=>{if(ce){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!oe?e=>{m(e,t,O)}:void 0,onClick:e=>{D(e,t,O,se)},children:pe})}function jH(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(KV(e))).map((n,r)=>AH(e,n,t.start+r))}function MH({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=SR,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),ee=$(null),te=$(new Map),w=$(new Map),ne=$(()=>{}),re=$(null),T=$(0),E=$(!1),ie=$(null);ie.current!==t&&(E.current=!1,ie.current=t);let D=$(!1),ae=$(null),O=$(null),oe=$(!1),se=$(null),k=$(null),ce=$(null),le=$(null),A=$(null),j=$(null),ue=$(null),M=$(null),N=$(!1),P=$(null),de=$(null),F=$(null),fe=$(null),pe=IV(()=>new Map,[]),[,I]=MV(0),me=$(!1),[he,ge]=MV(null),[L,_e]=MV(null),[ve,R]=MV(null),[ye,z]=MV(null),[B,be]=MV(0),[V,xe]=MV(null),Se=$(V);Se.current=V;let Ce=$(null),we=$(null),Te=$(null),Ee=$(null),De=$(null),Oe=$(!1),ke=()=>{we.current=null,Te.current=null,Ee.current=null},Ae=(e,t)=>{we.current=e,Te.current=null,Ee.current=t==null?null:{path:e,scrollTop:t}},je=(e,t)=>{we.current=null,Te.current={path:e,viewportOffset:t},Ee.current=null},Me=$(d===`retain`&&t.isSearchOpen()),[Ne,Pe]=MV(p);PV(()=>{p||Pe(!1)},[p]);let Fe=$(!1),Ie=LV(()=>{Fe.current=!0,Pe(e=>e&&!1)},[]),[Le,Re]=MV(()=>YV({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[ze,Be]=MV(!1);PV(()=>{Be(!0)},[]);let Ve=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,He=e?.contextMenu?.triggerMode??(Ve?`right-click`:`both`),Ue=He===`both`||He===`button`,We=e?.contextMenu?.buttonVisibility??`when-needed`,Ge=He===`both`||He===`right-click`;FV(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;De.current=t,_e(t),z(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Oe.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 Ke=LV((e,t)=>{vH(te.current,e,t)},[]),qe=LV((e,t)=>{vH(w.current,e,t)},[]),Je=LV(e=>{x.current=e},[]),Ye=LV(e=>yH(e,w.current,te.current),[]),Xe=n!=null||r!=null||i!=null,{resolveIcon:Ze}=IV(()=>zP(a),[a]),Qe=t[pz](),$e=Qe.getPath(),et=$e!=null,tt=t.isSearchOpen(),nt=t.getSearchValue(),H=t.getFocusedPath(),U=t.getFocusedIndex(),rt=t.getScrollRequest(),it=t.isDragAndDropEnabled(),at=t.getDragSession(),ot=IV(()=>at==null?null:new Set(at.draggedPaths),[at]),st=at?.target??null,ct=at?.primaryPath??null,lt=wH(o),{overlayHeight:ut,overlayRows:dt,snapshot:ft,visibleRows:pt}=Le,mt=ft.physical.viewportHeight,ht=IV(()=>({end:ft.window.endIndex,start:ft.window.startIndex}),[ft.window.endIndex,ft.window.startIndex]),gt=dt,_t=ft.sticky.rows,vt=ft.physical.totalHeight,yt=ft.sticky.height,bt=IV(()=>new Set(_t.map(e=>KV(e.row))),[_t]),xt=U>=0&&U>=ht.start&&U<=ht.end,St=LV((e,t)=>u?.({item:CH(e,t),row:e})??null,[u]),Ct=LV(e=>iV(e==null?null:te.current.get(e)??null)?!0:iV(S.current),[]),wt=LV(e=>{Ct(t.focusNearestPath(e))},[t,Ct]),Tt=$(wt);Tt.current=wt;let Et=$(!0),Dt=$(()=>{}),Ot=LV((t=!0)=>{let n=Se.current;n!=null&&(Et.current=Et.current&&t,xe(null),e?.contextMenu?.onClose?.(),Et.current&&wt(n.path))},[e?.contextMenu,wt]);Dt.current=Ot;let kt=LV(e=>{let t=e==null?null:_H(S.current,e);R(e=>e===t?e:t)},[]),At=LV((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Ye(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Ae(n,e?.scrollTop??null),D.current=!0,ge(e=>e===n?e:n)}i.focus(),kt(a),Et.current=!0,xe({anchorRect:r?.anchorRect??null,item:CH(e,n),path:n,source:r?.source??`keyboard`})},[t,Ye,kt]),jt=LV(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=oV(e,mt);se.current=U<0||e==null?null:Math.max(0,Math.min(U*s-e.scrollTop,Math.max(0,t-s))),oe.current=!0}t.startRenaming(e)!==!1&&(z(`focus`),I(e=>e+1))}},[t,U,s,l,mt]),Mt=LV((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=oV(i,mt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:YV({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return D.current=!0,dV(i,a,s,l,u,d),ne.current(),Ce.current=n?e:null,!0},[t,s,c,mt,h]),Nt=()=>y.current===!0||fe.current!=null||N.current===!0,Pt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Ft=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},It=()=>{le.current!=null&&(clearTimeout(le.current),le.current=null),ce.current=null},Lt=()=>{j.current?.remove(),j.current=null},Rt=()=>{Ft(k.current),k.current=null,A.current=null},zt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Bt=()=>{M.current?.(),M.current=null,fe.current!=null&&(clearTimeout(fe.current),fe.current=null),N.current=!1,P.current=null,F.current=null,de.current!=null&&(de.current.setAttribute(`draggable`,`true`),de.current.style.removeProperty(`touch-action`),de.current=null),Lt(),It(),Rt(),ue.current=null},Vt=(e,n)=>{let r=S.current?.getRootNode(),i=tH($V(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Ht=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){It();return}let r=t.getItem(e.directoryPath),i=sH(r)?r:null;if(i==null||i.isExpanded()){It();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ce.current!==a&&(It(),ce.current=a,le.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ut=()=>{k.current=null;let e=A.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=iH(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,ne.current()),Ht(Vt(e.clientX,e.clientY)),k.current=Pt(Ut)},Wt=(e,t)=>{A.current={clientX:e,clientY:t},k.current??=Pt(Ut)},Gt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Bt(),Lt(),It(),Rt(),t.startDrag(r)===!1){e.preventDefault();return}if(ue.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),rH())){let t=nH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),zt(t),j.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Kt=()=>{Lt(),It(),Rt(),ue.current=null,t.cancelDrag()},qt=(e,n,r)=>{if(fe.current!=null||N.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;F.current={clientX:i.clientX,clientY:i.clientY},de.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!N.current;fe.current!=null&&(clearTimeout(fe.current),fe.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),M.current===o&&(M.current=null),t&&(a.setAttribute(`draggable`,`true`),de.current===a&&(de.current=null),F.current=null)},s=e=>{let t=e.touches[0],n=F.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),M.current=o,fe.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),de.current===a&&(de.current=null),F.current=null;return}N.current=!0,de.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),ue.current=n;let e=a.getBoundingClientRect(),s=nH(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`}),zt(s),j.current=s,P.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=P.current;n!=null&&j.current!=null&&(j.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Ht(Vt(t.clientX,t.clientY)),Wt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Vt(n.clientX,n.clientY),t.completeDrag(),Bt()},u=()=>{t.cancelDrag(),Bt()};M.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)},XV)},Jt=e=>{if(V!=null){if(e.key===`Escape`){Ot(),e.preventDefault(),e.stopPropagation();return}pH.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Qe.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Qe.cancel();else if(e.key===`Enter`)Qe.commit();else return;z(`focus`),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){jt(H??void 0),e.preventDefault(),e.stopPropagation();return}if(tt){if(e.key===`Escape`)oe.current=!1,se.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=oV(n,mt);se.current=U<0||n==null?null:Math.max(0,Math.min(U*s-n.scrollTop,Math.max(0,r-s))),oe.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;z(`focus`),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&lH(e)){t.openSearch(e.key),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ve&&dH(e),r=fH(e,Ve),i=r&&S.current!=null?aV(S.current):null,a=r?new Set(bH(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==H&&a.has(o)){let e=C.current;Ae(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=sH(p)?p:null,h=u!=null&&(bt.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=yH(u,w.current,te.current);e==null||n==null?y=!1:At(e,u)}else if((e.ctrlKey||e.metaKey)&&cH(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;z(`focus`);let b=t.getFocusedPath(),x=b!=null&&(bt.has(b)||a.has(b)),ee=g&&b!==u,ne=n&&c&&o===u&&b===u;if((h||ne)&&b!=null&&(ee&&x||ne))Ae(b,v?.scrollTop??null),D.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(je(b,SH(S.current,v,i,u,s,yt,mt)),D.current=!0,ge(e=>e===b?e:b)):ke()}I(e=>e+1),e.preventDefault(),e.stopPropagation()};FV(()=>{if(f&&tt){if(Me.current){Me.current=!1;return}iV(ee.current)}},[tt,f]),FV(()=>{let e=x.current;switch(pV({hasRenderedInput:e!=null,previousRenamingPath:O.current,renamingPath:$e})){case`reset`:O.current=null;return;case`reveal-canonical`:$e!=null&&Mt($e,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(Ce.current=null,O.current=$e,iV(e),e.select());return}},[ht.end,ht.start,$e,Mt,bt]),FV(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=aV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),D.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,aV(e)!=null){r();return}D.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),D.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)}},[]),FV(()=>{let e=S.current;e!=null&&(ft.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[ft.physical.scrollTop]),FV(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;re.current=oV(n,g);let a=()=>{let e=t.getVisibleCount(),r=sV(re.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Re(YV({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!E.current){E.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=sV(re.current,g),i=t.getVisibleRows(e,e)[0]??null;lV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}ne.current=a;let o=t.subscribe(()=>{eV(me)&&I(e=>e+1),a()}),l=()=>{Oe.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,be(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Oe.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Se.current!=null&&y.current&&Dt.current(),Oe.current===!0){y.current=!1;return}_e(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=>{re.current=(e[0]==null?null:cV(e[0]))??oV(n,g),a()}):null;return x?.observe(n),()=>{ne.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,re.current=null,x?.disconnect()}},[t,g,s,c,h]),FV(()=>{Ve||V==null||Ot(!1)},[Ot,Ve,V]);let Yt=IV(()=>V==null?null:`${V.path}::${V.source}`,[V]);FV(()=>{if(Yt==null){m?.clearSlotContent(jP);return}let t=Se.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??hH(n.getBoundingClientRect()),close:e=>{Dt.current(e?.restoreFocus??!0)},restoreFocus:()=>{Et.current&&Tt.current(Se.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(jP,i),e?.contextMenu?.onOpen?.(t.item,r),OH(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&OH(i)}),()=>{m?.clearSlotContent(jP)}},[Yt,e?.contextMenu,m]),FV(()=>{V!=null&&t.getItem(V.path)==null&&Ot()},[Ot,V,t]),FV(()=>{if(V==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(mH(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Ot())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Ot())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Ot,V]),FV(()=>{let e=C.current,n=S.current;if(e==null||n==null){ae.current=H;return}let r=H==null?null:te.current.get(H)??null,i=aV(n),a=i?.dataset.itemPath??null,o=et&&x.current===i,c=f&&ee.current===i,l=oe.current&&!tt,u=se.current??0,d=Ce.current,p=we.current,m=Te.current,g=Ee.current,_=i!=null,v=D.current||_,y=ae.current!==H,b=p!=null&&p===H&&H!=null,w=!1,re=!1;if(rt!=null&&rt.id!==T.current){T.current=rt.id;let n=rt.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,mt-s))):yt;w=!0,re=uV(e,n,s,mt,vt,rt.offset,t)}t.clearScrollRequest(rt.id)}let E=!w&&l&&dV(e,U,s,mt,vt,u),ie=!w&&d!=null&&d===H&&dV(e,U,s,mt,vt,yt),O=!w&&m!=null&&m.path===H&&dV(e,U,s,mt,vt,m.viewportOffset),k=!w&&g!=null&&g.path===H&&e.scrollTop!==g.scrollTop;if(k&&(e.scrollTop=g.scrollTop),(k||re||ie||O||E||v&&y&&d!==H&&!b&&lV(e,U,s,mt,yt))&&ne.current(),w){ae.current=H;return}if(!v){ae.current=H;return}if(o){ae.current=H;return}if(c&&!l){ae.current=H;return}if(r==null){l&&U>=0&&(dV(e,U,s,mt,vt,u),ne.current()),ae.current=H;return}(y||l||d===H||p===H||m?.path===H||g?.path===H||a==null||a!==H)&&(iV(r),d===H&&(Ce.current=null),p===H&&(we.current=null),m?.path===H&&(Te.current=null),g?.path===H&&(Ee.current=null),oe.current=!1,se.current=null),ae.current=H},[t,U,H,xt,s,et,tt,ht,mt,f,rt,h,yt,vt,pt]);let Xt=U>=0&&U>=ft.visible.startIndex&&U<=ft.visible.endIndex,Zt=H!=null&>.some(e=>KV(e.row)===H),Qt=Xt||Zt,$t=Ue&&D.current===!0&&Qt?H:null,en=ye===`pointer`?L:null,tn=V?.path??De.current??en??$t??L,nn=V?.source===`right-click`;FV(()=>{y.current&&V==null||kt(Ye(tn))},[V,Ye,ht,mt,B,gt,tn,kt,pt]);let rn=LV(e=>{if(y.current||mH(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&&z(e=>e===`pointer`?e:`pointer`),_e(e=>e===i?e:i)},[]),an=LV(()=>{_e(null)},[]);FV(()=>{if(!it)return;let e=()=>{Bt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Bt(),t.cancelDrag()}},[t,it]);let on=e=>{if(!it||t.getDragSession()==null||N.current)return;let n=tH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Ht(t.getDragSession()?.target??null),Wt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},sn=e=>{if(!it||t.getDragSession()==null||N.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(It(),Rt(),t.setDragTarget(null))},cn=e=>{it&&t.getDragSession()!=null&&!N.current&&(e.preventDefault(),Vt(e.clientX,e.clientY),t.completeDrag(),Lt(),It(),Rt(),ue.current=null)},ln=ft.window.height,un=ft.window.offsetTop,dn=Math.min(0,mt-ln),fn=Math.min(0,mt-ln-yt),pn=he===H||oe.current,mn=H!=null&&pn&&!xt&&U>=0?pt[U]??t.getVisibleRows(U,U)[0]??null:null,hn=mn==null?null:fV(U,s,ht,ln),gn=ue.current,_n=ct!=null&&gn!=null&&gn.path===ct&&gn.index>=ht.start&&gn.index<=ht.end,vn=ct!=null&&gn!=null&&gn.path===ct&&!_n&&gn.path!==mn?.path?gn:null,yn=vn==null?null:fV(vn.index,s,ht,ln),bn=uH((U>=0?pt[U]??t.getVisibleRows(U,U)[0]??null:null)?.ancestorPaths.at(-1)??null),xn=tt&&H!=null?TH(o,H,!xt):void 0,Sn=V?.path??(tt?H:he),Cn=V?.path??L,wn=Ye(tn),Tn=Ve&&Ue&&!nn&&!et&&wn!=null&&ve!=null&&tn!=null,En=Ve&&(Tn||V!=null),Dn=V?.anchorRect,On=Dn==null&&wn!=null&&ve!=null&&(V!=null||Tn)?ve:null,kn=Dn==null?On==null?void 0:{top:`${On}px`}:{left:`${Dn.left}px`,position:`fixed`,right:`auto`,top:`${Dn.top}px`},An=nn?{opacity:`0`}:void 0,jn=LV((e,n,r,i)=>{let a=gV({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:tt,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>=ft.visible.startIndex&&n.index<=ft.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(D.current=!0,ge(e=>e===c?e:c),z(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&Mt(c,{targetOffset:`sticky-parents`})},[t,tt,ft.visible.endIndex,ft.visible.startIndex,Mt]),Mn=()=>{if(y.current||!Ue||tn==null||wn==null)return;let e=t.getItem(tn);e!=null&&(kt(wn),Et.current=!0,xe({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:wn.getAttribute(`aria-label`)??tn,path:e.getPath()},path:e.getPath(),source:`button`}))},Nn={contextHoverPath:Cn,contextMenuButtonTriggerEnabled:Ue,contextMenuButtonVisibility:We,contextMenuEnabled:Ve,contextMenuRightClickEnabled:Ge,contextMenuTriggerMode:He,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:it,draggedPathSet:ot,dragTarget:st,gitLaneActive:Xe,gitStatusByPath:n,handleRowDragEnd:Kt,handleRowDragStart:Gt,handleRowTouchStart:qt,ignoredGitDirectories:r,ignoredInheritanceCache:pe,instanceId:o,itemHeight:s,onKeyDown:Jt,onRowClick:jn,openContextMenuForRow:At,registerButton:Ke,registerRenameInput:Je,renameView:Qe,renderDecorationForRow:St,resolveIcon:Ze,shouldSuppressContextMenu:Nt,visualFocusPath:Sn},Pn={...Nn,registerButton:qe};return Q(`div`,{ref:S,id:lt,"data-file-tree-context-menu-button-visibility":Ve&&Ue?We:void 0,"data-file-tree-context-menu-trigger-mode":Ve?He:void 0,"data-file-tree-has-context-menu-action-lane":Ve&&Ue?`true`:void 0,"data-file-tree-has-git-lane":Xe?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:it?sn:void 0,onDragOver:it?on:void 0,onDrop:it?cn:void 0,onKeyDown:Jt,onPointerLeave:Ve?an:void 0,onPointerOver:Ve?rn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:bn}}),Q(`slot`,{name:AP,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":tt?`true`:`false`,children:Q(`input`,{ref:ee,"aria-activedescendant":xn,"aria-controls":lt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ne?`true`:void 0,value:nt,onBlur:()=>{(d!==`retain`||Fe.current)&&t.closeSearch()},onFocus:Ie,onPointerDown:Ie,onInput:e=>{Ie();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&ze&>.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:`${ut}px`},children:gt.map((e,t)=>AH(Pn,e.row,`sticky:${KV(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${gt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${vt}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${un}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${ln}px`,top:`${dn}px`,bottom:`${fn}px`},children:[jH(Nn,ht,bt),mn!=null&&hn!=null?AH(Nn,mn,`parked:${mn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ct===mn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${hn}px`}}):null,vn!=null&&yn!=null?AH(Nn,vn,`parked-drag:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${yn}px`}}):null]})]})]}),Ve?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":En?`true`:`false`,style:kn,children:[Q(`button`,{ref:v,type:`button`,"data-type":MP,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":V==null?`false`:`true`,"data-visible":Tn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),V!=null){Ot();return}Mn()},tabIndex:-1,style:An,children:Q(CB,{...Ze(`file-tree-icon-ellipsis`)})}),V==null?null:Q(`slot`,{name:jP})]}):null,V==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Ot()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Ot()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var NH={hydrateRoot:(e,t)=>{vB(Jz(MH,t),e)},renderRoot:(e,t)=>{_B(Jz(MH,t),e)},unmountRoot:e=>{_B(null,e)}};function PH(e,t){NH.renderRoot(e,t)}function FH(e,t){NH.hydrateRoot(e,t)}function IH(e){NH.unmountRoot(e)}var LH=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 RH(e,t,n){if(!e.s){if(n instanceof zH){if(!n.s)return void(n.o=RH.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(RH.bind(null,e,t),RH.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var zH=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{RH(r,1,a(this.v))}catch(e){RH(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?RH(r,1,t?t(i):i):n?RH(r,1,n(i)):RH(r,2,i)}catch(e){RH(r,2,e)}},r},e}();Array.isArray;var BH=0;function VH(e){return e!=null&&e.length>0?e:(BH+=1,`pst_ft_${BH}`)}function HH({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??SR)}function UH(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 WH(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 GH(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var KH=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new LH;#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=VH(a),this.#p=wz(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=xR(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new yz({...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&&(IH(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=Tz(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&PH(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(),PH(t.wrapper,this.#w()))}setGitStatus(e){let t=wz(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&PH(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),PH(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),FH(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),PH(r,this.#w())}#C(){return{initialViewportHeight:HH({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(AP,e());return}this.#l.setSlotHtml(AP,this.#e?.header?.html??null)}#k(e){let t=GH(e).find(e=>WH(e)),n=UH(bP(PP(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=GH(e),n=t.find(e=>WH(e)),r=t.filter(e=>e!==n),i=PP(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=UH(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=PP(this.#m);t.colored&&SP(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${EP}]`);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(EP,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=ER(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 MR(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)}};function qH(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 JH(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function YH(e,t){let n=new Set(e),r=new Set(t),i=qH(t),a=new Set([...qH(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(JH(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(JH(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var XH=new Set([`/`,`.`,`-`,`_`,` `]);function ZH(e,t){if(t===0)return!0;let n=e[t-1];if(XH.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function QH(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,ZH(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 $H(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 eU(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]&&ZH(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function tU(e,t,n,r,i){let a=$H(e,n,r);if(!a)return null;let o=eU(e,t,n,r),s=QH(t,a,i),c=o?QH(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function nU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(ZH(e,i))return!0;return!1}function rU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=tU(n,t,r,i,i),c=s??tU(n,t,r,0,i);if(!c)return null;s&&nU(t,r,n,i)&&(a+=20),r.slice(i)===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 iU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function aU(e,t,n,r){let i=[];for(let r of e){let e=rU(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 oU=`_lW _9 _M`,sU=st,cU=(e=>`/${e}&`)(` b`),lU=60;function uU(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 dU=M(0,1,e=>R(e.a,e._.e)),fU=dU,pU=M(0,0,e=>R(e.b,e._.e)),mU=j(0,`<mark> </mark>`,` D `,e=>{pU._(e),I(e.a,`_lU`)},` `,` `,fU),hU=(e,t)=>mU(e,+!t),gU=(e,t)=>{hU(e,t[0]?.hit),_U(e,t[0]?.text)},_U=N(4,e=>{pU(e),dU(e)}),vU=M(0,1,e=>R(e.a,e._.e)),yU=vU,bU=M(0,0,e=>R(e.b,e._.e)),xU=j(0,`<mark> </mark>`,` D `,e=>{bU._(e),I(e.a,`_lU`)},` `,` `,yU),SU=(e,t)=>xU(e,+!t),CU=(e,t)=>{SU(e,t[0]?.hit),wU(e,t[0]?.text)},wU=N(4,e=>{bU(e),vU(e)}),TU=e=>I(e.a,Ye),EU=M(5,0,e=>R(e.b,e._.n)),DU=e=>{EU._(e),I(e.a,oU)},OU=B(34,e=>R(e.b,e._._._._.u),e=>e._._._._,`N5`),kU=e=>{OU(e),I(e.a,`_lV`)},AU=P(2,e=>R(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${le(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),jU=B(29,AU,e=>e._._._,`N11`),MU=e=>{jU(e),NU(e),I(e.a,`_cj`)},NU=B(33,AU,e=>e._._._,`N12`),PU=B(28,e=>R(e.b,e._._._._.k),e=>e._._._._,`N4`),FU=j(0,`<li role=presentation>Recently opened</li>`,` `,TU,`<li role=presentation> </li>`,` D `,e=>{PU(e),I(e.a,Ye)}),IU=P(17,e=>FU(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),LU=B(33,IU,e=>e._._._,`N7`),RU=A(`N6`,e=>{k(e.c,`mousemove`,function(){e._._._.p!==e.o&&TW(e._._._,e.o)}),k(e.c,`click`,function(){e._._._.a1(e.o)})}),zU=e=>{LU(e),HU(e),UU(e),GU(e),I(e.d,`_lS`),I(e.e,`_lT`),RU(e)},BU=j(6,`<span>:<!></span>`,` Db%`,kU),VU=P(16,e=>BU(e,e._._._.u&&e.o===e._._._.y?0:1),2),HU=B(34,VU,e=>e._._._,`N8`),UU=B(35,IU,e=>e._._._,`N9`),WU=P(15,e=>{L(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_ce`,e.o===e._._._.y&&`_cd`])}),GU=B(37,e=>{WU(e),VU(e)},e=>e._._._,`N10`),KU=N(9,IU),qU=N(14,e=>{IU(e),WU(e),VU(e)}),JU=ae(3,`<!><!><!>`,`b%`,0,CU),YU=ae(4,`<!><!><!>`,`b%`,0,gU),XU=P(20,e=>{JU(e,[uU(e.s,e.m,e.t,e.s?.length)]),YU(e,[uU(e.s,e.m,0,Math.max(0,e.t-1))])},2),ZU=N(19,XU),QU=N(18,e=>{L(e.c,`title`,e.s),ZU(e,e.s.lastIndexOf(`/`)+1),XU(e)}),$U=N(12,XU),eW=j(5,`<span> </span>`,` D `,DU),tW=N(13,e=>{eW(e,+!e.n),EU(e)}),nW=(e,t)=>{KU(e,t[0]?.more),QU(e,t[0]?.item?.path),tW(e,t[0]?.item?.hint),$U(e,t[0]?.hits),qU(e,t[1])},rW=B(31,e=>he(e,`c`,e._._.o,KW(e)),e=>e._._,`N15`),iW=A(`N14`,e=>{ge(e,`c`),k(e.d,`click`,function(){e._._.z()})}),aW=e=>{rW(e),oW(e),cW(e),dW(e),I(e.a,`_b9`),ee(e.b),b(e.b,14),te(e.b),I(e.c,Ze),I(e.d,[re,`_ca`]),ie(e.e),w(e.e,16),p(e.e),I(e.f,`_cb`),iW(e)},oW=B(32,e=>{L(e.c,`aria-controls`,e._._.q),L(e.f,`id`,e._._.q)},e=>e._._),sW=_e(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,zU,nW),cW=B(35,e=>sW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`N16`),lW=j(6,`<p> </p>`,` D `,MU),uW=A(`N13`,e=>k(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&TW(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),dW=B(36,e=>{lW(e,+!!e._._.w),uW(e)},e=>e._._,`N17`),fW=j(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><!><!>`)(_,h),((e,t)=>` D/${e}& b D/${t}&m b%c`)(m,T),aW),pW=B(30,e=>fW(e,+!e._.m),0,`N18`),mW=oe(`N19`,`<!><!><!>`,`b%`,pW),hW=me(pW),gW=O(12,e=>{it(e.a,e.m),hW(e)}),_W=P(5,e=>gW(e,e.d,e.e)),vW=N(3,_W),yW=N(4,_W),bW=(e,t)=>{FW(e,t?.query),LW(e,t?.line)},xW=me(rW),SW=V(14,e=>{bW(e,iU(e.o.trim())),xW(e)}),CW=N(24,me(GU)),wW=P(23,e=>CW(e,Math.min(e.p,Math.max(0,e.w-1)))),TW=V(15,wW),EW=N(16),DW=N(27),OW=P(26,e=>DW(e,qW(e)),3),kW=N(25,OW);function AW(e){U(e.a),ut(e.a,mW(e)),H(e.a,`Go to file`),tt(e.a,[`_bH`,`_b8`]),dt(e.a,YW(e)),lt(e.a,!0),rt(e.a),ot(e.a),nt(e.a),at(e.a),ct(e.a,{}),SW(e,``),TW(e,0),EW(e,ce(e)),kW(e,JW(e))}var jW=me(cW,UU),MW=N(21,e=>{zW(e,e.v?.length),OW(e),jW(e)}),NW=P(19,e=>MW(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=aU(e.g,e=>e.path,t,lU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?aU(e.i.items,e=>e.path,t,lU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),PW=me(LU,NU),FW=N(18,e=>{NW(e),PW(e)}),IW=me(HU,OU),LW=N(20,e=>{OW(e),IW(e)}),RW=me(dW),zW=N(22,e=>{wW(e),RW(e)}),BW=N(6,NW),VW=N(7,NW),HW=N(8,e=>{WW(e,e.i?.label),NW(e)}),UW=N(9,OW),WW=N(10,me(PU)),GW=N(11,me(jU)),KW=e=>function(t){SW(e._._,t),TW(e._._,0)},qW=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},JW=e=>()=>{gW(e,!1),SW(e,``),TW(e,0)},YW=e=>t=>{gW(e,t)};F.N3=KW,F.N1=qW,F.N0=JW,F.N2=YW;export{jw as $,aM as A,mC as At,qT as B,XS as Bt,bM as C,FC as Ct,Gj as D,AC as Dt,iM as E,CC as Et,AE as F,dC as Ft,NT as G,SS as Gt,OT as H,KS as Ht,EE as I,VS as It,zT as J,jx as Jt,UT as K,Xx as Kt,mE as L,GS as Lt,RE as M,gC as Mt,zE as N,nC as Nt,sM as O,jC as Ot,NE as P,fC as Pt,mT as Q,ZT as R,US as Rt,xM as S,NC as St,yM as T,RC as Tt,kT as U,BS as Ut,JT as V,WS as Vt,MT as W,kS as Wt,VT as X,d_ as Xt,GT as Y,fx as Yt,pT as Z,Ut as Zt,nN as _,$C as _t,vW as a,ww as at,wM as b,IC as bt,AW as c,Sw as ct,qH as d,bw as dt,Aw as et,YH as f,xw as ft,oN as g,VC as gt,cN as h,lw as ht,UW as i,Dw as it,Lj as j,hC as jt,Bj as k,xC as kt,sU as l,_w as lt,aN as m,pw as mt,GW as n,Ow as nt,yW as o,Cw as ot,KH as p,gw as pt,BT as q,Kx as qt,HW as r,Ew as rt,VW as s,Tw as st,BW as t,kw as tt,cU as u,yw as ut,ZM as v,QC as vt,vM as w,PC as wt,SM as x,LC as xt,CM as y,KC as yt,QT as z,QS as zt};
|
|
1591
|
+
}`}var DR=new WeakMap;function OR(e){let t=DR.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(DP,`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(),DR.set(e,i),i}function kR(e,t){if(!e.isConnected)return;let n=OR(t);if(n==null)return;let r=t.querySelector(`style[${OP}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(OP,``),t.appendChild(i)),i.textContent=`:host { ${kP}: ${n}px; }`}var AR;function jR(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){AR??(AR=new CSSStyleSheet,AR.replaceSync(TR(CR)));let t=!1;try{e.adoptedStyleSheets=[AR],t=!0}catch{}if(t){e.querySelector(`style[${TP}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(TP,``),t.textContent=TR(CR),e.prepend(t)}}function MR(e,t){NR(e,t),jR(t),kR(e,t)}function NR(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`});MR(this,e)}}if(customElements.define(wP,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(wP)))e instanceof HTMLElement&&MR(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var PR=e=>e.startsWith(`f::`)?e.slice(3):e;function FR(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function IR(e,t){return e===``?t:`${e}/${t}`}function LR({files:e,path:t,isFolder:n,nextBasename:r}){let i=PR(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}=FR(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=IR(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 RR(e){return e.endsWith(`/`)}function zR(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 BR(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 VR(e,t){return t.includes(e)?BR(t):[e]}function HR(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 UR(e,t){return{draggedPaths:e,target:t}}function WR(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(RR(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function GR(e,t){return t.kind===`root`||t.directoryPath==null?zR(e):t.directoryPath}function KR(e,t){let n=e.map(e=>{let n=GR(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 qR(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 JR(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(!qR(vR.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 YR(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function XR(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 ZR(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function QR(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 ZR(e,t.path)?n?e:null:e;case`move`:return XR(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=QR(r,e,n),r==null)return null;return r}}}function $R(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function ez(e){switch(e.operation){case`add`:return{...$R(e),operation:`add`,path:e.path};case`remove`:return{...$R(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...$R(e),from:e.from,operation:`move`,to:e.to}}}function tz(e){return{...$R(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>ez(e)),operation:`batch`}}function nz(e){switch(e.operation){case`add`:case`remove`:case`move`:return ez(e);case`batch`:return tz(e);default:return null}}function rz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function iz(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 az(e){return iz(e).at(-1)??null}function oz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function sz(e){return e.endsWith(`/`)}var cz=e=>e.toLowerCase();function lz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function uz(e){return e.endsWith(`/`)?e.slice(0,-1):e}function dz(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var fz=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},pz=Symbol(`FILE_TREE_RENAME_VIEW`),mz=512,hz=512;function gz(e){return e===`top`||e===`center`?e:`nearest`}function _z(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=iz(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 vz(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:_z(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var yz=class e{static{Object.defineProperty(e.prototype,pz,{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=JR({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=az(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:gz(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<=hz){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=VR(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=UR(t.draggedPaths,n);(WR(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}HR(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=UR(e.draggedPaths,t);if(WR(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=KR(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=sz(r),a=uz(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of iz(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=lz(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,sz(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,sz(e)?{recursive:!0}:void 0);return}let t=sz(e),n=LR({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:uz(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(dz(n.sourcePath,t),dz(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=JR({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=!rz(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=az(e),n=oz(e,t),r=null,i=null;for(let e of this.#be()){if(az(e)!==t)continue;let a=oz(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=iz(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=!rz(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 vR({...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 iz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(cz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(cz),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 iz(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:fz(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 iz(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 iz(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=vz(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,mz)),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=QR(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=QR(this.#c,e,!0),r=[...this.#B].map(t=>QR(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=QR(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return rz(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&&YR(e)&&(this.#i=null);let t=YR(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=nz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},bz=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 xz(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 Sz(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 Cz(e,t){return t?`${e}/`:e}function wz(e,t=null){let n=bz(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=Ez(t);e!=null&&kz({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 Tz(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=Dz(e);t!=null&&(c=Oz({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=Ez(e);t!=null&&(c=kz({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:Mz(i),statusByPath:i}:e}function Ez(e){return Dz(e.path)}function Dz(e){let t=xz(e);if(t!=null)return{canonicalPath:Cz(t.path,t.isDirectory),isDirectory:t.isDirectory}}function Oz({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),jz(t,n,e),!0)}function kz({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??Az(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function Az(e,t,n){for(let r of Sz(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function jz(e,t,n){for(let r of Sz(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function Mz(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz={},Uz=[],Wz=Array.isArray,Gz=Uz.slice,Kz=Object.assign;function qz(e){e&&e.parentNode&&e.remove()}function Jz(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?Gz.call(arguments,2):n),Yz(e,o,r,i,null)}function Yz(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??++Nz,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function Xz(e){return e.children}function Zz(e,t){this.props=e,this.context=t,this.__g=0}function Qz(e,t){if(t==null)return e.__?Qz(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`?Qz(e):null}function $z(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 $z(e)}}function eB(e){(8&e.__g||!(e.__g|=8)||!Pz.push(e)||Iz++)&&Fz==Z.debounceRendering||((Fz=Z.debounceRendering)||queueMicrotask)(tB)}function tB(){for(var e,t,n,r,i,a,o,s,c=1;Pz.length;)Pz.length>c&&Pz.sort(Lz),e=Pz.shift(),c=Pz.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=Kz({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),lB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??Qz(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,dB(a,n,o),n.__e!=i&&$z(n)));Iz=0}function nB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||Uz,b=t.length;for(c=rB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?Hz:y[m.__i]||Hz,m.__i=f,_=lB(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&mB(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=iB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function rB(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?Yz(null,o,null,null,null):Wz(o)?Yz(Xz,{children:o},null,null,null):o.constructor==null&&o.__b>0?Yz(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=aB(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=Qz(s)),hB(s,s));return r}function iB(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=iB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Qz(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function aB(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 oB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function sB(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||oB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||oB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Rz,`$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=zz,e.addEventListener(t,a?Vz:Bz,a)):e.removeEventListener(t,a?Vz:Bz,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 cB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=zz++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function lB(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,ee,te,w,ne,re,T,E,ie,D=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 D==`function`)try{if(v=t.props,y=`prototype`in D&&D.prototype.render,b=(d=D.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 D(v,x):(t.__c=f=new Zz(v,x),f.constructor=D,f.render=gB),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&&D.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Kz({},f.__s)),Kz(f.__s,D.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&D.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&D.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,ee=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),te=0;te<f._sb.length;te++)f.__h.push(f._sb[te]);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&&++ee<25);f.state=f.__s,f.getChildContext!=null&&(r=Kz({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=d,d!=null&&d.type===Xz&&d.key==null&&(w=fB(d.props.children)),s=nB(e,Wz(w)?w:[w],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(ne=0,re=!1,t.__u|=c?160:128,t.__c.__z=[],T=0;T<a.length;T++)(E=a[T])==null||re||(E.nodeType==8&&E.data==`$s`?(ne>0&&t.__c.__z.push(E),ne++,a[T]=null):E.nodeType==8&&E.data==`/$s`?(--ne>0&&t.__c.__z.push(E),re=ne===0,s=a[T],a[T]=null):ne>0&&(t.__c.__z.push(E),a[T]=null));if(!re){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ie=a.length;ie--;)qz(a[ie]);uB(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||uB(t);Z.__e(e,t,n)}else s=t.__e=pB(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function uB(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(uB)}function dB(e,t,n){for(var r=0;r<n.length;r++)mB(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 fB(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Wz(e)?e.map(fB):Kz({},e)}function pB(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&&=Gz.call(e.childNodes),v=n.props||Hz,!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;sB(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&&!_||sB(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=``),nB(b==`template`?e.content:e,Wz(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Qz(n,0),s,c,l),a!=null)for(u=a.length;u--;)qz(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||sB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&sB(e,u,g,v[u],i))}return e}function mB(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 hB(e,t,n){var r,i;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||mB(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]&&hB(r[i],t,n||typeof e.type!=`function`);n||qz(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function gB(e,t,n){return this.constructor(e,n)}function _B(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=Jz(Xz,null,[e]),i=[],a=[],lB(t,e,r||Hz,Hz,t.namespaceURI,r?null:t.firstChild?Gz.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),dB(i,e,a)}function vB(e,t){e.__u|=32,_B(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 Iz=0,e}},Nz=0,Zz.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Kz({},this.state);typeof e==`function`&&(e=e(Kz({},n),this.props)),e&&Kz(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),eB(this))},Zz.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),eB(this))},Zz.prototype.render=Xz,Pz=[],Iz=0,Lz=function(e,t){return e.__v.__b-t.__v.__b},Rz=/(PointerCapture)$|Capture$/i,zz=0,Bz=cB(!1),Vz=cB(!0);var yB=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:--yB,__i:-1,__u:0,__source:i,__self:a};return Z.vnode&&Z.vnode(l),l}var bB=16,xB=16,SB={};function CB({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}=SB[e]??{width:bB,height:xB},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 wB=e=>e!==void 0&&/\s/.test(e),TB=(e,t)=>{let n=t=>wB(e[t-1])||wB(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},EB=e=>TB(e,Math.ceil(e.length/2)),DB=e=>{if(e.length<2)return[e,``];let t=EB(e);return[e.slice(0,t),e.slice(t)]},OB=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:EB(e);return[e.slice(0,r),e.slice(r)]},kB=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)]},AB=(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)]},jB=(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)]},MB=(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 NB({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 PB(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 FB({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(PB,{mode:t,children:e},`content`),o=Q(NB,{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 IB({children:e,...t}){"use no memo";return Q(FB,{mode:`truncate`,...t,children:e})}function LB({children:e,...t}){"use no memo";return Q(FB,{mode:`fruncate`,...t,children:e})}function RB({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(IB,{...s,children:t[0]}),l=Q(LB,{...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`?LB:IB,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=DB:r===`extension`?t=OB:r===`leaf-path`&&(t=kB);else if(typeof r==`number`)t=AB,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=jB:e===`first`&&(t=MB)}else typeof r==`function`&&(t=r);t??=DB;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(IB,{...s,..._,children:f}),l=Q(LB,{...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 zB={endIndex:-1,startIndex:-1};function BB(e,t,n){return Math.min(Math.max(e,t),n)}function VB(e,t){return e<0||t<e?zB:{endIndex:t,startIndex:e}}function HB(e){return e.startIndex<0||e.endIndex<e.startIndex}function UB(e,t){return HB(e)?0:(e.endIndex-e.startIndex+1)*t}function WB(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function GB(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function KB(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 qB(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 JB(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 YB(e,t,n){if(e.length===0||t<=0)return[];let r=JB(e),i=KB(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=qB(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 XB(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=BB(t.scrollTop,0,o),c=t.stickyRows??YB(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=WB(s,n,t.itemHeight),m=WB(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?zB:VB(m,GB(u+d,n,t.itemHeight)),y=g+1,b=HB(v)?zB:VB(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=UB(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:HB(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var ZB={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},QB={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},$B=`Contains git status items`;function eV(e){return e.current?!0:(e.current=!0,!1)}function tV(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 nV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return tV({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 rV(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 iV(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 aV(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 oV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function sV(e,t){return e!=null&&e>0?e:t}function cV(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 lV(e,t,n,r,i=0){let a=tV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function uV(e,t,n,r,i,a,o=0){let s=nV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function dV(e,t,n,r,i,a){let o=rV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function fV(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function pV(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function mV({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 hV(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 gV(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 _V,vV,yV,bV,xV=Object.is,SV=0,CV=[],wV=Z,TV=wV.__b,EV=wV.__r,DV=wV.diffed,OV=wV.__c,kV=wV.unmount,AV=wV.__;function jV(e,t){wV.__h&&wV.__h(vV,e,SV||t),SV=0;var n=vV.__H||(vV.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function MV(e){return SV=1,NV(WV,e)}function NV(e,t,n){var r=jV(_V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):WV(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);xV(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=vV,!vV.__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,xV(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};vV.__f=!0;var a=vV.shouldComponentUpdate,o=vV.componentWillUpdate;vV.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)},vV.shouldComponentUpdate=i}return r.__N||r.__}function PV(e,t){var n=jV(_V++,3);!wV.__s&&UV(n.__H,t)&&(n.__=e,n.u=t,vV.__H.__h.push(n))}function FV(e,t){var n=jV(_V++,4);!wV.__s&&UV(n.__H,t)&&(n.__=e,n.u=t,vV.__h.push(n))}function $(e){return SV=5,IV(function(){return{current:e}},[])}function IV(e,t){var n=jV(_V++,7);return UV(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function LV(e,t){return SV=8,IV(function(){return e},t)}function RV(){for(var e;e=CV.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(VV),e.__H.__h.forEach(HV),e.__H.__h=[]}catch(t){e.__H.__h=[],wV.__e(t,e.__v)}}wV.__b=function(e){vV=null,TV&&TV(e)},wV.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),AV&&AV(e,t)},wV.__r=function(e){EV&&EV(e),_V=0;var t=(vV=e.__c).__H;t&&(yV===vV?(t.__h=[],vV.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(VV),t.__h.forEach(HV),t.__h=[],_V=0)),yV=vV},wV.diffed=function(e){DV&&DV(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(CV.push(t)!==1&&bV===wV.requestAnimationFrame||((bV=wV.requestAnimationFrame)||BV)(RV)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),yV=vV=null},wV.__c=function(e,t){t.some(function(e){try{e.__h.forEach(VV),e.__h=e.__h.filter(function(e){return!e.__||HV(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],wV.__e(n,e.__v)}}),OV&&OV(e,t)},wV.unmount=function(e){kV&&kV(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{VV(e)}catch(e){t=e}}),n.__H=void 0,t&&wV.__e(t,n.__v))};var zV=typeof requestAnimationFrame==`function`;function BV(e){var t,n=function(){clearTimeout(r),zV&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);zV&&(t=requestAnimationFrame(n))}function VV(e){var t=vV,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),vV=t}function HV(e){var t=vV;e.__c=e.__(),vV=t}function UV(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!xV(t,e[n])})}function WV(e,t){return typeof t==`function`?t(e):t}function GV(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(Xz,{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(IB,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function KV(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function qV(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function JV(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 YV({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=XB(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:JV(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?JV(u,1,t,o):i&&r<=0&&c.length>0?YB(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 XV=400,ZV=40,QV=18;function $V(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))?eH(e,t,n):a instanceof HTMLElement?a:null}function eH(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 tH(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 nH(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 rH(){return navigator.vendor!==`Apple Computer, Inc.`}function iH(e,t){let n=e-t.top;if(n<ZV)return-Math.ceil((ZV-Math.max(0,n))/ZV*QV);let r=t.bottom-e;return r<ZV?Math.ceil((ZV-Math.max(0,r))/ZV*QV):0}function aH(e,t){if(e!=null){let t=ZB[e];return t==null?null:{text:t,title:QB[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:$B}:null}function oH(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 sH(e){return e!=null&&`toggle`in e}function cH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function lH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function uH(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function dH(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function fH(e,t){return t&&dH(e)||(e.ctrlKey||e.metaKey)&&cH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var pH=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function mH(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 hH(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 gH(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function _H(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function vH(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function yH(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 bH(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 xH(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 SH(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=xH(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 CH(e,t){return{kind:e.kind,name:qV(e),path:t}}function wH(e){return e==null?void 0:`${e}__tree`}function TH(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function EH(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function DH(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`?EH(e.icon)?t(e.icon):{name:e.icon}:EH(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(CB,{...n})})}function OH(e){e!=null&&iV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function kH(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=KV(e);return Q(Xz,{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(CB,{...t(`file-tree-icon-chevron`)}):Q(CB,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?GV(e,c,a):c??Q(RB,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:DH(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:DH(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(CB,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function AH(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:ee,contextMenuButtonVisibility:te,contextMenuRightClickEnabled:w,registerRenameInput:ne,registerButton:re,resolveIcon:T,renderDecorationForRow:E,openContextMenuForRow:ie,onRowClick:D,onKeyDown:ae}=e,O=KV(t),{isParked:oe=!1,mode:se=`flow`,style:k}=r,ce=se===`sticky`,le=_?.get(O)??null??oH(t.ancestorPaths,v,y),A=t.kind===`directory`&&(b?.has(O)??!1),j=E(t,O),ue=aH(le,A),M=S&&ee,N=j!=null||x||M,P=M&&te===`always`,de=a.getPath()===O,F=de?a.getValue():``,fe=ce||!de?null:Q(mV,{ref:ne,ariaLabel:`Rename ${qV(t)}`,isFlattened:t.isFlattened,value:F,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),pe=kH(t,T,{actionLaneEnabled:M,customDecoration:j,decorationLaneEnabled:N,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:ue,gitLaneActive:x,renameInput:fe,showDecorativeActionAffordance:P}),I={...hV({ariaLabel:qV(t),domId:t.isFocused?TH(h,O,oe):void 0,extraStyle:k,features:{actionLaneEnabled:M,contextMenuButtonVisibility:M?te:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:oe,itemHeight:g,mode:se,row:t,state:{containsGitChange:A,effectiveGitStatus:le,isContextHovered:s===O,isDragTarget:l?.kind===`directory`&&l.directoryPath===O,isDragging:c?.has(O)===!0,isFocusRinged:t.isFocused&&o===O},targetPath:O}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),w&&(i.focusMountedPathFromInput(O),ie(t,O,{anchorRect:gH(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ce?void 0:()=>{i.focusMountedPathFromInput(O)},onKeyDown:ce?void 0:ae,ref:e=>{re(O,e)}};return!ce&&de?Q(`div`,{...I,children:pe}):Q(`button`,{...I,type:`button`,draggable:u&&!oe,onDragEnd:u&&!oe?p:void 0,onDragStart:u&&!oe?e=>{f(e,t,O)}:void 0,onMouseDown:e=>{if(ce){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!oe?e=>{m(e,t,O)}:void 0,onClick:e=>{D(e,t,O,se)},children:pe})}function jH(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(KV(e))).map((n,r)=>AH(e,n,t.start+r))}function MH({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=SR,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),ee=$(null),te=$(new Map),w=$(new Map),ne=$(()=>{}),re=$(null),T=$(0),E=$(!1),ie=$(null);ie.current!==t&&(E.current=!1,ie.current=t);let D=$(!1),ae=$(null),O=$(null),oe=$(!1),se=$(null),k=$(null),ce=$(null),le=$(null),A=$(null),j=$(null),ue=$(null),M=$(null),N=$(!1),P=$(null),de=$(null),F=$(null),fe=$(null),pe=IV(()=>new Map,[]),[,I]=MV(0),me=$(!1),[he,ge]=MV(null),[L,_e]=MV(null),[ve,R]=MV(null),[ye,z]=MV(null),[B,be]=MV(0),[V,xe]=MV(null),Se=$(V);Se.current=V;let Ce=$(null),we=$(null),Te=$(null),Ee=$(null),De=$(null),Oe=$(!1),ke=()=>{we.current=null,Te.current=null,Ee.current=null},Ae=(e,t)=>{we.current=e,Te.current=null,Ee.current=t==null?null:{path:e,scrollTop:t}},je=(e,t)=>{we.current=null,Te.current={path:e,viewportOffset:t},Ee.current=null},Me=$(d===`retain`&&t.isSearchOpen()),[Ne,Pe]=MV(p);PV(()=>{p||Pe(!1)},[p]);let Fe=$(!1),Ie=LV(()=>{Fe.current=!0,Pe(e=>e&&!1)},[]),[Le,Re]=MV(()=>YV({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[ze,Be]=MV(!1);PV(()=>{Be(!0)},[]);let Ve=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,He=e?.contextMenu?.triggerMode??(Ve?`right-click`:`both`),Ue=He===`both`||He===`button`,We=e?.contextMenu?.buttonVisibility??`when-needed`,Ge=He===`both`||He===`right-click`;FV(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;De.current=t,_e(t),z(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Oe.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 Ke=LV((e,t)=>{vH(te.current,e,t)},[]),qe=LV((e,t)=>{vH(w.current,e,t)},[]),Je=LV(e=>{x.current=e},[]),Ye=LV(e=>yH(e,w.current,te.current),[]),Xe=n!=null||r!=null||i!=null,{resolveIcon:Ze}=IV(()=>zP(a),[a]),Qe=t[pz](),$e=Qe.getPath(),et=$e!=null,tt=t.isSearchOpen(),nt=t.getSearchValue(),H=t.getFocusedPath(),U=t.getFocusedIndex(),rt=t.getScrollRequest(),it=t.isDragAndDropEnabled(),at=t.getDragSession(),ot=IV(()=>at==null?null:new Set(at.draggedPaths),[at]),st=at?.target??null,ct=at?.primaryPath??null,lt=wH(o),{overlayHeight:ut,overlayRows:dt,snapshot:ft,visibleRows:pt}=Le,mt=ft.physical.viewportHeight,ht=IV(()=>({end:ft.window.endIndex,start:ft.window.startIndex}),[ft.window.endIndex,ft.window.startIndex]),gt=dt,_t=ft.sticky.rows,vt=ft.physical.totalHeight,yt=ft.sticky.height,bt=IV(()=>new Set(_t.map(e=>KV(e.row))),[_t]),xt=U>=0&&U>=ht.start&&U<=ht.end,St=LV((e,t)=>u?.({item:CH(e,t),row:e})??null,[u]),Ct=LV(e=>iV(e==null?null:te.current.get(e)??null)?!0:iV(S.current),[]),wt=LV(e=>{Ct(t.focusNearestPath(e))},[t,Ct]),Tt=$(wt);Tt.current=wt;let Et=$(!0),Dt=$(()=>{}),Ot=LV((t=!0)=>{let n=Se.current;n!=null&&(Et.current=Et.current&&t,xe(null),e?.contextMenu?.onClose?.(),Et.current&&wt(n.path))},[e?.contextMenu,wt]);Dt.current=Ot;let kt=LV(e=>{let t=e==null?null:_H(S.current,e);R(e=>e===t?e:t)},[]),At=LV((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Ye(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Ae(n,e?.scrollTop??null),D.current=!0,ge(e=>e===n?e:n)}i.focus(),kt(a),Et.current=!0,xe({anchorRect:r?.anchorRect??null,item:CH(e,n),path:n,source:r?.source??`keyboard`})},[t,Ye,kt]),jt=LV(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=oV(e,mt);se.current=U<0||e==null?null:Math.max(0,Math.min(U*s-e.scrollTop,Math.max(0,t-s))),oe.current=!0}t.startRenaming(e)!==!1&&(z(`focus`),I(e=>e+1))}},[t,U,s,l,mt]),Mt=LV((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=oV(i,mt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:YV({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return D.current=!0,dV(i,a,s,l,u,d),ne.current(),Ce.current=n?e:null,!0},[t,s,c,mt,h]),Nt=()=>y.current===!0||fe.current!=null||N.current===!0,Pt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Ft=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},It=()=>{le.current!=null&&(clearTimeout(le.current),le.current=null),ce.current=null},Lt=()=>{j.current?.remove(),j.current=null},Rt=()=>{Ft(k.current),k.current=null,A.current=null},zt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Bt=()=>{M.current?.(),M.current=null,fe.current!=null&&(clearTimeout(fe.current),fe.current=null),N.current=!1,P.current=null,F.current=null,de.current!=null&&(de.current.setAttribute(`draggable`,`true`),de.current.style.removeProperty(`touch-action`),de.current=null),Lt(),It(),Rt(),ue.current=null},Vt=(e,n)=>{let r=S.current?.getRootNode(),i=tH($V(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Ht=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){It();return}let r=t.getItem(e.directoryPath),i=sH(r)?r:null;if(i==null||i.isExpanded()){It();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ce.current!==a&&(It(),ce.current=a,le.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ut=()=>{k.current=null;let e=A.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=iH(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,ne.current()),Ht(Vt(e.clientX,e.clientY)),k.current=Pt(Ut)},Wt=(e,t)=>{A.current={clientX:e,clientY:t},k.current??=Pt(Ut)},Gt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Bt(),Lt(),It(),Rt(),t.startDrag(r)===!1){e.preventDefault();return}if(ue.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),rH())){let t=nH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),zt(t),j.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Kt=()=>{Lt(),It(),Rt(),ue.current=null,t.cancelDrag()},qt=(e,n,r)=>{if(fe.current!=null||N.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;F.current={clientX:i.clientX,clientY:i.clientY},de.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!N.current;fe.current!=null&&(clearTimeout(fe.current),fe.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),M.current===o&&(M.current=null),t&&(a.setAttribute(`draggable`,`true`),de.current===a&&(de.current=null),F.current=null)},s=e=>{let t=e.touches[0],n=F.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),M.current=o,fe.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),de.current===a&&(de.current=null),F.current=null;return}N.current=!0,de.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),ue.current=n;let e=a.getBoundingClientRect(),s=nH(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`}),zt(s),j.current=s,P.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=P.current;n!=null&&j.current!=null&&(j.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Ht(Vt(t.clientX,t.clientY)),Wt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Vt(n.clientX,n.clientY),t.completeDrag(),Bt()},u=()=>{t.cancelDrag(),Bt()};M.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)},XV)},Jt=e=>{if(V!=null){if(e.key===`Escape`){Ot(),e.preventDefault(),e.stopPropagation();return}pH.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Qe.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Qe.cancel();else if(e.key===`Enter`)Qe.commit();else return;z(`focus`),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){jt(H??void 0),e.preventDefault(),e.stopPropagation();return}if(tt){if(e.key===`Escape`)oe.current=!1,se.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=oV(n,mt);se.current=U<0||n==null?null:Math.max(0,Math.min(U*s-n.scrollTop,Math.max(0,r-s))),oe.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;z(`focus`),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&lH(e)){t.openSearch(e.key),I(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ve&&dH(e),r=fH(e,Ve),i=r&&S.current!=null?aV(S.current):null,a=r?new Set(bH(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==H&&a.has(o)){let e=C.current;Ae(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=sH(p)?p:null,h=u!=null&&(bt.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=yH(u,w.current,te.current);e==null||n==null?y=!1:At(e,u)}else if((e.ctrlKey||e.metaKey)&&cH(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;z(`focus`);let b=t.getFocusedPath(),x=b!=null&&(bt.has(b)||a.has(b)),ee=g&&b!==u,ne=n&&c&&o===u&&b===u;if((h||ne)&&b!=null&&(ee&&x||ne))Ae(b,v?.scrollTop??null),D.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(je(b,SH(S.current,v,i,u,s,yt,mt)),D.current=!0,ge(e=>e===b?e:b)):ke()}I(e=>e+1),e.preventDefault(),e.stopPropagation()};FV(()=>{if(f&&tt){if(Me.current){Me.current=!1;return}iV(ee.current)}},[tt,f]),FV(()=>{let e=x.current;switch(pV({hasRenderedInput:e!=null,previousRenamingPath:O.current,renamingPath:$e})){case`reset`:O.current=null;return;case`reveal-canonical`:$e!=null&&Mt($e,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(Ce.current=null,O.current=$e,iV(e),e.select());return}},[ht.end,ht.start,$e,Mt,bt]),FV(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=aV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),D.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,aV(e)!=null){r();return}D.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),D.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)}},[]),FV(()=>{let e=S.current;e!=null&&(ft.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[ft.physical.scrollTop]),FV(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;re.current=oV(n,g);let a=()=>{let e=t.getVisibleCount(),r=sV(re.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Re(YV({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!E.current){E.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=sV(re.current,g),i=t.getVisibleRows(e,e)[0]??null;lV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}ne.current=a;let o=t.subscribe(()=>{eV(me)&&I(e=>e+1),a()}),l=()=>{Oe.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,be(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Oe.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Se.current!=null&&y.current&&Dt.current(),Oe.current===!0){y.current=!1;return}_e(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=>{re.current=(e[0]==null?null:cV(e[0]))??oV(n,g),a()}):null;return x?.observe(n),()=>{ne.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,re.current=null,x?.disconnect()}},[t,g,s,c,h]),FV(()=>{Ve||V==null||Ot(!1)},[Ot,Ve,V]);let Yt=IV(()=>V==null?null:`${V.path}::${V.source}`,[V]);FV(()=>{if(Yt==null){m?.clearSlotContent(jP);return}let t=Se.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??hH(n.getBoundingClientRect()),close:e=>{Dt.current(e?.restoreFocus??!0)},restoreFocus:()=>{Et.current&&Tt.current(Se.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(jP,i),e?.contextMenu?.onOpen?.(t.item,r),OH(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&OH(i)}),()=>{m?.clearSlotContent(jP)}},[Yt,e?.contextMenu,m]),FV(()=>{V!=null&&t.getItem(V.path)==null&&Ot()},[Ot,V,t]),FV(()=>{if(V==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(mH(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Ot())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Ot())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Ot,V]),FV(()=>{let e=C.current,n=S.current;if(e==null||n==null){ae.current=H;return}let r=H==null?null:te.current.get(H)??null,i=aV(n),a=i?.dataset.itemPath??null,o=et&&x.current===i,c=f&&ee.current===i,l=oe.current&&!tt,u=se.current??0,d=Ce.current,p=we.current,m=Te.current,g=Ee.current,_=i!=null,v=D.current||_,y=ae.current!==H,b=p!=null&&p===H&&H!=null,w=!1,re=!1;if(rt!=null&&rt.id!==T.current){T.current=rt.id;let n=rt.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,mt-s))):yt;w=!0,re=uV(e,n,s,mt,vt,rt.offset,t)}t.clearScrollRequest(rt.id)}let E=!w&&l&&dV(e,U,s,mt,vt,u),ie=!w&&d!=null&&d===H&&dV(e,U,s,mt,vt,yt),O=!w&&m!=null&&m.path===H&&dV(e,U,s,mt,vt,m.viewportOffset),k=!w&&g!=null&&g.path===H&&e.scrollTop!==g.scrollTop;if(k&&(e.scrollTop=g.scrollTop),(k||re||ie||O||E||v&&y&&d!==H&&!b&&lV(e,U,s,mt,yt))&&ne.current(),w){ae.current=H;return}if(!v){ae.current=H;return}if(o){ae.current=H;return}if(c&&!l){ae.current=H;return}if(r==null){l&&U>=0&&(dV(e,U,s,mt,vt,u),ne.current()),ae.current=H;return}(y||l||d===H||p===H||m?.path===H||g?.path===H||a==null||a!==H)&&(iV(r),d===H&&(Ce.current=null),p===H&&(we.current=null),m?.path===H&&(Te.current=null),g?.path===H&&(Ee.current=null),oe.current=!1,se.current=null),ae.current=H},[t,U,H,xt,s,et,tt,ht,mt,f,rt,h,yt,vt,pt]);let Xt=U>=0&&U>=ft.visible.startIndex&&U<=ft.visible.endIndex,Zt=H!=null&>.some(e=>KV(e.row)===H),Qt=Xt||Zt,$t=Ue&&D.current===!0&&Qt?H:null,en=ye===`pointer`?L:null,tn=V?.path??De.current??en??$t??L,nn=V?.source===`right-click`;FV(()=>{y.current&&V==null||kt(Ye(tn))},[V,Ye,ht,mt,B,gt,tn,kt,pt]);let rn=LV(e=>{if(y.current||mH(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&&z(e=>e===`pointer`?e:`pointer`),_e(e=>e===i?e:i)},[]),an=LV(()=>{_e(null)},[]);FV(()=>{if(!it)return;let e=()=>{Bt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Bt(),t.cancelDrag()}},[t,it]);let on=e=>{if(!it||t.getDragSession()==null||N.current)return;let n=tH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Ht(t.getDragSession()?.target??null),Wt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},sn=e=>{if(!it||t.getDragSession()==null||N.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(It(),Rt(),t.setDragTarget(null))},cn=e=>{it&&t.getDragSession()!=null&&!N.current&&(e.preventDefault(),Vt(e.clientX,e.clientY),t.completeDrag(),Lt(),It(),Rt(),ue.current=null)},ln=ft.window.height,un=ft.window.offsetTop,dn=Math.min(0,mt-ln),fn=Math.min(0,mt-ln-yt),pn=he===H||oe.current,mn=H!=null&&pn&&!xt&&U>=0?pt[U]??t.getVisibleRows(U,U)[0]??null:null,hn=mn==null?null:fV(U,s,ht,ln),gn=ue.current,_n=ct!=null&&gn!=null&&gn.path===ct&&gn.index>=ht.start&&gn.index<=ht.end,vn=ct!=null&&gn!=null&&gn.path===ct&&!_n&&gn.path!==mn?.path?gn:null,yn=vn==null?null:fV(vn.index,s,ht,ln),bn=uH((U>=0?pt[U]??t.getVisibleRows(U,U)[0]??null:null)?.ancestorPaths.at(-1)??null),xn=tt&&H!=null?TH(o,H,!xt):void 0,Sn=V?.path??(tt?H:he),Cn=V?.path??L,wn=Ye(tn),Tn=Ve&&Ue&&!nn&&!et&&wn!=null&&ve!=null&&tn!=null,En=Ve&&(Tn||V!=null),Dn=V?.anchorRect,On=Dn==null&&wn!=null&&ve!=null&&(V!=null||Tn)?ve:null,kn=Dn==null?On==null?void 0:{top:`${On}px`}:{left:`${Dn.left}px`,position:`fixed`,right:`auto`,top:`${Dn.top}px`},An=nn?{opacity:`0`}:void 0,jn=LV((e,n,r,i)=>{let a=gV({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:tt,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>=ft.visible.startIndex&&n.index<=ft.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(D.current=!0,ge(e=>e===c?e:c),z(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&Mt(c,{targetOffset:`sticky-parents`})},[t,tt,ft.visible.endIndex,ft.visible.startIndex,Mt]),Mn=()=>{if(y.current||!Ue||tn==null||wn==null)return;let e=t.getItem(tn);e!=null&&(kt(wn),Et.current=!0,xe({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:wn.getAttribute(`aria-label`)??tn,path:e.getPath()},path:e.getPath(),source:`button`}))},Nn={contextHoverPath:Cn,contextMenuButtonTriggerEnabled:Ue,contextMenuButtonVisibility:We,contextMenuEnabled:Ve,contextMenuRightClickEnabled:Ge,contextMenuTriggerMode:He,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:it,draggedPathSet:ot,dragTarget:st,gitLaneActive:Xe,gitStatusByPath:n,handleRowDragEnd:Kt,handleRowDragStart:Gt,handleRowTouchStart:qt,ignoredGitDirectories:r,ignoredInheritanceCache:pe,instanceId:o,itemHeight:s,onKeyDown:Jt,onRowClick:jn,openContextMenuForRow:At,registerButton:Ke,registerRenameInput:Je,renameView:Qe,renderDecorationForRow:St,resolveIcon:Ze,shouldSuppressContextMenu:Nt,visualFocusPath:Sn},Pn={...Nn,registerButton:qe};return Q(`div`,{ref:S,id:lt,"data-file-tree-context-menu-button-visibility":Ve&&Ue?We:void 0,"data-file-tree-context-menu-trigger-mode":Ve?He:void 0,"data-file-tree-has-context-menu-action-lane":Ve&&Ue?`true`:void 0,"data-file-tree-has-git-lane":Xe?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:it?sn:void 0,onDragOver:it?on:void 0,onDrop:it?cn:void 0,onKeyDown:Jt,onPointerLeave:Ve?an:void 0,onPointerOver:Ve?rn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:bn}}),Q(`slot`,{name:AP,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":tt?`true`:`false`,children:Q(`input`,{ref:ee,"aria-activedescendant":xn,"aria-controls":lt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ne?`true`:void 0,value:nt,onBlur:()=>{(d!==`retain`||Fe.current)&&t.closeSearch()},onFocus:Ie,onPointerDown:Ie,onInput:e=>{Ie();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&ze&>.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:`${ut}px`},children:gt.map((e,t)=>AH(Pn,e.row,`sticky:${KV(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${gt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${vt}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${un}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${ln}px`,top:`${dn}px`,bottom:`${fn}px`},children:[jH(Nn,ht,bt),mn!=null&&hn!=null?AH(Nn,mn,`parked:${mn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ct===mn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${hn}px`}}):null,vn!=null&&yn!=null?AH(Nn,vn,`parked-drag:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${yn}px`}}):null]})]})]}),Ve?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":En?`true`:`false`,style:kn,children:[Q(`button`,{ref:v,type:`button`,"data-type":MP,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":V==null?`false`:`true`,"data-visible":Tn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),V!=null){Ot();return}Mn()},tabIndex:-1,style:An,children:Q(CB,{...Ze(`file-tree-icon-ellipsis`)})}),V==null?null:Q(`slot`,{name:jP})]}):null,V==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Ot()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Ot()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var NH={hydrateRoot:(e,t)=>{vB(Jz(MH,t),e)},renderRoot:(e,t)=>{_B(Jz(MH,t),e)},unmountRoot:e=>{_B(null,e)}};function PH(e,t){NH.renderRoot(e,t)}function FH(e,t){NH.hydrateRoot(e,t)}function IH(e){NH.unmountRoot(e)}var LH=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 RH(e,t,n){if(!e.s){if(n instanceof zH){if(!n.s)return void(n.o=RH.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(RH.bind(null,e,t),RH.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var zH=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{RH(r,1,a(this.v))}catch(e){RH(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?RH(r,1,t?t(i):i):n?RH(r,1,n(i)):RH(r,2,i)}catch(e){RH(r,2,e)}},r},e}();Array.isArray;var BH=0;function VH(e){return e!=null&&e.length>0?e:(BH+=1,`pst_ft_${BH}`)}function HH({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??SR)}function UH(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 WH(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 GH(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var KH=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new LH;#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=VH(a),this.#p=wz(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=xR(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new yz({...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&&(IH(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=Tz(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&PH(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(),PH(t.wrapper,this.#w()))}setGitStatus(e){let t=wz(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&PH(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),PH(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),FH(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),PH(r,this.#w())}#C(){return{initialViewportHeight:HH({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(AP,e());return}this.#l.setSlotHtml(AP,this.#e?.header?.html??null)}#k(e){let t=GH(e).find(e=>WH(e)),n=UH(bP(PP(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=GH(e),n=t.find(e=>WH(e)),r=t.filter(e=>e!==n),i=PP(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=UH(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=PP(this.#m);t.colored&&SP(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${EP}]`);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(EP,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=ER(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 MR(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)}};function qH(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 JH(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function YH(e,t){let n=new Set(e),r=new Set(t),i=qH(t),a=new Set([...qH(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(JH(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(JH(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var XH=new Set([`/`,`.`,`-`,`_`,` `]);function ZH(e,t){if(t===0)return!0;let n=e[t-1];if(XH.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function QH(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,ZH(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 $H(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 eU(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]&&ZH(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function tU(e,t,n,r,i){let a=$H(e,n,r);if(!a)return null;let o=eU(e,t,n,r),s=QH(t,a,i),c=o?QH(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function nU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(ZH(e,i))return!0;return!1}function rU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=tU(n,t,r,i,i),c=s??tU(n,t,r,0,i);if(!c)return null;s&&nU(t,r,n,i)&&(a+=20),r.slice(i)===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 iU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function aU(e,t,n,r){let i=[];for(let r of e){let e=rU(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 oU=`_kd _9 _M`,sU=st,cU=(e=>`/${e}&`)(` b`),lU=60;function uU(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 dU=M(0,1,e=>R(e.a,e._.e)),fU=dU,pU=M(0,0,e=>R(e.b,e._.e)),mU=j(0,`<mark> </mark>`,` D `,e=>{pU._(e),I(e.a,`_kb`)},` `,` `,fU),hU=(e,t)=>mU(e,+!t),gU=(e,t)=>{hU(e,t[0]?.hit),_U(e,t[0]?.text)},_U=N(4,e=>{pU(e),dU(e)}),vU=M(0,1,e=>R(e.a,e._.e)),yU=vU,bU=M(0,0,e=>R(e.b,e._.e)),xU=j(0,`<mark> </mark>`,` D `,e=>{bU._(e),I(e.a,`_kb`)},` `,` `,yU),SU=(e,t)=>xU(e,+!t),CU=(e,t)=>{SU(e,t[0]?.hit),wU(e,t[0]?.text)},wU=N(4,e=>{bU(e),vU(e)}),TU=e=>I(e.a,Ye),EU=M(5,0,e=>R(e.b,e._.n)),DU=e=>{EU._(e),I(e.a,oU)},OU=B(34,e=>R(e.b,e._._._._.u),e=>e._._._._,`N5`),kU=e=>{OU(e),I(e.a,`_kc`)},AU=P(2,e=>R(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${le(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),jU=B(29,AU,e=>e._._._,`N11`),MU=e=>{jU(e),NU(e),I(e.a,`_b9`)},NU=B(33,AU,e=>e._._._,`N12`),PU=B(28,e=>R(e.b,e._._._._.k),e=>e._._._._,`N4`),FU=j(0,`<li role=presentation>Recently opened</li>`,` `,TU,`<li role=presentation> </li>`,` D `,e=>{PU(e),I(e.a,Ye)}),IU=P(17,e=>FU(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),LU=B(33,IU,e=>e._._._,`N7`),RU=A(`N6`,e=>{k(e.c,`mousemove`,function(){e._._._.p!==e.o&&TW(e._._._,e.o)}),k(e.c,`click`,function(){e._._._.a1(e.o)})}),zU=e=>{LU(e),HU(e),UU(e),GU(e),I(e.d,`_j_`),I(e.e,`_ka`),RU(e)},BU=j(6,`<span>:<!></span>`,` Db%`,kU),VU=P(16,e=>BU(e,e._._._.u&&e.o===e._._._.y?0:1),2),HU=B(34,VU,e=>e._._._,`N8`),UU=B(35,IU,e=>e._._._,`N9`),WU=P(15,e=>{L(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_b4`,e.o===e._._._.y&&`_b3`])}),GU=B(37,e=>{WU(e),VU(e)},e=>e._._._,`N10`),KU=N(9,IU),qU=N(14,e=>{IU(e),WU(e),VU(e)}),JU=ae(3,`<!><!><!>`,`b%`,0,CU),YU=ae(4,`<!><!><!>`,`b%`,0,gU),XU=P(20,e=>{JU(e,[uU(e.s,e.m,e.t,e.s?.length)]),YU(e,[uU(e.s,e.m,0,Math.max(0,e.t-1))])},2),ZU=N(19,XU),QU=N(18,e=>{L(e.c,`title`,e.s),ZU(e,e.s.lastIndexOf(`/`)+1),XU(e)}),$U=N(12,XU),eW=j(5,`<span> </span>`,` D `,DU),tW=N(13,e=>{eW(e,+!e.n),EU(e)}),nW=(e,t)=>{KU(e,t[0]?.more),QU(e,t[0]?.item?.path),tW(e,t[0]?.item?.hint),$U(e,t[0]?.hits),qU(e,t[1])},rW=B(31,e=>he(e,`c`,e._._.o,KW(e)),e=>e._._,`N15`),iW=A(`N14`,e=>{ge(e,`c`),k(e.d,`click`,function(){e._._.z()})}),aW=e=>{rW(e),oW(e),cW(e),dW(e),I(e.a,`_bY`),ee(e.b),b(e.b,14),te(e.b),I(e.c,Ze),I(e.d,[re,`_b0`]),ie(e.e),w(e.e,16),p(e.e),I(e.f,`_b1`),iW(e)},oW=B(32,e=>{L(e.c,`aria-controls`,e._._.q),L(e.f,`id`,e._._.q)},e=>e._._),sW=_e(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,zU,nW),cW=B(35,e=>sW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`N16`),lW=j(6,`<p> </p>`,` D `,MU),uW=A(`N13`,e=>k(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&TW(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),dW=B(36,e=>{lW(e,+!!e._._.w),uW(e)},e=>e._._,`N17`),fW=j(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><!><!>`)(_,h),((e,t)=>` D/${e}& b D/${t}&m b%c`)(m,T),aW),pW=B(30,e=>fW(e,+!e._.m),0,`N18`),mW=oe(`N19`,`<!><!><!>`,`b%`,pW),hW=me(pW),gW=O(12,e=>{it(e.a,e.m),hW(e)}),_W=P(5,e=>gW(e,e.d,e.e)),vW=N(3,_W),yW=N(4,_W),bW=(e,t)=>{FW(e,t?.query),LW(e,t?.line)},xW=me(rW),SW=V(14,e=>{bW(e,iU(e.o.trim())),xW(e)}),CW=N(24,me(GU)),wW=P(23,e=>CW(e,Math.min(e.p,Math.max(0,e.w-1)))),TW=V(15,wW),EW=N(16),DW=N(27),OW=P(26,e=>DW(e,qW(e)),3),kW=N(25,OW);function AW(e){U(e.a),ut(e.a,mW(e)),H(e.a,`Go to file`),tt(e.a,[`_ca`,`_bX`]),dt(e.a,YW(e)),lt(e.a,!0),rt(e.a),ot(e.a),nt(e.a),at(e.a),ct(e.a,{}),SW(e,``),TW(e,0),EW(e,ce(e)),kW(e,JW(e))}var jW=me(cW,UU),MW=N(21,e=>{zW(e,e.v?.length),OW(e),jW(e)}),NW=P(19,e=>MW(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=aU(e.g,e=>e.path,t,lU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?aU(e.i.items,e=>e.path,t,lU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),PW=me(LU,NU),FW=N(18,e=>{NW(e),PW(e)}),IW=me(HU,OU),LW=N(20,e=>{OW(e),IW(e)}),RW=me(dW),zW=N(22,e=>{wW(e),RW(e)}),BW=N(6,NW),VW=N(7,NW),HW=N(8,e=>{WW(e,e.i?.label),NW(e)}),UW=N(9,OW),WW=N(10,me(PU)),GW=N(11,me(jU)),KW=e=>function(t){SW(e._._,t),TW(e._._,0)},qW=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},JW=e=>()=>{gW(e,!1),SW(e,``),TW(e,0)},YW=e=>t=>{gW(e,t)};F.N3=KW,F.N1=qW,F.N0=JW,F.N2=YW;export{jw as $,aM as A,mC as At,qT as B,XS as Bt,bM as C,FC as Ct,Gj as D,AC as Dt,iM as E,CC as Et,AE as F,dC as Ft,NT as G,SS as Gt,OT as H,KS as Ht,EE as I,VS as It,zT as J,jx as Jt,UT as K,Xx as Kt,mE as L,GS as Lt,RE as M,gC as Mt,zE as N,nC as Nt,sM as O,jC as Ot,NE as P,fC as Pt,mT as Q,ZT as R,US as Rt,xM as S,NC as St,yM as T,RC as Tt,kT as U,BS as Ut,JT as V,WS as Vt,MT as W,kS as Wt,VT as X,d_ as Xt,GT as Y,fx as Yt,pT as Z,Ut as Zt,nN as _,$C as _t,vW as a,ww as at,wM as b,IC as bt,AW as c,Sw as ct,qH as d,bw as dt,Aw as et,YH as f,xw as ft,oN as g,VC as gt,cN as h,lw as ht,UW as i,Dw as it,Lj as j,hC as jt,Bj as k,xC as kt,sU as l,_w as lt,aN as m,pw as mt,GW as n,Ow as nt,yW as o,Cw as ot,KH as p,gw as pt,BT as q,Kx as qt,HW as r,Ew as rt,VW as s,Tw as st,BW as t,kw as tt,cU as u,yw as ut,ZM as v,QC as vt,vM as w,PC as wt,SM as x,LC as xt,CM as y,KC as yt,QT as z,QS as zt};
|