@arcgis/coding-components 5.1.0-next.66 → 5.1.0-next.68
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/cdn/2JVBS55M.js +2 -0
- package/dist/cdn/{SV4IPD4A.js → 2PRSVBDA.js} +1 -1
- package/dist/cdn/{NKGXAZPK.js → 3KONJCSO.js} +1 -1
- package/dist/cdn/{S634KF57.js → 3TELAYHA.js} +1 -1
- package/dist/cdn/4EQ6MSLU.js +2 -0
- package/dist/cdn/{2PMDEHCD.js → 4VQ6C3Z4.js} +1 -1
- package/dist/cdn/{UYBZWFE5.js → 6C52UOYL.js} +1 -1
- package/dist/cdn/{466CO37N.js → 6QSGABXH.js} +1 -1
- package/dist/cdn/{H5FX5BYQ.js → 7N4GXW32.js} +1 -1
- package/dist/cdn/{YLN7EMJC.js → B3UMUBOI.js} +1 -1
- package/dist/cdn/{2XTHR2WZ.js → BGQRJR32.js} +1 -1
- package/dist/cdn/{GHSEU7VA.js → CF3TERM3.js} +1 -1
- package/dist/cdn/{6V7Y2BRY.js → CIGWH7A3.js} +1 -1
- package/dist/cdn/{4BNI5KJQ.js → DIIOEJQ7.js} +1 -1
- package/dist/cdn/{PSBMRURG.js → DMRPNWLI.js} +1 -1
- package/dist/cdn/{MVP3KIDY.js → DOENRIOY.js} +1 -1
- package/dist/cdn/{C6SE4WPF.js → E3RU2YPF.js} +1 -1
- package/dist/cdn/{NKCYMRE4.js → ER2MKLVA.js} +2 -2
- package/dist/cdn/{CEO3L7LS.js → FGTIA6RL.js} +1 -1
- package/dist/cdn/FLEAIHCQ.js +2 -0
- package/dist/cdn/{DXTALKL4.js → FP73TORW.js} +1 -1
- package/dist/cdn/{3RDQGPHK.js → GJKC6KKP.js} +1 -1
- package/dist/cdn/{BS3DQ5NP.js → GOSZCVIB.js} +1 -1
- package/dist/cdn/{P7I342NY.js → HUPOXAQ5.js} +1 -1
- package/dist/cdn/{K7NXHXP5.js → JEQBTQ75.js} +1 -1
- package/dist/cdn/{CZ2DJPO4.js → JHVMGSI2.js} +1 -1
- package/dist/cdn/{EEUNU5QU.js → JRLRJ7TP.js} +1 -1
- package/dist/cdn/{OZ65S2RS.js → KC77WBZW.js} +1 -1
- package/dist/cdn/{B7THOFPO.js → KGFDJHXG.js} +1 -1
- package/dist/cdn/LCIIA4UY.js +2 -0
- package/dist/cdn/{NG7S6FUK.js → LLPQEURF.js} +3 -3
- package/dist/cdn/{XEUCI6KC.js → LWXQURWG.js} +1 -1
- package/dist/cdn/{CYQZ3L4C.js → M3NPOHPJ.js} +1 -1
- package/dist/cdn/{7L4W5YNH.js → MMQ24TAN.js} +1 -1
- package/dist/cdn/N7KYUPBV.js +2 -0
- package/dist/cdn/{WQD5BAWU.js → OM6WYQFV.js} +1 -1
- package/dist/cdn/{BQLG62QR.js → OSG5CFY4.js} +2 -2
- package/dist/cdn/{ZAGZKTO3.js → P6TDJOVA.js} +1 -1
- package/dist/cdn/{ZTB72BXX.js → QEFRIJA4.js} +1 -1
- package/dist/cdn/{EMXJL3XV.js → QWRY5R2W.js} +1 -1
- package/dist/cdn/{76MMOBU6.js → RAMTJLOK.js} +1 -1
- package/dist/cdn/{RQ6FLVDV.js → RI743CW6.js} +1 -1
- package/dist/cdn/{GXD4RF74.js → RRW7ORAI.js} +1 -1
- package/dist/cdn/{M2XTTDCC.js → T2JZE2LL.js} +1 -1
- package/dist/cdn/{UE4FNMRR.js → T4G2IY4F.js} +1 -1
- package/dist/cdn/{K4AAZ66L.js → T752M2BH.js} +1 -1
- package/dist/cdn/{RKMBYHVJ.js → V4GG7I2P.js} +1 -1
- package/dist/cdn/{N2YCVDWS.js → VR3U6I7F.js} +3 -3
- package/dist/cdn/{YHEDZEVZ.js → WEH53PAQ.js} +1 -1
- package/dist/cdn/{5NABF36F.js → WLHOOVAR.js} +1 -1
- package/dist/cdn/{HVICKRFB.js → XGQHHSHY.js} +1 -1
- package/dist/cdn/{CF5KFGTE.js → XR32WULA.js} +1 -1
- package/dist/cdn/{UFE33KQQ.js → Z5EGFQ6Z.js} +1 -1
- package/dist/cdn/{4OSKRQ5X.js → Z5ZZ36DQ.js} +3 -3
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-results/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/language-api-panel/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/markdown.js +13 -13
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/6EMFP4US.js +0 -2
- package/dist/cdn/CJDW5UVS.js +0 -2
- package/dist/cdn/OHM465MA.js +0 -2
- package/dist/cdn/UYCTDQOM.js +0 -2
- package/dist/cdn/YPMKBMXS.js +0 -2
|
@@ -6,7 +6,7 @@ import{a as hF}from"./3TTFCHAA.js";var GG={};hF(GG,{$:()=>ie,Dimension:()=>gr,Dr
|
|
|
6
6
|
`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},cT=new lT;function rf(s){cT.onUnexpectedError(s)}function Se(s){mc(s)||cT.onUnexpectedError(s)}function Vw(s){mc(s)||cT.onUnexpectedExternalError(s)}function Hw(s){if(s instanceof Error){let{name:e,message:t,cause:i}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:Ip.isErrorNoTelemetry(s),cause:i?Hw(i):void 0,code:s.code}}return s}var Bw="Canceled";function mc(s){return s instanceof $s?!0:s instanceof Error&&s.name===Bw&&s.message===Bw}var $s=class extends Error{constructor(){super(Bw),this.name=this.message}};function xF(){let s=new Error(Bw);return s.name=s.message,s}function pc(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function Ud(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}var Ww=class extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}},Ip=class s extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof s)return e;let t=new s;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}},te=class s extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,s.prototype)}};function Tp(s,e){if(typeof s=="number"){if(s===0)return null;let t=(s&65535)>>>0,i=(s&4294901760)>>>16;return i!==0?new Ep([zw(t,e),zw(i,e)]):new Ep([zw(t,e)])}else{let t=[];for(let i=0;i<s.length;i++)t.push(zw(s[i],e));return new Ep(t)}}function zw(s,e){let t=!!(s&2048),i=!!(s&256),n=e===2?i:t,o=!!(s&1024),r=!!(s&512),a=e===2?t:i,l=s&255;return new jr(n,o,r,a,l)}var jr=class s{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return e instanceof s&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Ep=class{constructor(e){if(e.length===0)throw pc("chords");this.chords=e}},Uw=class{constructor(e,t,i,n,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=r}},$w=class{};function zj(s){if(s.charCode){let t=String.fromCharCode(s.charCode).toUpperCase();return Bo.fromString(t)}let e=s.keyCode;if(e===3)return 7;if(ci)switch(e){case 59:return 85;case 60:if(Jt)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(be)return 57;break}else if(zd){if(be&&e===93)return 57;if(!be&&e===92)return 57}return aT[e]||0}var Uj=be?256:2048,$j=512,qj=1024,Kj=be?2048:256,Re=class{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=zj(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Uj),this.altKey&&(t|=$j),this.shiftKey&&(t|=qj),this.metaKey&&(t|=Kj),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new jr(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}};var LF=new WeakMap;function jj(s){if(!s.parent||s.parent===s)return null;try{let e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return null}catch{return null}return s.parent}var qw=class{static getSameOriginWindowChain(e){let t=LF.get(e);if(!t){t=[],LF.set(e,t);let i=e,n;do n=jj(i),n?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=n;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,o=this.getSameOriginWindowChain(e);for(let r of o){let a=r.window.deref();if(i+=a?.scrollY??0,n+=a?.scrollX??0,a===t||!r.iframeElement)break;let l=r.iframeElement.getBoundingClientRect();i+=l.top,n+=l.left}return{top:i,left:n}}};var fi=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.defaultPrevented=t.defaultPrevented,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let i=qw.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},go=class{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(uc){let o=navigator.userAgent.match(/Chrome\/(\d+)/);n=(o?parseInt(o[1]):123)<=122}if(e){let o=e,r=e,a=e.view?.devicePixelRatio||1;if(typeof o.wheelDeltaY<"u")n?this.deltaY=o.wheelDeltaY/(120*a):this.deltaY=o.wheelDeltaY/120;else if(typeof r.VERTICAL_AXIS<"u"&&r.axis===r.VERTICAL_AXIS)this.deltaY=-r.detail/3;else if(e.type==="wheel"){let l=e;l.deltaMode===l.DOM_DELTA_LINE?ci&&!be?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof o.wheelDeltaX<"u")Fo&&Wt?this.deltaX=-(o.wheelDeltaX/120):n?this.deltaX=o.wheelDeltaX/(120*a):this.deltaX=o.wheelDeltaX/120;else if(typeof r.HORIZONTAL_AXIS<"u"&&r.axis===r.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let l=e;l.deltaMode===l.DOM_DELTA_LINE?ci&&!be?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*a):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}};function ll(s,e){let t=this,i=!1,n;return function(){return i||(i=!0,n=s.apply(t,arguments)),n}}function Kw(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function af(s,e="Unreachable"){throw new Error(e)}function $d(s,e="unexpected state"){if(!s)throw typeof e=="string"?new te(`Assertion Failed: ${e}`):e}function dT(s,e="Soft Assertion Failed"){s||Se(new te(e))}function mo(s){if(!s()){debugger;s(),Se(new te("Assertion Failed"))}}function lf(s,e){let t=0;for(;t<s.length-1;){let i=s[t],n=s[t+1];if(!e(i,n))return!1;t++}return!0}function Vt(s){return typeof s=="string"}function iae(s,e){return Array.isArray(s)&&s.every(e)}function $t(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function kF(s){let e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function po(s){return typeof s=="number"&&!isNaN(s)}function Np(s){return!!s&&typeof s[Symbol.iterator]=="function"}function Mp(s){return s===!0||s===!1}function yn(s){return typeof s>"u"}function Sn(s){return!xn(s)}function xn(s){return yn(s)||s===null}function qs(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function jw(s){return $d(s!=null,"Argument is `undefined` or `null`."),s}function Gr(s){return typeof s=="function"}function DF(s,e){let t=Math.min(s.length,e.length);for(let i=0;i<t;i++)Gj(s[i],e[i])}function Gj(s,e){if(Vt(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Gr(e)){try{if(s instanceof e)return}catch{}if(!xn(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var Me;(function(s){function e(x){return!!x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}s.is=e;let t=Object.freeze([]);function i(){return t}s.empty=i;function*n(x){yield x}s.single=n;function o(x){return e(x)?x:n(x)}s.wrap=o;function r(x){return x||t}s.from=r;function*a(x){for(let k=x.length-1;k>=0;k--)yield x[k]}s.reverse=a;function l(x){return!x||x[Symbol.iterator]().next().done===!0}s.isEmpty=l;function c(x){return x[Symbol.iterator]().next().value}s.first=c;function d(x,k){let I=0;for(let A of x)if(k(A,I++))return!0;return!1}s.some=d;function h(x,k){let I=0;for(let A of x)if(!k(A,I++))return!1;return!0}s.every=h;function u(x,k){for(let I of x)if(k(I))return I}s.find=u;function*f(x,k){for(let I of x)k(I)&&(yield I)}s.filter=f;function*g(x,k){let I=0;for(let A of x)yield k(A,I++)}s.map=g;function*p(x,k){let I=0;for(let A of x)yield*k(A,I++)}s.flatMap=p;function*_(...x){for(let k of x)Np(k)?yield*k:yield k}s.concat=_;function w(x,k,I){let A=I;for(let P of x)A=k(A,P);return A}s.reduce=w;function b(x){let k=0;for(let I of x)k++;return k}s.length=b;function*v(x,k,I=x.length){for(k<-x.length&&(k=0),k<0&&(k+=x.length),I<0?I+=x.length:I>x.length&&(I=x.length);k<I;k++)yield x[k]}s.slice=v;function C(x,k=Number.POSITIVE_INFINITY){let I=[];if(k===0)return[I,x];let A=x[Symbol.iterator]();for(let P=0;P<k;P++){let R=A.next();if(R.done)return[I,s.empty()];I.push(R.value)}return[I,{[Symbol.iterator](){return A}}]}s.consume=C;async function S(x){let k=[];for await(let I of x)k.push(I);return k}s.asyncToArray=S;async function L(x){let k=[];for await(let I of x)k=k.concat(I);return k}s.asyncToArrayFlat=L})(Me||(Me={}));function _c(s){return typeof s=="object"&&s!==null&&typeof s.dispose=="function"&&s.dispose.length===0}function tt(s){if(Me.is(s)){let e=[];for(let t of s)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function Ln(...s){return j(()=>tt(s))}var hT=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}};function j(s){return new hT(s)}var q=class s{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{tt(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===N.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?s.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}},N=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new q,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},Ze=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}},IF=class{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}},Gw=class{constructor(e){this.object=e}dispose(){}},Yr=class{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{tt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}};var gi=class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}},qt=class{constructor(){this._first=gi.Undefined,this._last=gi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===gi.Undefined}clear(){let e=this._first;for(;e!==gi.Undefined;){let t=e.next;e.prev=gi.Undefined,e.next=gi.Undefined,e=t}this._first=gi.Undefined,this._last=gi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new gi(e);if(this._first===gi.Undefined)this._first=i,this._last=i;else if(t){let o=this._last;this._last=i,i.prev=o,o.next=i}else{let o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==gi.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==gi.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==gi.Undefined&&e.next!==gi.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===gi.Undefined&&e.next===gi.Undefined?(this._first=gi.Undefined,this._last=gi.Undefined):e.next===gi.Undefined?(this._last=this._last.prev,this._last.next=gi.Undefined):e.prev===gi.Undefined&&(this._first=this._first.next,this._first.prev=gi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==gi.Undefined;)yield e.element,e=e.next}};var Yj=globalThis.performance.now.bind(globalThis.performance),Ls=class s{static create(e){return new s(e)}constructor(e){this._now=e===!1?Date.now:Yj,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var $;(function(s){s.None=()=>N.None;function e(R,F){return u(R,()=>{},0,void 0,!0,void 0,F)}s.defer=e;function t(R){return(F,H=null,z)=>{let G=!1,Y;return Y=R(X=>{if(!G)return Y?Y.dispose():G=!0,F.call(H,X)},null,z),G&&Y.dispose(),Y}}s.once=t;function i(R,F){return s.once(s.filter(R,F))}s.onceIf=i;function n(R,F,H){return d((z,G=null,Y)=>R(X=>z.call(G,F(X)),null,Y),H)}s.map=n;function o(R,F,H){return d((z,G=null,Y)=>R(X=>{F(X),z.call(G,X)},null,Y),H)}s.forEach=o;function r(R,F,H){return d((z,G=null,Y)=>R(X=>F(X)&&z.call(G,X),null,Y),H)}s.filter=r;function a(R){return R}s.signal=a;function l(...R){return(F,H=null,z)=>{let G=Ln(...R.map(Y=>Y(X=>F.call(H,X))));return h(G,z)}}s.any=l;function c(R,F,H,z){let G=H;return n(R,Y=>(G=F(G,Y),G),z)}s.reduce=c;function d(R,F){let H,z={onWillAddFirstListener(){H=R(G.fire,G)},onDidRemoveLastListener(){H?.dispose()}},G=new E(z);return F?.add(G),G.event}function h(R,F){return F instanceof Array?F.push(R):F&&F.add(R),R}function u(R,F,H=100,z=!1,G=!1,Y,X){let le,ve,We,ui=0,Qe,Gt={leakWarningThreshold:Y,onWillAddFirstListener(){le=R(wn=>{ui++,ve=F(ve,wn),z&&!We&&(ot.fire(ve),ve=void 0),Qe=()=>{let vi=ve;ve=void 0,We=void 0,(!z||ui>1)&&ot.fire(vi),ui=0},typeof H=="number"?(We&&clearTimeout(We),We=setTimeout(Qe,H)):We===void 0&&(We=null,queueMicrotask(Qe))})},onWillRemoveListener(){G&&ui>0&&Qe?.()},onDidRemoveLastListener(){Qe=void 0,le.dispose()}},ot=new E(Gt);return X?.add(ot),ot.event}s.debounce=u;function f(R,F=0,H){return s.debounce(R,(z,G)=>z?(z.push(G),z):[G],F,void 0,!0,void 0,H)}s.accumulate=f;function g(R,F=(z,G)=>z===G,H){let z=!0,G;return r(R,Y=>{let X=z||!F(Y,G);return z=!1,G=Y,X},H)}s.latch=g;function p(R,F,H){return[s.filter(R,F,H),s.filter(R,z=>!F(z),H)]}s.split=p;function _(R,F=!1,H=[],z){let G=H.slice(),Y=R(ve=>{G?G.push(ve):le.fire(ve)});z&&z.add(Y);let X=()=>{G?.forEach(ve=>le.fire(ve)),G=null},le=new E({onWillAddFirstListener(){Y||(Y=R(ve=>le.fire(ve)),z&&z.add(Y))},onDidAddFirstListener(){G&&(F?setTimeout(X):X())},onDidRemoveLastListener(){Y&&Y.dispose(),Y=null}});return z&&z.add(le),le.event}s.buffer=_;function w(R,F){return(z,G,Y)=>{let X=F(new v);return R(function(le){let ve=X.evaluate(le);ve!==b&&z.call(G,ve)},void 0,Y)}}s.chain=w;let b=Symbol("HaltChainable");class v{constructor(){this.steps=[]}map(F){return this.steps.push(F),this}forEach(F){return this.steps.push(H=>(F(H),H)),this}filter(F){return this.steps.push(H=>F(H)?H:b),this}reduce(F,H){let z=H;return this.steps.push(G=>(z=F(z,G),z)),this}latch(F=(H,z)=>H===z){let H=!0,z;return this.steps.push(G=>{let Y=H||!F(G,z);return H=!1,z=G,Y?G:b}),this}evaluate(F){for(let H of this.steps)if(F=H(F),F===b)break;return F}}function C(R,F,H=z=>z){let z=(...le)=>X.fire(H(...le)),G=()=>R.on(F,z),Y=()=>R.removeListener(F,z),X=new E({onWillAddFirstListener:G,onDidRemoveLastListener:Y});return X.event}s.fromNodeEventEmitter=C;function S(R,F,H=z=>z){let z=(...le)=>X.fire(H(...le)),G=()=>R.addEventListener(F,z),Y=()=>R.removeEventListener(F,z),X=new E({onWillAddFirstListener:G,onDidRemoveLastListener:Y});return X.event}s.fromDOMEventEmitter=S;function L(R,F){let H,z=new Promise((G,Y)=>{let X=t(R)(G,null,F);H=()=>X.dispose()});return z.cancel=H,z}s.toPromise=L;function x(R,F){return R(H=>F.fire(H))}s.forward=x;function k(R,F,H){return F(H),R(z=>F(z))}s.runAndSubscribe=k;class I{constructor(F,H){this._observable=F,this._counter=0,this._hasChanged=!1;let z={onWillAddFirstListener:()=>{F.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{F.removeObserver(this)}};this.emitter=new E(z),H&&H.add(this.emitter)}beginUpdate(F){this._counter++}handlePossibleChange(F){}handleChange(F,H){this._hasChanged=!0}endUpdate(F){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function A(R,F){return new I(R,F).emitter.event}s.fromObservable=A;function P(R){return(F,H,z)=>{let G=0,Y=!1,X={beginUpdate(){G++},endUpdate(){G--,G===0&&(R.reportChanges(),Y&&(Y=!1,F.call(H)))},handlePossibleChange(){},handleChange(){Y=!0}};R.addObserver(X),R.reportChanges();let le={dispose(){R.removeObserver(X)}};return z instanceof q?z.add(le):Array.isArray(z)&&z.push(le),le}}s.fromObservableLight=P})($||($={}));var uT=class s{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${s._idPool++}`,s.all.add(this)}start(e){this._stopWatch=new Ls,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},Zj=-1,fT=class s{static{this._idPool=1}constructor(e,t,i=(s._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);let n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let[o,r]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(a),console.warn(o);let l=new mT(a,o);this._errorHandler(l)}return()=>{let o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[i,n]of this._stacks)(!e||t<n)&&(e=[i,n],t=n);return e}},gT=class s{static create(){let e=new Error;return new s(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
7
7
|
`).slice(2).join(`
|
|
8
8
|
`))}},mT=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},pT=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},Rp=class{constructor(e){this.value=e}},Qj=2,E=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new fT(e?.onListenerError??Se,this._options?.leakWarningThreshold??Zj):void 0,this._perfMon=this._options?._profName?new uT(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new pT(`${a}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||Se)(c),N.None}if(this._disposed)return N.None;t&&(e=e.bind(t));let n=new Rp(e),o;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(n.stack=gT.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof Rp?(this._deliveryQueue??=new Yw,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let r=j(()=>{o?.(),this._removeListener(n)});return i instanceof q?i.add(r):Array.isArray(i)&&i.push(r),r},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,i=t.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;let n=this._deliveryQueue.current===this;if(this._size*Qj<=t.length){let o=0;for(let r=0;r<t.length;r++)t[r]?t[o++]=t[r]:n&&o<this._deliveryQueue.end&&(this._deliveryQueue.end--,o<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=o}}_deliver(e,t){if(!e)return;let i=this._options?.onListenerError||Se;if(!i){e.value(t);return}try{e.value(t)}catch(n){i(n)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Rp)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},EF=()=>new Yw,Yw=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Zr=class extends E{constructor(e){super(e),this._isPaused=0,this._eventQueue=new qt,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}},cf=class extends Zr{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}},Zw=class extends E{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}},Qw=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new E({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){let t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),j(ll(()=>{this.hasListeners&&this.unhook(t);let n=this.events.indexOf(t);this.events.splice(n,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(let e of this.events)e.listener?.dispose();this.events=[]}},Wo=class{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,o,r)=>e(a=>{let l=this.data[this.data.length-1];if(!t){l?l.buffers.push(()=>n.call(o,a)):n.call(o,a);return}let c=l;if(!c){n.call(o,t(i,a));return}c.items??=[],c.items.push(a),c.buffers.length===0&&l.buffers.push(()=>{c.reducedResult??=i?c.items.reduce(t,i):c.items.reduce(t),n.call(o,c.reducedResult)})},void 0,r)}bufferEvents(e){let t={buffers:new Array};this.data.push(t);let i=e();return this.data.pop(),t.buffers.forEach(n=>n()),i}},bc=class{constructor(){this.listening=!1,this.inputEvent=$.None,this.inputEventListener=N.None,this.emitter=new E({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}};var TF=Object.freeze(function(s,e){let t=setTimeout(s.bind(e),0);return{dispose(){clearTimeout(t)}}}),cn;(function(s){function e(t){return t===s.None||t===s.Cancelled||t instanceof df?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}s.isCancellationToken=e,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:$.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:TF})})(cn||(cn={}));var df=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?TF:(this._emitter||(this._emitter=new E),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},ki=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new df),this._token}cancel(){this._token?this._token instanceof df&&this._token.cancel():this._token=cn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof df&&this._token.dispose():this._token=cn.None}};function NF(s){let e=new ki;return s.add({dispose(){e.cancel()}}),e.token}var Xw=Symbol("MicrotaskDelay");function tv(s){return!!s&&typeof s.then=="function"}function iv(s){let e=new ki,t=s(e.token),i=!1,n=new Promise((o,r)=>{let a=e.token.onCancellationRequested(()=>{i=!0,a.dispose(),r(new $s)});Promise.resolve(t).then(l=>{a.dispose(),e.dispose(),i?_c(l)&&l.dispose():o(l)},l=>{a.dispose(),e.dispose(),r(l)})});return new class{cancel(){e.cancel(),e.dispose()}then(o,r){return n.then(o,r)}catch(o){return this.then(void 0,o)}finally(o){return n.finally(o)}}}function xae(s,e,t){return new Promise((i,n)=>{let o=e.onCancellationRequested(()=>{o.dispose(),i(t)});s.then(i,n).finally(()=>o.dispose())})}function Lae(s,e){return new Promise((t,i)=>{let n=e.onCancellationRequested(()=>{n.dispose(),i(new $s)});s.then(t,i).finally(()=>n.dispose())})}var _T=class{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null,this.cancellationTokenSource=new ki}queue(e){if(this.cancellationTokenSource.token.isCancellationRequested)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let t=()=>{if(this.queuedPromise=null,this.cancellationTokenSource.token.isCancellationRequested)return;let i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(this.cancellationTokenSource.token),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}dispose(){this.cancellationTokenSource.cancel()}},Xj=(s,e)=>{let t=!0,i=setTimeout(()=>{t=!1,e()},s);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},Jj=s=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,s())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},cr=class{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,o)=>{this.doResolve=n,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let n=this.task;return this.task=null,n()}}));let i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===Xw?Jj(i):Xj(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new $s),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}},uf=class{constructor(e){this.delayer=new cr(e),this.throttler=new _T}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}};function Qr(s,e){return e?new Promise((t,i)=>{let n=setTimeout(()=>{o.dispose(),t()},s),o=e.onCancellationRequested(()=>{clearTimeout(n),o.dispose(),i(new $s)})}):iv(t=>Qr(s,t))}function Op(s,e=0,t){let i=setTimeout(()=>{s(),t&&n.dispose()},e),n=j(()=>{clearTimeout(i),t?.delete(n)});return t?.add(n),n}function kae(s,e=i=>!!i,t=null){let i=0,n=s.length,o=()=>{if(i>=n)return Promise.resolve(t);let r=s[i++];return Promise.resolve(r()).then(l=>e(l)?Promise.resolve(l):o())};return o()}var Jw=class{constructor(){this._runningTask=void 0,this._pendingTasks=[]}schedule(e){let t=new vc;return this._pendingTasks.push({task:e,deferred:t,setUndefinedWhenCleared:!1}),this._runIfNotRunning(),t.p}_runIfNotRunning(){this._runningTask===void 0&&this._processQueue()}async _processQueue(){if(this._pendingTasks.length===0)return;let e=this._pendingTasks.shift();if(e){if(this._runningTask)throw new te;this._runningTask=e.task;try{let t=await e.task();e.deferred.complete(t)}catch(t){e.deferred.error(t)}finally{this._runningTask=void 0,this._processQueue()}}}clearPending(){let e=this._pendingTasks;this._pendingTasks=[];for(let t of e)t.setUndefinedWhenCleared?t.deferred.complete(void 0):t.deferred.error(new $s)}},Wi=class{constructor(e,t){this._isDisposed=!1,this._token=void 0,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==void 0&&(clearTimeout(this._token),this._token=void 0)}cancelAndSet(e,t){if(this._isDisposed)throw new te("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=void 0,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new te("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===void 0&&(this._token=setTimeout(()=>{this._token=void 0,e()},t))}},wc=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new te("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let n=i.setInterval(()=>{e()},t);this.disposable=j(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},ft=class{constructor(e,t){this.timeoutToken=void 0,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=void 0)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==void 0}onTimeout(){this.timeoutToken=void 0,this.runner&&this.doRun()}doRun(){this.runner?.()}},Pp,hf;(function(){let s=globalThis;typeof s.requestIdleCallback!="function"||typeof s.cancelIdleCallback!="function"?hf=(e,t,i)=>{Kr(()=>{if(n)return;let o=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,o-Date.now())}}))});let n=!1;return{dispose(){n||(n=!0)}}}:hf=(e,t,i)=>{let n=e.requestIdleCallback(t,typeof i=="number"?{timeout:i}:void 0),o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},Pp=(e,t)=>hf(globalThis,e,t)})();var Ap=class{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=hf(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},ev=class extends Ap{constructor(e){super(globalThis,e)}},vc=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new $s)}},qd;(function(s){async function e(i){let n,o=await Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n<"u")throw n;return o}s.settled=e;function t(i){return new Promise(async(n,o)=>{try{await i(n,o)}catch(r){o(r)}})}s.withAsyncBody=t})(qd||(qd={}));function Dae(s){let e=new ki,t=s(e.token);return new vT(e,async i=>{let n=e.token.onCancellationRequested(()=>{n.dispose(),e.dispose(),i.reject(new $s)});try{for await(let o of t){if(e.token.isCancellationRequested)return;i.emitOne(o)}n.dispose(),e.dispose()}catch(o){n.dispose(),e.dispose(),i.reject(o)}})}var bT=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new te("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new vc;return this._unsatisfiedConsumers.push(e),e.p}}},wT=class s{constructor(e,t){this._onReturn=t,this._producerConsumer=new bT,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async i=>(this._finishError(i),{done:!0,value:void 0})},queueMicrotask(async()=>{let i=e({emitOne:n=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:n}}),emitMany:n=>{for(let o of n)this._producerConsumer.produce({ok:!0,value:{done:!1,value:o}})},reject:n=>this._finishError(n)});if(!this._producerConsumer.hasFinalValue)try{await i,this._finishOk()}catch(n){this._finishError(n)}})}static fromArray(e){return new s(t=>{t.emitMany(e)})}static fromPromise(e){return new s(async t=>{t.emitMany(await e)})}static fromPromisesResolveOrder(e){return new s(async t=>{await Promise.all(e.map(async i=>t.emitOne(await i)))})}static merge(e){return new s(async t=>{await Promise.all(e.map(async i=>{for await(let n of i)t.emitOne(n)}))})}static{this.EMPTY=s.fromArray([])}static map(e,t){return new s(async i=>{for await(let n of e)i.emitOne(t(n))})}map(e){return s.map(this,e)}static coalesce(e){return s.filter(e,t=>!!t)}coalesce(){return s.coalesce(this)}static filter(e,t){return new s(async i=>{for await(let n of e)t(n)&&i.emitOne(n)})}filter(e){return s.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}},vT=class extends wT{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}};function MF(s){return s}var nv=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=MF):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Fp=class{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=MF):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);let i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}};var Kd;(function(s){s[s.Uninitialized=0]="Uninitialized",s[s.Running=1]="Running",s[s.Completed=2]="Completed"})(Kd||(Kd={}));var ii=class{constructor(e){this.executor=e,this._state=Kd.Uninitialized}get value(){if(this._state===Kd.Uninitialized){this._state=Kd.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Kd.Completed}}else if(this._state===Kd.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function AF(s){return!s||typeof s!="string"?!0:s.trim().length===0}var eG=/{(\d+)}/g;function Yd(s,...e){return e.length===0?s:s.replace(eG,function(t,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function OF(s){return s.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function Fn(s){return s.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Bn(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Aae(s,e=" "){let t=cl(s,e);return yT(t,e)}function cl(s,e){if(!s||!e)return s;let t=e.length;if(t===0||s.length===0)return s;let i=0;for(;s.indexOf(e,i)===i;)i=i+t;return s.substring(i)}function yT(s,e){if(!s||!e)return s;let t=e.length,i=s.length;if(t===0||i===0)return s;let n=i,o=-1;for(;o=s.lastIndexOf(e,n-1),!(o===-1||o+t!==n);){if(o===0)return"";n=o}return s.substring(0,n)}function PF(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ov(s,e,t={}){if(!s)throw new Error("Cannot create regex from empty string");e||(s=Bn(s)),t.wholeWord&&(/\B/.test(s.charAt(0))||(s="\\b"+s),/\B/.test(s.charAt(s.length-1))||(s=s+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(s,i)}function rv(s){return s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$"?!1:!!(s.exec("")&&s.lastIndex===0)}function Vo(s){return s.split(/\r\n|\r|\n/)}function ni(s){for(let e=0,t=s.length;e<t;e++){let i=s.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function Di(s,e=0,t=s.length){for(let i=e;i<t;i++){let n=s.charCodeAt(i);if(n!==32&&n!==9)return s.substring(e,i)}return s.substring(e,t)}function Ks(s,e=s.length-1){for(let t=e;t>=0;t--){let i=s.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Wp(s,e){return s<e?-1:s>e?1:0}function av(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){let l=s.charCodeAt(t),c=e.charCodeAt(n);if(l<c)return-1;if(l>c)return 1}let r=i-t,a=o-n;return r<a?-1:r>a?1:0}function ST(s,e){return Zd(s,e,0,s.length,0,e.length)}function Zd(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){let l=s.charCodeAt(t),c=e.charCodeAt(n);if(l===c)continue;if(l>=128||c>=128)return av(s.toLowerCase(),e.toLowerCase(),t,i,n,o);jd(l)&&(l-=32),jd(c)&&(c-=32);let d=l-c;if(d!==0)return d}let r=i-t,a=o-n;return r<a?-1:r>a?1:0}function Vp(s){return s>=48&&s<=57}function jd(s){return s>=97&&s<=122}function Xr(s){return s>=65&&s<=90}function dr(s,e){return s.length===e.length&&Zd(s,e)===0}function mf(s,e){let t=e.length;return t<=s.length&&Zd(s,e,0,t)===0}function FF(s,e){let t=s.length,i=t-e.length;return i>=0&&Zd(s,e,i,t)===0}function Jr(s,e){let t=Math.min(s.length,e.length),i;for(i=0;i<t;i++)if(s.charCodeAt(i)!==e.charCodeAt(i))return i;return t}function ea(s,e){let t=Math.min(s.length,e.length),i,n=s.length-1,o=e.length-1;for(i=0;i<t;i++)if(s.charCodeAt(n-i)!==e.charCodeAt(o-i))return i;return t}function Tt(s){return 55296<=s&&s<=56319}function ta(s){return 56320<=s&&s<=57343}function lv(s,e){return(s-55296<<10)+(e-56320)+65536}function pf(s,e,t){let i=s.charCodeAt(t);if(Tt(i)&&t+1<e){let n=s.charCodeAt(t+1);if(ta(n))return lv(i,n)}return i}function tG(s,e){let t=s.charCodeAt(e-1);if(ta(t)&&e>1){let i=s.charCodeAt(e-2);if(Tt(i))return lv(i,t)}return t}var Bp=class{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){let e=tG(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=pf(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}},Gd=class{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new Bp(e,t)}nextGraphemeLength(){let e=sv.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(RF(n,r)){t.setOffset(o);break}n=r}return t.offset-i}prevGraphemeLength(){let e=sv.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(RF(r,n)){t.setOffset(o);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}};function Hp(s,e){return new Gd(s,e).nextGraphemeLength()}function xT(s,e){return new Gd(s,e).prevGraphemeLength()}function BF(s,e){e>0&&ta(s.charCodeAt(e))&&e--;let t=e+Hp(s,e);return[t-xT(s,t),t]}var CT;function iG(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function dl(s){return CT||(CT=iG()),CT.test(s)}var nG=/^[\t\n\r\x20-\x7E]*$/;function _f(s){return nG.test(s)}var LT=/[\u2028\u2029]/;function cv(s){return LT.test(s)}function ks(s){return s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function zp(s){return s>=127462&&s<=127487||s===8986||s===8987||s===9200||s===9203||s>=9728&&s<=10175||s===11088||s===11093||s>=127744&&s<=128591||s>=128640&&s<=128764||s>=128992&&s<=129008||s>=129280&&s<=129535||s>=129648&&s<=129782}var WF="\uFEFF";function bf(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function Oae(s,e=!1){return s?(e&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function dv(s){return s=s%52,s<26?String.fromCharCode(97+s):String.fromCharCode(65+s-26)}function RF(s,e){return s===0?e!==5&&e!==7:s===2&&e===3?!1:s===4||s===2||s===3||e===4||e===2||e===3?!0:!(s===8&&(e===8||e===9||e===11||e===12)||(s===11||s===9)&&(e===9||e===10)||(s===12||s===10)&&e===10||e===5||e===13||e===7||s===1||s===13&&e===14||s===6&&e===6)}var sv=class s{static{this._INSTANCE=null}static getInstance(){return s._INSTANCE||(s._INSTANCE=new s),s._INSTANCE}constructor(){this._data=sG()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(e<t[3*n])n=2*n;else if(e>t[3*n+1])n=2*n+1;else return t[3*n+2];return 0}};function sG(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function VF(s,e){if(s===0)return 0;let t=oG(s,e);if(t!==void 0)return t;let i=new Bp(e,s);return i.prevCodePoint(),i.offset}function oG(s,e){let t=new Bp(e,s),i=t.prevCodePoint();for(;rG(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!zp(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function rG(s){return 127995<=s&&s<=127999}var Pae="\xA0",ff=class s{static{this.ambiguousCharacterData=new ii(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new nv({getCacheKey:JSON.stringify},e=>{function t(d){let h=new Map;for(let u=0;u<d.length;u+=2)h.set(d[u],d[u+1]);return h}function i(d,h){let u=new Map(d);for(let[f,g]of h)u.set(f,g);return u}function n(d,h){if(!d)return h;let u=new Map;for(let[f,g]of d)h.has(f)&&u.set(f,g);return u}let o=this.ambiguousCharacterData.value,r=e.filter(d=>!d.startsWith("_")&&Object.hasOwn(o,d));r.length===0&&(r=["_default"]);let a;for(let d of r){let h=t(o[d]);a=n(a,h)}let l=t(o._common),c=i(l,a);return new s(c)})}static getInstance(e){return s.cache.get(Array.from(e))}static{this._locales=new ii(()=>Object.keys(s.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")))}static getLocales(){return s._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},gf=class s{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(s.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return s.getData().has(e)}static get codePoints(){return s.getData()}};var wf,kT=globalThis.vscode;if(typeof kT<"u"&&typeof kT.process<"u"){let s=kT.process;wf={get platform(){return s.platform},get arch(){return s.arch},get env(){return s.env},cwd(){return s.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?wf={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:wf={get platform(){return Wt?"win32":be?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var Up=wf.cwd,Qd=wf.env,HF=wf.platform;var aG=65,lG=97,cG=90,dG=122,Xd=46,kn=47,js=92,hl=58,hG=63,hv=class extends Error{constructor(e,t,i){let n;typeof t=="string"&&t.indexOf("not ")===0?(n="must not be",t=t.replace(/^not /,"")):n="must be";let o=e.indexOf(".")!==-1?"property":"argument",r=`The "${e}" ${o} ${n} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}};function uG(s,e){if(s===null||typeof s!="object")throw new hv(e,"Object",s)}function Ri(s,e){if(typeof s!="string")throw new hv(e,"string",s)}var Cc=HF==="win32";function Xe(s){return s===kn||s===js}function DT(s){return s===kn}function ul(s){return s>=aG&&s<=cG||s>=lG&&s<=dG}function uv(s,e,t,i){let n="",o=0,r=-1,a=0,l=0;for(let c=0;c<=s.length;++c){if(c<s.length)l=s.charCodeAt(c);else{if(i(l))break;l=kn}if(i(l)){if(!(r===c-1||a===1))if(a===2){if(n.length<2||o!==2||n.charCodeAt(n.length-1)!==Xd||n.charCodeAt(n.length-2)!==Xd){if(n.length>2){let d=n.lastIndexOf(t);d===-1?(n="",o=0):(n=n.slice(0,d),o=n.length-1-n.lastIndexOf(t)),r=c,a=0;continue}else if(n.length!==0){n="",o=0,r=c,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",o=2)}else n.length>0?n+=`${t}${s.slice(r+1,c)}`:n=s.slice(r+1,c),o=c-r-1;r=c,a=0}else l===Xd&&a!==-1?++a:a=-1}return n}function fG(s){return s?`${s[0]==="."?"":"."}${s}`:""}function zF(s,e){uG(e,"pathObject");let t=e.dir||e.root,i=e.base||`${e.name||""}${fG(e.ext)}`;return t?t===e.root?`${t}${i}`:`${t}${s}${i}`:i}var os={resolve(...s){let e="",t="",i=!1;for(let n=s.length-1;n>=-1;n--){let o;if(n>=0){if(o=s[n],Ri(o,`paths[${n}]`),o.length===0)continue}else e.length===0?o=Up():(o=Qd[`=${e}`]||Up(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===js)&&(o=`${e}\\`));let r=o.length,a=0,l="",c=!1,d=o.charCodeAt(0);if(r===1)Xe(d)&&(a=1,c=!0);else if(Xe(d))if(c=!0,Xe(o.charCodeAt(1))){let h=2,u=h;for(;h<r&&!Xe(o.charCodeAt(h));)h++;if(h<r&&h!==u){let f=o.slice(u,h);for(u=h;h<r&&Xe(o.charCodeAt(h));)h++;if(h<r&&h!==u){for(u=h;h<r&&!Xe(o.charCodeAt(h));)h++;(h===r||h!==u)&&(l=`\\\\${f}\\${o.slice(u,h)}`,a=h)}}}else a=1;else ul(d)&&o.charCodeAt(1)===hl&&(l=o.slice(0,2),a=2,r>2&&Xe(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=c,c&&e.length>0)break}return t=uv(t,!i,"\\",Xe),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(s){Ri(s,"path");let e=s.length;if(e===0)return".";let t=0,i,n=!1,o=s.charCodeAt(0);if(e===1)return DT(o)?"\\":s;if(Xe(o))if(n=!0,Xe(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Xe(s.charCodeAt(a));)a++;if(a<e&&a!==l){let c=s.slice(l,a);for(l=a;a<e&&Xe(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Xe(s.charCodeAt(a));)a++;if(a===e)return`\\\\${c}\\${s.slice(l)}\\`;a!==l&&(i=`\\\\${c}\\${s.slice(l,a)}`,t=a)}}}else t=1;else ul(o)&&s.charCodeAt(1)===hl&&(i=s.slice(0,2),t=2,e>2&&Xe(s.charCodeAt(2))&&(n=!0,t=3));let r=t<e?uv(s.slice(t),!n,"\\",Xe):"";if(r.length===0&&!n&&(r="."),r.length>0&&Xe(s.charCodeAt(e-1))&&(r+="\\"),!n&&i===void 0&&s.includes(":")){if(r.length>=2&&ul(r.charCodeAt(0))&&r.charCodeAt(1)===hl)return`.\\${r}`;let a=s.indexOf(":");do if(a===e-1||Xe(s.charCodeAt(a+1)))return`.\\${r}`;while((a=s.indexOf(":",a+1))!==-1)}return i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(s){Ri(s,"path");let e=s.length;if(e===0)return!1;let t=s.charCodeAt(0);return Xe(t)||e>2&&ul(t)&&s.charCodeAt(1)===hl&&Xe(s.charCodeAt(2))},join(...s){if(s.length===0)return".";let e,t;for(let o=0;o<s.length;++o){let r=s[o];Ri(r,"path"),r.length>0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,n=0;if(typeof t=="string"&&Xe(t.charCodeAt(0))){++n;let o=t.length;o>1&&Xe(t.charCodeAt(1))&&(++n,o>2&&(Xe(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n<e.length&&Xe(e.charCodeAt(n));)n++;n>=2&&(e=`\\${e.slice(n)}`)}return os.normalize(e)},relative(s,e){if(Ri(s,"from"),Ri(e,"to"),s===e)return"";let t=os.resolve(s),i=os.resolve(e);if(t===i||(s=t.toLowerCase(),e=i.toLowerCase(),s===e))return"";if(t.length!==s.length||i.length!==e.length){let g=t.split("\\"),p=i.split("\\");g[g.length-1]===""&&g.pop(),p[p.length-1]===""&&p.pop();let _=g.length,w=p.length,b=_<w?_:w,v;for(v=0;v<b&&g[v].toLowerCase()===p[v].toLowerCase();v++);return v===0?i:v===b?w>b?p.slice(v).join("\\"):_>b?"..\\".repeat(_-1-v)+"..":"":"..\\".repeat(_-v)+p.slice(v).join("\\")}let n=0;for(;n<s.length&&s.charCodeAt(n)===js;)n++;let o=s.length;for(;o-1>n&&s.charCodeAt(o-1)===js;)o--;let r=o-n,a=0;for(;a<e.length&&e.charCodeAt(a)===js;)a++;let l=e.length;for(;l-1>a&&e.charCodeAt(l-1)===js;)l--;let c=l-a,d=r<c?r:c,h=-1,u=0;for(;u<d;u++){let g=s.charCodeAt(n+u);if(g!==e.charCodeAt(a+u))break;g===js&&(h=u)}if(u!==d){if(h===-1)return i}else{if(c>d){if(e.charCodeAt(a+u)===js)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>d&&(s.charCodeAt(n+u)===js?h=u:u===2&&(h=3)),h===-1&&(h=0)}let f="";for(u=n+h+1;u<=o;++u)(u===o||s.charCodeAt(u)===js)&&(f+=f.length===0?"..":"\\..");return a+=h,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===js&&++a,i.slice(a,l))},toNamespacedPath(s){if(typeof s!="string"||s.length===0)return s;let e=os.resolve(s);if(e.length<=2)return s;if(e.charCodeAt(0)===js){if(e.charCodeAt(1)===js){let t=e.charCodeAt(2);if(t!==hG&&t!==Xd)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(ul(e.charCodeAt(0))&&e.charCodeAt(1)===hl&&e.charCodeAt(2)===js)return`\\\\?\\${e}`;return e},dirname(s){Ri(s,"path");let e=s.length;if(e===0)return".";let t=-1,i=0,n=s.charCodeAt(0);if(e===1)return Xe(n)?s:".";if(Xe(n)){if(t=i=1,Xe(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Xe(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&Xe(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Xe(s.charCodeAt(a));)a++;if(a===e)return s;a!==l&&(t=i=a+1)}}}}else ul(n)&&s.charCodeAt(1)===hl&&(t=e>2&&Xe(s.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(Xe(s.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return s.slice(0,o)},basename(s,e){e!==void 0&&Ri(e,"suffix"),Ri(s,"path");let t=0,i=-1,n=!0,o;if(s.length>=2&&ul(s.charCodeAt(0))&&s.charCodeAt(1)===hl&&(t=2),e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=t;--o){let l=s.charCodeAt(o);if(Xe(l)){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=t;--o)if(Xe(s.charCodeAt(o))){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){Ri(s,"path");let e=0,t=-1,i=0,n=-1,o=!0,r=0;s.length>=2&&s.charCodeAt(1)===hl&&ul(s.charCodeAt(0))&&(e=i=2);for(let a=s.length-1;a>=e;--a){let l=s.charCodeAt(a);if(Xe(l)){if(!o){i=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===Xd?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||n===-1||r===0||r===1&&t===n-1&&t===i+1?"":s.slice(t,n)},format:zF.bind(null,"\\"),parse(s){Ri(s,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;let t=s.length,i=0,n=s.charCodeAt(0);if(t===1)return Xe(n)?(e.root=e.dir=s,e):(e.base=e.name=s,e);if(Xe(n)){if(i=1,Xe(s.charCodeAt(1))){let h=2,u=h;for(;h<t&&!Xe(s.charCodeAt(h));)h++;if(h<t&&h!==u){for(u=h;h<t&&Xe(s.charCodeAt(h));)h++;if(h<t&&h!==u){for(u=h;h<t&&!Xe(s.charCodeAt(h));)h++;h===t?i=h:h!==u&&(i=h+1)}}}}else if(ul(n)&&s.charCodeAt(1)===hl){if(t<=2)return e.root=e.dir=s,e;if(i=2,Xe(s.charCodeAt(2))){if(t===3)return e.root=e.dir=s,e;i=3}}i>0&&(e.root=s.slice(0,i));let o=-1,r=i,a=-1,l=!0,c=s.length-1,d=0;for(;c>=i;--c){if(n=s.charCodeAt(c),Xe(n)){if(!l){r=c+1;break}continue}a===-1&&(l=!1,a=c+1),n===Xd?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return a!==-1&&(o===-1||d===0||d===1&&o===a-1&&o===r+1?e.base=e.name=s.slice(r,a):(e.name=s.slice(r,o),e.base=s.slice(r,a),e.ext=s.slice(o,a))),r>0&&r!==i?e.dir=s.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},gG=(()=>{if(Cc){let s=/\\/g;return()=>{let e=Up().replace(s,"/");return e.slice(e.indexOf("/"))}}return()=>Up()})(),Ot={resolve(...s){let e="",t=!1;for(let i=s.length-1;i>=0&&!t;i--){let n=s[i];Ri(n,`paths[${i}]`),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===kn)}if(!t){let i=gG();e=`${i}/${e}`,t=i.charCodeAt(0)===kn}return e=uv(e,!t,"/",DT),t?`/${e}`:e.length>0?e:"."},normalize(s){if(Ri(s,"path"),s.length===0)return".";let e=s.charCodeAt(0)===kn,t=s.charCodeAt(s.length-1)===kn;return s=uv(s,!e,"/",DT),s.length===0?e?"/":t?"./":".":(t&&(s+="/"),e?`/${s}`:s)},isAbsolute(s){return Ri(s,"path"),s.length>0&&s.charCodeAt(0)===kn},join(...s){if(s.length===0)return".";let e=[];for(let t=0;t<s.length;++t){let i=s[t];Ri(i,"path"),i.length>0&&e.push(i)}return e.length===0?".":Ot.normalize(e.join("/"))},relative(s,e){if(Ri(s,"from"),Ri(e,"to"),s===e||(s=Ot.resolve(s),e=Ot.resolve(e),s===e))return"";let t=1,i=s.length,n=i-t,o=1,r=e.length-o,a=n<r?n:r,l=-1,c=0;for(;c<a;c++){let h=s.charCodeAt(t+c);if(h!==e.charCodeAt(o+c))break;h===kn&&(l=c)}if(c===a)if(r>a){if(e.charCodeAt(o+c)===kn)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else n>a&&(s.charCodeAt(t+c)===kn?l=c:c===0&&(l=0));let d="";for(c=t+l+1;c<=i;++c)(c===i||s.charCodeAt(c)===kn)&&(d+=d.length===0?"..":"/..");return`${d}${e.slice(o+l)}`},toNamespacedPath(s){return s},dirname(s){if(Ri(s,"path"),s.length===0)return".";let e=s.charCodeAt(0)===kn,t=-1,i=!0;for(let n=s.length-1;n>=1;--n)if(s.charCodeAt(n)===kn){if(!i){t=n;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":s.slice(0,t)},basename(s,e){e!==void 0&&Ri(e,"suffix"),Ri(s,"path");let t=0,i=-1,n=!0,o;if(e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=0;--o){let l=s.charCodeAt(o);if(l===kn){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=0;--o)if(s.charCodeAt(o)===kn){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){Ri(s,"path");let e=-1,t=0,i=-1,n=!0,o=0;for(let r=s.length-1;r>=0;--r){let a=s[r];if(a==="/"){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a==="."?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":s.slice(e,i)},format:zF.bind(null,"/"),parse(s){Ri(s,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;let t=s.charCodeAt(0)===kn,i;t?(e.root="/",i=1):i=0;let n=-1,o=0,r=-1,a=!0,l=s.length-1,c=0;for(;l>=i;--l){let d=s.charCodeAt(l);if(d===kn){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),d===Xd?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}if(r!==-1){let d=o===0&&t?1:o;n===-1||c===0||c===1&&n===r-1&&n===o+1?e.base=e.name=s.slice(d,r):(e.name=s.slice(d,n),e.base=s.slice(d,r),e.ext=s.slice(n,r))}return o>0?e.dir=s.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ot.win32=os.win32=os;Ot.posix=os.posix=Ot;var fv=Cc?os.normalize:Ot.normalize,UF=Cc?os.resolve:Ot.resolve,$F=Cc?os.relative:Ot.relative,qF=Cc?os.dirname:Ot.dirname,vf=Cc?os.basename:Ot.basename,KF=Cc?os.extname:Ot.extname,hr=Cc?os.sep:Ot.sep;var mG=/^\w[\w\d+.-]*$/,pG=/^\//,_G=/^\/\//;function bG(s,e){if(!s.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!mG.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!pG.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_G.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function wG(s,e){return!s&&!e?"file":s}function vG(s,e){switch(s){case"https":case"http":case"file":e?e[0]!==ur&&(e=ur+e):e=ur;break}return e}var si="",ur="/",CG=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ge=class s{static isUri(e){return e instanceof s?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,t,i,n,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||si,this.authority=e.authority||si,this.path=e.path||si,this.query=e.query||si,this.fragment=e.fragment||si):(this.scheme=wG(e,r),this.authority=t||si,this.path=vG(this.scheme,i||si),this.query=n||si,this.fragment=o||si,bG(this,r))}get fsPath(){return $p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=si),i===void 0?i=this.authority:i===null&&(i=si),n===void 0?n=this.path:n===null&&(n=si),o===void 0?o=this.query:o===null&&(o=si),r===void 0?r=this.fragment:r===null&&(r=si),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new yc(t,i,n,o,r)}static parse(e,t=!1){let i=CG.exec(e);return i?new yc(i[2]||si,gv(i[4]||si),gv(i[5]||si),gv(i[7]||si),gv(i[9]||si),t):new yc(si,si,si,si,si)}static file(e){let t=si;if(Wt&&(e=e.replace(/\\/g,ur)),e[0]===ur&&e[1]===ur){let i=e.indexOf(ur,2);i===-1?(t=e.substring(2),e=ur):(t=e.substring(2,i),e=e.substring(i)||ur)}return new yc("file",t,e,si,si)}static from(e,t){return new yc(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Wt&&e.scheme==="file"?i=s.file(os.join($p(e,!0),...t)).path:i=Ot.join(e.path,...t),e.with({path:i})}toString(e=!1){return IT(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof s)return e;{let t=new yc(e);return t._formatted=e.external??null,t._fsPath=e._sep===YF?e.fsPath??null:null,t}}else return e}},YF=Wt?1:void 0,yc=class extends ge{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=$p(this,!1)),this._fsPath}toString(e=!1){return e?IT(this,!0):(this._formatted||(this._formatted=IT(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=YF),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},ZF={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function jF(s,e,t){let i,n=-1;for(let o=0;o<s.length;o++){let r=s.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45||r===46||r===95||r===126||e&&r===47||t&&r===91||t&&r===93||t&&r===58)n!==-1&&(i+=encodeURIComponent(s.substring(n,o)),n=-1),i!==void 0&&(i+=s.charAt(o));else{i===void 0&&(i=s.substr(0,o));let a=ZF[r];a!==void 0?(n!==-1&&(i+=encodeURIComponent(s.substring(n,o)),n=-1),i+=a):n===-1&&(n=o)}}return n!==-1&&(i+=encodeURIComponent(s.substring(n))),i!==void 0?i:s}function yG(s){let e;for(let t=0;t<s.length;t++){let i=s.charCodeAt(t);i===35||i===63?(e===void 0&&(e=s.substr(0,t)),e+=ZF[i]):e!==void 0&&(e+=s[t])}return e!==void 0?e:s}function $p(s,e){let t;return s.authority&&s.path.length>1&&s.scheme==="file"?t=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?e?t=s.path.substr(1):t=s.path[1].toLowerCase()+s.path.substr(2):t=s.path,Wt&&(t=t.replace(/\//g,"\\")),t}function IT(s,e){let t=e?yG:jF,i="",{scheme:n,authority:o,path:r,query:a,fragment:l}=s;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=ur,i+=ur),o){let c=o.indexOf("@");if(c!==-1){let d=o.substr(0,c);o=o.substr(c+1),c=d.lastIndexOf(":"),c===-1?i+=t(d,!1,!1):(i+=t(d.substr(0,c),!1,!1),i+=":",i+=t(d.substr(c+1),!1,!0)),i+="@"}o=o.toLowerCase(),c=o.lastIndexOf(":"),c===-1?i+=t(o,!1,!0):(i+=t(o.substr(0,c),!1,!0),i+=o.substr(c))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){let c=r.charCodeAt(1);c>=65&&c<=90&&(r=`/${String.fromCharCode(c+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){let c=r.charCodeAt(0);c>=65&&c<=90&&(r=`${String.fromCharCode(c+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:jF(l,!1,!1)),i}function QF(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+QF(s.substr(3)):s}}var GF=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function gv(s){return s.match(GF)?s.replace(GF,e=>QF(e)):s}var me;(function(s){s.inMemory="inmemory",s.vscode="vscode",s.internal="private",s.walkThrough="walkThrough",s.walkThroughSnippet="walkThroughSnippet",s.http="http",s.https="https",s.file="file",s.mailto="mailto",s.untitled="untitled",s.data="data",s.command="command",s.vscodeRemote="vscode-remote",s.vscodeRemoteResource="vscode-remote-resource",s.vscodeManagedRemoteResource="vscode-managed-remote-resource",s.vscodeUserData="vscode-userdata",s.vscodeCustomEditor="vscode-custom-editor",s.vscodeNotebookCell="vscode-notebook-cell",s.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",s.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",s.vscodeNotebookMetadata="vscode-notebook-metadata",s.vscodeInteractiveInput="vscode-interactive-input",s.vscodeSettings="vscode-settings",s.vscodeWorkspaceTrust="vscode-workspace-trust",s.vscodeTerminal="vscode-terminal",s.vscodeChatCodeBlock="vscode-chat-code-block",s.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",s.vscodeChatEditor="vscode-chat-editor",s.vscodeChatInput="chatSessionInput",s.vscodeLocalChatSession="vscode-chat-session",s.webviewPanel="webview-panel",s.vscodeWebview="vscode-webview",s.extension="extension",s.vscodeFileResource="vscode-file",s.tmp="tmp",s.vsls="vsls",s.vscodeSourceControl="vscode-scm",s.commentsInput="comment",s.codeSetting="code-setting",s.outputChannel="output",s.accessibleView="accessible-view",s.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",s.chatEditingModel="chat-editing-text-model",s.copilotPr="copilot-pr"})(me||(me={}));function qp(s,e){return ge.isUri(s)?dr(s.scheme,e):mf(s,e+":")}function NT(s,...e){return e.some(t=>qp(s,t))}var SG="tkn",ET=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Ot.join(this._serverRootPath,me.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return Se(a),e}let t=e.authority,i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);let n=this._ports[t],o=this._connectionTokens[t],r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${SG}=${encodeURIComponent(o)}`),ge.from({scheme:Us?this._preferredWebSchema:me.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}},MT=new ET,xG="vscode-app",TT=class s{static{this.FALLBACK_AUTHORITY=xG}uriToBrowserUri(e){return e.scheme===me.vscodeRemote?MT.rewrite(e):e.scheme===me.file&&(al||wF===`${me.vscodeFileResource}://${s.FALLBACK_AUTHORITY}`)?e.with({scheme:me.vscodeFileResource,authority:e.authority||s.FALLBACK_AUTHORITY,query:null,fragment:null}):e}},pv=new TT,mv;(function(s){let e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);s.CoopAndCoep=Object.freeze(e.get("3"));let t="vscode-coi";function i(o){let r;typeof o=="string"?r=new URL(o).searchParams:o instanceof URL?r=o.searchParams:ge.isUri(o)&&(r=new URL(o.toString(!0)).searchParams);let a=r?.get(t);if(a)return e.get(a)}s.getHeadersFromQuery=i;function n(o,r,a){if(!globalThis.crossOriginIsolated)return;let l=r&&a?"3":a?"2":"1";o instanceof URLSearchParams?o.set(t,l):o[t]=l}s.addSearchParam=n})(mv||(mv={}));var XF=typeof Buffer<"u";new ii(()=>new Uint8Array(256));var RT,Cf=class s{static wrap(e){return XF&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new s(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return XF?this.buffer.toString():(RT||(RT=new TextDecoder),RT.decode(this.buffer))}};function e8(s,e){return s[e+0]<<0>>>0|s[e+1]<<8>>>0}function t8(s,e,t){s[t+0]=e&255,e=e>>>8,s[t+1]=e&255}function _o(s,e){return s[e]*2**24+s[e+1]*2**16+s[e+2]*2**8+s[e+3]}function bo(s,e,t){s[t+3]=e,e=e>>>8,s[t+2]=e,e=e>>>8,s[t+1]=e,e=e>>>8,s[t]=e}function AT(s,e){return s[e]}function OT(s,e,t){s[t]=e}var JF="0123456789abcdef";function i8({buffer:s}){let e="";for(let t=0;t<s.length;t++){let i=s[t];e+=JF[i>>>4],e+=JF[i&15]}return e}function yf(s){return jp(s,0)}function jp(s,e){switch(typeof s){case"object":return s===null?fl(349,e):Array.isArray(s)?kG(s,e):DG(s,e);case"string":return bv(s,e);case"boolean":return LG(s,e);case"number":return fl(s,e);case"undefined":return fl(937,e);default:return fl(617,e)}}function fl(s,e){return(e<<5)-e+s|0}function LG(s,e){return fl(s?433:863,e)}function bv(s,e){e=fl(149417,e);for(let t=0,i=s.length;t<i;t++)e=fl(s.charCodeAt(t),e);return e}function kG(s,e){return e=fl(104579,e),s.reduce((t,i)=>jp(i,t),e)}function DG(s,e){return e=fl(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=bv(i,t),jp(s[i],t)),e)}function PT(s,e,t=32){let i=t-e,n=~((1<<i)-1);return(s<<e|(n&s)>>>i)>>>0}function Kp(s,e=32){return s instanceof ArrayBuffer?i8(Cf.wrap(new Uint8Array(s))):(s>>>0).toString(16).padStart(e/4,"0")}var _v=class s{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let i=this._buff,n=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(Tt(r))if(a+1<t){let c=e.charCodeAt(a+1);ta(c)?(a++,l=lv(r,c)):l=65533}else{o=r;break}else ta(r)&&(l=65533);if(n=this._push(i,n,l),a++,a<t)r=e.charCodeAt(a);else break}this._buffLen=n,this._leftoverHighSurrogate=o}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(i&1984)>>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Kp(this._h0)+Kp(this._h1)+Kp(this._h2)+Kp(this._h3)+Kp(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e=s._bigBlock32,t=this._buffDV;for(let h=0;h<64;h+=4)e.setUint32(h,t.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,PT(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let i=this._h0,n=this._h1,o=this._h2,r=this._h3,a=this._h4,l,c,d;for(let h=0;h<80;h++)h<20?(l=n&o|~n&r,c=1518500249):h<40?(l=n^o^r,c=1859775393):h<60?(l=n&o|n&r|o&r,c=2400959708):(l=n^o^r,c=3395469782),d=PT(i,5)+l+a+c+e.getUint32(h*4,!1)&4294967295,a=r,r=o,o=PT(n,30),n=i,i=d;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}};function o8(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function nt(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function r8(s,e){let t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function a8(s,e,t){return FT(s.length,i=>t(s[i],e))}function FT(s,e){let t=0,i=s-1;for(;t<=i;){let n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function n8(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(let a of e){let l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?n8(s,n,t):s<n.length+r.length?r[0]:n8(s-(n.length+r.length),o,t)}function ile(s,e){let t=[],i;for(let n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*Sf(s,e){let t,i;for(let n of s)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function wv(s,e){for(let t=0;t<=s.length;t++)e(t===0?void 0:s[t-1],t===s.length?void 0:s[t])}function l8(s,e){for(let t=0;t<s.length;t++)e(t===0?void 0:s[t-1],s[t],t+1===s.length?void 0:s[t+1])}function xf(s){return s.filter(e=>!!e)}function BT(s){let e=0;for(let t=0;t<s.length;t++)s[t]&&(s[e]=s[t],e+=1);s.length=e}function c8(s){return!Array.isArray(s)||s.length===0}function Jd(s){return Array.isArray(s)&&s.length>0}function Ho(s,e=t=>t){let t=new Set;return s.filter(i=>{let n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function Vi(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);let i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function xc(s,e,t){let i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function vv(s,e){let t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function Gp(s,e){let t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function Yp(s,e){for(let t of e)s.push(t)}function nle(s,e){let t=[];for(let i of s){let n=e(i);n!==void 0&&t.push(n)}return t}function d8(s){return Array.isArray(s)?s:[s]}function IG(s,e,t){let i=h8(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function eh(s,e,t,i){let n=h8(s,e),o=s.splice(n,t);return o===void 0&&(o=[]),IG(s,n,i),o}function h8(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var Sc;(function(s){function e(o){return o<0}s.isLessThan=e;function t(o){return o<=0}s.isLessThanOrEqual=t;function i(o){return o>0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Sc||(Sc={}));function Hi(s,e){return(t,i)=>e(s(t),s(i))}function u8(...s){return(e,t)=>{for(let i of s){let n=i(e,t);if(!Sc.isNeitherLessOrGreaterThan(n))return n}return Sc.neitherLessOrGreaterThan}}var wo=(s,e)=>s-e,f8=(s,e)=>wo(s?1:0,e?1:0);function g8(s){return(e,t)=>-s(e,t)}function sle(s){return(e,t)=>e===void 0?t===void 0?Sc.neitherLessOrGreaterThan:Sc.lessThan:t===void 0?Sc.greaterThan:s(e,t)}var Dn=class{constructor(e){this.firstIdx=0,this.items=e,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},gl=class s{static{this.empty=new s(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new s(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new s(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Sc.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}},s8=class s{constructor(e){this._indexMap=e}static createSortPermutation(e,t){let i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new s(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){let e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new s(e)}};function ole(s){return s.reduce((e,t)=>e+t,0)}var th;function m8(s){th?th instanceof Cv?th.loggers.push(s):th=new Cv([th,s]):th=s}function di(){return th}var Cv=class{constructor(e){this.loggers=e}handleObservableCreated(e,t){for(let i of this.loggers)i.handleObservableCreated(e,t)}handleOnListenerCountChanged(e,t){for(let i of this.loggers)i.handleOnListenerCountChanged(e,t)}handleObservableUpdated(e,t){for(let i of this.loggers)i.handleObservableUpdated(e,t)}handleAutorunCreated(e,t){for(let i of this.loggers)i.handleAutorunCreated(e,t)}handleAutorunDisposed(e){for(let t of this.loggers)t.handleAutorunDisposed(e)}handleAutorunDependencyChanged(e,t,i){for(let n of this.loggers)n.handleAutorunDependencyChanged(e,t,i)}handleAutorunStarted(e){for(let t of this.loggers)t.handleAutorunStarted(e)}handleAutorunFinished(e){for(let t of this.loggers)t.handleAutorunFinished(e)}handleDerivedDependencyChanged(e,t,i){for(let n of this.loggers)n.handleDerivedDependencyChanged(e,t,i)}handleDerivedCleared(e){for(let t of this.loggers)t.handleDerivedCleared(e)}handleBeginTransaction(e){for(let t of this.loggers)t.handleBeginTransaction(e)}handleEndTransaction(e){for(let t of this.loggers)t.handleEndTransaction(e)}};var yt;(function(s){let e=!1;function t(){e=!0}s.enable=t;function i(){if(!e)return;let n=Error,o=n.stackTraceLimit;n.stackTraceLimit=3;let r=new Error().stack;return n.stackTraceLimit=o,WT.fromStack(r,2)}s.ofCaller=i})(yt||(yt={}));var WT=class s{static fromStack(e,t){let i=e.split(`
|
|
9
|
-
`),n=EG(i[t+1]);if(n)return new s(n.fileName,n.line,n.column,n.id)}constructor(e,t,i,n){this.fileName=e,this.line=t,this.column=i,this.id=n}};function EG(s){let e=s.match(/\((.*):(\d+):(\d+)\)/);if(e)return{fileName:e[1],line:parseInt(e[2]),column:parseInt(e[3]),id:s};let t=s.match(/at ([^\(\)]*):(\d+):(\d+)/);if(t)return{fileName:t[1],line:parseInt(t[2]),column:parseInt(t[3]),id:s}}var Wn=(s,e)=>s===e;function Zp(s=Wn){return(e,t)=>nt(e,t,s)}function _8(){return(s,e)=>s.equals(e)}function ih(s,e,t){if(t!==void 0){let i=s;return i==null||e===void 0||e===null?e===i:t(i,e)}else{let i=s;return(n,o)=>n==null||o===void 0||o===null?o===n:i(n,o)}}function p8(s,e){if(s===e)return!0;if(Array.isArray(s)&&Array.isArray(e)){if(s.length!==e.length)return!1;for(let t=0;t<s.length;t++)if(!p8(s[t],e[t]))return!1;return!0}if(s&&typeof s=="object"&&e&&typeof e=="object"&&Object.getPrototypeOf(s)===Object.prototype&&Object.getPrototypeOf(e)===Object.prototype){let t=s,i=e,n=Object.keys(t),o=Object.keys(i),r=new Set(o);if(n.length!==o.length)return!1;for(let a of n)if(!r.has(a)||!p8(t[a],i[a]))return!1;return!0}return!1}var ei=class{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return TG(e,this)}},b8=new Map,VT=new WeakMap;function TG(s,e){let t=VT.get(s);if(t)return t;let i=NG(s,e);if(i){let n=b8.get(i)??0;n++,b8.set(i,n);let o=n===1?i:`${i}#${n}`;return VT.set(s,o),o}}function NG(s,e){let t=VT.get(s);if(t)return t;let i=e.owner?RG(e.owner)+".":"",n,o=e.debugNameSource;if(o!==void 0)if(typeof o=="function"){if(n=o(),n!==void 0)return i+n}else return i+o;let r=e.referenceFn;if(r!==void 0&&(n=Qp(r),n!==void 0))return i+n;if(e.owner!==void 0){let a=MG(e.owner,s);if(a!==void 0)return i+a}}function MG(s,e){for(let t in s)if(s[t]===e)return t}var w8=new Map,v8=new WeakMap;function RG(s){let e=v8.get(s);if(e)return e;let t=HT(s)??"Object",i=w8.get(t)??0;i++,w8.set(t,i);let n=i===1?t:`${t}#${i}`;return v8.set(s,n),n}function HT(s){let e=s.constructor;if(e)return e.name==="Object"?void 0:e.name}function Qp(s){let e=s.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(e);return(i?i[1]:void 0)?.trim()}var zT;function C8(s){zT=s}var y8;function S8(s){y8=s}var Xp=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t,i=yt.ofCaller()){let n=t===void 0?void 0:e,o=t===void 0?e:t;return zT({owner:n,debugName:()=>{let r=Qp(o);if(r!==void 0)return r;let l=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());if(l)return`${this.debugName}.${l[2]}`;if(!n)return`${this.debugName} (mapped)`},debugReferenceFn:o},r=>o(this.read(r),r),i)}flatten(){return zT({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(y8(this,t)),this}},Gs=class extends Xp{constructor(e){super(),this._observers=new Set,di()?.handleObservableCreated(this,e)}addObserver(e){let t=this._observers.size;this._observers.add(e),t===0&&this.onFirstObserverAdded(),t!==this._observers.size&&di()?.handleOnListenerCountChanged(this,this._observers.size)}removeObserver(e){let t=this._observers.delete(e);t&&this._observers.size===0&&this.onLastObserverRemoved(),t&&di()?.handleOnListenerCountChanged(this,this._observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers}};function AG(s){switch(s){case 0:return"initial";case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>"}}var Vn=class extends Gs{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n=void 0,o,r){super(r),this._debugNameData=e,this._computeFn=t,this._changeTracker=i,this._handleLastObserverRemoved=n,this._equalityComparator=o,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=this._changeTracker?.createChangeSummary(void 0)}onLastObserverRemoved(){this._state=0,this._value=void 0,di()?.handleDerivedCleared(this);for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._delayedStore!==void 0&&(this._delayedStore.dispose(),this._delayedStore=void 0),this._handleLastObserverRemoved?.()}get(){if(this._isComputing,this._observers.size===0){let t;try{this._isReaderValid=!0;let i;this._changeTracker&&(i=this._changeTracker.createChangeSummary(void 0),this._changeTracker.beforeUpdate?.(this,i)),t=this._computeFn(this,i)}finally{this._isReaderValid=!1}return this.onLastObserverRemoved(),t}else{do{if(this._state===1){for(let t of this._dependencies)if(t.reportChanges(),this._state===2)break}this._state===1&&(this._state=3),this._state!==3&&this._recompute()}while(this._state!==3);return this._value}}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;let t=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=t;try{let i=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,this._changeTracker.beforeUpdate?.(this,i),this._isInBeforeUpdate=!1,this._changeSummary=this._changeTracker?.createChangeSummary(i));let n=this._state!==0,o=this._value;this._state=3;let r=this._delayedStore;r!==void 0&&(this._delayedStore=void 0);try{this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,i)}finally{this._isReaderValid=!1;for(let a of this._dependenciesToBeRemoved)a.removeObserver(this);this._dependenciesToBeRemoved.clear(),r!==void 0&&r.dispose()}e=this._didReportChange||n&&!this._equalityComparator(o,this._value),di()?.handleObservableUpdated(this,{oldValue:o,newValue:this._value,change:void 0,didChange:e,hadValue:n})}catch(i){rf(i)}if(this._isComputing=!1,!this._didReportChange&&e)for(let i of this._observers)i.handleChange(this,void 0);else this._didReportChange=!1}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){if(this._isUpdating)throw new te("Cyclic deriveds are not supported yet!");this._updateCount++,this._isUpdating=!0;try{let t=this._updateCount===1;if(this._state===3&&(this._state=1,!t))for(let i of this._observers)i.handlePossibleChange(this);if(t)for(let i of this._observers)i.beginUpdate(this)}finally{this._isUpdating=!1}}endUpdate(e){if(this._updateCount--,this._updateCount===0){let t=[...this._observers];for(let i of t)i.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let i=[...this._removedObserverToCallEndUpdateOn];this._removedObserverToCallEndUpdateOn=null;for(let n of i)n.endUpdate(this)}}mo(()=>this._updateCount>=0)}handlePossibleChange(e){if(this._state===3&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)){this._state=1;for(let t of this._observers)t.handlePossibleChange(this)}}handleChange(e,t){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){di()?.handleDerivedDependencyChanged(this,e,t);let i=!1;try{i=this._changeTracker?this._changeTracker.handleChange({changedObservable:e,change:t,didChange:o=>o===e},this._changeSummary):!0}catch(o){rf(o)}let n=this._state===3;if(i&&(this._state===1||n)&&(this._state=2,n))for(let o of this._observers)o.handlePossibleChange(this)}}_ensureReaderValid(){if(!this._isReaderValid)throw new te("The reader object cannot be used outside its compute function!")}readObservable(e){this._ensureReaderValid(),e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){return this._ensureReaderValid(),this._store===void 0&&(this._store=new q),this._store}addObserver(e){let t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&(this._removedObserverToCallEndUpdateOn&&this._removedObserverToCallEndUpdateOn.has(e)?this._removedObserverToCallEndUpdateOn.delete(e):e.beginUpdate(this))}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set),this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e)}debugGetState(){return{state:this._state,stateStr:AG(this._state),updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value}}debugSetValue(e){this._value=e}debugRecompute(){this._isComputing?this._state=2:this._recompute()}setValue(e,t,i){this._value=e;let n=this._observers;t.updateObserver(this,this);for(let o of n)o.handleChange(this,i)}},yv=class extends Vn{constructor(e,t,i,n=void 0,o,r,a){super(e,t,i,n,o,a),this.set=r}};function ne(s,e,t=yt.ofCaller()){return e!==void 0?new Vn(new ei(s,void 0,e),e,void 0,void 0,Wn,t):new Vn(new ei(void 0,void 0,s),s,void 0,void 0,Wn,t)}function nh(s,e,t,i=yt.ofCaller()){return new yv(new ei(s,void 0,e),e,void 0,void 0,Wn,t,i)}function In(s,e,t=yt.ofCaller()){return new Vn(new ei(s.owner,s.debugName,s.debugReferenceFn),e,void 0,s.onLastObserverRemoved,s.equalsFn??Wn,t)}C8(In);function OG(s,e,t=yt.ofCaller()){return new Vn(new ei(s.owner,s.debugName,void 0),e,s.changeTracker,void 0,s.equalityComparer??Wn,t)}function Ys(s,e,t=yt.ofCaller()){let i,n;e===void 0?(i=s,n=void 0):(n=s,i=e);let o;return new Vn(new ei(n,void 0,i),r=>{o?o.clear():o=new q;let a=i(r);return a&&o.add(a),a},void 0,()=>{o&&(o.dispose(),o=void 0)},Wn,t)}function PG(s){switch(s){case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>"}}var ml=class{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n){this._debugNameData=e,this._runFn=t,this._changeTracker=i,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._isRunning=!1,this._store=void 0,this._delayedStore=void 0,this._changeSummary=this._changeTracker?.createChangeSummary(void 0),di()?.handleAutorunCreated(this,n),this._run()}dispose(){if(!this._disposed){this._disposed=!0;for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&this._store.dispose(),this._delayedStore!==void 0&&this._delayedStore.dispose(),di()?.handleAutorunDisposed(this)}}_run(){let e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){di()?.handleAutorunStarted(this);let t=this._changeSummary,i=this._delayedStore;i!==void 0&&(this._delayedStore=void 0);try{this._isRunning=!0,this._changeTracker&&(this._changeTracker.beforeUpdate?.(this,t),this._changeSummary=this._changeTracker.createChangeSummary(t)),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._runFn(this,t)}catch(n){rf(n)}finally{this._isRunning=!1,i!==void 0&&i.dispose()}}}finally{this._disposed||di()?.handleAutorunFinished(this);for(let t of this._dependenciesToBeRemoved)t.removeObserver(this);this._dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(e){this._state===3&&(this._state=1),this._updateCount++}endUpdate(e){try{if(this._updateCount===1)do{if(this._state===1){this._state=3;for(let t of this._dependencies)if(t.reportChanges(),this._state===2)break}this._state!==3&&this._run()}while(this._state!==3)}finally{this._updateCount--}mo(()=>this._updateCount>=0)}handlePossibleChange(e){this._state===3&&this._isDependency(e)&&(this._state=1)}handleChange(e,t){if(this._isDependency(e)){di()?.handleAutorunDependencyChanged(this,e,t);try{(this._changeTracker?this._changeTracker.handleChange({changedObservable:e,change:t,didChange:n=>n===e},this._changeSummary):!0)&&(this._state=2)}catch(i){rf(i)}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)}_ensureNoRunning(){if(!this._isRunning)throw new te("The reader object cannot be used outside its compute function!")}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){if(this._ensureNoRunning(),this._disposed)throw new te("Cannot access store after dispose");return this._store===void 0&&(this._store=new q),this._store}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state,stateStr:PG(this._state)}}debugRerun(){this._isRunning?this._state=2:this._run()}};function we(s,e=yt.ofCaller()){return new ml(new ei(void 0,void 0,s),s,void 0,e)}function Lf(s,e,t=yt.ofCaller()){return new ml(new ei(s.owner,s.debugName,s.debugReferenceFn??e),e,void 0,t)}function ia(s,e,t=yt.ofCaller()){return new ml(new ei(s.owner,s.debugName,s.debugReferenceFn??e),e,s.changeTracker,t)}function x8(s,e){let t=new q,i=ia({owner:s.owner,debugName:s.debugName,debugReferenceFn:s.debugReferenceFn??e,changeTracker:s.changeTracker},(n,o)=>{t.clear(),e(n,o,t)});return j(()=>{i.dispose(),t.dispose()})}function Xi(s){let e=new q,t=Lf({owner:void 0,debugName:void 0,debugReferenceFn:s},i=>{e.clear(),s(i,e)});return j(()=>{t.dispose(),e.dispose()})}function qle(s,e){let t;return Lf({debugReferenceFn:e},i=>{let n=s.read(i),o=t;t=n,e({lastValue:o,newValue:n})})}function UT(s){let e=new Error("BugIndicatingErrorRecovery: "+s);Se(e),console.error("recovered from an error that indicates a bug",e)}function rt(s,e){let t=new fr(s,e);try{s(t)}finally{t.finish()}}var Sv;function sh(s){if(Sv)s(Sv);else{let e=new fr(s,void 0);Sv=e;try{s(e)}finally{e.finish(),Sv=void 0}}}async function tce(s,e){let t=new fr(s,e);try{await s(t)}finally{t.finish()}}function kf(s,e,t){s?e(s):rt(e,t)}var fr=class{constructor(e,t){this._fn=e,this._getDebugName=t,this._updatingObservers=[],di()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():Qp(this._fn)}updateObserver(e,t){if(!this._updatingObservers){UT("Transaction already finished!"),rt(i=>{i.updateObserver(e,t)});return}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){let e=this._updatingObservers;if(!e){UT("transaction.finish() has already been called!");return}for(let t=0;t<e.length;t++){let{observer:i,observable:n}=e[t];i.endUpdate(n)}this._updatingObservers=null,di()?.handleEndTransaction(this)}debugGetUpdatingObservers(){return this._updatingObservers}};function Ke(...s){let e,t,i,n;return s.length===2?[t,i]=s:[e,t,i,n]=s,new zo(new ei(e,void 0,i),t,i,()=>zo.globalTransaction,Wn,n??yt.ofCaller())}function $T(s,e,t,i=yt.ofCaller()){return new zo(new ei(s.owner,s.debugName,s.debugReferenceFn??t),e,t,()=>zo.globalTransaction,s.equalsFn??Wn,i)}var zo=class extends Gs{constructor(e,t,i,n,o,r){super(r),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=n,this._equalityComparator=o,this._hasValue=!1,this.handleEvent=a=>{let l=this._getValue(a),c=this._value,d=!this._hasValue||!this._equalityComparator(c,l),h=!1;d&&(this._value=l,this._hasValue&&(h=!0,kf(this._getTransaction(),u=>{di()?.handleObservableUpdated(this,{oldValue:c,newValue:l,change:void 0,didChange:d,hadValue:this._hasValue});for(let f of this._observers)u.updateObserver(f,this),f.handleChange(this,void 0)},()=>{let u=this.getDebugName();return"Event fired"+(u?`: ${u}`:"")})),this._hasValue=!0),h||di()?.handleObservableUpdated(this,{oldValue:c,newValue:l,change:void 0,didChange:d,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}debugGetState(){return{value:this._value,hasValue:this._hasValue}}};(function(s){s.Observer=zo;function e(t,i){let n=!1;zo.globalTransaction===void 0&&(zo.globalTransaction=t,n=!0);try{i()}finally{n&&(zo.globalTransaction=void 0)}}s.batchEventsGlobally=e})(Ke||(Ke={}));function FG(s,e){let t=!1,i,n;return Ke(o=>{let r=we(a=>{let l=s.read(a);t?(n&&clearTimeout(n),n=setTimeout(()=>{i=l,o()},e)):(t=!0,i=l)});return{dispose(){r.dispose(),t=!1,i=void 0}}},()=>t?i:s.get())}function Lc(s,e){let t=new qT(!0,e);s.addObserver(t);try{t.beginUpdate(s)}finally{t.endUpdate(s)}return j(()=>{s.removeObserver(t)})}S8(Lc);var qT=class{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter===1&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--}handlePossibleChange(e){}handleChange(e,t){}};function KT(s,e){let t;return In({owner:s,debugReferenceFn:e},n=>(t=e(n,t),t))}function BG(s,e,t,i){let n=new xv(t,i);return In({debugReferenceFn:t,owner:s,onLastObserverRemoved:()=>{n.dispose(),n=new xv(t)}},r=>(n.setItems(e.read(r)),n.getItems()))}var xv=class{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){let t=[],i=new Set(this._cache.keys());for(let n of e){let o=this._keySelector?this._keySelector(n):n,r=this._cache.get(o);if(r)i.delete(o);else{let a=new q;r={out:this._map(n,a),store:a},this._cache.set(o,r)}t.push(r.out)}for(let n of i)this._cache.get(n).store.dispose(),this._cache.delete(n);this._items=t}getItems(){return this._items}};function oh(s,e){switch(typeof s){case"number":return""+s;case"string":return s.length+2<=e?`"${s}"`:`"${s.substr(0,e-7)}"+...`;case"boolean":return s?"true":"false";case"undefined":return"undefined";case"object":return s===null?"null":Array.isArray(s)?WG(s,e):VG(s,e);case"symbol":return s.toString();case"function":return`[[Function${s.name?" "+s.name:""}]]`;default:return""+s}}function WG(s,e){let t="[ ",i=!0;for(let n of s){if(i||(t+=", "),t.length-5>e){t+="...";break}i=!1,t+=`${oh(n,e-t.length)}`}return t+=" ]",t}function VG(s,e){if(typeof s.toString=="function"&&s.toString!==Object.prototype.toString){let o=s.toString();return o.length<=e?o:o.substring(0,e-3)+"..."}let t=HT(s),i=t?t+"(":"{ ",n=!0;for(let[o,r]of Object.entries(s)){if(n||(i+=", "),i.length-5>e){i+="...";break}n=!1,i+=`${o}: ${oh(r,e-i.length)}`}return i+=t?")":" }",i}var Lv=class s{static createClient(e,t){return new s(e,t)}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:o=>{let r=o,a=this._getHandler().notifications[r[0]];if(!a)throw new Error(`Unknown notification "${r[0]}"!`);a(...r[1])},handleRequest:o=>{let r=o;try{return{type:"result",value:this._getHandler().requests[r[0]](...r[1])}}catch(a){return{type:"error",value:a}}}});let i=new Proxy({},{get:(o,r)=>async(...a)=>{let l=await this._channel.sendRequest([r,a]);if(l.type==="error")throw l.value;return l.value}}),n=new Proxy({},{get:(o,r)=>(...a)=>{this._channel.sendNotification([r,a])}});this.api={notifications:n,requests:i}}};function L8(s,e){let t=globalThis,i=[],n,{channel:o,handler:r}=HG({sendNotification:l=>{n?n.sendNotification(l):i.push(l)}}),a;return(t.$$debugValueEditor_debugChannels??(t.$$debugValueEditor_debugChannels={}))[s]=l=>{a=e(),n=l;for(let c of i)l.sendNotification(c);return i=[],r},Lv.createClient(o,()=>{if(!a)throw new Error("Not supported");return a})}function HG(s){let e;return{channel:i=>(e=i,{sendNotification:n=>{s.sendNotification(n)},sendRequest:n=>{throw new Error("not supported")}}),handler:{handleRequest:i=>i.type==="notification"?e?.handleNotification(i.data):e?.handleRequest(i.data)}}}var kv=class{constructor(){this._timeout=void 0}throttle(e,t){this._timeout===void 0&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e()},t))}dispose(){this._timeout!==void 0&&clearTimeout(this._timeout)}};function jT(s,e){for(let t in e)s[t]&&typeof s[t]=="object"&&e[t]&&typeof e[t]=="object"?jT(s[t],e[t]):s[t]=e[t]}function GT(s,e){for(let t in e)e[t]===null?delete s[t]:s[t]&&typeof s[t]=="object"&&e[t]&&typeof e[t]=="object"?GT(s[t],e[t]):s[t]=e[t]}function fe(s,e,t=yt.ofCaller()){let i;return typeof s=="string"?i=new ei(void 0,s,void 0):i=new ei(s,void 0,void 0),new pl(i,e,Wn,t)}var pl=class extends Gs{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i,n){super(n),this._debugNameData=e,this._equalityComparator=i,this._value=t,di()?.handleObservableUpdated(this,{hadValue:!1,newValue:t,change:void 0,didChange:!0,oldValue:void 0})}get(){return this._value}set(e,t,i){if(i===void 0&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new fr(()=>{},()=>`Setting ${this.debugName}`));try{let o=this._value;this._setValue(e),di()?.handleObservableUpdated(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(let r of this._observers)t.updateObserver(r,this),r.handleChange(this,i)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}debugGetState(){return{value:this._value}}debugSetValue(e){this._value=e}};function Dv(s,e,t=yt.ofCaller()){let i;return typeof s=="string"?i=new ei(void 0,s,void 0):i=new ei(s,void 0,void 0),new YT(i,e,Wn,t)}var YT=class extends pl{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}};var Iv=class s{static{this._instance=void 0}static getInstance(){return s._instance===void 0&&(s._instance=new s),s._instance}getTransactionState(){let e=[],t=[...this._activeTransactions];if(t.length===0)return;let i=t.flatMap(o=>o.debugGetUpdatingObservers()??[]).map(o=>o.observer),n=new Set;for(;i.length>0;){let o=i.shift();if(n.has(o))continue;n.add(o);let r=this._getInfo(o,a=>{n.has(a)||i.push(a)});r&&e.push(r)}return{names:t.map(o=>o.getDebugName()??"tx"),affected:e}}_getObservableInfo(e){let t=this._instanceInfos.get(e);if(!t){Se(new te("No info found"));return}return t}_getAutorunInfo(e){let t=this._instanceInfos.get(e);if(!t){Se(new te("No info found"));return}return t}_getInfo(e,t){if(e instanceof Vn){let i=[...e.debugGetObservers()];for(let l of i)t(l);let n=this._getObservableInfo(e);if(!n)return;let o=e.debugGetState(),r={name:e.debugName,instanceId:n.instanceId,updateCount:o.updateCount},a=[...n.changedObservables].map(l=>this._instanceInfos.get(l)?.instanceId).filter(Sn);if(o.isComputing)return{...r,type:"observable/derived",state:"updating",changedDependencies:a,initialComputation:!1};switch(o.state){case 0:return{...r,type:"observable/derived",state:"noValue"};case 3:return{...r,type:"observable/derived",state:"upToDate"};case 2:return{...r,type:"observable/derived",state:"stale",changedDependencies:a};case 1:return{...r,type:"observable/derived",state:"possiblyStale"}}}else if(e instanceof ml){let i=this._getAutorunInfo(e);if(!i)return;let n={name:e.debugName,instanceId:i.instanceId,updateCount:i.updateCount},o=[...i.changedObservables].map(r=>this._instanceInfos.get(r).instanceId);if(e.debugGetState().isRunning)return{...n,type:"autorun",state:"updating",changedDependencies:o};switch(e.debugGetState().state){case 3:return{...n,type:"autorun",state:"upToDate"};case 2:return{...n,type:"autorun",state:"stale",changedDependencies:o};case 1:return{...n,type:"autorun",state:"possiblyStale"}}}}_formatObservable(e){let t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId}}_formatObserver(e){if(e instanceof Vn)return{name:e.toString(),instanceId:this._getObservableInfo(e)?.instanceId};let t=this._getAutorunInfo(e);if(t)return{name:e.toString(),instanceId:t.instanceId}}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map,this._instanceInfos=new WeakMap,this._aliveInstances=new Map,this._activeTransactions=new Set,this._channel=L8("observableDevTools",()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log("logObservableValue",e)},flushUpdates:()=>{this._flushUpdates()},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0)}},requests:{getDeclarations:()=>{let e={};for(let t of this._declarations.values())e[t.id]=t;return{decls:e}},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(i=>this._formatObserver(i)).filter(Sn)}),getDerivedInfo:e=>{let t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(i=>this._formatObservable(i)).filter(Sn),observers:[...t.debugGetObservers()].map(i=>this._formatObserver(i)).filter(Sn)}},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(i=>this._formatObservable(i)).filter(Sn)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{let i=this._aliveInstances.get(e);if(i instanceof Vn)i.debugSetValue(t);else if(i instanceof pl)i.debugSetValue(t);else if(i instanceof zo)i.debugSetValue(t);else throw new te("Observable is not supported");let n=[...i.debugGetObservers()];for(let o of n)o.beginUpdate(i);for(let o of n)o.handleChange(i,void 0);for(let o of n)o.endUpdate(i)},getValue:e=>{let t=this._aliveInstances.get(e);if(t instanceof Vn)return oh(t.debugGetState().value,200);if(t instanceof pl)return oh(t.debugGetState().value,200)},logValue:e=>{let t=this._aliveInstances.get(e);if(t&&"get"in t)console.log("Logged Value:",t.get());else throw new te("Observable is not supported")},rerun:e=>{let t=this._aliveInstances.get(e);if(t instanceof Vn)t.debugRecompute();else if(t instanceof ml)t.debugRerun();else throw new te("Observable is not supported")}}})),this._pendingChanges=null,this._changeThrottler=new kv,this._fullState={},this._flushUpdates=()=>{this._pendingChanges!==null&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null)},yt.enable()}_handleChange(e){GT(this._fullState,e),this._pendingChanges===null?this._pendingChanges=e:jT(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10)}_getDeclarationId(e,t){if(!t)return-1;let i=this._declarations.get(t.id);return i===void 0&&(i={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,i),this._handleChange({decls:{[i.id]:i}})),i.id}handleObservableCreated(e,t){let n={declarationId:this._getDeclarationId("observable/value",t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n)}handleOnListenerCountChanged(e,t){let i=this._getObservableInfo(e);if(i){if(i.listenerCount===0&&t>0){let n=e instanceof Vn?"observable/derived":"observable/value";this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,formattedValue:i.lastValue,type:n,name:e.debugName}}})}else i.listenerCount>0&&t===0&&(this._handleChange({instances:{[i.instanceId]:null}}),this._aliveInstances.delete(i.instanceId));i.listenerCount=t}}handleObservableUpdated(e,t){if(e instanceof Vn){this._handleDerivedRecomputed(e,t);return}let i=this._getObservableInfo(e);i&&t.didChange&&(i.lastValue=oh(t.newValue,30),i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:i.lastValue}}}))}handleAutorunCreated(e,t){let n={declarationId:this._getDeclarationId("autorun",t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n),this._aliveInstances.set(n.instanceId,e),n&&this._handleChange({instances:{[n.instanceId]:{instanceId:n.instanceId,declarationId:n.declarationId,runCount:0,type:"autorun",name:e.debugName}}})}handleAutorunDisposed(e){let t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId))}handleAutorunDependencyChanged(e,t,i){let n=this._getAutorunInfo(e);n&&n.changedObservables.add(t)}handleAutorunStarted(e){}handleAutorunFinished(e){let t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}))}handleDerivedDependencyChanged(e,t,i){let n=this._getObservableInfo(e);n&&n.changedObservables.add(t)}_handleDerivedRecomputed(e,t){let i=this._getObservableInfo(e);if(!i)return;let n=oh(t.newValue,30);i.updateCount++,i.changedObservables.clear(),i.lastValue=n,i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:n,recomputationCount:i.updateCount}}})}handleDerivedCleared(e){let t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}))}handleBeginTransaction(e){this._activeTransactions.add(e)}handleEndTransaction(e){this._activeTransactions.delete(e)}};Qd&&Qd.VSCODE_DEV_DEBUG_OBSERVABLES&&m8(Iv.getInstance());var{getWindow:J,getDocument:eN,getWindows:Mv,getWindowsCount:T8,getWindowId:_l,getWindowById:Rv,onDidRegisterWindow:na,onWillUnregisterWindow:tN,onDidUnregisterWindow:iN}=(function(){let s=new Map;uF(Pe,1);let e={window:Pe,disposables:new q};s.set(Pe.vscodeWindowId,e);let t=new E,i=new E,n=new E;function o(r,a){return(typeof r=="number"?s.get(r):void 0)??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return N.None;let a=new q,l={window:r,disposables:a.add(new q)};return s.set(r.vscodeWindowId,l),a.add(j(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(O(r,K.BEFORE_UNLOAD,()=>{n.fire(r)})),t.fire(l),a},getWindows(){return s.values()},getWindowsCount(){return s.size},getWindowId(r){return r.vscodeWindowId},hasWindow(r){return s.has(r)},getWindowById:o,getWindow(r){let a=r;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;let l=r;return l?.view?l.view.window:Pe},getDocument(r){return J(r).document}}})();function dn(s){for(;s.firstChild;)s.firstChild.remove()}var ZT=class{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function O(s,e,t,i){return new ZT(s,e,t,i)}function N8(s,e){return function(t){return e(new fi(s,t))}}function zG(s){return function(e){return s(new Re(e))}}var Mt=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"||t==="contextmenu"?o=N8(J(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=zG(i)),O(e,t,o,n)},UG=function(e,t,i){let n=N8(J(e),t);return Av(e,n,i)};function Av(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_DOWN:K.MOUSE_DOWN,e,t)}function nN(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_MOVE:K.MOUSE_MOVE,e,t)}function Ov(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_UP:K.MOUSE_UP,e,t)}function If(s,e,t){return hf(s,e,t)}var QT=class extends Ap{constructor(e,t){super(e,t)}},Pv,mi,bl=class extends wc{constructor(e){super(),this.defaultTarget=e&&J(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}},Jp=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Se(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let s=new Map,e=new Map,t=new Map,i=new Map,n=o=>{t.set(o,!1);let r=s.get(o)??[];for(e.set(o,r),s.set(o,[]),i.set(o,!0);r.length>0;)r.sort(Jp.sort),r.shift().execute();i.set(o,!1)};mi=(o,r,a=0)=>{let l=_l(o),c=new Jp(r,a),d=s.get(l);return d||(d=[],s.set(l,d)),d.push(c),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),c},Pv=(o,r,a)=>{let l=_l(o);if(i.get(l)){let c=new Jp(r,a),d=e.get(l);return d||(d=[],e.set(l,d)),d.push(c),c}else return mi(o,r,a)}})();function Fv(s){return J(s).getComputedStyle(s,null)}function Ef(s,e,t){let i=J(s),n=i.document;if(s!==n.body)return new gr(s.clientWidth,s.clientHeight);if(ss&&i?.visualViewport)return new gr(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new gr(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new gr(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new gr(n.documentElement.clientWidth,n.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var rs=class s{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t){let i=Fv(e),n=i?i.getPropertyValue(t):"0";return s.convertToPixels(e,n)}static getBorderLeftWidth(e){return s.getDimension(e,"border-left-width")}static getBorderRightWidth(e){return s.getDimension(e,"border-right-width")}static getBorderTopWidth(e){return s.getDimension(e,"border-top-width")}static getBorderBottomWidth(e){return s.getDimension(e,"border-bottom-width")}static getPaddingLeft(e){return s.getDimension(e,"padding-left")}static getPaddingRight(e){return s.getDimension(e,"padding-right")}static getPaddingTop(e){return s.getDimension(e,"padding-top")}static getPaddingBottom(e){return s.getDimension(e,"padding-bottom")}static getMarginLeft(e){return s.getDimension(e,"margin-left")}static getMarginTop(e){return s.getDimension(e,"margin-top")}static getMarginRight(e){return s.getDimension(e,"margin-right")}static getMarginBottom(e){return s.getDimension(e,"margin-bottom")}},gr=class s{static{this.None=new s(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new s(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof s?e:new s(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};function sN(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==s.ownerDocument.body&&s!==s.ownerDocument.documentElement;){t-=s.scrollTop;let n=rN(s)?null:Fv(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=rs.getBorderLeftWidth(s),t+=rs.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function $G(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function Ai(s){let e=s.getBoundingClientRect(),t=J(s);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function i_(s){let e=s,t=1;do{let i=Fv(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function ah(s){let e=rs.getMarginLeft(s)+rs.getMarginRight(s);return s.offsetWidth+e}function n_(s){let e=rs.getBorderLeftWidth(s)+rs.getBorderRightWidth(s),t=rs.getPaddingLeft(s)+rs.getPaddingRight(s);return s.offsetWidth-e-t}function oN(s){let e=rs.getBorderTopWidth(s)+rs.getBorderBottomWidth(s),t=rs.getPaddingTop(s)+rs.getPaddingBottom(s);return s.offsetHeight-e-t}function Tf(s){let e=rs.getMarginTop(s)+rs.getMarginBottom(s);return s.offsetHeight+e}function Nt(s,e){return!!e?.contains(s)}function M8(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function s_(s,e,t){return!!M8(s,e,t)}function rN(s){return s&&!!s.host&&!!s.mode}function Dc(s){return!!Uo(s)}function Uo(s){for(;s.parentNode;){if(s===s.ownerDocument?.body)return null;s=s.parentNode}return rN(s)?s:null}function St(){let s=lh().activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s}function Nf(s){return St()===s}function o_(s){return Nt(St(),s)}function lh(){return T8()<=1?Pe.document:Array.from(Mv()).map(({window:e})=>e.document).find(e=>e.hasFocus())??Pe.document}function He(){return lh().defaultView?.window??Pe}var aN=new class{constructor(){this.mutationObservers=new Map}observe(s,e,t){let i=this.mutationObservers.get(s);i||(i=new Map,this.mutationObservers.set(s,i));let n=yf(t),o=i.get(n);if(o)o.users+=1;else{let r=new E,a=new MutationObserver(c=>r.fire(c));a.observe(s,t);let l=o={users:1,observer:a,onDidMutate:r.event};e.add(j(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i?.delete(n),i?.size===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};function je(s){return s instanceof HTMLElement||s instanceof J(s).HTMLElement}function Bv(s){return s instanceof HTMLAnchorElement||s instanceof J(s).HTMLAnchorElement}function Wv(s){return s instanceof SVGElement||s instanceof J(s).SVGElement}function ch(s){return s instanceof MouseEvent||s instanceof J(s).MouseEvent}function vo(s){return s instanceof KeyboardEvent||s instanceof J(s).KeyboardEvent}var K={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function lN(s){let e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}var Ae={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function cN(s){let e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function dN(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}var XT=class s extends N{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(je(e)){let t=Uo(e),i=t?t.activeElement:e.ownerDocument.activeElement;return Nt(i,e)}else{let t=e;return Nt(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new E),this._onDidBlur=this._register(new E);let t=s.hasFocusWithin(e),i=!1,n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(je(e)?J(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{s.hasFocusWithin(e)!==t&&(t?o():n())},this._register(O(e,K.FOCUS,n,!0)),this._register(O(e,K.BLUR,o,!0)),je(e)&&(this._register(O(e,K.FOCUS_IN,()=>this._refreshStateHandler())),this._register(O(e,K.FOCUS_OUT,()=>this._refreshStateHandler())))}};function $o(s){return new XT(s)}function hN(s,e){return s.after(e),e}function ee(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function wl(s,e){return s.insertBefore(e,s.firstChild),e}function Kt(s,...e){s.textContent="",ee(s,...e)}var qG=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/,Df;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Df||(Df={}));function R8(s,e,t,...i){let n=qG.exec(e);if(!n)throw new Error("Bad use of emmet");let o=n[1]||"div",r;return s!==Df.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ie(s,e,...t){return R8(Df.HTML,s,e,...t)}ie.SVG=function(s,e,...t){return R8(Df.SVG,s,e,...t)};function KG(s,...e){s?Mf(...e):r_(...e)}function Mf(...s){for(let e of s)e.style.display="",e.removeAttribute("aria-hidden")}function r_(...s){for(let e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function Vv(s,e){let t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function a_(s){Pe.open(s,"_blank","noopener")}function uN(s,e){let t=()=>{e(),i=mi(s,t)},i=mi(s,t);return j(()=>i.dispose())}MT.setPreferredWebSchema(/^https:/.test(Pe.location.href)?"https":"http");var kc=class s extends E{constructor(){super(),this._subscriptions=new q,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add($.runAndSubscribe(na,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Pe,disposables:this._subscriptions}))}registerListeners(e,t){t.add(O(e,"keydown",i=>{if(i.defaultPrevented)return;let n=new Re(i);if(!(n.keyCode===6&&i.repeat)){if(i.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(i.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(i.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(i.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(n.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=i,this.fire(this._keyStatus))}},!0)),t.add(O(e,"keyup",i=>{i.defaultPrevented||(!i.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!i.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!i.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!i.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=i,this.fire(this._keyStatus)))},!0)),t.add(O(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(O(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return s.instance||(s.instance=new s),s.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},e_=class extends N{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(O(this.element,K.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(O(this.element,K.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(O(this.element,K.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(O(this.element,K.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(O(this.element,K.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(O(this.element,K.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(O(this.element,K.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}},jG=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Fe(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);let n=jG.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");let o=n.groups.tag||"div",r=document.createElement(o);n.groups.id&&(r.id=n.groups.id);let a=[];if(n.groups.class)for(let c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(let c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));let l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(let c of i)je(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(let[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(let[h,u]of Object.entries(d))r.style.setProperty(t_(h),typeof u=="number"?u+"px":""+u);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(t_(c),d.toString());return l.root=r,l}function t_(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s){return s.tagName.toLowerCase()==="input"||s.tagName.toLowerCase()==="textarea"||je(s)&&!!s.editContext}var JT;(function(s){function e(n=void 0){return(o,r,a)=>{let l=r.class;delete r.class;let c=r.ref;delete r.ref;let d=r.obsRef;return delete r.obsRef,new Nv(o,c,d,n,l,r,a)}}function t(n,o=void 0){let r=e(o);return(a,l)=>r(n,a,l)}s.div=t("div"),s.elem=e(void 0),s.svg=t("svg","http://www.w3.org/2000/svg"),s.svgElem=e("http://www.w3.org/2000/svg");function i(){let n,o=function(r){n=r};return Object.defineProperty(o,"element",{get(){if(!n)throw new te("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return n}}),o}s.ref=i})(JT||(JT={}));var Ev=class s{constructor(e,t,i,n,o,r,a){this._deriveds=[],this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push(ne(l=>{i(this),l.store.add({dispose:()=>{i(null)}})})),o&&(O8(o)?this._deriveds.push(ne(this,l=>{k8(this._element,D8(o,l))})):k8(this._element,D8(o,void 0)));for(let[l,c]of Object.entries(r))if(l==="style")for(let[d,h]of Object.entries(c)){let u=t_(d);rh(h)?this._deriveds.push(In({owner:this,debugName:()=>`set.style.${u}`},f=>{this._element.style.setProperty(u,I8(h.read(f)))})):this._element.style.setProperty(u,I8(h))}else l==="tabIndex"?rh(c)?this._deriveds.push(ne(this,d=>{this._element.tabIndex=c.read(d)})):this._element.tabIndex=c:l.startsWith("on")?this._element[l]=c:rh(c)?this._deriveds.push(In({owner:this,debugName:()=>`set.${l}`},d=>{E8(this._element,l,c.read(d))})):E8(this._element,l,c);if(a){let l=function(d,h){return rh(h)?l(d,h.read(d)):Array.isArray(h)?h.flatMap(u=>l(d,u)):h instanceof s?(d&&h.readEffect(d),[h._element]):h?[h]:[]},c=ne(this,d=>{this._element.replaceChildren(...l(d,a))});this._deriveds.push(c),P8(a)||c.get()}}readEffect(e){for(let t of this._deriveds)t.read(e)}keepUpdated(e){return ne(t=>{this.readEffect(t)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){let e=new q;return this.keepUpdated(e),new Tv(this._element,e)}};function k8(s,e){Wv(s)?s.setAttribute("class",e):s.className=e}function A8(s,e,t){if(rh(s)){t(s.read(e));return}if(Array.isArray(s)){for(let i of s)A8(i,e,t);return}t(s)}function D8(s,e){let t="";return A8(s,e,i=>{i&&(t.length===0?t=i:t+=" "+i)}),t}function O8(s){return rh(s)?!0:Array.isArray(s)?s.some(e=>O8(e)):!1}function I8(s){return typeof s=="number"?s+"px":s}function P8(s){return rh(s)?!0:Array.isArray(s)?s.some(e=>P8(e)):!1}var Tv=class{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}},Nv=class extends Ev{constructor(){super(...arguments),this._isHovered=void 0,this._didMouseMoveDuringHover=void 0}get element(){return this._element}get isHovered(){if(!this._isHovered){let e=fe("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=fe("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",i=>{e=!0}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0)}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}};function E8(s,e,t){t==null?s.removeAttribute(t_(e)):s.setAttribute(t_(e),String(t))}function rh(s){return!!s&&s.read!==void 0&&s.reportChanges!==void 0}var F8=2e4,dh,Hv,fN,zv,gN;function B8(s){dh=document.createElement("div"),dh.className="monaco-aria-container";let e=()=>{let i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),dh.appendChild(i),i};Hv=e(),fN=e();let t=()=>{let i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),dh.appendChild(i),i};zv=t(),gN=t(),s.appendChild(dh)}function Ic(s){dh&&(Hv.textContent!==s?(dn(fN),Uv(Hv,s)):(dn(Hv),Uv(fN,s)))}function hh(s){dh&&(zv.textContent!==s?(dn(gN),Uv(zv,s)):(dn(zv),Uv(gN,s)))}function Uv(s,e){dn(s),e.length>F8&&(e=e.substr(0,F8)),s.textContent=e,s.style.visibility="hidden",s.style.visibility="visible"}var qo;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(qo||(qo={}));var ue=oe("instantiationService");function YG(s,e,t){e[qo.DI_TARGET]===e?e[qo.DI_DEPENDENCIES].push({id:s,index:t}):(e[qo.DI_DEPENDENCIES]=[{id:s,index:t}],e[qo.DI_TARGET]=e)}function oe(s){if(qo.serviceIds.has(s))return qo.serviceIds.get(s);let e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");YG(e,t,n)};return e.toString=()=>s,qo.serviceIds.set(s,e),e}var _t=oe("codeEditorService");var M=class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let i=e.lineNumber|0,n=t.lineNumber|0;if(i===n){let o=e.column|0,r=t.column|0;return o-r}return i-n}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var yi=oe("modelService");var Ec=oe("textModelService");var Zs=class extends N{get onDidChange(){return this._onDidChange.event}constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new E),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}},Ds=class extends N{constructor(){super(...arguments),this._onWillRun=this._register(new E),this._onDidRun=this._register(new E)}get onWillRun(){return this._onWillRun.event}get onDidRun(){return this._onDidRun.event}async run(e,t){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}},Yt=class s{constructor(){this.id=s.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(let i of e)i.length&&(t.length?t=[...t,new s,...i]:t=i);return t}static{this.ID="vs.actions.separator"}async run(){}},sa=class{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}},$v=class s extends Zs{static{this.ID="vs.actions.empty"}constructor(){super(s.ID,m(28,"(empty)"),void 0,!1)}};function oa(s){return{id:s.id,label:s.label,tooltip:s.tooltip??s.label,class:s.class,enabled:s.enabled??!0,checked:s.checked,run:async(...e)=>s.run(...e)}}var mN=Object.create(null);function y(s,e){if(Vt(e)){let t=mN[e];if(t===void 0)throw new Error(`${s} references an unknown codicon: ${e}`);e=t}return mN[s]=e,{id:s}}function qv(){return mN}var W8={add:y("add",6e4),plus:y("plus",6e4),gistNew:y("gist-new",6e4),repoCreate:y("repo-create",6e4),lightbulb:y("lightbulb",60001),lightBulb:y("light-bulb",60001),repo:y("repo",60002),repoDelete:y("repo-delete",60002),gistFork:y("gist-fork",60003),repoForked:y("repo-forked",60003),gitPullRequest:y("git-pull-request",60004),gitPullRequestAbandoned:y("git-pull-request-abandoned",60004),recordKeys:y("record-keys",60005),keyboard:y("keyboard",60005),tag:y("tag",60006),gitPullRequestLabel:y("git-pull-request-label",60006),tagAdd:y("tag-add",60006),tagRemove:y("tag-remove",60006),person:y("person",60007),personFollow:y("person-follow",60007),personOutline:y("person-outline",60007),personFilled:y("person-filled",60007),sourceControl:y("source-control",60008),mirror:y("mirror",60009),mirrorPublic:y("mirror-public",60009),star:y("star",60010),starAdd:y("star-add",60010),starDelete:y("star-delete",60010),starEmpty:y("star-empty",60010),comment:y("comment",60011),commentAdd:y("comment-add",60011),alert:y("alert",60012),warning:y("warning",60012),search:y("search",60013),searchSave:y("search-save",60013),logOut:y("log-out",60014),signOut:y("sign-out",60014),logIn:y("log-in",60015),signIn:y("sign-in",60015),eye:y("eye",60016),eyeUnwatch:y("eye-unwatch",60016),eyeWatch:y("eye-watch",60016),circleFilled:y("circle-filled",60017),primitiveDot:y("primitive-dot",60017),closeDirty:y("close-dirty",60017),debugBreakpoint:y("debug-breakpoint",60017),debugBreakpointDisabled:y("debug-breakpoint-disabled",60017),debugHint:y("debug-hint",60017),terminalDecorationSuccess:y("terminal-decoration-success",60017),primitiveSquare:y("primitive-square",60018),edit:y("edit",60019),pencil:y("pencil",60019),info:y("info",60020),issueOpened:y("issue-opened",60020),gistPrivate:y("gist-private",60021),gitForkPrivate:y("git-fork-private",60021),lock:y("lock",60021),mirrorPrivate:y("mirror-private",60021),close:y("close",60022),removeClose:y("remove-close",60022),x:y("x",60022),repoSync:y("repo-sync",60023),sync:y("sync",60023),clone:y("clone",60024),desktopDownload:y("desktop-download",60024),beaker:y("beaker",60025),microscope:y("microscope",60025),vm:y("vm",60026),deviceDesktop:y("device-desktop",60026),file:y("file",60027),more:y("more",60028),ellipsis:y("ellipsis",60028),kebabHorizontal:y("kebab-horizontal",60028),mailReply:y("mail-reply",60029),reply:y("reply",60029),organization:y("organization",60030),organizationFilled:y("organization-filled",60030),organizationOutline:y("organization-outline",60030),newFile:y("new-file",60031),fileAdd:y("file-add",60031),newFolder:y("new-folder",60032),fileDirectoryCreate:y("file-directory-create",60032),trash:y("trash",60033),trashcan:y("trashcan",60033),history:y("history",60034),clock:y("clock",60034),folder:y("folder",60035),fileDirectory:y("file-directory",60035),symbolFolder:y("symbol-folder",60035),logoGithub:y("logo-github",60036),markGithub:y("mark-github",60036),github:y("github",60036),terminal:y("terminal",60037),console:y("console",60037),repl:y("repl",60037),zap:y("zap",60038),symbolEvent:y("symbol-event",60038),error:y("error",60039),stop:y("stop",60039),variable:y("variable",60040),symbolVariable:y("symbol-variable",60040),array:y("array",60042),symbolArray:y("symbol-array",60042),symbolModule:y("symbol-module",60043),symbolPackage:y("symbol-package",60043),symbolNamespace:y("symbol-namespace",60043),symbolObject:y("symbol-object",60043),symbolMethod:y("symbol-method",60044),symbolFunction:y("symbol-function",60044),symbolConstructor:y("symbol-constructor",60044),symbolBoolean:y("symbol-boolean",60047),symbolNull:y("symbol-null",60047),symbolNumeric:y("symbol-numeric",60048),symbolNumber:y("symbol-number",60048),symbolStructure:y("symbol-structure",60049),symbolStruct:y("symbol-struct",60049),symbolParameter:y("symbol-parameter",60050),symbolTypeParameter:y("symbol-type-parameter",60050),symbolKey:y("symbol-key",60051),symbolText:y("symbol-text",60051),symbolReference:y("symbol-reference",60052),goToFile:y("go-to-file",60052),symbolEnum:y("symbol-enum",60053),symbolValue:y("symbol-value",60053),symbolRuler:y("symbol-ruler",60054),symbolUnit:y("symbol-unit",60054),activateBreakpoints:y("activate-breakpoints",60055),archive:y("archive",60056),arrowBoth:y("arrow-both",60057),arrowDown:y("arrow-down",60058),arrowLeft:y("arrow-left",60059),arrowRight:y("arrow-right",60060),arrowSmallDown:y("arrow-small-down",60061),arrowSmallLeft:y("arrow-small-left",60062),arrowSmallRight:y("arrow-small-right",60063),arrowSmallUp:y("arrow-small-up",60064),arrowUp:y("arrow-up",60065),bell:y("bell",60066),bold:y("bold",60067),book:y("book",60068),bookmark:y("bookmark",60069),debugBreakpointConditionalUnverified:y("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:y("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:y("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:y("debug-breakpoint-data-unverified",60072),debugBreakpointData:y("debug-breakpoint-data",60073),debugBreakpointDataDisabled:y("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:y("debug-breakpoint-log-unverified",60074),debugBreakpointLog:y("debug-breakpoint-log",60075),debugBreakpointLogDisabled:y("debug-breakpoint-log-disabled",60075),briefcase:y("briefcase",60076),broadcast:y("broadcast",60077),browser:y("browser",60078),bug:y("bug",60079),calendar:y("calendar",60080),caseSensitive:y("case-sensitive",60081),check:y("check",60082),checklist:y("checklist",60083),chevronDown:y("chevron-down",60084),chevronLeft:y("chevron-left",60085),chevronRight:y("chevron-right",60086),chevronUp:y("chevron-up",60087),chromeClose:y("chrome-close",60088),chromeMaximize:y("chrome-maximize",60089),chromeMinimize:y("chrome-minimize",60090),chromeRestore:y("chrome-restore",60091),circleOutline:y("circle-outline",60092),circle:y("circle",60092),debugBreakpointUnverified:y("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:y("terminal-decoration-incomplete",60092),circleSlash:y("circle-slash",60093),circuitBoard:y("circuit-board",60094),clearAll:y("clear-all",60095),clippy:y("clippy",60096),closeAll:y("close-all",60097),cloudDownload:y("cloud-download",60098),cloudUpload:y("cloud-upload",60099),code:y("code",60100),collapseAll:y("collapse-all",60101),colorMode:y("color-mode",60102),commentDiscussion:y("comment-discussion",60103),creditCard:y("credit-card",60105),dash:y("dash",60108),dashboard:y("dashboard",60109),database:y("database",60110),debugContinue:y("debug-continue",60111),debugDisconnect:y("debug-disconnect",60112),debugPause:y("debug-pause",60113),debugRestart:y("debug-restart",60114),debugStart:y("debug-start",60115),debugStepInto:y("debug-step-into",60116),debugStepOut:y("debug-step-out",60117),debugStepOver:y("debug-step-over",60118),debugStop:y("debug-stop",60119),debug:y("debug",60120),deviceCameraVideo:y("device-camera-video",60121),deviceCamera:y("device-camera",60122),deviceMobile:y("device-mobile",60123),diffAdded:y("diff-added",60124),diffIgnored:y("diff-ignored",60125),diffModified:y("diff-modified",60126),diffRemoved:y("diff-removed",60127),diffRenamed:y("diff-renamed",60128),diff:y("diff",60129),diffSidebyside:y("diff-sidebyside",60129),discard:y("discard",60130),editorLayout:y("editor-layout",60131),emptyWindow:y("empty-window",60132),exclude:y("exclude",60133),extensions:y("extensions",60134),eyeClosed:y("eye-closed",60135),fileBinary:y("file-binary",60136),fileCode:y("file-code",60137),fileMedia:y("file-media",60138),filePdf:y("file-pdf",60139),fileSubmodule:y("file-submodule",60140),fileSymlinkDirectory:y("file-symlink-directory",60141),fileSymlinkFile:y("file-symlink-file",60142),fileZip:y("file-zip",60143),files:y("files",60144),filter:y("filter",60145),flame:y("flame",60146),foldDown:y("fold-down",60147),foldUp:y("fold-up",60148),fold:y("fold",60149),folderActive:y("folder-active",60150),folderOpened:y("folder-opened",60151),gear:y("gear",60152),gift:y("gift",60153),gistSecret:y("gist-secret",60154),gist:y("gist",60155),gitCommit:y("git-commit",60156),gitCompare:y("git-compare",60157),compareChanges:y("compare-changes",60157),gitMerge:y("git-merge",60158),githubAction:y("github-action",60159),githubAlt:y("github-alt",60160),globe:y("globe",60161),grabber:y("grabber",60162),graph:y("graph",60163),gripper:y("gripper",60164),heart:y("heart",60165),home:y("home",60166),horizontalRule:y("horizontal-rule",60167),hubot:y("hubot",60168),inbox:y("inbox",60169),issueReopened:y("issue-reopened",60171),issues:y("issues",60172),italic:y("italic",60173),jersey:y("jersey",60174),json:y("json",60175),kebabVertical:y("kebab-vertical",60176),key:y("key",60177),law:y("law",60178),lightbulbAutofix:y("lightbulb-autofix",60179),linkExternal:y("link-external",60180),link:y("link",60181),listOrdered:y("list-ordered",60182),listUnordered:y("list-unordered",60183),liveShare:y("live-share",60184),loading:y("loading",60185),location:y("location",60186),mailRead:y("mail-read",60187),mail:y("mail",60188),markdown:y("markdown",60189),megaphone:y("megaphone",60190),mention:y("mention",60191),milestone:y("milestone",60192),gitPullRequestMilestone:y("git-pull-request-milestone",60192),mortarBoard:y("mortar-board",60193),move:y("move",60194),multipleWindows:y("multiple-windows",60195),mute:y("mute",60196),noNewline:y("no-newline",60197),note:y("note",60198),octoface:y("octoface",60199),openPreview:y("open-preview",60200),package:y("package",60201),paintcan:y("paintcan",60202),pin:y("pin",60203),play:y("play",60204),run:y("run",60204),plug:y("plug",60205),preserveCase:y("preserve-case",60206),preview:y("preview",60207),project:y("project",60208),pulse:y("pulse",60209),question:y("question",60210),quote:y("quote",60211),radioTower:y("radio-tower",60212),reactions:y("reactions",60213),references:y("references",60214),refresh:y("refresh",60215),regex:y("regex",60216),remoteExplorer:y("remote-explorer",60217),remote:y("remote",60218),remove:y("remove",60219),replaceAll:y("replace-all",60220),replace:y("replace",60221),repoClone:y("repo-clone",60222),repoForcePush:y("repo-force-push",60223),repoPull:y("repo-pull",60224),repoPush:y("repo-push",60225),report:y("report",60226),requestChanges:y("request-changes",60227),rocket:y("rocket",60228),rootFolderOpened:y("root-folder-opened",60229),rootFolder:y("root-folder",60230),rss:y("rss",60231),ruby:y("ruby",60232),saveAll:y("save-all",60233),saveAs:y("save-as",60234),save:y("save",60235),screenFull:y("screen-full",60236),screenNormal:y("screen-normal",60237),searchStop:y("search-stop",60238),server:y("server",60240),settingsGear:y("settings-gear",60241),settings:y("settings",60242),shield:y("shield",60243),smiley:y("smiley",60244),sortPrecedence:y("sort-precedence",60245),splitHorizontal:y("split-horizontal",60246),splitVertical:y("split-vertical",60247),squirrel:y("squirrel",60248),starFull:y("star-full",60249),starHalf:y("star-half",60250),symbolClass:y("symbol-class",60251),symbolColor:y("symbol-color",60252),symbolConstant:y("symbol-constant",60253),symbolEnumMember:y("symbol-enum-member",60254),symbolField:y("symbol-field",60255),symbolFile:y("symbol-file",60256),symbolInterface:y("symbol-interface",60257),symbolKeyword:y("symbol-keyword",60258),symbolMisc:y("symbol-misc",60259),symbolOperator:y("symbol-operator",60260),symbolProperty:y("symbol-property",60261),wrench:y("wrench",60261),wrenchSubaction:y("wrench-subaction",60261),symbolSnippet:y("symbol-snippet",60262),tasklist:y("tasklist",60263),telescope:y("telescope",60264),textSize:y("text-size",60265),threeBars:y("three-bars",60266),thumbsdown:y("thumbsdown",60267),thumbsup:y("thumbsup",60268),tools:y("tools",60269),triangleDown:y("triangle-down",60270),triangleLeft:y("triangle-left",60271),triangleRight:y("triangle-right",60272),triangleUp:y("triangle-up",60273),twitter:y("twitter",60274),unfold:y("unfold",60275),unlock:y("unlock",60276),unmute:y("unmute",60277),unverified:y("unverified",60278),verified:y("verified",60279),versions:y("versions",60280),vmActive:y("vm-active",60281),vmOutline:y("vm-outline",60282),vmRunning:y("vm-running",60283),watch:y("watch",60284),whitespace:y("whitespace",60285),wholeWord:y("whole-word",60286),window:y("window",60287),wordWrap:y("word-wrap",60288),zoomIn:y("zoom-in",60289),zoomOut:y("zoom-out",60290),listFilter:y("list-filter",60291),listFlat:y("list-flat",60292),listSelection:y("list-selection",60293),selection:y("selection",60293),listTree:y("list-tree",60294),debugBreakpointFunctionUnverified:y("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:y("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:y("debug-breakpoint-function-disabled",60296),debugStackframeActive:y("debug-stackframe-active",60297),circleSmallFilled:y("circle-small-filled",60298),debugStackframeDot:y("debug-stackframe-dot",60298),terminalDecorationMark:y("terminal-decoration-mark",60298),debugStackframe:y("debug-stackframe",60299),debugStackframeFocused:y("debug-stackframe-focused",60299),debugBreakpointUnsupported:y("debug-breakpoint-unsupported",60300),symbolString:y("symbol-string",60301),debugReverseContinue:y("debug-reverse-continue",60302),debugStepBack:y("debug-step-back",60303),debugRestartFrame:y("debug-restart-frame",60304),debugAlt:y("debug-alt",60305),callIncoming:y("call-incoming",60306),callOutgoing:y("call-outgoing",60307),menu:y("menu",60308),expandAll:y("expand-all",60309),feedback:y("feedback",60310),gitPullRequestReviewer:y("git-pull-request-reviewer",60310),groupByRefType:y("group-by-ref-type",60311),ungroupByRefType:y("ungroup-by-ref-type",60312),account:y("account",60313),gitPullRequestAssignee:y("git-pull-request-assignee",60313),bellDot:y("bell-dot",60314),debugConsole:y("debug-console",60315),library:y("library",60316),output:y("output",60317),runAll:y("run-all",60318),syncIgnored:y("sync-ignored",60319),pinned:y("pinned",60320),githubInverted:y("github-inverted",60321),serverProcess:y("server-process",60322),serverEnvironment:y("server-environment",60323),pass:y("pass",60324),issueClosed:y("issue-closed",60324),stopCircle:y("stop-circle",60325),playCircle:y("play-circle",60326),record:y("record",60327),debugAltSmall:y("debug-alt-small",60328),vmConnect:y("vm-connect",60329),cloud:y("cloud",60330),merge:y("merge",60331),export:y("export",60332),graphLeft:y("graph-left",60333),magnet:y("magnet",60334),notebook:y("notebook",60335),redo:y("redo",60336),checkAll:y("check-all",60337),pinnedDirty:y("pinned-dirty",60338),passFilled:y("pass-filled",60339),circleLargeFilled:y("circle-large-filled",60340),circleLarge:y("circle-large",60341),circleLargeOutline:y("circle-large-outline",60341),combine:y("combine",60342),gather:y("gather",60342),table:y("table",60343),variableGroup:y("variable-group",60344),typeHierarchy:y("type-hierarchy",60345),typeHierarchySub:y("type-hierarchy-sub",60346),typeHierarchySuper:y("type-hierarchy-super",60347),gitPullRequestCreate:y("git-pull-request-create",60348),runAbove:y("run-above",60349),runBelow:y("run-below",60350),notebookTemplate:y("notebook-template",60351),debugRerun:y("debug-rerun",60352),workspaceTrusted:y("workspace-trusted",60353),workspaceUntrusted:y("workspace-untrusted",60354),workspaceUnknown:y("workspace-unknown",60355),terminalCmd:y("terminal-cmd",60356),terminalDebian:y("terminal-debian",60357),terminalLinux:y("terminal-linux",60358),terminalPowershell:y("terminal-powershell",60359),terminalTmux:y("terminal-tmux",60360),terminalUbuntu:y("terminal-ubuntu",60361),terminalBash:y("terminal-bash",60362),arrowSwap:y("arrow-swap",60363),copy:y("copy",60364),personAdd:y("person-add",60365),filterFilled:y("filter-filled",60366),wand:y("wand",60367),debugLineByLine:y("debug-line-by-line",60368),inspect:y("inspect",60369),layers:y("layers",60370),layersDot:y("layers-dot",60371),layersActive:y("layers-active",60372),compass:y("compass",60373),compassDot:y("compass-dot",60374),compassActive:y("compass-active",60375),azure:y("azure",60376),issueDraft:y("issue-draft",60377),gitPullRequestClosed:y("git-pull-request-closed",60378),gitPullRequestDraft:y("git-pull-request-draft",60379),debugAll:y("debug-all",60380),debugCoverage:y("debug-coverage",60381),runErrors:y("run-errors",60382),folderLibrary:y("folder-library",60383),debugContinueSmall:y("debug-continue-small",60384),beakerStop:y("beaker-stop",60385),graphLine:y("graph-line",60386),graphScatter:y("graph-scatter",60387),pieChart:y("pie-chart",60388),bracket:y("bracket",60175),bracketDot:y("bracket-dot",60389),bracketError:y("bracket-error",60390),lockSmall:y("lock-small",60391),azureDevops:y("azure-devops",60392),verifiedFilled:y("verified-filled",60393),newline:y("newline",60394),layout:y("layout",60395),layoutActivitybarLeft:y("layout-activitybar-left",60396),layoutActivitybarRight:y("layout-activitybar-right",60397),layoutPanelLeft:y("layout-panel-left",60398),layoutPanelCenter:y("layout-panel-center",60399),layoutPanelJustify:y("layout-panel-justify",60400),layoutPanelRight:y("layout-panel-right",60401),layoutPanel:y("layout-panel",60402),layoutSidebarLeft:y("layout-sidebar-left",60403),layoutSidebarRight:y("layout-sidebar-right",60404),layoutStatusbar:y("layout-statusbar",60405),layoutMenubar:y("layout-menubar",60406),layoutCentered:y("layout-centered",60407),target:y("target",60408),indent:y("indent",60409),recordSmall:y("record-small",60410),errorSmall:y("error-small",60411),terminalDecorationError:y("terminal-decoration-error",60411),arrowCircleDown:y("arrow-circle-down",60412),arrowCircleLeft:y("arrow-circle-left",60413),arrowCircleRight:y("arrow-circle-right",60414),arrowCircleUp:y("arrow-circle-up",60415),layoutSidebarRightOff:y("layout-sidebar-right-off",60416),layoutPanelOff:y("layout-panel-off",60417),layoutSidebarLeftOff:y("layout-sidebar-left-off",60418),blank:y("blank",60419),heartFilled:y("heart-filled",60420),map:y("map",60421),mapHorizontal:y("map-horizontal",60421),foldHorizontal:y("fold-horizontal",60421),mapFilled:y("map-filled",60422),mapHorizontalFilled:y("map-horizontal-filled",60422),foldHorizontalFilled:y("fold-horizontal-filled",60422),circleSmall:y("circle-small",60423),bellSlash:y("bell-slash",60424),bellSlashDot:y("bell-slash-dot",60425),commentUnresolved:y("comment-unresolved",60426),gitPullRequestGoToChanges:y("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:y("git-pull-request-new-changes",60428),searchFuzzy:y("search-fuzzy",60429),commentDraft:y("comment-draft",60430),send:y("send",60431),sparkle:y("sparkle",60432),insert:y("insert",60433),mic:y("mic",60434),thumbsdownFilled:y("thumbsdown-filled",60435),thumbsupFilled:y("thumbsup-filled",60436),coffee:y("coffee",60437),snake:y("snake",60438),game:y("game",60439),vr:y("vr",60440),chip:y("chip",60441),piano:y("piano",60442),music:y("music",60443),micFilled:y("mic-filled",60444),repoFetch:y("repo-fetch",60445),copilot:y("copilot",60446),lightbulbSparkle:y("lightbulb-sparkle",60447),robot:y("robot",60448),sparkleFilled:y("sparkle-filled",60449),diffSingle:y("diff-single",60450),diffMultiple:y("diff-multiple",60451),surroundWith:y("surround-with",60452),share:y("share",60453),gitStash:y("git-stash",60454),gitStashApply:y("git-stash-apply",60455),gitStashPop:y("git-stash-pop",60456),vscode:y("vscode",60457),vscodeInsiders:y("vscode-insiders",60458),codeOss:y("code-oss",60459),runCoverage:y("run-coverage",60460),runAllCoverage:y("run-all-coverage",60461),coverage:y("coverage",60462),githubProject:y("github-project",60463),mapVertical:y("map-vertical",60464),foldVertical:y("fold-vertical",60464),mapVerticalFilled:y("map-vertical-filled",60465),foldVerticalFilled:y("fold-vertical-filled",60465),goToSearch:y("go-to-search",60466),percentage:y("percentage",60467),sortPercentage:y("sort-percentage",60467),attach:y("attach",60468),goToEditingSession:y("go-to-editing-session",60469),editSession:y("edit-session",60470),codeReview:y("code-review",60471),copilotWarning:y("copilot-warning",60472),python:y("python",60473),copilotLarge:y("copilot-large",60474),copilotWarningLarge:y("copilot-warning-large",60475),keyboardTab:y("keyboard-tab",60476),copilotBlocked:y("copilot-blocked",60477),copilotNotConnected:y("copilot-not-connected",60478),flag:y("flag",60479),lightbulbEmpty:y("lightbulb-empty",60480),symbolMethodArrow:y("symbol-method-arrow",60481),copilotUnavailable:y("copilot-unavailable",60482),repoPinned:y("repo-pinned",60483),keyboardTabAbove:y("keyboard-tab-above",60484),keyboardTabBelow:y("keyboard-tab-below",60485),gitPullRequestDone:y("git-pull-request-done",60486),mcp:y("mcp",60487),extensionsLarge:y("extensions-large",60488),layoutPanelDock:y("layout-panel-dock",60489),layoutSidebarLeftDock:y("layout-sidebar-left-dock",60490),layoutSidebarRightDock:y("layout-sidebar-right-dock",60491),copilotInProgress:y("copilot-in-progress",60492),copilotError:y("copilot-error",60493),copilotSuccess:y("copilot-success",60494),chatSparkle:y("chat-sparkle",60495),searchSparkle:y("search-sparkle",60496),editSparkle:y("edit-sparkle",60497),copilotSnooze:y("copilot-snooze",60498),sendToRemoteAgent:y("send-to-remote-agent",60499),commentDiscussionSparkle:y("comment-discussion-sparkle",60500),chatSparkleWarning:y("chat-sparkle-warning",60501),chatSparkleError:y("chat-sparkle-error",60502),collection:y("collection",60503),newCollection:y("new-collection",60504),thinking:y("thinking",60505),build:y("build",60506),commentDiscussionQuote:y("comment-discussion-quote",60507),cursor:y("cursor",60508),eraser:y("eraser",60509),fileText:y("file-text",60510),gitLens:y("git-lens",60511),quotes:y("quotes",60512),rename:y("rename",60513),runWithDeps:y("run-with-deps",60514),debugConnected:y("debug-connected",60515),strikethrough:y("strikethrough",60516),openInProduct:y("open-in-product",60517),indexZero:y("index-zero",60518),agent:y("agent",60519),editCode:y("edit-code",60520),repoSelected:y("repo-selected",60521),skip:y("skip",60522),mergeInto:y("merge-into",60523),gitBranchChanges:y("git-branch-changes",60524),gitBranchStagedChanges:y("git-branch-staged-changes",60525),gitBranchConflicts:y("git-branch-conflicts",60526),gitBranch:y("git-branch",60527),gitBranchCreate:y("git-branch-create",60527),gitBranchDelete:y("git-branch-delete",60527),searchLarge:y("search-large",60528),terminalGitBash:y("terminal-git-bash",60529)};var ZG={dialogError:y("dialog-error","error"),dialogWarning:y("dialog-warning","warning"),dialogInfo:y("dialog-info","info"),dialogClose:y("dialog-close","close"),treeItemExpanded:y("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:y("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:y("tree-filter-on-type-off","list-selection"),treeFilterClear:y("tree-filter-clear","close"),treeItemLoading:y("tree-item-loading","loading"),menuSelection:y("menu-selection","check"),menuSubmenu:y("menu-submenu","chevron-right"),menuBarMore:y("menubar-more","more"),scrollbarButtonLeft:y("scrollbar-button-left","triangle-left"),scrollbarButtonRight:y("scrollbar-button-right","triangle-right"),scrollbarButtonUp:y("scrollbar-button-up","triangle-up"),scrollbarButtonDown:y("scrollbar-button-down","triangle-down"),toolBarMore:y("toolbar-more","more"),quickInputBack:y("quick-input-back","arrow-left"),dropDownButton:y("drop-down-button",60084),symbolCustomColor:y("symbol-customcolor",60252),exportIcon:y("export",60332),workspaceUnspecified:y("workspace-unspecified",60355),newLine:y("newline",60394),thumbsDownFilled:y("thumbsdown-filled",60435),thumbsUpFilled:y("thumbsup-filled",60436),gitFetch:y("git-fetch",60445),lightbulbSparkleAutofix:y("lightbulb-sparkle-autofix",60447),debugBreakpointPending:y("debug-breakpoint-pending",60377)},Z={...W8,...ZG};var pN;(function(s){function e(t){return!!t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(pN||(pN={}));var Ce;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";let e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(g){let p=e.exec(g.id);if(!p)return t(Z.error);let[,_,w]=p,b=["codicon","codicon-"+_];return w&&b.push("codicon-modifier-"+w.substring(1)),b}s.asClassNameArray=t;function i(g){return t(g).join(" ")}s.asClassName=i;function n(g){return"."+t(g).join(".")}s.asCSSSelector=n;function o(g){return!!g&&typeof g=="object"&&typeof g.id=="string"&&(typeof g.color>"u"||pN.isThemeColor(g.color))}s.isThemeIcon=o;let r=new RegExp(`^\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)$`);function a(g){let p=r.exec(g);if(!p)return;let[,_]=p;return{id:_}}s.fromString=a;function l(g){return{id:g}}s.fromId=l;function c(g,p){let _=g.id,w=_.lastIndexOf("~");return w!==-1&&(_=_.substring(0,w)),p&&(_=`${_}~${p}`),{id:_}}s.modify=c;function d(g){let p=g.id.lastIndexOf("~");if(p!==-1)return g.id.substring(p+1)}s.getModifier=d;function h(g,p){return g.id===p.id&&g.color?.id===p.color?.id}s.isEqual=h;function u(g){return g?.id===Z.file.id}s.isFile=u;function f(g){return g?.id===Z.folder.id}s.isFolder=f})(Ce||(Ce={}));var zi=oe("commandService"),oi=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new E,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.metadata&&Array.isArray(s.metadata.args)){let r=[];for(let l of s.metadata.args)r.push(l.constraint);let a=s.handler;s.handler=function(l,...c){return DF(c,r),a(l,...c)}}let{id:t}=s,i=this._commands.get(t);i||(i=new qt,this._commands.set(t,i));let n=i.unshift(s),o=j(()=>{n(),this._commands.get(t)?.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return oi.registerCommand(s,(t,...i)=>t.get(zi).executeCommand(e,...i))}getCommand(s){let e=this._commands.get(s);if(!(!e||e.isEmpty()))return Me.first(e)}getCommands(){let s=new Map;for(let e of this._commands.keys()){let t=this.getCommand(e);t&&s.set(e,t)}return s}};oi.registerCommand("noop",()=>{});function _N(...s){switch(s.length){case 1:return m(1693,"Did you mean {0}?",s[0]);case 2:return m(1694,"Did you mean {0} or {1}?",s[0],s[1]);case 3:return m(1695,"Did you mean {0}, {1} or {2}?",s[0],s[1],s[2]);default:return}}var QG=m(1696,"Did you forget to open or close the quote?"),XG=m(1697,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),Tc=class s{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw Ud(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(_N("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(_N("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(_N("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=s._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(QG);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(XG);return}let o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e<this._input.length&&s._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};var hn=new Map;hn.set("false",!1);hn.set("true",!0);hn.set("isMac",be);hn.set("isLinux",Jt);hn.set("isWindows",Wt);hn.set("isWeb",Us);hn.set("isMacNative",be&&!Us);hn.set("isEdge",Aw);hn.set("isFirefox",CF);hn.set("isChrome",kp);hn.set("isSafari",yF);var JG=Object.prototype.hasOwnProperty,eY={regexParsingWithErrorRecovery:!0},tY=m(1675,"Empty context key expression"),iY=m(1676,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),nY=m(1677,"'in' after 'not'."),V8=m(1678,"closing parenthesis ')'"),sY=m(1679,"Unexpected token"),oY=m(1680,"Did you forget to put && or || before the token?"),rY=m(1681,"Unexpected end of expression"),aY=m(1682,"Did you forget to put a context key?"),bN=class s{static{this._parseError=new Error}constructor(e=eY){this._config=e,this._scanner=new Tc,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:tY,offset:0,lexeme:"",additionalInfo:iY});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let i=this._peek(),n=i.type===17?oY:void 0;throw this._parsingErrors.push({message:sY,offset:i.offset,lexeme:Tc.getLexeme(i),additionalInfo:n}),s._parseError}return t}catch(t){if(t!==s._parseError)throw t;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:Ee.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:Ee.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),zn.INSTANCE;case 12:return this._advance(),as.INSTANCE;case 0:{this._advance();let t=this._expr();return this._consume(1,V8),t?.negate()}case 17:return this._advance(),fh.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),Ee.true();case 12:return this._advance(),Ee.false();case 0:{this._advance();let t=this._expr();return this._consume(1,V8),t}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let n=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),n.type!==10)throw this._errExpectedButGot("REGEX",n);let o=n.lexeme,r=o.lastIndexOf("/"),a=r===o.length-1?void 0:this._removeFlagsGY(o.substring(r+1)),l;try{l=new RegExp(o.substring(1,r),a)}catch{throw this._errExpectedButGot("REGEX",n)}return h_.create(t,l)}switch(n.type){case 10:case 19:{let o=[n.lexeme];this._advance();let r=this._peek(),a=0;for(let u=0;u<n.lexeme.length;u++)n.lexeme.charCodeAt(u)===40?a++:n.lexeme.charCodeAt(u)===41&&a--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let u=0;u<r.lexeme.length;u++)r.lexeme.charCodeAt(u)===40?a++:n.lexeme.charCodeAt(u)===41&&a--}if(a<0)break;o.push(Tc.getLexeme(r)),this._advance(),r=this._peek()}let l=o.join(""),c=l.lastIndexOf("/"),d=c===l.length-1?void 0:this._removeFlagsGY(l.substring(c+1)),h;try{h=new RegExp(l.substring(1,c),d)}catch{throw this._errExpectedButGot("REGEX",n)}return Ee.regex(t,h)}case 18:{let o=n.lexeme;this._advance();let r=null;if(!AF(o)){let a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){let c=o.slice(a+1,l),d=o[l+1]==="i"?"i":"";try{r=new RegExp(c,d)}catch{throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return h_.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,nY);let n=this._value();return Ee.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();let n=this._value();if(this._previous().type===18)return Ee.equals(t,n);switch(n){case"true":return Ee.has(t);case"false":return Ee.not(t);default:return Ee.equals(t,n)}}case 4:{this._advance();let n=this._value();if(this._previous().type===18)return Ee.notEquals(t,n);switch(n){case"true":return Ee.not(t);case"false":return Ee.has(t);default:return Ee.notEquals(t,n)}}case 5:return this._advance(),Qv.create(t,this._value());case 6:return this._advance(),Xv.create(t,this._value());case 7:return this._advance(),Yv.create(t,this._value());case 8:return this._advance(),Zv.create(t,this._value());case 13:return this._advance(),Ee.in(t,this._value());default:return Ee.has(t)}}case 20:throw this._parsingErrors.push({message:rY,offset:e.offset,lexeme:"",additionalInfo:aY}),s._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
9
|
+
`),n=EG(i[t+1]);if(n)return new s(n.fileName,n.line,n.column,n.id)}constructor(e,t,i,n){this.fileName=e,this.line=t,this.column=i,this.id=n}};function EG(s){let e=s.match(/\((.*):(\d+):(\d+)\)/);if(e)return{fileName:e[1],line:parseInt(e[2]),column:parseInt(e[3]),id:s};let t=s.match(/at ([^\(\)]*):(\d+):(\d+)/);if(t)return{fileName:t[1],line:parseInt(t[2]),column:parseInt(t[3]),id:s}}var Wn=(s,e)=>s===e;function Zp(s=Wn){return(e,t)=>nt(e,t,s)}function _8(){return(s,e)=>s.equals(e)}function ih(s,e,t){if(t!==void 0){let i=s;return i==null||e===void 0||e===null?e===i:t(i,e)}else{let i=s;return(n,o)=>n==null||o===void 0||o===null?o===n:i(n,o)}}function p8(s,e){if(s===e)return!0;if(Array.isArray(s)&&Array.isArray(e)){if(s.length!==e.length)return!1;for(let t=0;t<s.length;t++)if(!p8(s[t],e[t]))return!1;return!0}if(s&&typeof s=="object"&&e&&typeof e=="object"&&Object.getPrototypeOf(s)===Object.prototype&&Object.getPrototypeOf(e)===Object.prototype){let t=s,i=e,n=Object.keys(t),o=Object.keys(i),r=new Set(o);if(n.length!==o.length)return!1;for(let a of n)if(!r.has(a)||!p8(t[a],i[a]))return!1;return!0}return!1}var ei=class{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return TG(e,this)}},b8=new Map,VT=new WeakMap;function TG(s,e){let t=VT.get(s);if(t)return t;let i=NG(s,e);if(i){let n=b8.get(i)??0;n++,b8.set(i,n);let o=n===1?i:`${i}#${n}`;return VT.set(s,o),o}}function NG(s,e){let t=VT.get(s);if(t)return t;let i=e.owner?RG(e.owner)+".":"",n,o=e.debugNameSource;if(o!==void 0)if(typeof o=="function"){if(n=o(),n!==void 0)return i+n}else return i+o;let r=e.referenceFn;if(r!==void 0&&(n=Qp(r),n!==void 0))return i+n;if(e.owner!==void 0){let a=MG(e.owner,s);if(a!==void 0)return i+a}}function MG(s,e){for(let t in s)if(s[t]===e)return t}var w8=new Map,v8=new WeakMap;function RG(s){let e=v8.get(s);if(e)return e;let t=HT(s)??"Object",i=w8.get(t)??0;i++,w8.set(t,i);let n=i===1?t:`${t}#${i}`;return v8.set(s,n),n}function HT(s){let e=s.constructor;if(e)return e.name==="Object"?void 0:e.name}function Qp(s){let e=s.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(e);return(i?i[1]:void 0)?.trim()}var zT;function C8(s){zT=s}var y8;function S8(s){y8=s}var Xp=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t,i=yt.ofCaller()){let n=t===void 0?void 0:e,o=t===void 0?e:t;return zT({owner:n,debugName:()=>{let r=Qp(o);if(r!==void 0)return r;let l=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());if(l)return`${this.debugName}.${l[2]}`;if(!n)return`${this.debugName} (mapped)`},debugReferenceFn:o},r=>o(this.read(r),r),i)}flatten(){return zT({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(y8(this,t)),this}},Gs=class extends Xp{constructor(e){super(),this._observers=new Set,di()?.handleObservableCreated(this,e)}addObserver(e){let t=this._observers.size;this._observers.add(e),t===0&&this.onFirstObserverAdded(),t!==this._observers.size&&di()?.handleOnListenerCountChanged(this,this._observers.size)}removeObserver(e){let t=this._observers.delete(e);t&&this._observers.size===0&&this.onLastObserverRemoved(),t&&di()?.handleOnListenerCountChanged(this,this._observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers}};function AG(s){switch(s){case 0:return"initial";case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>"}}var Vn=class extends Gs{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n=void 0,o,r){super(r),this._debugNameData=e,this._computeFn=t,this._changeTracker=i,this._handleLastObserverRemoved=n,this._equalityComparator=o,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=this._changeTracker?.createChangeSummary(void 0)}onLastObserverRemoved(){this._state=0,this._value=void 0,di()?.handleDerivedCleared(this);for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._delayedStore!==void 0&&(this._delayedStore.dispose(),this._delayedStore=void 0),this._handleLastObserverRemoved?.()}get(){if(this._isComputing,this._observers.size===0){let t;try{this._isReaderValid=!0;let i;this._changeTracker&&(i=this._changeTracker.createChangeSummary(void 0),this._changeTracker.beforeUpdate?.(this,i)),t=this._computeFn(this,i)}finally{this._isReaderValid=!1}return this.onLastObserverRemoved(),t}else{do{if(this._state===1){for(let t of this._dependencies)if(t.reportChanges(),this._state===2)break}this._state===1&&(this._state=3),this._state!==3&&this._recompute()}while(this._state!==3);return this._value}}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;let t=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=t;try{let i=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,this._changeTracker.beforeUpdate?.(this,i),this._isInBeforeUpdate=!1,this._changeSummary=this._changeTracker?.createChangeSummary(i));let n=this._state!==0,o=this._value;this._state=3;let r=this._delayedStore;r!==void 0&&(this._delayedStore=void 0);try{this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,i)}finally{this._isReaderValid=!1;for(let a of this._dependenciesToBeRemoved)a.removeObserver(this);this._dependenciesToBeRemoved.clear(),r!==void 0&&r.dispose()}e=this._didReportChange||n&&!this._equalityComparator(o,this._value),di()?.handleObservableUpdated(this,{oldValue:o,newValue:this._value,change:void 0,didChange:e,hadValue:n})}catch(i){rf(i)}if(this._isComputing=!1,!this._didReportChange&&e)for(let i of this._observers)i.handleChange(this,void 0);else this._didReportChange=!1}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){if(this._isUpdating)throw new te("Cyclic deriveds are not supported yet!");this._updateCount++,this._isUpdating=!0;try{let t=this._updateCount===1;if(this._state===3&&(this._state=1,!t))for(let i of this._observers)i.handlePossibleChange(this);if(t)for(let i of this._observers)i.beginUpdate(this)}finally{this._isUpdating=!1}}endUpdate(e){if(this._updateCount--,this._updateCount===0){let t=[...this._observers];for(let i of t)i.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let i=[...this._removedObserverToCallEndUpdateOn];this._removedObserverToCallEndUpdateOn=null;for(let n of i)n.endUpdate(this)}}mo(()=>this._updateCount>=0)}handlePossibleChange(e){if(this._state===3&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)){this._state=1;for(let t of this._observers)t.handlePossibleChange(this)}}handleChange(e,t){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){di()?.handleDerivedDependencyChanged(this,e,t);let i=!1;try{i=this._changeTracker?this._changeTracker.handleChange({changedObservable:e,change:t,didChange:o=>o===e},this._changeSummary):!0}catch(o){rf(o)}let n=this._state===3;if(i&&(this._state===1||n)&&(this._state=2,n))for(let o of this._observers)o.handlePossibleChange(this)}}_ensureReaderValid(){if(!this._isReaderValid)throw new te("The reader object cannot be used outside its compute function!")}readObservable(e){this._ensureReaderValid(),e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){return this._ensureReaderValid(),this._store===void 0&&(this._store=new q),this._store}addObserver(e){let t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&(this._removedObserverToCallEndUpdateOn&&this._removedObserverToCallEndUpdateOn.has(e)?this._removedObserverToCallEndUpdateOn.delete(e):e.beginUpdate(this))}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set),this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e)}debugGetState(){return{state:this._state,stateStr:AG(this._state),updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value}}debugSetValue(e){this._value=e}debugRecompute(){this._isComputing?this._state=2:this._recompute()}setValue(e,t,i){this._value=e;let n=this._observers;t.updateObserver(this,this);for(let o of n)o.handleChange(this,i)}},yv=class extends Vn{constructor(e,t,i,n=void 0,o,r,a){super(e,t,i,n,o,a),this.set=r}};function ne(s,e,t=yt.ofCaller()){return e!==void 0?new Vn(new ei(s,void 0,e),e,void 0,void 0,Wn,t):new Vn(new ei(void 0,void 0,s),s,void 0,void 0,Wn,t)}function nh(s,e,t,i=yt.ofCaller()){return new yv(new ei(s,void 0,e),e,void 0,void 0,Wn,t,i)}function In(s,e,t=yt.ofCaller()){return new Vn(new ei(s.owner,s.debugName,s.debugReferenceFn),e,void 0,s.onLastObserverRemoved,s.equalsFn??Wn,t)}C8(In);function OG(s,e,t=yt.ofCaller()){return new Vn(new ei(s.owner,s.debugName,void 0),e,s.changeTracker,void 0,s.equalityComparer??Wn,t)}function Ys(s,e,t=yt.ofCaller()){let i,n;e===void 0?(i=s,n=void 0):(n=s,i=e);let o;return new Vn(new ei(n,void 0,i),r=>{o?o.clear():o=new q;let a=i(r);return a&&o.add(a),a},void 0,()=>{o&&(o.dispose(),o=void 0)},Wn,t)}function PG(s){switch(s){case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>"}}var ml=class{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n){this._debugNameData=e,this._runFn=t,this._changeTracker=i,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._isRunning=!1,this._store=void 0,this._delayedStore=void 0,this._changeSummary=this._changeTracker?.createChangeSummary(void 0),di()?.handleAutorunCreated(this,n),this._run()}dispose(){if(!this._disposed){this._disposed=!0;for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&this._store.dispose(),this._delayedStore!==void 0&&this._delayedStore.dispose(),di()?.handleAutorunDisposed(this)}}_run(){let e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){di()?.handleAutorunStarted(this);let t=this._changeSummary,i=this._delayedStore;i!==void 0&&(this._delayedStore=void 0);try{this._isRunning=!0,this._changeTracker&&(this._changeTracker.beforeUpdate?.(this,t),this._changeSummary=this._changeTracker.createChangeSummary(t)),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._runFn(this,t)}catch(n){rf(n)}finally{this._isRunning=!1,i!==void 0&&i.dispose()}}}finally{this._disposed||di()?.handleAutorunFinished(this);for(let t of this._dependenciesToBeRemoved)t.removeObserver(this);this._dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(e){this._state===3&&(this._state=1),this._updateCount++}endUpdate(e){try{if(this._updateCount===1)do{if(this._state===1){this._state=3;for(let t of this._dependencies)if(t.reportChanges(),this._state===2)break}this._state!==3&&this._run()}while(this._state!==3)}finally{this._updateCount--}mo(()=>this._updateCount>=0)}handlePossibleChange(e){this._state===3&&this._isDependency(e)&&(this._state=1)}handleChange(e,t){if(this._isDependency(e)){di()?.handleAutorunDependencyChanged(this,e,t);try{(!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:t,didChange:n=>n===e},this._changeSummary))&&(this._state=2)}catch(i){rf(i)}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)}_ensureNoRunning(){if(!this._isRunning)throw new te("The reader object cannot be used outside its compute function!")}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){if(this._ensureNoRunning(),this._disposed)throw new te("Cannot access store after dispose");return this._store===void 0&&(this._store=new q),this._store}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state,stateStr:PG(this._state)}}debugRerun(){this._isRunning?this._state=2:this._run()}};function we(s,e=yt.ofCaller()){return new ml(new ei(void 0,void 0,s),s,void 0,e)}function Lf(s,e,t=yt.ofCaller()){return new ml(new ei(s.owner,s.debugName,s.debugReferenceFn??e),e,void 0,t)}function ia(s,e,t=yt.ofCaller()){return new ml(new ei(s.owner,s.debugName,s.debugReferenceFn??e),e,s.changeTracker,t)}function x8(s,e){let t=new q,i=ia({owner:s.owner,debugName:s.debugName,debugReferenceFn:s.debugReferenceFn??e,changeTracker:s.changeTracker},(n,o)=>{t.clear(),e(n,o,t)});return j(()=>{i.dispose(),t.dispose()})}function Xi(s){let e=new q,t=Lf({owner:void 0,debugName:void 0,debugReferenceFn:s},i=>{e.clear(),s(i,e)});return j(()=>{t.dispose(),e.dispose()})}function qle(s,e){let t;return Lf({debugReferenceFn:e},i=>{let n=s.read(i),o=t;t=n,e({lastValue:o,newValue:n})})}function UT(s){let e=new Error("BugIndicatingErrorRecovery: "+s);Se(e),console.error("recovered from an error that indicates a bug",e)}function rt(s,e){let t=new fr(s,e);try{s(t)}finally{t.finish()}}var Sv;function sh(s){if(Sv)s(Sv);else{let e=new fr(s,void 0);Sv=e;try{s(e)}finally{e.finish(),Sv=void 0}}}async function tce(s,e){let t=new fr(s,e);try{await s(t)}finally{t.finish()}}function kf(s,e,t){s?e(s):rt(e,t)}var fr=class{constructor(e,t){this._fn=e,this._getDebugName=t,this._updatingObservers=[],di()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():Qp(this._fn)}updateObserver(e,t){if(!this._updatingObservers){UT("Transaction already finished!"),rt(i=>{i.updateObserver(e,t)});return}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){let e=this._updatingObservers;if(!e){UT("transaction.finish() has already been called!");return}for(let t=0;t<e.length;t++){let{observer:i,observable:n}=e[t];i.endUpdate(n)}this._updatingObservers=null,di()?.handleEndTransaction(this)}debugGetUpdatingObservers(){return this._updatingObservers}};function Ke(...s){let e,t,i,n;return s.length===2?[t,i]=s:[e,t,i,n]=s,new zo(new ei(e,void 0,i),t,i,()=>zo.globalTransaction,Wn,n??yt.ofCaller())}function $T(s,e,t,i=yt.ofCaller()){return new zo(new ei(s.owner,s.debugName,s.debugReferenceFn??t),e,t,()=>zo.globalTransaction,s.equalsFn??Wn,i)}var zo=class extends Gs{constructor(e,t,i,n,o,r){super(r),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=n,this._equalityComparator=o,this._hasValue=!1,this.handleEvent=a=>{let l=this._getValue(a),c=this._value,d=!this._hasValue||!this._equalityComparator(c,l),h=!1;d&&(this._value=l,this._hasValue&&(h=!0,kf(this._getTransaction(),u=>{di()?.handleObservableUpdated(this,{oldValue:c,newValue:l,change:void 0,didChange:d,hadValue:this._hasValue});for(let f of this._observers)u.updateObserver(f,this),f.handleChange(this,void 0)},()=>{let u=this.getDebugName();return"Event fired"+(u?`: ${u}`:"")})),this._hasValue=!0),h||di()?.handleObservableUpdated(this,{oldValue:c,newValue:l,change:void 0,didChange:d,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}debugGetState(){return{value:this._value,hasValue:this._hasValue}}};(function(s){s.Observer=zo;function e(t,i){let n=!1;zo.globalTransaction===void 0&&(zo.globalTransaction=t,n=!0);try{i()}finally{n&&(zo.globalTransaction=void 0)}}s.batchEventsGlobally=e})(Ke||(Ke={}));function FG(s,e){let t=!1,i,n;return Ke(o=>{let r=we(a=>{let l=s.read(a);t?(n&&clearTimeout(n),n=setTimeout(()=>{i=l,o()},e)):(t=!0,i=l)});return{dispose(){r.dispose(),t=!1,i=void 0}}},()=>t?i:s.get())}function Lc(s,e){let t=new qT(!0,e);s.addObserver(t);try{t.beginUpdate(s)}finally{t.endUpdate(s)}return j(()=>{s.removeObserver(t)})}S8(Lc);var qT=class{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter===1&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--}handlePossibleChange(e){}handleChange(e,t){}};function KT(s,e){let t;return In({owner:s,debugReferenceFn:e},n=>(t=e(n,t),t))}function BG(s,e,t,i){let n=new xv(t,i);return In({debugReferenceFn:t,owner:s,onLastObserverRemoved:()=>{n.dispose(),n=new xv(t)}},r=>(n.setItems(e.read(r)),n.getItems()))}var xv=class{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){let t=[],i=new Set(this._cache.keys());for(let n of e){let o=this._keySelector?this._keySelector(n):n,r=this._cache.get(o);if(r)i.delete(o);else{let a=new q;r={out:this._map(n,a),store:a},this._cache.set(o,r)}t.push(r.out)}for(let n of i)this._cache.get(n).store.dispose(),this._cache.delete(n);this._items=t}getItems(){return this._items}};function oh(s,e){switch(typeof s){case"number":return""+s;case"string":return s.length+2<=e?`"${s}"`:`"${s.substr(0,e-7)}"+...`;case"boolean":return s?"true":"false";case"undefined":return"undefined";case"object":return s===null?"null":Array.isArray(s)?WG(s,e):VG(s,e);case"symbol":return s.toString();case"function":return`[[Function${s.name?" "+s.name:""}]]`;default:return""+s}}function WG(s,e){let t="[ ",i=!0;for(let n of s){if(i||(t+=", "),t.length-5>e){t+="...";break}i=!1,t+=`${oh(n,e-t.length)}`}return t+=" ]",t}function VG(s,e){if(typeof s.toString=="function"&&s.toString!==Object.prototype.toString){let o=s.toString();return o.length<=e?o:o.substring(0,e-3)+"..."}let t=HT(s),i=t?t+"(":"{ ",n=!0;for(let[o,r]of Object.entries(s)){if(n||(i+=", "),i.length-5>e){i+="...";break}n=!1,i+=`${o}: ${oh(r,e-i.length)}`}return i+=t?")":" }",i}var Lv=class s{static createClient(e,t){return new s(e,t)}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:o=>{let r=o,a=this._getHandler().notifications[r[0]];if(!a)throw new Error(`Unknown notification "${r[0]}"!`);a(...r[1])},handleRequest:o=>{let r=o;try{return{type:"result",value:this._getHandler().requests[r[0]](...r[1])}}catch(a){return{type:"error",value:a}}}});let i=new Proxy({},{get:(o,r)=>async(...a)=>{let l=await this._channel.sendRequest([r,a]);if(l.type==="error")throw l.value;return l.value}}),n=new Proxy({},{get:(o,r)=>(...a)=>{this._channel.sendNotification([r,a])}});this.api={notifications:n,requests:i}}};function L8(s,e){let t=globalThis,i=[],n,{channel:o,handler:r}=HG({sendNotification:l=>{n?n.sendNotification(l):i.push(l)}}),a;return(t.$$debugValueEditor_debugChannels??(t.$$debugValueEditor_debugChannels={}))[s]=l=>{a=e(),n=l;for(let c of i)l.sendNotification(c);return i=[],r},Lv.createClient(o,()=>{if(!a)throw new Error("Not supported");return a})}function HG(s){let e;return{channel:i=>(e=i,{sendNotification:n=>{s.sendNotification(n)},sendRequest:n=>{throw new Error("not supported")}}),handler:{handleRequest:i=>i.type==="notification"?e?.handleNotification(i.data):e?.handleRequest(i.data)}}}var kv=class{constructor(){this._timeout=void 0}throttle(e,t){this._timeout===void 0&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e()},t))}dispose(){this._timeout!==void 0&&clearTimeout(this._timeout)}};function jT(s,e){for(let t in e)s[t]&&typeof s[t]=="object"&&e[t]&&typeof e[t]=="object"?jT(s[t],e[t]):s[t]=e[t]}function GT(s,e){for(let t in e)e[t]===null?delete s[t]:s[t]&&typeof s[t]=="object"&&e[t]&&typeof e[t]=="object"?GT(s[t],e[t]):s[t]=e[t]}function fe(s,e,t=yt.ofCaller()){let i;return typeof s=="string"?i=new ei(void 0,s,void 0):i=new ei(s,void 0,void 0),new pl(i,e,Wn,t)}var pl=class extends Gs{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i,n){super(n),this._debugNameData=e,this._equalityComparator=i,this._value=t,di()?.handleObservableUpdated(this,{hadValue:!1,newValue:t,change:void 0,didChange:!0,oldValue:void 0})}get(){return this._value}set(e,t,i){if(i===void 0&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new fr(()=>{},()=>`Setting ${this.debugName}`));try{let o=this._value;this._setValue(e),di()?.handleObservableUpdated(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(let r of this._observers)t.updateObserver(r,this),r.handleChange(this,i)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}debugGetState(){return{value:this._value}}debugSetValue(e){this._value=e}};function Dv(s,e,t=yt.ofCaller()){let i;return typeof s=="string"?i=new ei(void 0,s,void 0):i=new ei(s,void 0,void 0),new YT(i,e,Wn,t)}var YT=class extends pl{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}};var Iv=class s{static{this._instance=void 0}static getInstance(){return s._instance===void 0&&(s._instance=new s),s._instance}getTransactionState(){let e=[],t=[...this._activeTransactions];if(t.length===0)return;let i=t.flatMap(o=>o.debugGetUpdatingObservers()??[]).map(o=>o.observer),n=new Set;for(;i.length>0;){let o=i.shift();if(n.has(o))continue;n.add(o);let r=this._getInfo(o,a=>{n.has(a)||i.push(a)});r&&e.push(r)}return{names:t.map(o=>o.getDebugName()??"tx"),affected:e}}_getObservableInfo(e){let t=this._instanceInfos.get(e);if(!t){Se(new te("No info found"));return}return t}_getAutorunInfo(e){let t=this._instanceInfos.get(e);if(!t){Se(new te("No info found"));return}return t}_getInfo(e,t){if(e instanceof Vn){let i=[...e.debugGetObservers()];for(let l of i)t(l);let n=this._getObservableInfo(e);if(!n)return;let o=e.debugGetState(),r={name:e.debugName,instanceId:n.instanceId,updateCount:o.updateCount},a=[...n.changedObservables].map(l=>this._instanceInfos.get(l)?.instanceId).filter(Sn);if(o.isComputing)return{...r,type:"observable/derived",state:"updating",changedDependencies:a,initialComputation:!1};switch(o.state){case 0:return{...r,type:"observable/derived",state:"noValue"};case 3:return{...r,type:"observable/derived",state:"upToDate"};case 2:return{...r,type:"observable/derived",state:"stale",changedDependencies:a};case 1:return{...r,type:"observable/derived",state:"possiblyStale"}}}else if(e instanceof ml){let i=this._getAutorunInfo(e);if(!i)return;let n={name:e.debugName,instanceId:i.instanceId,updateCount:i.updateCount},o=[...i.changedObservables].map(r=>this._instanceInfos.get(r).instanceId);if(e.debugGetState().isRunning)return{...n,type:"autorun",state:"updating",changedDependencies:o};switch(e.debugGetState().state){case 3:return{...n,type:"autorun",state:"upToDate"};case 2:return{...n,type:"autorun",state:"stale",changedDependencies:o};case 1:return{...n,type:"autorun",state:"possiblyStale"}}}}_formatObservable(e){let t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId}}_formatObserver(e){if(e instanceof Vn)return{name:e.toString(),instanceId:this._getObservableInfo(e)?.instanceId};let t=this._getAutorunInfo(e);if(t)return{name:e.toString(),instanceId:t.instanceId}}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map,this._instanceInfos=new WeakMap,this._aliveInstances=new Map,this._activeTransactions=new Set,this._channel=L8("observableDevTools",()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log("logObservableValue",e)},flushUpdates:()=>{this._flushUpdates()},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0)}},requests:{getDeclarations:()=>{let e={};for(let t of this._declarations.values())e[t.id]=t;return{decls:e}},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(i=>this._formatObserver(i)).filter(Sn)}),getDerivedInfo:e=>{let t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(i=>this._formatObservable(i)).filter(Sn),observers:[...t.debugGetObservers()].map(i=>this._formatObserver(i)).filter(Sn)}},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(i=>this._formatObservable(i)).filter(Sn)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{let i=this._aliveInstances.get(e);if(i instanceof Vn)i.debugSetValue(t);else if(i instanceof pl)i.debugSetValue(t);else if(i instanceof zo)i.debugSetValue(t);else throw new te("Observable is not supported");let n=[...i.debugGetObservers()];for(let o of n)o.beginUpdate(i);for(let o of n)o.handleChange(i,void 0);for(let o of n)o.endUpdate(i)},getValue:e=>{let t=this._aliveInstances.get(e);if(t instanceof Vn)return oh(t.debugGetState().value,200);if(t instanceof pl)return oh(t.debugGetState().value,200)},logValue:e=>{let t=this._aliveInstances.get(e);if(t&&"get"in t)console.log("Logged Value:",t.get());else throw new te("Observable is not supported")},rerun:e=>{let t=this._aliveInstances.get(e);if(t instanceof Vn)t.debugRecompute();else if(t instanceof ml)t.debugRerun();else throw new te("Observable is not supported")}}})),this._pendingChanges=null,this._changeThrottler=new kv,this._fullState={},this._flushUpdates=()=>{this._pendingChanges!==null&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null)},yt.enable()}_handleChange(e){GT(this._fullState,e),this._pendingChanges===null?this._pendingChanges=e:jT(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10)}_getDeclarationId(e,t){if(!t)return-1;let i=this._declarations.get(t.id);return i===void 0&&(i={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,i),this._handleChange({decls:{[i.id]:i}})),i.id}handleObservableCreated(e,t){let n={declarationId:this._getDeclarationId("observable/value",t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n)}handleOnListenerCountChanged(e,t){let i=this._getObservableInfo(e);if(i){if(i.listenerCount===0&&t>0){let n=e instanceof Vn?"observable/derived":"observable/value";this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,formattedValue:i.lastValue,type:n,name:e.debugName}}})}else i.listenerCount>0&&t===0&&(this._handleChange({instances:{[i.instanceId]:null}}),this._aliveInstances.delete(i.instanceId));i.listenerCount=t}}handleObservableUpdated(e,t){if(e instanceof Vn){this._handleDerivedRecomputed(e,t);return}let i=this._getObservableInfo(e);i&&t.didChange&&(i.lastValue=oh(t.newValue,30),i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:i.lastValue}}}))}handleAutorunCreated(e,t){let n={declarationId:this._getDeclarationId("autorun",t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n),this._aliveInstances.set(n.instanceId,e),n&&this._handleChange({instances:{[n.instanceId]:{instanceId:n.instanceId,declarationId:n.declarationId,runCount:0,type:"autorun",name:e.debugName}}})}handleAutorunDisposed(e){let t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId))}handleAutorunDependencyChanged(e,t,i){let n=this._getAutorunInfo(e);n&&n.changedObservables.add(t)}handleAutorunStarted(e){}handleAutorunFinished(e){let t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}))}handleDerivedDependencyChanged(e,t,i){let n=this._getObservableInfo(e);n&&n.changedObservables.add(t)}_handleDerivedRecomputed(e,t){let i=this._getObservableInfo(e);if(!i)return;let n=oh(t.newValue,30);i.updateCount++,i.changedObservables.clear(),i.lastValue=n,i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:n,recomputationCount:i.updateCount}}})}handleDerivedCleared(e){let t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}))}handleBeginTransaction(e){this._activeTransactions.add(e)}handleEndTransaction(e){this._activeTransactions.delete(e)}};Qd&&Qd.VSCODE_DEV_DEBUG_OBSERVABLES&&m8(Iv.getInstance());var{getWindow:J,getDocument:eN,getWindows:Mv,getWindowsCount:T8,getWindowId:_l,getWindowById:Rv,onDidRegisterWindow:na,onWillUnregisterWindow:tN,onDidUnregisterWindow:iN}=(function(){let s=new Map;uF(Pe,1);let e={window:Pe,disposables:new q};s.set(Pe.vscodeWindowId,e);let t=new E,i=new E,n=new E;function o(r,a){return(typeof r=="number"?s.get(r):void 0)??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return N.None;let a=new q,l={window:r,disposables:a.add(new q)};return s.set(r.vscodeWindowId,l),a.add(j(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(O(r,K.BEFORE_UNLOAD,()=>{n.fire(r)})),t.fire(l),a},getWindows(){return s.values()},getWindowsCount(){return s.size},getWindowId(r){return r.vscodeWindowId},hasWindow(r){return s.has(r)},getWindowById:o,getWindow(r){let a=r;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;let l=r;return l?.view?l.view.window:Pe},getDocument(r){return J(r).document}}})();function dn(s){for(;s.firstChild;)s.firstChild.remove()}var ZT=class{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function O(s,e,t,i){return new ZT(s,e,t,i)}function N8(s,e){return function(t){return e(new fi(s,t))}}function zG(s){return function(e){return s(new Re(e))}}var Mt=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"||t==="contextmenu"?o=N8(J(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=zG(i)),O(e,t,o,n)},UG=function(e,t,i){let n=N8(J(e),t);return Av(e,n,i)};function Av(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_DOWN:K.MOUSE_DOWN,e,t)}function nN(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_MOVE:K.MOUSE_MOVE,e,t)}function Ov(s,e,t){return O(s,ss&&gc.pointerEvents?K.POINTER_UP:K.MOUSE_UP,e,t)}function If(s,e,t){return hf(s,e,t)}var QT=class extends Ap{constructor(e,t){super(e,t)}},Pv,mi,bl=class extends wc{constructor(e){super(),this.defaultTarget=e&&J(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}},Jp=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Se(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let s=new Map,e=new Map,t=new Map,i=new Map,n=o=>{t.set(o,!1);let r=s.get(o)??[];for(e.set(o,r),s.set(o,[]),i.set(o,!0);r.length>0;)r.sort(Jp.sort),r.shift().execute();i.set(o,!1)};mi=(o,r,a=0)=>{let l=_l(o),c=new Jp(r,a),d=s.get(l);return d||(d=[],s.set(l,d)),d.push(c),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),c},Pv=(o,r,a)=>{let l=_l(o);if(i.get(l)){let c=new Jp(r,a),d=e.get(l);return d||(d=[],e.set(l,d)),d.push(c),c}else return mi(o,r,a)}})();function Fv(s){return J(s).getComputedStyle(s,null)}function Ef(s,e,t){let i=J(s),n=i.document;if(s!==n.body)return new gr(s.clientWidth,s.clientHeight);if(ss&&i?.visualViewport)return new gr(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new gr(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new gr(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new gr(n.documentElement.clientWidth,n.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var rs=class s{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t){let i=Fv(e),n=i?i.getPropertyValue(t):"0";return s.convertToPixels(e,n)}static getBorderLeftWidth(e){return s.getDimension(e,"border-left-width")}static getBorderRightWidth(e){return s.getDimension(e,"border-right-width")}static getBorderTopWidth(e){return s.getDimension(e,"border-top-width")}static getBorderBottomWidth(e){return s.getDimension(e,"border-bottom-width")}static getPaddingLeft(e){return s.getDimension(e,"padding-left")}static getPaddingRight(e){return s.getDimension(e,"padding-right")}static getPaddingTop(e){return s.getDimension(e,"padding-top")}static getPaddingBottom(e){return s.getDimension(e,"padding-bottom")}static getMarginLeft(e){return s.getDimension(e,"margin-left")}static getMarginTop(e){return s.getDimension(e,"margin-top")}static getMarginRight(e){return s.getDimension(e,"margin-right")}static getMarginBottom(e){return s.getDimension(e,"margin-bottom")}},gr=class s{static{this.None=new s(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new s(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof s?e:new s(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};function sN(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==s.ownerDocument.body&&s!==s.ownerDocument.documentElement;){t-=s.scrollTop;let n=rN(s)?null:Fv(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=rs.getBorderLeftWidth(s),t+=rs.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function $G(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function Ai(s){let e=s.getBoundingClientRect(),t=J(s);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function i_(s){let e=s,t=1;do{let i=Fv(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function ah(s){let e=rs.getMarginLeft(s)+rs.getMarginRight(s);return s.offsetWidth+e}function n_(s){let e=rs.getBorderLeftWidth(s)+rs.getBorderRightWidth(s),t=rs.getPaddingLeft(s)+rs.getPaddingRight(s);return s.offsetWidth-e-t}function oN(s){let e=rs.getBorderTopWidth(s)+rs.getBorderBottomWidth(s),t=rs.getPaddingTop(s)+rs.getPaddingBottom(s);return s.offsetHeight-e-t}function Tf(s){let e=rs.getMarginTop(s)+rs.getMarginBottom(s);return s.offsetHeight+e}function Nt(s,e){return!!e?.contains(s)}function M8(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function s_(s,e,t){return!!M8(s,e,t)}function rN(s){return s&&!!s.host&&!!s.mode}function Dc(s){return!!Uo(s)}function Uo(s){for(;s.parentNode;){if(s===s.ownerDocument?.body)return null;s=s.parentNode}return rN(s)?s:null}function St(){let s=lh().activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s}function Nf(s){return St()===s}function o_(s){return Nt(St(),s)}function lh(){return T8()<=1?Pe.document:Array.from(Mv()).map(({window:e})=>e.document).find(e=>e.hasFocus())??Pe.document}function He(){return lh().defaultView?.window??Pe}var aN=new class{constructor(){this.mutationObservers=new Map}observe(s,e,t){let i=this.mutationObservers.get(s);i||(i=new Map,this.mutationObservers.set(s,i));let n=yf(t),o=i.get(n);if(o)o.users+=1;else{let r=new E,a=new MutationObserver(c=>r.fire(c));a.observe(s,t);let l=o={users:1,observer:a,onDidMutate:r.event};e.add(j(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i?.delete(n),i?.size===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};function je(s){return s instanceof HTMLElement||s instanceof J(s).HTMLElement}function Bv(s){return s instanceof HTMLAnchorElement||s instanceof J(s).HTMLAnchorElement}function Wv(s){return s instanceof SVGElement||s instanceof J(s).SVGElement}function ch(s){return s instanceof MouseEvent||s instanceof J(s).MouseEvent}function vo(s){return s instanceof KeyboardEvent||s instanceof J(s).KeyboardEvent}var K={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function lN(s){let e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}var Ae={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function cN(s){let e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function dN(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}var XT=class s extends N{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(je(e)){let t=Uo(e),i=t?t.activeElement:e.ownerDocument.activeElement;return Nt(i,e)}else{let t=e;return Nt(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new E),this._onDidBlur=this._register(new E);let t=s.hasFocusWithin(e),i=!1,n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(je(e)?J(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{s.hasFocusWithin(e)!==t&&(t?o():n())},this._register(O(e,K.FOCUS,n,!0)),this._register(O(e,K.BLUR,o,!0)),je(e)&&(this._register(O(e,K.FOCUS_IN,()=>this._refreshStateHandler())),this._register(O(e,K.FOCUS_OUT,()=>this._refreshStateHandler())))}};function $o(s){return new XT(s)}function hN(s,e){return s.after(e),e}function ee(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function wl(s,e){return s.insertBefore(e,s.firstChild),e}function Kt(s,...e){s.textContent="",ee(s,...e)}var qG=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/,Df;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Df||(Df={}));function R8(s,e,t,...i){let n=qG.exec(e);if(!n)throw new Error("Bad use of emmet");let o=n[1]||"div",r;return s!==Df.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ie(s,e,...t){return R8(Df.HTML,s,e,...t)}ie.SVG=function(s,e,...t){return R8(Df.SVG,s,e,...t)};function KG(s,...e){s?Mf(...e):r_(...e)}function Mf(...s){for(let e of s)e.style.display="",e.removeAttribute("aria-hidden")}function r_(...s){for(let e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function Vv(s,e){let t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function a_(s){Pe.open(s,"_blank","noopener")}function uN(s,e){let t=()=>{e(),i=mi(s,t)},i=mi(s,t);return j(()=>i.dispose())}MT.setPreferredWebSchema(/^https:/.test(Pe.location.href)?"https":"http");var kc=class s extends E{constructor(){super(),this._subscriptions=new q,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add($.runAndSubscribe(na,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Pe,disposables:this._subscriptions}))}registerListeners(e,t){t.add(O(e,"keydown",i=>{if(i.defaultPrevented)return;let n=new Re(i);if(!(n.keyCode===6&&i.repeat)){if(i.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(i.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(i.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(i.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(n.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=i,this.fire(this._keyStatus))}},!0)),t.add(O(e,"keyup",i=>{i.defaultPrevented||(!i.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!i.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!i.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!i.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=i,this.fire(this._keyStatus)))},!0)),t.add(O(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(O(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return s.instance||(s.instance=new s),s.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},e_=class extends N{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(O(this.element,K.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(O(this.element,K.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(O(this.element,K.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(O(this.element,K.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(O(this.element,K.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(O(this.element,K.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(O(this.element,K.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}},jG=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Fe(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);let n=jG.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");let o=n.groups.tag||"div",r=document.createElement(o);n.groups.id&&(r.id=n.groups.id);let a=[];if(n.groups.class)for(let c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(let c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));let l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(let c of i)je(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(let[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(let[h,u]of Object.entries(d))r.style.setProperty(t_(h),typeof u=="number"?u+"px":""+u);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(t_(c),d.toString());return l.root=r,l}function t_(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s){return s.tagName.toLowerCase()==="input"||s.tagName.toLowerCase()==="textarea"||je(s)&&!!s.editContext}var JT;(function(s){function e(n=void 0){return(o,r,a)=>{let l=r.class;delete r.class;let c=r.ref;delete r.ref;let d=r.obsRef;return delete r.obsRef,new Nv(o,c,d,n,l,r,a)}}function t(n,o=void 0){let r=e(o);return(a,l)=>r(n,a,l)}s.div=t("div"),s.elem=e(void 0),s.svg=t("svg","http://www.w3.org/2000/svg"),s.svgElem=e("http://www.w3.org/2000/svg");function i(){let n,o=function(r){n=r};return Object.defineProperty(o,"element",{get(){if(!n)throw new te("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return n}}),o}s.ref=i})(JT||(JT={}));var Ev=class s{constructor(e,t,i,n,o,r,a){this._deriveds=[],this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push(ne(l=>{i(this),l.store.add({dispose:()=>{i(null)}})})),o&&(O8(o)?this._deriveds.push(ne(this,l=>{k8(this._element,D8(o,l))})):k8(this._element,D8(o,void 0)));for(let[l,c]of Object.entries(r))if(l==="style")for(let[d,h]of Object.entries(c)){let u=t_(d);rh(h)?this._deriveds.push(In({owner:this,debugName:()=>`set.style.${u}`},f=>{this._element.style.setProperty(u,I8(h.read(f)))})):this._element.style.setProperty(u,I8(h))}else l==="tabIndex"?rh(c)?this._deriveds.push(ne(this,d=>{this._element.tabIndex=c.read(d)})):this._element.tabIndex=c:l.startsWith("on")?this._element[l]=c:rh(c)?this._deriveds.push(In({owner:this,debugName:()=>`set.${l}`},d=>{E8(this._element,l,c.read(d))})):E8(this._element,l,c);if(a){let l=function(d,h){return rh(h)?l(d,h.read(d)):Array.isArray(h)?h.flatMap(u=>l(d,u)):h instanceof s?(d&&h.readEffect(d),[h._element]):h?[h]:[]},c=ne(this,d=>{this._element.replaceChildren(...l(d,a))});this._deriveds.push(c),P8(a)||c.get()}}readEffect(e){for(let t of this._deriveds)t.read(e)}keepUpdated(e){return ne(t=>{this.readEffect(t)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){let e=new q;return this.keepUpdated(e),new Tv(this._element,e)}};function k8(s,e){Wv(s)?s.setAttribute("class",e):s.className=e}function A8(s,e,t){if(rh(s)){t(s.read(e));return}if(Array.isArray(s)){for(let i of s)A8(i,e,t);return}t(s)}function D8(s,e){let t="";return A8(s,e,i=>{i&&(t.length===0?t=i:t+=" "+i)}),t}function O8(s){return rh(s)?!0:Array.isArray(s)?s.some(e=>O8(e)):!1}function I8(s){return typeof s=="number"?s+"px":s}function P8(s){return rh(s)?!0:Array.isArray(s)?s.some(e=>P8(e)):!1}var Tv=class{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}},Nv=class extends Ev{constructor(){super(...arguments),this._isHovered=void 0,this._didMouseMoveDuringHover=void 0}get element(){return this._element}get isHovered(){if(!this._isHovered){let e=fe("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=fe("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",i=>{e=!0}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0)}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}};function E8(s,e,t){t==null?s.removeAttribute(t_(e)):s.setAttribute(t_(e),String(t))}function rh(s){return!!s&&s.read!==void 0&&s.reportChanges!==void 0}var F8=2e4,dh,Hv,fN,zv,gN;function B8(s){dh=document.createElement("div"),dh.className="monaco-aria-container";let e=()=>{let i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),dh.appendChild(i),i};Hv=e(),fN=e();let t=()=>{let i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),dh.appendChild(i),i};zv=t(),gN=t(),s.appendChild(dh)}function Ic(s){dh&&(Hv.textContent!==s?(dn(fN),Uv(Hv,s)):(dn(Hv),Uv(fN,s)))}function hh(s){dh&&(zv.textContent!==s?(dn(gN),Uv(zv,s)):(dn(zv),Uv(gN,s)))}function Uv(s,e){dn(s),e.length>F8&&(e=e.substr(0,F8)),s.textContent=e,s.style.visibility="hidden",s.style.visibility="visible"}var qo;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(qo||(qo={}));var ue=oe("instantiationService");function YG(s,e,t){e[qo.DI_TARGET]===e?e[qo.DI_DEPENDENCIES].push({id:s,index:t}):(e[qo.DI_DEPENDENCIES]=[{id:s,index:t}],e[qo.DI_TARGET]=e)}function oe(s){if(qo.serviceIds.has(s))return qo.serviceIds.get(s);let e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");YG(e,t,n)};return e.toString=()=>s,qo.serviceIds.set(s,e),e}var _t=oe("codeEditorService");var M=class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let i=e.lineNumber|0,n=t.lineNumber|0;if(i===n){let o=e.column|0,r=t.column|0;return o-r}return i-n}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var yi=oe("modelService");var Ec=oe("textModelService");var Zs=class extends N{get onDidChange(){return this._onDidChange.event}constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new E),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}},Ds=class extends N{constructor(){super(...arguments),this._onWillRun=this._register(new E),this._onDidRun=this._register(new E)}get onWillRun(){return this._onWillRun.event}get onDidRun(){return this._onDidRun.event}async run(e,t){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}},Yt=class s{constructor(){this.id=s.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(let i of e)i.length&&(t.length?t=[...t,new s,...i]:t=i);return t}static{this.ID="vs.actions.separator"}async run(){}},sa=class{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}},$v=class s extends Zs{static{this.ID="vs.actions.empty"}constructor(){super(s.ID,m(28,"(empty)"),void 0,!1)}};function oa(s){return{id:s.id,label:s.label,tooltip:s.tooltip??s.label,class:s.class,enabled:s.enabled??!0,checked:s.checked,run:async(...e)=>s.run(...e)}}var mN=Object.create(null);function y(s,e){if(Vt(e)){let t=mN[e];if(t===void 0)throw new Error(`${s} references an unknown codicon: ${e}`);e=t}return mN[s]=e,{id:s}}function qv(){return mN}var W8={add:y("add",6e4),plus:y("plus",6e4),gistNew:y("gist-new",6e4),repoCreate:y("repo-create",6e4),lightbulb:y("lightbulb",60001),lightBulb:y("light-bulb",60001),repo:y("repo",60002),repoDelete:y("repo-delete",60002),gistFork:y("gist-fork",60003),repoForked:y("repo-forked",60003),gitPullRequest:y("git-pull-request",60004),gitPullRequestAbandoned:y("git-pull-request-abandoned",60004),recordKeys:y("record-keys",60005),keyboard:y("keyboard",60005),tag:y("tag",60006),gitPullRequestLabel:y("git-pull-request-label",60006),tagAdd:y("tag-add",60006),tagRemove:y("tag-remove",60006),person:y("person",60007),personFollow:y("person-follow",60007),personOutline:y("person-outline",60007),personFilled:y("person-filled",60007),sourceControl:y("source-control",60008),mirror:y("mirror",60009),mirrorPublic:y("mirror-public",60009),star:y("star",60010),starAdd:y("star-add",60010),starDelete:y("star-delete",60010),starEmpty:y("star-empty",60010),comment:y("comment",60011),commentAdd:y("comment-add",60011),alert:y("alert",60012),warning:y("warning",60012),search:y("search",60013),searchSave:y("search-save",60013),logOut:y("log-out",60014),signOut:y("sign-out",60014),logIn:y("log-in",60015),signIn:y("sign-in",60015),eye:y("eye",60016),eyeUnwatch:y("eye-unwatch",60016),eyeWatch:y("eye-watch",60016),circleFilled:y("circle-filled",60017),primitiveDot:y("primitive-dot",60017),closeDirty:y("close-dirty",60017),debugBreakpoint:y("debug-breakpoint",60017),debugBreakpointDisabled:y("debug-breakpoint-disabled",60017),debugHint:y("debug-hint",60017),terminalDecorationSuccess:y("terminal-decoration-success",60017),primitiveSquare:y("primitive-square",60018),edit:y("edit",60019),pencil:y("pencil",60019),info:y("info",60020),issueOpened:y("issue-opened",60020),gistPrivate:y("gist-private",60021),gitForkPrivate:y("git-fork-private",60021),lock:y("lock",60021),mirrorPrivate:y("mirror-private",60021),close:y("close",60022),removeClose:y("remove-close",60022),x:y("x",60022),repoSync:y("repo-sync",60023),sync:y("sync",60023),clone:y("clone",60024),desktopDownload:y("desktop-download",60024),beaker:y("beaker",60025),microscope:y("microscope",60025),vm:y("vm",60026),deviceDesktop:y("device-desktop",60026),file:y("file",60027),more:y("more",60028),ellipsis:y("ellipsis",60028),kebabHorizontal:y("kebab-horizontal",60028),mailReply:y("mail-reply",60029),reply:y("reply",60029),organization:y("organization",60030),organizationFilled:y("organization-filled",60030),organizationOutline:y("organization-outline",60030),newFile:y("new-file",60031),fileAdd:y("file-add",60031),newFolder:y("new-folder",60032),fileDirectoryCreate:y("file-directory-create",60032),trash:y("trash",60033),trashcan:y("trashcan",60033),history:y("history",60034),clock:y("clock",60034),folder:y("folder",60035),fileDirectory:y("file-directory",60035),symbolFolder:y("symbol-folder",60035),logoGithub:y("logo-github",60036),markGithub:y("mark-github",60036),github:y("github",60036),terminal:y("terminal",60037),console:y("console",60037),repl:y("repl",60037),zap:y("zap",60038),symbolEvent:y("symbol-event",60038),error:y("error",60039),stop:y("stop",60039),variable:y("variable",60040),symbolVariable:y("symbol-variable",60040),array:y("array",60042),symbolArray:y("symbol-array",60042),symbolModule:y("symbol-module",60043),symbolPackage:y("symbol-package",60043),symbolNamespace:y("symbol-namespace",60043),symbolObject:y("symbol-object",60043),symbolMethod:y("symbol-method",60044),symbolFunction:y("symbol-function",60044),symbolConstructor:y("symbol-constructor",60044),symbolBoolean:y("symbol-boolean",60047),symbolNull:y("symbol-null",60047),symbolNumeric:y("symbol-numeric",60048),symbolNumber:y("symbol-number",60048),symbolStructure:y("symbol-structure",60049),symbolStruct:y("symbol-struct",60049),symbolParameter:y("symbol-parameter",60050),symbolTypeParameter:y("symbol-type-parameter",60050),symbolKey:y("symbol-key",60051),symbolText:y("symbol-text",60051),symbolReference:y("symbol-reference",60052),goToFile:y("go-to-file",60052),symbolEnum:y("symbol-enum",60053),symbolValue:y("symbol-value",60053),symbolRuler:y("symbol-ruler",60054),symbolUnit:y("symbol-unit",60054),activateBreakpoints:y("activate-breakpoints",60055),archive:y("archive",60056),arrowBoth:y("arrow-both",60057),arrowDown:y("arrow-down",60058),arrowLeft:y("arrow-left",60059),arrowRight:y("arrow-right",60060),arrowSmallDown:y("arrow-small-down",60061),arrowSmallLeft:y("arrow-small-left",60062),arrowSmallRight:y("arrow-small-right",60063),arrowSmallUp:y("arrow-small-up",60064),arrowUp:y("arrow-up",60065),bell:y("bell",60066),bold:y("bold",60067),book:y("book",60068),bookmark:y("bookmark",60069),debugBreakpointConditionalUnverified:y("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:y("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:y("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:y("debug-breakpoint-data-unverified",60072),debugBreakpointData:y("debug-breakpoint-data",60073),debugBreakpointDataDisabled:y("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:y("debug-breakpoint-log-unverified",60074),debugBreakpointLog:y("debug-breakpoint-log",60075),debugBreakpointLogDisabled:y("debug-breakpoint-log-disabled",60075),briefcase:y("briefcase",60076),broadcast:y("broadcast",60077),browser:y("browser",60078),bug:y("bug",60079),calendar:y("calendar",60080),caseSensitive:y("case-sensitive",60081),check:y("check",60082),checklist:y("checklist",60083),chevronDown:y("chevron-down",60084),chevronLeft:y("chevron-left",60085),chevronRight:y("chevron-right",60086),chevronUp:y("chevron-up",60087),chromeClose:y("chrome-close",60088),chromeMaximize:y("chrome-maximize",60089),chromeMinimize:y("chrome-minimize",60090),chromeRestore:y("chrome-restore",60091),circleOutline:y("circle-outline",60092),circle:y("circle",60092),debugBreakpointUnverified:y("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:y("terminal-decoration-incomplete",60092),circleSlash:y("circle-slash",60093),circuitBoard:y("circuit-board",60094),clearAll:y("clear-all",60095),clippy:y("clippy",60096),closeAll:y("close-all",60097),cloudDownload:y("cloud-download",60098),cloudUpload:y("cloud-upload",60099),code:y("code",60100),collapseAll:y("collapse-all",60101),colorMode:y("color-mode",60102),commentDiscussion:y("comment-discussion",60103),creditCard:y("credit-card",60105),dash:y("dash",60108),dashboard:y("dashboard",60109),database:y("database",60110),debugContinue:y("debug-continue",60111),debugDisconnect:y("debug-disconnect",60112),debugPause:y("debug-pause",60113),debugRestart:y("debug-restart",60114),debugStart:y("debug-start",60115),debugStepInto:y("debug-step-into",60116),debugStepOut:y("debug-step-out",60117),debugStepOver:y("debug-step-over",60118),debugStop:y("debug-stop",60119),debug:y("debug",60120),deviceCameraVideo:y("device-camera-video",60121),deviceCamera:y("device-camera",60122),deviceMobile:y("device-mobile",60123),diffAdded:y("diff-added",60124),diffIgnored:y("diff-ignored",60125),diffModified:y("diff-modified",60126),diffRemoved:y("diff-removed",60127),diffRenamed:y("diff-renamed",60128),diff:y("diff",60129),diffSidebyside:y("diff-sidebyside",60129),discard:y("discard",60130),editorLayout:y("editor-layout",60131),emptyWindow:y("empty-window",60132),exclude:y("exclude",60133),extensions:y("extensions",60134),eyeClosed:y("eye-closed",60135),fileBinary:y("file-binary",60136),fileCode:y("file-code",60137),fileMedia:y("file-media",60138),filePdf:y("file-pdf",60139),fileSubmodule:y("file-submodule",60140),fileSymlinkDirectory:y("file-symlink-directory",60141),fileSymlinkFile:y("file-symlink-file",60142),fileZip:y("file-zip",60143),files:y("files",60144),filter:y("filter",60145),flame:y("flame",60146),foldDown:y("fold-down",60147),foldUp:y("fold-up",60148),fold:y("fold",60149),folderActive:y("folder-active",60150),folderOpened:y("folder-opened",60151),gear:y("gear",60152),gift:y("gift",60153),gistSecret:y("gist-secret",60154),gist:y("gist",60155),gitCommit:y("git-commit",60156),gitCompare:y("git-compare",60157),compareChanges:y("compare-changes",60157),gitMerge:y("git-merge",60158),githubAction:y("github-action",60159),githubAlt:y("github-alt",60160),globe:y("globe",60161),grabber:y("grabber",60162),graph:y("graph",60163),gripper:y("gripper",60164),heart:y("heart",60165),home:y("home",60166),horizontalRule:y("horizontal-rule",60167),hubot:y("hubot",60168),inbox:y("inbox",60169),issueReopened:y("issue-reopened",60171),issues:y("issues",60172),italic:y("italic",60173),jersey:y("jersey",60174),json:y("json",60175),kebabVertical:y("kebab-vertical",60176),key:y("key",60177),law:y("law",60178),lightbulbAutofix:y("lightbulb-autofix",60179),linkExternal:y("link-external",60180),link:y("link",60181),listOrdered:y("list-ordered",60182),listUnordered:y("list-unordered",60183),liveShare:y("live-share",60184),loading:y("loading",60185),location:y("location",60186),mailRead:y("mail-read",60187),mail:y("mail",60188),markdown:y("markdown",60189),megaphone:y("megaphone",60190),mention:y("mention",60191),milestone:y("milestone",60192),gitPullRequestMilestone:y("git-pull-request-milestone",60192),mortarBoard:y("mortar-board",60193),move:y("move",60194),multipleWindows:y("multiple-windows",60195),mute:y("mute",60196),noNewline:y("no-newline",60197),note:y("note",60198),octoface:y("octoface",60199),openPreview:y("open-preview",60200),package:y("package",60201),paintcan:y("paintcan",60202),pin:y("pin",60203),play:y("play",60204),run:y("run",60204),plug:y("plug",60205),preserveCase:y("preserve-case",60206),preview:y("preview",60207),project:y("project",60208),pulse:y("pulse",60209),question:y("question",60210),quote:y("quote",60211),radioTower:y("radio-tower",60212),reactions:y("reactions",60213),references:y("references",60214),refresh:y("refresh",60215),regex:y("regex",60216),remoteExplorer:y("remote-explorer",60217),remote:y("remote",60218),remove:y("remove",60219),replaceAll:y("replace-all",60220),replace:y("replace",60221),repoClone:y("repo-clone",60222),repoForcePush:y("repo-force-push",60223),repoPull:y("repo-pull",60224),repoPush:y("repo-push",60225),report:y("report",60226),requestChanges:y("request-changes",60227),rocket:y("rocket",60228),rootFolderOpened:y("root-folder-opened",60229),rootFolder:y("root-folder",60230),rss:y("rss",60231),ruby:y("ruby",60232),saveAll:y("save-all",60233),saveAs:y("save-as",60234),save:y("save",60235),screenFull:y("screen-full",60236),screenNormal:y("screen-normal",60237),searchStop:y("search-stop",60238),server:y("server",60240),settingsGear:y("settings-gear",60241),settings:y("settings",60242),shield:y("shield",60243),smiley:y("smiley",60244),sortPrecedence:y("sort-precedence",60245),splitHorizontal:y("split-horizontal",60246),splitVertical:y("split-vertical",60247),squirrel:y("squirrel",60248),starFull:y("star-full",60249),starHalf:y("star-half",60250),symbolClass:y("symbol-class",60251),symbolColor:y("symbol-color",60252),symbolConstant:y("symbol-constant",60253),symbolEnumMember:y("symbol-enum-member",60254),symbolField:y("symbol-field",60255),symbolFile:y("symbol-file",60256),symbolInterface:y("symbol-interface",60257),symbolKeyword:y("symbol-keyword",60258),symbolMisc:y("symbol-misc",60259),symbolOperator:y("symbol-operator",60260),symbolProperty:y("symbol-property",60261),wrench:y("wrench",60261),wrenchSubaction:y("wrench-subaction",60261),symbolSnippet:y("symbol-snippet",60262),tasklist:y("tasklist",60263),telescope:y("telescope",60264),textSize:y("text-size",60265),threeBars:y("three-bars",60266),thumbsdown:y("thumbsdown",60267),thumbsup:y("thumbsup",60268),tools:y("tools",60269),triangleDown:y("triangle-down",60270),triangleLeft:y("triangle-left",60271),triangleRight:y("triangle-right",60272),triangleUp:y("triangle-up",60273),twitter:y("twitter",60274),unfold:y("unfold",60275),unlock:y("unlock",60276),unmute:y("unmute",60277),unverified:y("unverified",60278),verified:y("verified",60279),versions:y("versions",60280),vmActive:y("vm-active",60281),vmOutline:y("vm-outline",60282),vmRunning:y("vm-running",60283),watch:y("watch",60284),whitespace:y("whitespace",60285),wholeWord:y("whole-word",60286),window:y("window",60287),wordWrap:y("word-wrap",60288),zoomIn:y("zoom-in",60289),zoomOut:y("zoom-out",60290),listFilter:y("list-filter",60291),listFlat:y("list-flat",60292),listSelection:y("list-selection",60293),selection:y("selection",60293),listTree:y("list-tree",60294),debugBreakpointFunctionUnverified:y("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:y("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:y("debug-breakpoint-function-disabled",60296),debugStackframeActive:y("debug-stackframe-active",60297),circleSmallFilled:y("circle-small-filled",60298),debugStackframeDot:y("debug-stackframe-dot",60298),terminalDecorationMark:y("terminal-decoration-mark",60298),debugStackframe:y("debug-stackframe",60299),debugStackframeFocused:y("debug-stackframe-focused",60299),debugBreakpointUnsupported:y("debug-breakpoint-unsupported",60300),symbolString:y("symbol-string",60301),debugReverseContinue:y("debug-reverse-continue",60302),debugStepBack:y("debug-step-back",60303),debugRestartFrame:y("debug-restart-frame",60304),debugAlt:y("debug-alt",60305),callIncoming:y("call-incoming",60306),callOutgoing:y("call-outgoing",60307),menu:y("menu",60308),expandAll:y("expand-all",60309),feedback:y("feedback",60310),gitPullRequestReviewer:y("git-pull-request-reviewer",60310),groupByRefType:y("group-by-ref-type",60311),ungroupByRefType:y("ungroup-by-ref-type",60312),account:y("account",60313),gitPullRequestAssignee:y("git-pull-request-assignee",60313),bellDot:y("bell-dot",60314),debugConsole:y("debug-console",60315),library:y("library",60316),output:y("output",60317),runAll:y("run-all",60318),syncIgnored:y("sync-ignored",60319),pinned:y("pinned",60320),githubInverted:y("github-inverted",60321),serverProcess:y("server-process",60322),serverEnvironment:y("server-environment",60323),pass:y("pass",60324),issueClosed:y("issue-closed",60324),stopCircle:y("stop-circle",60325),playCircle:y("play-circle",60326),record:y("record",60327),debugAltSmall:y("debug-alt-small",60328),vmConnect:y("vm-connect",60329),cloud:y("cloud",60330),merge:y("merge",60331),export:y("export",60332),graphLeft:y("graph-left",60333),magnet:y("magnet",60334),notebook:y("notebook",60335),redo:y("redo",60336),checkAll:y("check-all",60337),pinnedDirty:y("pinned-dirty",60338),passFilled:y("pass-filled",60339),circleLargeFilled:y("circle-large-filled",60340),circleLarge:y("circle-large",60341),circleLargeOutline:y("circle-large-outline",60341),combine:y("combine",60342),gather:y("gather",60342),table:y("table",60343),variableGroup:y("variable-group",60344),typeHierarchy:y("type-hierarchy",60345),typeHierarchySub:y("type-hierarchy-sub",60346),typeHierarchySuper:y("type-hierarchy-super",60347),gitPullRequestCreate:y("git-pull-request-create",60348),runAbove:y("run-above",60349),runBelow:y("run-below",60350),notebookTemplate:y("notebook-template",60351),debugRerun:y("debug-rerun",60352),workspaceTrusted:y("workspace-trusted",60353),workspaceUntrusted:y("workspace-untrusted",60354),workspaceUnknown:y("workspace-unknown",60355),terminalCmd:y("terminal-cmd",60356),terminalDebian:y("terminal-debian",60357),terminalLinux:y("terminal-linux",60358),terminalPowershell:y("terminal-powershell",60359),terminalTmux:y("terminal-tmux",60360),terminalUbuntu:y("terminal-ubuntu",60361),terminalBash:y("terminal-bash",60362),arrowSwap:y("arrow-swap",60363),copy:y("copy",60364),personAdd:y("person-add",60365),filterFilled:y("filter-filled",60366),wand:y("wand",60367),debugLineByLine:y("debug-line-by-line",60368),inspect:y("inspect",60369),layers:y("layers",60370),layersDot:y("layers-dot",60371),layersActive:y("layers-active",60372),compass:y("compass",60373),compassDot:y("compass-dot",60374),compassActive:y("compass-active",60375),azure:y("azure",60376),issueDraft:y("issue-draft",60377),gitPullRequestClosed:y("git-pull-request-closed",60378),gitPullRequestDraft:y("git-pull-request-draft",60379),debugAll:y("debug-all",60380),debugCoverage:y("debug-coverage",60381),runErrors:y("run-errors",60382),folderLibrary:y("folder-library",60383),debugContinueSmall:y("debug-continue-small",60384),beakerStop:y("beaker-stop",60385),graphLine:y("graph-line",60386),graphScatter:y("graph-scatter",60387),pieChart:y("pie-chart",60388),bracket:y("bracket",60175),bracketDot:y("bracket-dot",60389),bracketError:y("bracket-error",60390),lockSmall:y("lock-small",60391),azureDevops:y("azure-devops",60392),verifiedFilled:y("verified-filled",60393),newline:y("newline",60394),layout:y("layout",60395),layoutActivitybarLeft:y("layout-activitybar-left",60396),layoutActivitybarRight:y("layout-activitybar-right",60397),layoutPanelLeft:y("layout-panel-left",60398),layoutPanelCenter:y("layout-panel-center",60399),layoutPanelJustify:y("layout-panel-justify",60400),layoutPanelRight:y("layout-panel-right",60401),layoutPanel:y("layout-panel",60402),layoutSidebarLeft:y("layout-sidebar-left",60403),layoutSidebarRight:y("layout-sidebar-right",60404),layoutStatusbar:y("layout-statusbar",60405),layoutMenubar:y("layout-menubar",60406),layoutCentered:y("layout-centered",60407),target:y("target",60408),indent:y("indent",60409),recordSmall:y("record-small",60410),errorSmall:y("error-small",60411),terminalDecorationError:y("terminal-decoration-error",60411),arrowCircleDown:y("arrow-circle-down",60412),arrowCircleLeft:y("arrow-circle-left",60413),arrowCircleRight:y("arrow-circle-right",60414),arrowCircleUp:y("arrow-circle-up",60415),layoutSidebarRightOff:y("layout-sidebar-right-off",60416),layoutPanelOff:y("layout-panel-off",60417),layoutSidebarLeftOff:y("layout-sidebar-left-off",60418),blank:y("blank",60419),heartFilled:y("heart-filled",60420),map:y("map",60421),mapHorizontal:y("map-horizontal",60421),foldHorizontal:y("fold-horizontal",60421),mapFilled:y("map-filled",60422),mapHorizontalFilled:y("map-horizontal-filled",60422),foldHorizontalFilled:y("fold-horizontal-filled",60422),circleSmall:y("circle-small",60423),bellSlash:y("bell-slash",60424),bellSlashDot:y("bell-slash-dot",60425),commentUnresolved:y("comment-unresolved",60426),gitPullRequestGoToChanges:y("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:y("git-pull-request-new-changes",60428),searchFuzzy:y("search-fuzzy",60429),commentDraft:y("comment-draft",60430),send:y("send",60431),sparkle:y("sparkle",60432),insert:y("insert",60433),mic:y("mic",60434),thumbsdownFilled:y("thumbsdown-filled",60435),thumbsupFilled:y("thumbsup-filled",60436),coffee:y("coffee",60437),snake:y("snake",60438),game:y("game",60439),vr:y("vr",60440),chip:y("chip",60441),piano:y("piano",60442),music:y("music",60443),micFilled:y("mic-filled",60444),repoFetch:y("repo-fetch",60445),copilot:y("copilot",60446),lightbulbSparkle:y("lightbulb-sparkle",60447),robot:y("robot",60448),sparkleFilled:y("sparkle-filled",60449),diffSingle:y("diff-single",60450),diffMultiple:y("diff-multiple",60451),surroundWith:y("surround-with",60452),share:y("share",60453),gitStash:y("git-stash",60454),gitStashApply:y("git-stash-apply",60455),gitStashPop:y("git-stash-pop",60456),vscode:y("vscode",60457),vscodeInsiders:y("vscode-insiders",60458),codeOss:y("code-oss",60459),runCoverage:y("run-coverage",60460),runAllCoverage:y("run-all-coverage",60461),coverage:y("coverage",60462),githubProject:y("github-project",60463),mapVertical:y("map-vertical",60464),foldVertical:y("fold-vertical",60464),mapVerticalFilled:y("map-vertical-filled",60465),foldVerticalFilled:y("fold-vertical-filled",60465),goToSearch:y("go-to-search",60466),percentage:y("percentage",60467),sortPercentage:y("sort-percentage",60467),attach:y("attach",60468),goToEditingSession:y("go-to-editing-session",60469),editSession:y("edit-session",60470),codeReview:y("code-review",60471),copilotWarning:y("copilot-warning",60472),python:y("python",60473),copilotLarge:y("copilot-large",60474),copilotWarningLarge:y("copilot-warning-large",60475),keyboardTab:y("keyboard-tab",60476),copilotBlocked:y("copilot-blocked",60477),copilotNotConnected:y("copilot-not-connected",60478),flag:y("flag",60479),lightbulbEmpty:y("lightbulb-empty",60480),symbolMethodArrow:y("symbol-method-arrow",60481),copilotUnavailable:y("copilot-unavailable",60482),repoPinned:y("repo-pinned",60483),keyboardTabAbove:y("keyboard-tab-above",60484),keyboardTabBelow:y("keyboard-tab-below",60485),gitPullRequestDone:y("git-pull-request-done",60486),mcp:y("mcp",60487),extensionsLarge:y("extensions-large",60488),layoutPanelDock:y("layout-panel-dock",60489),layoutSidebarLeftDock:y("layout-sidebar-left-dock",60490),layoutSidebarRightDock:y("layout-sidebar-right-dock",60491),copilotInProgress:y("copilot-in-progress",60492),copilotError:y("copilot-error",60493),copilotSuccess:y("copilot-success",60494),chatSparkle:y("chat-sparkle",60495),searchSparkle:y("search-sparkle",60496),editSparkle:y("edit-sparkle",60497),copilotSnooze:y("copilot-snooze",60498),sendToRemoteAgent:y("send-to-remote-agent",60499),commentDiscussionSparkle:y("comment-discussion-sparkle",60500),chatSparkleWarning:y("chat-sparkle-warning",60501),chatSparkleError:y("chat-sparkle-error",60502),collection:y("collection",60503),newCollection:y("new-collection",60504),thinking:y("thinking",60505),build:y("build",60506),commentDiscussionQuote:y("comment-discussion-quote",60507),cursor:y("cursor",60508),eraser:y("eraser",60509),fileText:y("file-text",60510),gitLens:y("git-lens",60511),quotes:y("quotes",60512),rename:y("rename",60513),runWithDeps:y("run-with-deps",60514),debugConnected:y("debug-connected",60515),strikethrough:y("strikethrough",60516),openInProduct:y("open-in-product",60517),indexZero:y("index-zero",60518),agent:y("agent",60519),editCode:y("edit-code",60520),repoSelected:y("repo-selected",60521),skip:y("skip",60522),mergeInto:y("merge-into",60523),gitBranchChanges:y("git-branch-changes",60524),gitBranchStagedChanges:y("git-branch-staged-changes",60525),gitBranchConflicts:y("git-branch-conflicts",60526),gitBranch:y("git-branch",60527),gitBranchCreate:y("git-branch-create",60527),gitBranchDelete:y("git-branch-delete",60527),searchLarge:y("search-large",60528),terminalGitBash:y("terminal-git-bash",60529)};var ZG={dialogError:y("dialog-error","error"),dialogWarning:y("dialog-warning","warning"),dialogInfo:y("dialog-info","info"),dialogClose:y("dialog-close","close"),treeItemExpanded:y("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:y("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:y("tree-filter-on-type-off","list-selection"),treeFilterClear:y("tree-filter-clear","close"),treeItemLoading:y("tree-item-loading","loading"),menuSelection:y("menu-selection","check"),menuSubmenu:y("menu-submenu","chevron-right"),menuBarMore:y("menubar-more","more"),scrollbarButtonLeft:y("scrollbar-button-left","triangle-left"),scrollbarButtonRight:y("scrollbar-button-right","triangle-right"),scrollbarButtonUp:y("scrollbar-button-up","triangle-up"),scrollbarButtonDown:y("scrollbar-button-down","triangle-down"),toolBarMore:y("toolbar-more","more"),quickInputBack:y("quick-input-back","arrow-left"),dropDownButton:y("drop-down-button",60084),symbolCustomColor:y("symbol-customcolor",60252),exportIcon:y("export",60332),workspaceUnspecified:y("workspace-unspecified",60355),newLine:y("newline",60394),thumbsDownFilled:y("thumbsdown-filled",60435),thumbsUpFilled:y("thumbsup-filled",60436),gitFetch:y("git-fetch",60445),lightbulbSparkleAutofix:y("lightbulb-sparkle-autofix",60447),debugBreakpointPending:y("debug-breakpoint-pending",60377)},Z={...W8,...ZG};var pN;(function(s){function e(t){return!!t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(pN||(pN={}));var Ce;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";let e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(g){let p=e.exec(g.id);if(!p)return t(Z.error);let[,_,w]=p,b=["codicon","codicon-"+_];return w&&b.push("codicon-modifier-"+w.substring(1)),b}s.asClassNameArray=t;function i(g){return t(g).join(" ")}s.asClassName=i;function n(g){return"."+t(g).join(".")}s.asCSSSelector=n;function o(g){return!!g&&typeof g=="object"&&typeof g.id=="string"&&(typeof g.color>"u"||pN.isThemeColor(g.color))}s.isThemeIcon=o;let r=new RegExp(`^\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)$`);function a(g){let p=r.exec(g);if(!p)return;let[,_]=p;return{id:_}}s.fromString=a;function l(g){return{id:g}}s.fromId=l;function c(g,p){let _=g.id,w=_.lastIndexOf("~");return w!==-1&&(_=_.substring(0,w)),p&&(_=`${_}~${p}`),{id:_}}s.modify=c;function d(g){let p=g.id.lastIndexOf("~");if(p!==-1)return g.id.substring(p+1)}s.getModifier=d;function h(g,p){return g.id===p.id&&g.color?.id===p.color?.id}s.isEqual=h;function u(g){return g?.id===Z.file.id}s.isFile=u;function f(g){return g?.id===Z.folder.id}s.isFolder=f})(Ce||(Ce={}));var zi=oe("commandService"),oi=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new E,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.metadata&&Array.isArray(s.metadata.args)){let r=[];for(let l of s.metadata.args)r.push(l.constraint);let a=s.handler;s.handler=function(l,...c){return DF(c,r),a(l,...c)}}let{id:t}=s,i=this._commands.get(t);i||(i=new qt,this._commands.set(t,i));let n=i.unshift(s),o=j(()=>{n(),this._commands.get(t)?.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return oi.registerCommand(s,(t,...i)=>t.get(zi).executeCommand(e,...i))}getCommand(s){let e=this._commands.get(s);if(!(!e||e.isEmpty()))return Me.first(e)}getCommands(){let s=new Map;for(let e of this._commands.keys()){let t=this.getCommand(e);t&&s.set(e,t)}return s}};oi.registerCommand("noop",()=>{});function _N(...s){switch(s.length){case 1:return m(1693,"Did you mean {0}?",s[0]);case 2:return m(1694,"Did you mean {0} or {1}?",s[0],s[1]);case 3:return m(1695,"Did you mean {0}, {1} or {2}?",s[0],s[1],s[2]);default:return}}var QG=m(1696,"Did you forget to open or close the quote?"),XG=m(1697,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),Tc=class s{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw Ud(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(_N("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(_N("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(_N("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=s._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(QG);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(XG);return}let o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e<this._input.length&&s._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};var hn=new Map;hn.set("false",!1);hn.set("true",!0);hn.set("isMac",be);hn.set("isLinux",Jt);hn.set("isWindows",Wt);hn.set("isWeb",Us);hn.set("isMacNative",be&&!Us);hn.set("isEdge",Aw);hn.set("isFirefox",CF);hn.set("isChrome",kp);hn.set("isSafari",yF);var JG=Object.prototype.hasOwnProperty,eY={regexParsingWithErrorRecovery:!0},tY=m(1675,"Empty context key expression"),iY=m(1676,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),nY=m(1677,"'in' after 'not'."),V8=m(1678,"closing parenthesis ')'"),sY=m(1679,"Unexpected token"),oY=m(1680,"Did you forget to put && or || before the token?"),rY=m(1681,"Unexpected end of expression"),aY=m(1682,"Did you forget to put a context key?"),bN=class s{static{this._parseError=new Error}constructor(e=eY){this._config=e,this._scanner=new Tc,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:tY,offset:0,lexeme:"",additionalInfo:iY});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let i=this._peek(),n=i.type===17?oY:void 0;throw this._parsingErrors.push({message:sY,offset:i.offset,lexeme:Tc.getLexeme(i),additionalInfo:n}),s._parseError}return t}catch(t){if(t!==s._parseError)throw t;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:Ee.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:Ee.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),zn.INSTANCE;case 12:return this._advance(),as.INSTANCE;case 0:{this._advance();let t=this._expr();return this._consume(1,V8),t?.negate()}case 17:return this._advance(),fh.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),Ee.true();case 12:return this._advance(),Ee.false();case 0:{this._advance();let t=this._expr();return this._consume(1,V8),t}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let n=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),n.type!==10)throw this._errExpectedButGot("REGEX",n);let o=n.lexeme,r=o.lastIndexOf("/"),a=r===o.length-1?void 0:this._removeFlagsGY(o.substring(r+1)),l;try{l=new RegExp(o.substring(1,r),a)}catch{throw this._errExpectedButGot("REGEX",n)}return h_.create(t,l)}switch(n.type){case 10:case 19:{let o=[n.lexeme];this._advance();let r=this._peek(),a=0;for(let u=0;u<n.lexeme.length;u++)n.lexeme.charCodeAt(u)===40?a++:n.lexeme.charCodeAt(u)===41&&a--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let u=0;u<r.lexeme.length;u++)r.lexeme.charCodeAt(u)===40?a++:n.lexeme.charCodeAt(u)===41&&a--}if(a<0)break;o.push(Tc.getLexeme(r)),this._advance(),r=this._peek()}let l=o.join(""),c=l.lastIndexOf("/"),d=c===l.length-1?void 0:this._removeFlagsGY(l.substring(c+1)),h;try{h=new RegExp(l.substring(1,c),d)}catch{throw this._errExpectedButGot("REGEX",n)}return Ee.regex(t,h)}case 18:{let o=n.lexeme;this._advance();let r=null;if(!AF(o)){let a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){let c=o.slice(a+1,l),d=o[l+1]==="i"?"i":"";try{r=new RegExp(c,d)}catch{throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return h_.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,nY);let n=this._value();return Ee.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();let n=this._value();if(this._previous().type===18)return Ee.equals(t,n);switch(n){case"true":return Ee.has(t);case"false":return Ee.not(t);default:return Ee.equals(t,n)}}case 4:{this._advance();let n=this._value();if(this._previous().type===18)return Ee.notEquals(t,n);switch(n){case"true":return Ee.not(t);case"false":return Ee.has(t);default:return Ee.notEquals(t,n)}}case 5:return this._advance(),Qv.create(t,this._value());case 6:return this._advance(),Xv.create(t,this._value());case 7:return this._advance(),Yv.create(t,this._value());case 8:return this._advance(),Zv.create(t,this._value());case 13:return this._advance(),Ee.in(t,this._value());default:return Ee.has(t)}}case 20:throw this._parsingErrors.push({message:rY,offset:e.offset,lexeme:"",additionalInfo:aY}),s._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
10
10
|
| KEY '=~' REGEX
|
|
11
11
|
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){let n=m(1683,`Expected: {0}
|
|
12
12
|
Received: '{1}'.`,e,Tc.getLexeme(t)),o=t.offset,r=Tc.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),s._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},Ee=class{static false(){return zn.INSTANCE}static true(){return as.INSTANCE}static has(e){return uh.create(e)}static equals(e,t){return d_.create(e,t)}static notEquals(e,t){return Gv.create(e,t)}static regex(e,t){return h_.create(e,t)}static in(e,t){return Kv.create(e,t)}static notIn(e,t){return jv.create(e,t)}static not(e){return fh.create(e)}static and(...e){return Jv.create(e,null,!0)}static or(...e){return u_.create(e,null,!0)}static{this._parser=new bN({regexParsingWithErrorRecovery:!1})}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};function U8(s,e){let t=s?s.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function c_(s,e){return s.cmp(e)}var zn=class s{static{this.INSTANCE=new s}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return as.INSTANCE}},as=class s{static{this.INSTANCE=new s}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return zn.INSTANCE}},uh=class s{static create(e,t=null){let i=hn.get(e);return typeof i=="boolean"?i?as.INSTANCE:zn.INSTANCE:new s(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:q8(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){let e=hn.get(this.key);return typeof e=="boolean"?e?as.INSTANCE:zn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=fh.create(this.key,this)),this.negated}},d_=class s{static create(e,t,i=null){if(typeof t=="boolean")return t?uh.create(e,i):fh.create(e,i);let n=hn.get(e);return typeof n=="boolean"?t===(n?"true":"false")?as.INSTANCE:zn.INSTANCE:new s(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){let e=hn.get(this.key);if(typeof e=="boolean"){let t=e?"true":"false";return this.value===t?as.INSTANCE:zn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Gv.create(this.key,this.value,this)),this.negated}},Kv=class s{static create(e,t){return new s(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):typeof i=="string"&&typeof t=="object"&&t!==null?JG.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=jv.create(this.key,this.valueKey)),this.negated}},jv=class s{static create(e,t){return new s(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=Kv.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}},Gv=class s{static create(e,t,i=null){if(typeof t=="boolean")return t?fh.create(e,i):uh.create(e,i);let n=hn.get(e);return typeof n=="boolean"?t===(n?"true":"false")?zn.INSTANCE:as.INSTANCE:new s(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){let e=hn.get(this.key);if(typeof e=="boolean"){let t=e?"true":"false";return this.value===t?zn.INSTANCE:as.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d_.create(this.key,this.value,this)),this.negated}},fh=class s{static create(e,t=null){let i=hn.get(e);return typeof i=="boolean"?i?zn.INSTANCE:as.INSTANCE:new s(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:q8(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){let e=hn.get(this.key);return typeof e=="boolean"?e?zn.INSTANCE:as.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=uh.create(this.key,this)),this.negated}};function t0(s,e){if(typeof s=="string"){let t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):zn.INSTANCE}var Yv=class s{static create(e,t,i=null){return t0(t,n=>new s(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Xv.create(this.key,this.value,this)),this.negated}},Zv=class s{static create(e,t,i=null){return t0(t,n=>new s(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Qv.create(this.key,this.value,this)),this.negated}},Qv=class s{static create(e,t,i=null){return t0(t,n=>new s(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Zv.create(this.key,this.value,this)),this.negated}},Xv=class s{static create(e,t,i=null){return t0(t,n=>new s(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:gh(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Yv.create(this.key,this.value,this)),this.negated}},h_=class s{static create(e,t){return new s(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=wN.create(this)),this.negated}},wN=class s{static create(e){return new s(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}};function $8(s){let e=null;for(let t=0,i=s.length;t<i;t++){let n=s[t].substituteConstants();if(s[t]!==n&&e===null){e=[];for(let o=0;o<t;o++)e[o]=s[o]}e!==null&&(e[t]=n)}return e===null?s:e}var Jv=class s{static create(e,t,i){return s._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let n=c_(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let e=$8(this.expr);return e===this.expr?this:s.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){let n=[],o=!1;for(let r of e)if(r){if(r.type===1){o=!0;continue}if(r.type===0)return zn.INSTANCE;if(r.type===6){n.push(...r.expr);continue}n.push(r)}if(n.length===0&&o)return as.INSTANCE;if(n.length!==0){if(n.length===1)return n[0];n.sort(c_);for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];for(;n.length>1;){let r=n[n.length-1];if(r.type!==9)break;n.pop();let a=n.pop(),l=n.length===0,c=u_.create(r.expr.map(d=>s.create([d,a],null,i)),null,l);c&&(n.push(c),n.sort(c_))}if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return zn.INSTANCE;if(n.length===1)return n[0]}return new s(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=u_.create(e,this,!0)}return this.negated}},u_=class s{static create(e,t,i){return s._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let n=c_(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let e=$8(this.expr);return e===this.expr?this:s.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],o=!1;if(e){for(let r=0,a=e.length;r<a;r++){let l=e[r];if(l){if(l.type===0){o=!0;continue}if(l.type===1)return as.INSTANCE;if(l.type===9){n=n.concat(l.expr);continue}n.push(l)}}if(n.length===0&&o)return zn.INSTANCE;n.sort(c_)}if(n.length!==0){if(n.length===1)return n[0];for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return as.INSTANCE;if(n.length===1)return n[0]}return new s(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let o of z8(t))for(let r of z8(i))n.push(Jv.create([o,r],null,!1));e.unshift(s.create(n,null,!1))}this.negated=s.create(e,this,!0)}return this.negated}},ae=class s extends uh{static{this._info=[]}static all(){return s._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?s._info.push({...i,key:e}):i!==!0&&s._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return d_.create(this.key,e)}},xe=oe("contextKeyService");function q8(s,e){return s<e?-1:s>e?1:0}function gh(s,e,t,i){return s<t?-1:s>t?1:e<i?-1:e>i?1:0}function e0(s,e){if(s.type===0||e.type===1)return!0;if(s.type===9)return e.type===9?H8(s.expr,e.expr):!1;if(e.type===9){for(let t of e.expr)if(e0(s,t))return!0;return!1}if(s.type===6){if(e.type===6)return H8(e.expr,s.expr);for(let t of s.expr)if(e0(t,e))return!0;return!1}return s.equals(e)}function H8(s,e){let t=0,i=0;for(;t<s.length&&i<e.length;){let n=s[t].cmp(e[i]);if(n<0)return!1;n===0&&t++,i++}return t===s.length}function z8(s){return s.type===9?s.expr:[s]}var vN=class{constructor(){this.data=new Map}add(e,t){Kw(Vt(e)),Kw($t(t)),Kw(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}dispose(){this.data.forEach(e=>{Gr(e.dispose)&&e.dispose()}),this.data.clear()}},ct=new vN;var CN=class s{constructor(){this._coreKeybindings=new qt,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(Cn===1){if(e&&e.win)return e.win}else if(Cn===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){let t=s.bindToCurrentPlatform(e),i=new q;if(t&&t.primary){let n=Tp(t.primary,Cn);n&&i.add(this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let n=0,o=t.secondary.length;n<o;n++){let r=t.secondary[n],a=Tp(r,Cn);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-n-1,e.when))}return i}registerCommandAndKeybindingRule(e){return Ln(this.registerKeybindingRule(e),oi.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,o,r){let a=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:n,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,j(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(cY)),this._cachedMergedKeybindings.slice(0)}},ls=new CN,lY={EditorModes:"platform.keybindingsRegistry"};ct.add(lY.EditorModes,ls);function cY(s,e){if(s.weight1!==e.weight1)return s.weight1-e.weight1;if(s.command&&e.command){if(s.command<e.command)return-1;if(s.command>e.command)return 1}return s.weight2-e.weight2}var dY=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},K8=function(s,e){return function(t,i){e(t,i,s)}},i0;function Rf(s){return s.command!==void 0}function j8(s){return s.submenu!==void 0}var xt=class s{static{this._instances=new Map}static{this.CommandPalette=new s("CommandPalette")}static{this.DebugBreakpointsContext=new s("DebugBreakpointsContext")}static{this.DebugCallStackContext=new s("DebugCallStackContext")}static{this.DebugConsoleContext=new s("DebugConsoleContext")}static{this.DebugVariablesContext=new s("DebugVariablesContext")}static{this.NotebookVariablesContext=new s("NotebookVariablesContext")}static{this.DebugHoverContext=new s("DebugHoverContext")}static{this.DebugWatchContext=new s("DebugWatchContext")}static{this.DebugToolBar=new s("DebugToolBar")}static{this.DebugToolBarStop=new s("DebugToolBarStop")}static{this.DebugDisassemblyContext=new s("DebugDisassemblyContext")}static{this.DebugCallStackToolbar=new s("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new s("DebugCreateConfiguration")}static{this.EditorContext=new s("EditorContext")}static{this.SimpleEditorContext=new s("SimpleEditorContext")}static{this.EditorContent=new s("EditorContent")}static{this.EditorLineNumberContext=new s("EditorLineNumberContext")}static{this.EditorContextCopy=new s("EditorContextCopy")}static{this.EditorContextPeek=new s("EditorContextPeek")}static{this.EditorContextShare=new s("EditorContextShare")}static{this.EditorTitle=new s("EditorTitle")}static{this.CompactWindowEditorTitle=new s("CompactWindowEditorTitle")}static{this.EditorTitleRun=new s("EditorTitleRun")}static{this.EditorTitleContext=new s("EditorTitleContext")}static{this.EditorTitleContextShare=new s("EditorTitleContextShare")}static{this.EmptyEditorGroup=new s("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new s("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new s("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new s("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new s("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new s("EditorActionsPositionSubmenu")}static{this.EditorSplitMoveSubmenu=new s("EditorSplitMoveSubmenu")}static{this.ExplorerContext=new s("ExplorerContext")}static{this.ExplorerContextShare=new s("ExplorerContextShare")}static{this.ExtensionContext=new s("ExtensionContext")}static{this.ExtensionEditorContextMenu=new s("ExtensionEditorContextMenu")}static{this.GlobalActivity=new s("GlobalActivity")}static{this.CommandCenter=new s("CommandCenter")}static{this.CommandCenterCenter=new s("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new s("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new s("LayoutControlMenu")}static{this.MenubarMainMenu=new s("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new s("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new s("MenubarDebugMenu")}static{this.MenubarEditMenu=new s("MenubarEditMenu")}static{this.MenubarCopy=new s("MenubarCopy")}static{this.MenubarFileMenu=new s("MenubarFileMenu")}static{this.MenubarGoMenu=new s("MenubarGoMenu")}static{this.MenubarHelpMenu=new s("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new s("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new s("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new s("PanelAlignmentMenu")}static{this.PanelPositionMenu=new s("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new s("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new s("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new s("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new s("MenubarSelectionMenu")}static{this.MenubarShare=new s("MenubarShare")}static{this.MenubarSwitchEditorMenu=new s("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new s("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new s("MenubarTerminalMenu")}static{this.MenubarTerminalSuggestStatusMenu=new s("MenubarTerminalSuggestStatusMenu")}static{this.MenubarViewMenu=new s("MenubarViewMenu")}static{this.MenubarHomeMenu=new s("MenubarHomeMenu")}static{this.OpenEditorsContext=new s("OpenEditorsContext")}static{this.OpenEditorsContextShare=new s("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new s("ProblemsPanelContext")}static{this.SCMInputBox=new s("SCMInputBox")}static{this.SCMChangeContext=new s("SCMChangeContext")}static{this.SCMResourceContext=new s("SCMResourceContext")}static{this.SCMResourceContextShare=new s("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new s("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new s("SCMResourceGroupContext")}static{this.SCMSourceControl=new s("SCMSourceControl")}static{this.SCMSourceControlInline=new s("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new s("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new s("SCMHistoryTitle")}static{this.SCMHistoryItemContext=new s("SCMHistoryItemContext")}static{this.SCMHistoryItemChangeContext=new s("SCMHistoryItemChangeContext")}static{this.SCMHistoryItemRefContext=new s("SCMHistoryItemRefContext")}static{this.SCMArtifactGroupContext=new s("SCMArtifactGroupContext")}static{this.SCMArtifactContext=new s("SCMArtifactContext")}static{this.SCMQuickDiffDecorations=new s("SCMQuickDiffDecorations")}static{this.SCMTitle=new s("SCMTitle")}static{this.SearchContext=new s("SearchContext")}static{this.SearchActionMenu=new s("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new s("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new s("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new s("StickyScrollContext")}static{this.TestItem=new s("TestItem")}static{this.TestItemGutter=new s("TestItemGutter")}static{this.TestProfilesContext=new s("TestProfilesContext")}static{this.TestMessageContext=new s("TestMessageContext")}static{this.TestMessageContent=new s("TestMessageContent")}static{this.TestPeekElement=new s("TestPeekElement")}static{this.TestPeekTitle=new s("TestPeekTitle")}static{this.TestCallStack=new s("TestCallStack")}static{this.TestCoverageFilterItem=new s("TestCoverageFilterItem")}static{this.TouchBarContext=new s("TouchBarContext")}static{this.TitleBar=new s("TitleBar")}static{this.TitleBarContext=new s("TitleBarContext")}static{this.TitleBarTitleContext=new s("TitleBarTitleContext")}static{this.TunnelContext=new s("TunnelContext")}static{this.TunnelPrivacy=new s("TunnelPrivacy")}static{this.TunnelProtocol=new s("TunnelProtocol")}static{this.TunnelPortInline=new s("TunnelInline")}static{this.TunnelTitle=new s("TunnelTitle")}static{this.TunnelLocalAddressInline=new s("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new s("TunnelOriginInline")}static{this.ViewItemContext=new s("ViewItemContext")}static{this.ViewContainerTitle=new s("ViewContainerTitle")}static{this.ViewContainerTitleContext=new s("ViewContainerTitleContext")}static{this.ViewTitle=new s("ViewTitle")}static{this.ViewTitleContext=new s("ViewTitleContext")}static{this.CommentEditorActions=new s("CommentEditorActions")}static{this.CommentThreadTitle=new s("CommentThreadTitle")}static{this.CommentThreadActions=new s("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new s("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new s("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new s("CommentThreadCommentContext")}static{this.CommentTitle=new s("CommentTitle")}static{this.CommentActions=new s("CommentActions")}static{this.CommentsViewThreadActions=new s("CommentsViewThreadActions")}static{this.InteractiveToolbar=new s("InteractiveToolbar")}static{this.InteractiveCellTitle=new s("InteractiveCellTitle")}static{this.InteractiveCellDelete=new s("InteractiveCellDelete")}static{this.InteractiveCellExecute=new s("InteractiveCellExecute")}static{this.InteractiveInputExecute=new s("InteractiveInputExecute")}static{this.InteractiveInputConfig=new s("InteractiveInputConfig")}static{this.ReplInputExecute=new s("ReplInputExecute")}static{this.IssueReporter=new s("IssueReporter")}static{this.NotebookToolbar=new s("NotebookToolbar")}static{this.NotebookToolbarContext=new s("NotebookToolbarContext")}static{this.NotebookStickyScrollContext=new s("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new s("NotebookCellTitle")}static{this.NotebookCellDelete=new s("NotebookCellDelete")}static{this.NotebookCellInsert=new s("NotebookCellInsert")}static{this.NotebookCellBetween=new s("NotebookCellBetween")}static{this.NotebookCellListTop=new s("NotebookCellTop")}static{this.NotebookCellExecute=new s("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new s("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new s("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new s("NotebookDiffCellInputTitle")}static{this.NotebookDiffDocumentMetadata=new s("NotebookDiffDocumentMetadata")}static{this.NotebookDiffCellMetadataTitle=new s("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new s("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new s("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new s("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new s("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new s("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new s("NotebookKernelSource")}static{this.BulkEditTitle=new s("BulkEditTitle")}static{this.BulkEditContext=new s("BulkEditContext")}static{this.TimelineItemContext=new s("TimelineItemContext")}static{this.TimelineTitle=new s("TimelineTitle")}static{this.TimelineTitleContext=new s("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new s("TimelineFilterSubMenu")}static{this.AccountsContext=new s("AccountsContext")}static{this.SidebarTitle=new s("SidebarTitle")}static{this.PanelTitle=new s("PanelTitle")}static{this.AuxiliaryBarTitle=new s("AuxiliaryBarTitle")}static{this.TerminalInstanceContext=new s("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new s("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new s("TerminalNewDropdownContext")}static{this.TerminalTabContext=new s("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new s("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new s("TerminalStickyScrollContext")}static{this.WebviewContext=new s("WebviewContext")}static{this.InlineCompletionsActions=new s("InlineCompletionsActions")}static{this.InlineEditsActions=new s("InlineEditsActions")}static{this.NewFile=new s("NewFile")}static{this.MergeInput1Toolbar=new s("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new s("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new s("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new s("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new s("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new s("InlineEditToolbar")}static{this.ChatContext=new s("ChatContext")}static{this.ChatCodeBlock=new s("ChatCodeblock")}static{this.ChatCompareBlock=new s("ChatCompareBlock")}static{this.ChatMessageTitle=new s("ChatMessageTitle")}static{this.ChatHistory=new s("ChatHistory")}static{this.ChatWelcomeContext=new s("ChatWelcomeContext")}static{this.ChatMessageFooter=new s("ChatMessageFooter")}static{this.ChatExecute=new s("ChatExecute")}static{this.ChatInput=new s("ChatInput")}static{this.ChatInputSide=new s("ChatInputSide")}static{this.ChatModePicker=new s("ChatModePicker")}static{this.ChatEditingWidgetToolbar=new s("ChatEditingWidgetToolbar")}static{this.ChatEditingEditorContent=new s("ChatEditingEditorContent")}static{this.ChatEditingEditorHunk=new s("ChatEditingEditorHunk")}static{this.ChatEditingDeletedNotebookCell=new s("ChatEditingDeletedNotebookCell")}static{this.ChatInputAttachmentToolbar=new s("ChatInputAttachmentToolbar")}static{this.ChatEditingWidgetModifiedFilesToolbar=new s("ChatEditingWidgetModifiedFilesToolbar")}static{this.ChatInputResourceAttachmentContext=new s("ChatInputResourceAttachmentContext")}static{this.ChatInputSymbolAttachmentContext=new s("ChatInputSymbolAttachmentContext")}static{this.ChatInlineResourceAnchorContext=new s("ChatInlineResourceAnchorContext")}static{this.ChatInlineSymbolAnchorContext=new s("ChatInlineSymbolAnchorContext")}static{this.ChatMessageCheckpoint=new s("ChatMessageCheckpoint")}static{this.ChatMessageRestoreCheckpoint=new s("ChatMessageRestoreCheckpoint")}static{this.ChatNewMenu=new s("ChatNewMenu")}static{this.ChatEditingCodeBlockContext=new s("ChatEditingCodeBlockContext")}static{this.ChatTitleBarMenu=new s("ChatTitleBarMenu")}static{this.ChatAttachmentsContext=new s("ChatAttachmentsContext")}static{this.ChatToolOutputResourceToolbar=new s("ChatToolOutputResourceToolbar")}static{this.ChatTextEditorMenu=new s("ChatTextEditorMenu")}static{this.ChatToolOutputResourceContext=new s("ChatToolOutputResourceContext")}static{this.ChatMultiDiffContext=new s("ChatMultiDiffContext")}static{this.ChatSessionsMenu=new s("ChatSessionsMenu")}static{this.ChatSessionsCreateSubMenu=new s("ChatSessionsCreateSubMenu")}static{this.ChatConfirmationMenu=new s("ChatConfirmationMenu")}static{this.ChatEditorInlineExecute=new s("ChatEditorInputExecute")}static{this.ChatEditorInlineInputSide=new s("ChatEditorInputSide")}static{this.AccessibleView=new s("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new s("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new s("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new s("DiffEditorSelectionToolbar")}constructor(e){if(s._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);s._instances.set(e,this),this.id=e}},jo=oe("menuService"),mh=class s{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new s(e),this._all.set(e,t)),t}static merge(e){let t=new Set;for(let i of e)i instanceof s&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}},Qs=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Zw({merge:mh.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(s){return this._commands.set(s.id,s),this._onDidChangeMenu.fire(mh.for(xt.CommandPalette)),j(()=>{this._commands.delete(s.id)&&this._onDidChangeMenu.fire(mh.for(xt.CommandPalette))})}getCommand(s){return this._commands.get(s)}getCommands(){let s=new Map;return this._commands.forEach((e,t)=>s.set(t,e)),s}appendMenuItem(s,e){let t=this._menuItems.get(s);t||(t=new qt,this._menuItems.set(s,t));let i=t.push(e);return this._onDidChangeMenu.fire(mh.for(s)),j(()=>{i(),this._onDidChangeMenu.fire(mh.for(s))})}appendMenuItems(s){let e=new q;for(let{id:t,item:i}of s)e.add(this.appendMenuItem(t,i));return e}getMenuItems(s){let e;return this._menuItems.has(s)?e=[...this._menuItems.get(s)]:e=[],s===xt.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){let e=new Set;for(let t of s)Rf(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||s.push({command:t})})}},mr=class extends sa{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}},Ko=i0=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,n,o,r,a){this.hideActions=n,this.menuKeybinding=o,this._commandService=a,this.id=e.id,this.label=i0.label(e,i),this.tooltip=(typeof e.tooltip=="string"?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0;let l;if(e.toggled){let c=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(c.condition),this.checked&&c.tooltip&&(this.tooltip=typeof c.tooltip=="string"?c.tooltip:c.tooltip.value),this.checked&&Ce.isThemeIcon(c.icon)&&(l=c.icon),this.checked&&c.title&&(this.label=typeof c.title=="string"?c.title:c.title.value)}l||(l=Ce.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new i0(t,void 0,i,n,void 0,r,a):void 0,this._options=i,this.class=l&&Ce.asClassName(l)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};Ko=i0=dY([K8(5,xe),K8(6,zi)],Ko);var ph=class{constructor(e){this.desc=e}};function Ahe(s){let e=[],t=new s,{f1:i,menu:n,keybinding:o,...r}=t.desc;if(oi.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(e.push(oi.registerCommand({id:r.id,handler:(a,...l)=>t.run(a,...l),metadata:r.metadata??{description:t.desc.title}})),Array.isArray(n))for(let a of n)e.push(Qs.appendMenuItem(a.id,{command:{...r,precondition:a.precondition===null?void 0:r.precondition},...a}));else n&&e.push(Qs.appendMenuItem(n.id,{command:{...r,precondition:n.precondition===null?void 0:r.precondition},...n}));if(i&&(e.push(Qs.appendMenuItem(xt.CommandPalette,{command:r,when:r.precondition})),e.push(Qs.addCommand(r))),Array.isArray(o))for(let a of o)e.push(ls.registerKeybindingRule({...a,id:r.id,when:r.precondition?Ee.and(r.precondition,a.when):a.when}));else o&&e.push(ls.registerKeybindingRule({...o,id:r.id,when:r.precondition?Ee.and(r.precondition,o.when):o.when}));return{dispose(){tt(e)}}}var Un=oe("telemetryService");var G8,Y8,Z8,yN=class{constructor(e,t){this.uri=e,this.value=t}};function hY(s){return Array.isArray(s)}var pi=class s{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[G8]="ResourceMap",e instanceof s)this.map=new Map(e.map),this.toKey=t??s.defaultToKey;else if(hY(e)){this.map=new Map,this.toKey=t??s.defaultToKey;for(let[i,n]of e)this.set(i,n)}else this.map=new Map,this.toKey=e??s.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new yN(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(let[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(G8=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}},n0=class{constructor(e,t){this[Y8]="ResourceSet",!e||typeof e=="function"?this._map=new pi(e):(this._map=new pi(t),e.forEach(this.add,this))}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((i,n)=>e.call(t,n,n,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(Y8=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},SN=class{constructor(){this[Z8]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let i=this._map.get(e);if(i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}values(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}entries(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}[(Z8=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}},xN=class extends SN{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Go=class extends xN{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},s0=class{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(let[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){let t=this._m1.get(e);return t===void 0?!1:(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},Af=class{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){let i=this.map.get(e);i&&(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){let i=this.map.get(e);i&&i.forEach(t)}},ra=class{constructor(){this._data=new Map}set(e,...t){let i=this._data;for(let n=0;n<t.length-1;n++)i.has(t[n])||i.set(t[n],new Map),i=i.get(t[n]);i.set(t[t.length-1],e)}get(...e){let t=this._data;for(let i=0;i<e.length-1;i++){if(!t.has(e[i]))return;t=t.get(e[i])}return t.get(e[e.length-1])}clear(){this._data.clear()}toString(){let e=(t,i)=>{let n="";for(let[o,r]of t)n+=`${" ".repeat(i)}${o}: `,r instanceof Map?n+=`
|
|
@@ -259,7 +259,7 @@ struct VSOutput {
|
|
|
259
259
|
`)}var VX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HX=function(s,e){return function(t,i){e(t,i,s)}},OL=class extends N{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new E),this._onCodeEditorAdd=this._register(new E),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new E),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new E),this._onDiffEditorAdd=this._register(new E),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new E),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new qt,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null,t=this.listCodeEditors();for(let i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){let t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){let n=e.toString(),o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){let i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(let n of this._codeEditorOpenHandlers){let o=await n(e,t,i);if(o!==null)return o}return null}registerCodeEditorOpenHandler(e){let t=this._codeEditorOpenHandlers.unshift(e);return j(t)}};OL=VX([HX(0,Qt)],OL);var zX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_z=function(s,e){return function(t,i){e(t,i,s)}},Ub=class extends OL{constructor(e,t){super(t),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(i,n,o)=>n?this.doOpenEditor(n,i):null))}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let o=t.resource.scheme;if(o===me.http||o===me.https)return a_(t.resource.toString()),e}return null}let n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{let o={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Ub=zX([_z(0,xe),_z(1,Qt)],Ub);Ie(_t,Ub,0);var Xn=oe("layoutService");var bz=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},wz=function(s,e){return function(t,i){e(t,i,s)}},PL=class{get mainContainer(){return this._codeEditorService.listCodeEditors().at(0)?.getContainerDomNode()??Pe.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return Ef(this.mainContainer)}get activeContainerDimension(){return Ef(this.activeContainer)}get containers(){return xf(this._codeEditorService.listCodeEditors().map(e=>e.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=$.None,this.onDidLayoutActiveContainer=$.None,this.onDidLayoutContainer=$.None,this.onDidChangeActiveContainer=$.None,this.onDidAddContainer=$.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};PL=bz([wz(0,_t)],PL);var FL=class extends PL{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};FL=bz([wz(1,_t)],FL);Ie(Xn,PL,1);var BL=oe("dialogService");var UX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vz=function(s,e){return function(t,i){e(t,i,s)}};function WL(s){return s.scheme===me.file?s.fsPath:s.path}var Cz=0,om=class{constructor(e,t,i,n,o,r,a){this.id=++Cz,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}},VL=class{constructor(e,t){this.resourceLabel=e,this.reason=t}},HL=class{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);let i=[];return e.length>0&&i.push(m(2030,"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(m(2031,"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(`
|
|
260
260
|
`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}},v5=class{constructor(e,t,i,n,o,r,a){this.id=++Cz,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new HL),this.removedResources.has(t)||this.removedResources.set(t,new VL(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new HL),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new VL(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}},zL=class{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(`
|
|
261
261
|
`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let i=0,n=this._past.length;i<n;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new Tb(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,n=0,o=-1;for(let a=0,l=this._past.length;a<l;a++,n++){let c=this._past[a];i&&(n>=t||c.id!==e.elements[n])&&(i=!1,o=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){let l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}o!==-1&&(this._past=this._past.slice(0,o)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){let e=[],t=[];for(let i of this._past)e.push(i.actual);for(let i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}},$b=class{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}},yz=new zL("","");yz.locked=!0;var C5=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let i of this._editStacks)t.push(i[1].toString());console.log(t.join(`
|
|
262
|
-
`))}pushElement(e,t=Dx.None,i=dd.None){if(e.type===0){let n=WL(e.resource),o=this.getUriComparisonKey(e.resource);this._pushElement(new om(e,n,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let n=new Set,o=[],r=[];for(let a of e.resources){let l=WL(a),c=this.getUriComparisonKey(a);n.has(c)||(n.add(c),o.push(l),r.push(c))}o.length===1?this._pushElement(new om(e,o[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new v5(e,o,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let n=e.resourceLabels[t],o=e.strResources[t],r;this._editStacks.has(o)?r=this._editStacks.get(o):(r=new zL(n,o),this._editStacks.set(o,r)),r.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let i=this._editStacks.get(t);if(i.hasFutureElements())return null;let n=i.getClosestPastElement();return n?n.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let o of i){let r=WL(o.resource),a=this.getUriComparisonKey(o.resource),l=new om(o,r,a,0,0,0,0);n.set(l.strResource,l)}for(let o of e.strResources){if(t&&t.has(o))continue;this._editStacks.get(o).splitPastWorkspaceElement(e,n)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let o of i){let r=WL(o.resource),a=this.getUriComparisonKey(o.resource),l=new om(o,r,a,0,0,0,0);n.set(l.strResource,l)}for(let o of e.strResources){if(t&&t.has(o))continue;this._editStacks.get(o).splitFutureWorkspaceElement(e,n)}}removeElements(e){let t=typeof e=="string"?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let n=this.getUriComparisonKey(e);this._editStacks.has(n)&&this._editStacks.get(n).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new Tb(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestPastElement();r&&r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof dd){let[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Se(e);for(let i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){let r=this._acquireLocks(i),a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),o()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),o())}async _invokeWorkspacePrepare(e){if(typeof e.actual.prepareUndoRedo>"u")return N.None;let t=e.actual.prepareUndoRedo();return typeof t>"u"?N.None:t}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(N.None);let i=e.actual.prepareUndoRedo();return i?_c(i)?t(i):i.then(n=>t(n)):t(N.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||yz);return new $b(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new rm(this._undo(e,0,!0));for(let o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new rm}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,m(2032,"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,m(2033,"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let o=[];for(let a of i.editStacks)a.getClosestPastElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,m(2034,"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));let r=[];for(let a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,m(2035,"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,m(2036,"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let a;(function(d){d[d.All=0]="All",d[d.This=1]="This",d[d.Cancel=2]="Cancel"})(a||(a={}));let{result:l}=await this._dialogService.prompt({type:Dt.Info,message:m(2037,"Would you like to undo '{0}' across all files?",t.label),buttons:[{label:m(2038,"&&Undo in {0} Files",i.editStacks.length),run:()=>a.All},{label:m(2039,"Undo this &&File"),run:()=>a.This}],cancelButton:{run:()=>a.Cancel}});if(l===a.Cancel)return;if(l===a.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let c=this._checkWorkspaceUndo(e,t,i,!1);if(c)return c.returnValue;n=!0}let o;try{o=await this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}let r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.returnValue;for(let a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,o,()=>this._continueUndoInGroup(t.groupId,n))}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let n=m(2040,"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new $b([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof dd){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let n=this._editStacks.get(e),o=n.getClosestPastElement();if(!o)return;if(o.groupId){let[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return o.type===1?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:m(2041,"Would you like to undo '{0}'?",i.label),primaryButton:m(2042,"&&Yes"),cancelButton:m(2043,"No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=n)}return[t,i]}canRedo(e){if(e instanceof dd){let[,i]=this._findClosestRedoElementWithSource(e.id);return!!i}let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasFutureElements():!1}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new rm(this._redo(e));for(let o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new rm}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,m(2044,"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,m(2045,"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let o=[];for(let a of i.editStacks)a.getClosestFutureElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndRedo(e,t,null,m(2046,"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));let r=[];for(let a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,m(2047,"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,m(2048,"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}let o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(let r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let i=m(2049,"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new $b([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof dd){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return typeof e=="string"?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[n,o]=this._findClosestRedoElementInGroup(i.groupId);if(i!==n&&o)return this._redo(o)}try{return i.type===1?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{}}}};C5=UX([vz(0,BL),vz(1,pn)],C5);var rm=class{constructor(e){this.returnValue=e}};Ie(em,C5,1);function Yi(s,e,t){return Math.min(Math.max(s,e),t)}var qb=class{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}},UL=class{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}};var $L=oe("environmentService");var $X=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Sz=function(s,e){return function(t,i){e(t,i,s)}},qX=oe("ILanguageFeatureDebounceService"),qL;(function(s){let e=new WeakMap,t=0;function i(n){let o=e.get(n);return o===void 0&&(o=++t,e.set(n,o)),o}s.of=i})(qL||(qL={}));var y5=class{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}},S5=class{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new Go(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>jp(qL.of(i),t),0)}get(e){let t=this._key(e),i=this._cache.get(t);return i?Yi(i.value,this._min,this._max):this.default()}update(e,t){let i=this._key(e),n=this._cache.get(i);n||(n=new UL(6),this._cache.set(i,n));let o=Yi(n.update(t),this._min,this._max);return qp(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){let e=new qb;for(let[,t]of this._cache)e.update(t.value);return e.value}default(){let e=this._overall()|0||this._default;return Yi(e,this._min,this._max)}},x5=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){let n=i?.min??50,o=i?.max??n**2,r=i?.key??void 0,a=`${qL.of(e)},${n}${r?","+r:""}`,l=this._data.get(a);return l||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),l=new y5(n*1.5)):l=new S5(this._logService,t,e,this._overallAverage()|0||n*1.5,n,o),this._data.set(a,l)),l}_overallAverage(){let e=new qb;for(let t of this._data.values())e.update(t.default());return e.value}};x5=$X([Sz(0,Lt),Sz(1,$L)],x5);Ie(qX,x5,1);var KL=class{constructor(e=5){this.timesPerSecond=e,this._lastRun=0,this._minimumTimeBetweenRuns=1e3/e}runIfNotLimited(e){let t=Date.now();t-this._lastRun>=this._minimumTimeBetweenRuns&&(this._lastRun=t,e())}};var jL=class s{static create(e,t){return new s(e,new L5(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){let e=this._tokens.getRange();return e&&new D(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new s(this._startLineNumber,n),new s(this._startLineNumber+r,o)]}applyEdit(e,t){let[i,n,o]=No(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new M(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){let o=i-t;this._startLineNumber-=o;return}let n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){let o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(t===0&&i===0)return;let r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}let a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,o)}reportIfInvalid(e){this._tokens.reportIfInvalid(e,this._startLineNumber)}},L5=class s{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){let e=this._getTokenCount();return e===0?-1:this._getDeltaLine(e-1)}getRange(){let e=this._getTokenCount();if(e===0)return null;let t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new D(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){let n=t+Math.floor((i-t)/2),o=this._getDeltaLine(n);if(o<e)t=n+1;else if(o>e)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;a<i&&this._getDeltaLine(a+1)===e;)a++;return new GL(this._tokens.subarray(4*r,4*a+4))}}return this._getDeltaLine(t)===e?new GL(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){let o=this._tokens,r=this._tokenCount,a=0,l=!1,c=0;for(let d=0;d<r;d++){let h=4*d,u=o[h],f=o[h+1],g=o[h+2],p=o[h+3];if((u>e||u===e&&g>=t)&&(u<i||u===i&&f<=n))l=!0;else{if(a===0&&(c=u),l){let _=4*a;o[_]=u-c,o[_+1]=f,o[_+2]=g,o[_+3]=p}else c!==0&&(o[h]=u-c);a++}}return this._tokenCount=a,c}split(e,t,i,n){let o=this._tokens,r=this._tokenCount,a=[],l=[],c=a,d=0,h=0;for(let u=0;u<r;u++){let f=4*u,g=o[f],p=o[f+1],_=o[f+2],w=o[f+3];if(g>e||g===e&&_>=t){if(g<i||g===i&&p<=n)continue;c!==l&&(c=l,d=0,h=g)}c[d++]=g-h,c[d++]=p,c[d++]=_,c[d++]=w}return[new s(new Uint32Array(a)),new s(new Uint32Array(l)),h]}acceptDeleteRange(e,t,i,n,o){let r=this._tokens,a=this._tokenCount,l=n-t,c=0,d=!1;for(let h=0;h<a;h++){let u=4*h,f=r[u],g=r[u+1],p=r[u+2],_=r[u+3];if(f<t||f===t&&p<=i){c++;continue}else if(f===t&&g<i)f===n&&p>o?p-=o-i:p=i;else if(f===t&&g===i)if(f===n&&p>o)p-=o-i;else{d=!0;continue}else if(f<n||f===n&&g<o)if(f===n&&p>o)f=t,g=i,p=g+(p-o);else{d=!0;continue}else if(f>n){if(l===0&&!d){c=a;break}f-=l}else if(f===n&&g>=o)e&&f===0&&(g+=e,p+=e),f-=l,g-=o-i,p-=o-i;else throw new Error("Not possible!");let w=4*c;r[w]=f,r[w+1]=g,r[w+2]=p,r[w+3]=_,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,o,r){let a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d<c;d++){let h=4*d,u=l[h],f=l[h+1],g=l[h+2];if(!(u<e||u===e&&g<t)){if(u===e&&g===t)if(a)g+=1;else continue;else if(u===e&&f<t&&t<g)i===0?g+=n:g=t;else{if(u===e&&f===t&&a)continue;if(u===e)if(u+=i,i===0)f+=n,g+=n;else{let p=g-f;f=o+(f-t),g=f+p}else u+=i}l[h]=u,l[h+1]=f,l[h+2]=g}}}static{this._rateLimiter=new KL(10/60)}reportIfInvalid(e,t){for(let i=0;i<this._tokenCount;i++){let n=this._getDeltaLine(i)+t;n<1?s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber < 1")}):n>e.getLineCount()?s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber > model.getLineCount()")}):this._getEndCharacter(i)>e.getLineLength(n)&&s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: end character > model.getLineLength(lineNumber)")})}}},GL=class{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}};var KX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},k5=function(s,e){return function(t,i){e(t,i,s)}},YL=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new I5}getMetadata(e,t,i){let n=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,n),r;if(o)r=o.metadata;else{let a=this._legend.tokenTypes[e],l=[];if(a){let c=t;for(let h=0;c>0&&h<this._legend.tokenModifiers.length;h++)c&1&&l.push(this._legend.tokenModifiers[h]),c=c>>1;let d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){let h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){let h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){let h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){let h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){let h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${o}).`))}};YL=KX([k5(1,Qt),k5(2,Rt),k5(3,Lt)],YL);function i6e(s,e,t){let i=s.data,n=s.data.length/5|0,o=Math.max(Math.ceil(n/1024),400),r=[],a=0,l=1,c=0;for(;a<n;){let d=a,h=Math.min(d+o,n);if(h<n){let b=h;for(;b-1>d&&i[5*b]===0;)b--;if(b-1===d){let v=h;for(;v+1<n&&i[5*v]===0;)v++;h=v}else h=b}let u=new Uint32Array((h-d)*4),f=0,g=0,p=0,_=0;for(;a<h;){let b=5*a,v=i[b],C=i[b+1],S=l+v|0,L=v===0?c+C|0:C,x=i[b+2],k=L+x|0,I=i[b+3],A=i[b+4];if(k<=L)e.warnInvalidLengthSemanticTokens(S,L+1);else if(p===S&&_>L)e.warnOverlappingSemanticTokens(S,L+1);else{let P=e.getMetadata(I,A,t);P!==2147483647&&(g===0&&(g=S),u[f]=S-g,u[f+1]=L,u[f+2]=k,u[f+3]=P,f+=4,p=S,_=k)}l=S,c=L,a++}f!==u.length&&(u=u.subarray(0,f));let w=jL.create(g,u);r.push(w)}return r}var D5=class{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}},I5=class s{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){let n=this._hashFunc(e,t,i),o=this._elements[n];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===i)return o;o=o.next}return null}add(e,t,i,n){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){let o=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength);for(let r of o){let a=r;for(;a;){let l=a.next;a.next=null,this._add(a),a=l}}}this._add(new D5(e,t,i,n))}_add(e){let t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}};var xz=oe("semanticTokensStylingService");var jX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},E5=function(s,e){return function(t,i){e(t,i,s)}},T5=class extends N{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new YL(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};T5=jX([E5(0,Qt),E5(1,Lt),E5(2,Rt)],T5);Ie(xz,T5,1);var ZL="**",Lz="/",QL="[/\\\\]",XL="[^/\\\\]",GX=/\//g;function kz(s,e){switch(s){case 0:return"";case 1:return`${XL}*?`;default:return`(?:${QL}|${XL}+${QL}${e?`|${QL}${XL}+`:""})*?`}}function Dz(s,e){if(!s)return[];let t=[],i=!1,n=!1,o="";for(let r of s){switch(r){case e:if(!i&&!n){t.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}o+=r}return o&&t.push(o),t}function Mz(s){if(!s)return"";let e="",t=Dz(s,Lz);if(t.every(i=>i===ZL))e=".*";else{let i=!1;t.forEach((n,o)=>{if(n===ZL){if(i)return;e+=kz(2,o===t.length-1)}else{let r=!1,a="",l=!1,c="";for(let d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===Lz?h="":h=Bn(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{let u=`(?:${Dz(a,",").map(f=>Mz(f)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=XL;continue;case"*":e+=kz(1);continue;default:e+=Bn(d)}}o<t.length-1&&(t[o+1]!==ZL||o+2<t.length)&&(e+=QL)}i=n===ZL})}return e}var YX=/^\*\*\/\*\.[\w\.-]+$/,ZX=/^\*\*\/([\w\.-]+)\/?$/,QX=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,XX=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,JX=/^\*\*((\/[\w\.-]+)+)\/?$/,eJ=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Iz=new Go(1e4),Ez=function(){return!1},Ra=function(){return null};function M5(s,e){if(!s)return Ra;let t;typeof s!="string"?t=s.pattern:t=s,t=t.trim();let i=e.ignoreCase??!1,n={...e,equals:i?dr:(l,c)=>l===c,endsWith:i?FF:(l,c)=>l.endsWith(c),isEqualOrParent:(l,c)=>f_(l,c,!Jt||i)},o=`${i?t.toLowerCase():t}_${!!e.trimForExclusions}_${i}`,r=Iz.get(o);if(r)return Tz(r,s,n);let a;return YX.test(t)?r=tJ(t.substring(4),t,n):(a=ZX.exec(N5(t,n)))?r=iJ(a[1],t,n):(e.trimForExclusions?XX:QX).test(t)?r=nJ(t,n):(a=JX.exec(N5(t,n)))?r=Nz(a[1].substring(1),t,!0,n):(a=eJ.exec(N5(t,n)))?r=Nz(a[1],t,!1,n):r=sJ(t,n),Iz.set(o,r),Tz(r,s,n)}function Tz(s,e,t){if(typeof e=="string")return s;let i=function(n,o){return t.isEqualOrParent(n,e.base)?s(cl(n.substring(e.base.length),hr),o):null};return i.allBasenames=s.allBasenames,i.allPaths=s.allPaths,i.basenames=s.basenames,i.patterns=s.patterns,i}function N5(s,e){return e.trimForExclusions&&s.endsWith("/**")?s.substring(0,s.length-2):s}function tJ(s,e,t){return function(i,n){return typeof i=="string"&&t.endsWith(i,s)?e:null}}function iJ(s,e,t){let i=`/${s}`,n=`\\${s}`,o=function(a,l){return typeof a!="string"?null:l?t.equals(l,s)?e:null:t.equals(a,s)||t.endsWith(a,i)||t.endsWith(a,n)?e:null},r=[s];return o.basenames=r,o.patterns=[e],o.allBasenames=r,o}function nJ(s,e){let t=Az(s.slice(1,-1).split(",").map(a=>M5(a,e)).filter(a=>a!==Ra),s),i=t.length;if(!i)return Ra;if(i===1)return t[0];let n=function(a,l){for(let c=0,d=t.length;c<d;c++)if(t[c](a,l))return s;return null},o=t.find(a=>!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);let r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function Nz(s,e,t,i){let n=hr===Ot.sep,o=n?s:s.replace(GX,hr),r=hr+o,a=Ot.sep+s,l;return t?l=function(c,d){return typeof c=="string"&&(i.equals(c,o)||i.endsWith(c,r)||!n&&(i.equals(c,s)||i.endsWith(c,a)))?e:null}:l=function(c,d){return typeof c=="string"&&(i.equals(c,o)||!n&&i.equals(c,s))?e:null},l.allPaths=[(t?"*/":"./")+s],l}function sJ(s,e){try{let t=new RegExp(`^${Mz(s)}$`,e.ignoreCase?"i":void 0);return function(i){return t.lastIndex=0,typeof i=="string"&&t.test(i)?s:null}}catch{return Ra}}function Rz(s,e,t){return!s||typeof e!="string"?!1:R5(s,t)(e)}function R5(s,e={}){if(!s)return Ez;if(typeof s=="string"||oJ(s)){let t=M5(s,e);if(t===Ra)return Ez;let i=function(n,o){return!!t(n,o)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return rJ(s,e)}function oJ(s){let e=s;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function rJ(s,e){let t=Az(Object.getOwnPropertyNames(s).map(a=>aJ(a,s[a],e)).filter(a=>a!==Ra)),i=t.length;if(!i)return Ra;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];let a=function(d,h){let u;for(let f=0,g=t.length;f<g;f++){let p=t[f](d,h);if(typeof p=="string")return p;tv(p)&&(u||(u=[]),u.push(p))}return u?(async()=>{for(let f of u){let g=await f;if(typeof g=="string")return g}return null})():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);let c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}let n=function(a,l,c){let d,h;for(let u=0,f=t.length;u<f;u++){let g=t[u];g.requiresSiblings&&c&&(l||(l=vf(a)),d||(d=l.substring(0,l.length-KF(a).length)));let p=g(a,l,d,c);if(typeof p=="string")return p;tv(p)&&(h||(h=[]),h.push(p))}return h?(async()=>{for(let u of h){let f=await u;if(typeof f=="string")return f}return null})():null},o=t.find(a=>!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);let r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function aJ(s,e,t){if(e===!1)return Ra;let i=M5(s,t);if(i===Ra)return Ra;if(typeof e=="boolean")return i;if(e){let n=e.when;if(typeof n=="string"){let o=(r,a,l,c)=>{if(!c||!i(r,a))return null;let d=n.replace("$(basename)",()=>l),h=c(d);return tv(h)?h.then(u=>u?s:null):h?s:null};return o.requiresSiblings=!0,o}}return i}function Az(s,e){let t=s.filter(a=>!!a.basenames);if(t.length<2)return s;let i=t.reduce((a,l)=>{let c=l.basenames;return c?a.concat(c):a},[]),n;if(e){n=[];for(let a=0,l=i.length;a<l;a++)n.push(e)}else n=t.reduce((a,l)=>{let c=l.patterns;return c?a.concat(c):a},[]);let o=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){let h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substring(d)}let c=i.indexOf(l);return c!==-1?n[c]:null};o.basenames=i,o.patterns=n,o.allBasenames=i;let r=s.filter(a=>!a.basenames);return r.push(o),r}function A5(s,e,t,i,n,o){if(Array.isArray(s)){let r=0;for(let a of s){let l=A5(a,e,t,i,n,o);if(l===10)return l;l>r&&(r=l)}return r}else{if(typeof s=="string")return i?s==="*"?5:s===t?10:0:0;if(s){let{language:r,pattern:a,scheme:l,hasAccessToAllModels:c,notebookType:d}=s;if(!i&&!c)return 0;d&&n&&(e=n);let h=0;if(l)if(l===e.scheme)h=10;else if(l==="*")h=5;else return 0;if(r)if(r===t)h=10;else if(r==="*")h=Math.max(h,5);else return 0;if(d)if(d===o)h=10;else if(d==="*"&&o!==void 0)h=Math.max(h,5);else return 0;if(a){let u;if(typeof a=="string"?u=a:u={...a,base:fv(a.base)},u===e.fsPath||Rz(u,e.fsPath))h=10;else return 0}return h}else return 0}}function Oz(s){return typeof s=="string"?!1:Array.isArray(s)?s.every(Oz):!!s.exclusive}var JL=class{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}},Bt=class s{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new E}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),j(()=>{if(i){let n=this._entries.indexOf(i);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,n=>i.push(n.provider)),i}orderedGroups(e){let t=[],i,n;return this._orderedForEach(e,!1,o=>{i&&n===o._score?i.push(o.provider):(n=o._score,i=[o.provider],t.push(i))}),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(let n of this._entries)n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),n=i?new JL(e.uri,e.getLanguageId(),i.uri,i.type,t):new JL(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(n)){this._lastCandidate=n;for(let o of this._entries)if(o._score=A5(o.selector,n.uri,n.languageId,b6(e),n.notebookUri,n.notebookType),Oz(o.selector)&&o._score>0)if(t)o._score=0;else{for(let r of this._entries)r._score=0;o._score=1e3;break}this._entries.sort(s._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:Kb(e.selector)&&!Kb(t.selector)?1:!Kb(e.selector)&&Kb(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}};function Kb(s){return typeof s=="string"?!1:Array.isArray(s)?s.some(Kb):!!s.isBuiltin}var O5=class{constructor(){this.referenceProvider=new Bt(this._score.bind(this)),this.renameProvider=new Bt(this._score.bind(this)),this.newSymbolNamesProvider=new Bt(this._score.bind(this)),this.codeActionProvider=new Bt(this._score.bind(this)),this.definitionProvider=new Bt(this._score.bind(this)),this.typeDefinitionProvider=new Bt(this._score.bind(this)),this.declarationProvider=new Bt(this._score.bind(this)),this.implementationProvider=new Bt(this._score.bind(this)),this.documentSymbolProvider=new Bt(this._score.bind(this)),this.inlayHintsProvider=new Bt(this._score.bind(this)),this.colorProvider=new Bt(this._score.bind(this)),this.codeLensProvider=new Bt(this._score.bind(this)),this.documentFormattingEditProvider=new Bt(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Bt(this._score.bind(this)),this.onTypeFormattingEditProvider=new Bt(this._score.bind(this)),this.signatureHelpProvider=new Bt(this._score.bind(this)),this.hoverProvider=new Bt(this._score.bind(this)),this.documentHighlightProvider=new Bt(this._score.bind(this)),this.multiDocumentHighlightProvider=new Bt(this._score.bind(this)),this.selectionRangeProvider=new Bt(this._score.bind(this)),this.foldingRangeProvider=new Bt(this._score.bind(this)),this.linkProvider=new Bt(this._score.bind(this)),this.inlineCompletionsProvider=new Bt(this._score.bind(this)),this.completionProvider=new Bt(this._score.bind(this)),this.linkedEditingRangeProvider=new Bt(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Bt(this._score.bind(this)),this.documentSemanticTokensProvider=new Bt(this._score.bind(this)),this.documentDropEditProvider=new Bt(this._score.bind(this)),this.documentPasteEditProvider=new Bt(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}};Ie(Ye,O5,1);var Yl=oe("contextViewService"),Ps=oe("contextMenuService");var ek=ie,tk=class extends N{constructor(e){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.classList.toggle("fade-in",!!e),this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Zc(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},ik=class s extends N{static render(e,t,i){return new s(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=ee(e,ek("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=ee(this.actionContainer,ek("a.action")),this.action.setAttribute("role","button"),t.iconClass&&ee(this.action,ek("span.icon")).classList.add(...t.iconClass.split(" ")),this.actionRenderedLabel=i?`${t.label} (${i})`:t.label;let n=ee(this.action,ek("span"));n.textContent=this.actionRenderedLabel,this._store.add(new P5(this.actionContainer,t.run)),this._store.add(new F5(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}};function Pz(s,e){return s&&e?m(7,"Inspect this in the accessible view with {0}.",e):s?m(8,"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var P5=class extends N{constructor(e,t){super(),this._register(O(e,K.CLICK,i=>{i.stopPropagation(),i.preventDefault(),t(e)}))}},F5=class extends N{constructor(e,t,i){super(),this._register(O(e,K.KEY_DOWN,n=>{let o=new Re(n);i.some(r=>o.equals(r))&&(n.stopPropagation(),n.preventDefault(),t(e))}))}};function Fz(s){let e=lJ(s);if(e&&e.length>0)return new Uint32Array(e)}var co=0,fd=new Uint32Array(10);function lJ(s){if(co=0,Aa(s,B5,4352),co>0||(Aa(s,W5,4449),co>0)||(Aa(s,V5,4520),co>0)||(Aa(s,fu,12593),co))return fd.subarray(0,co);if(s>=44032&&s<=55203){let e=s-44032,t=e%588,i=Math.floor(e/588),n=Math.floor(t/28),o=t%28-1;if(i<B5.length?Aa(i,B5,0):4352+i-12593<fu.length&&Aa(4352+i,fu,12593),n<W5.length?Aa(n,W5,0):4449+n-12593<fu.length&&Aa(4449+n-12593,fu,12593),o>=0&&(o<V5.length?Aa(o,V5,0):4520+o-12593<fu.length&&Aa(4520+o-12593,fu,12593)),co>0)return fd.subarray(0,co)}}function Aa(s,e,t){s>=t&&s<t+e.length&&cJ(e[s-t])}function cJ(s){s!==0&&(fd[co++]=s&255,s>>8&&(fd[co++]=s>>8&255),s>>16&&(fd[co++]=s>>16&255))}var B5=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),W5=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),V5=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),fu=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);function zz(...s){return function(e,t){for(let i=0,n=s.length;i<n;i++){let o=s[i](e,t);if(o)return o}return null}}Uz.bind(void 0,!1);var jb=Uz.bind(void 0,!0);function Uz(s,e,t){if(!t||t.length<e.length)return null;let i;return s?i=mf(t,e):i=t.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}function dJ(s,e){let t=e.toLowerCase().indexOf(s.toLowerCase());return t===-1?null:[{start:t,end:t+s.length}]}function hJ(s,e){return z5(s.toLowerCase(),e.toLowerCase(),0,0)}function z5(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]===e[i]){let n=null;return(n=z5(s,e,t+1,i+1))?Y5({start:i,end:i+1},n):null}return z5(s,e,t,i+1)}function j5(s){return 97<=s&&s<=122}function ak(s){return 65<=s&&s<=90}function G5(s){return 48<=s&&s<=57}function $z(s){return s===32||s===9||s===10||s===13}var qz=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(s=>qz.add(s.charCodeAt(0)));function rk(s){return $z(s)||qz.has(s)}function Bz(s,e){return s===e||rk(s)&&rk(e)}var H5=new Map;function Wz(s){if(H5.has(s))return H5.get(s);let e,t=Fz(s);return t&&(e=t),H5.set(s,e),e}function Kz(s){return j5(s)||ak(s)||G5(s)}function Y5(s,e){return e.length===0?e=[s]:s.end===e[0].start?e[0].start=s.start:e.unshift(s),e}function jz(s,e){for(let t=e;t<s.length;t++){let i=s.charCodeAt(t);if(ak(i)||G5(i)||t>0&&!Kz(s.charCodeAt(t-1)))return t}return s.length}function U5(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]!==e[i].toLowerCase())return null;{let n=null,o=i+1;for(n=U5(s,e,t+1,i+1);!n&&(o=jz(e,o))<e.length;)n=U5(s,e,t+1,o),o++;return n===null?null:Y5({start:i,end:i+1},n)}}function uJ(s){let e=0,t=0,i=0,n=0,o=0;for(let d=0;d<s.length;d++)o=s.charCodeAt(d),ak(o)&&e++,j5(o)&&t++,Kz(o)&&i++,G5(o)&&n++;let r=e/s.length,a=t/s.length,l=i/s.length,c=n/s.length;return{upperPercent:r,lowerPercent:a,alphaPercent:l,numericPercent:c}}function fJ(s){let{upperPercent:e,lowerPercent:t}=s;return t===0&&e>.6}function gJ(s){let{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=s;return t>.2&&e<.8&&i>.6&&n<.2}function mJ(s){let e=0,t=0,i=0,n=0;for(let o=0;o<s.length;o++)i=s.charCodeAt(o),ak(i)&&e++,j5(i)&&t++,$z(i)&&n++;return(e===0||t===0)&&n===0?s.length<=30:e<=5}function Gz(s,e){if(!e||(e=e.trim(),e.length===0)||!mJ(s))return null;e.length>60&&(e=e.substring(0,60));let t=uJ(e);if(!gJ(t)){if(!fJ(t))return null;e=e.toLowerCase()}let i=null,n=0;for(s=s.toLowerCase();n<e.length&&(i=U5(s,e,0,n))===null;)n=jz(e,n+1);return i}function Q6e(s,e,t=!1){if(!e||e.length===0)return null;let i=null,n=0;for(s=s.toLowerCase(),e=e.toLowerCase();n<e.length&&(i=$5(s,e,0,n,t),i===null);)n=Yz(e,n+1);return i}function $5(s,e,t,i,n){let o=0;if(t===s.length)return[];if(i===e.length)return null;if(!Bz(s.charCodeAt(t),e.charCodeAt(i))){let l=Wz(s.charCodeAt(t));if(!l)return null;for(let c=0;c<l.length;c++)if(!Bz(l[c],e.charCodeAt(i+c)))return null;o+=l.length-1}let r=null,a=i+o+1;if(r=$5(s,e,t+1,a,n),!n)for(;!r&&(a=Yz(e,a))<e.length;)r=$5(s,e,t+1,a,n),a++;if(!r)return null;if(s.charCodeAt(t)!==e.charCodeAt(i)){let l=Wz(s.charCodeAt(t));if(!l)return r;for(let c=0;c<l.length;c++)if(l[c]!==e.charCodeAt(i+c))return r}return Y5({start:i,end:i+o+1},r)}function Yz(s,e){for(let t=e;t<s.length;t++)if(rk(s.charCodeAt(t))||t>0&&rk(s.charCodeAt(t-1)))return t;return s.length}var pJ=zz(jb,Gz,dJ),_J=zz(jb,Gz,hJ),Vz=new Go(1e4);function Z5(s,e,t=!1){if(typeof s!="string"||typeof e!="string")return null;let i=Vz.get(s);i||(i=new RegExp(PF(s),"i"),Vz.set(s,i));let n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?_J(s,e):pJ(s,e)}function Zz(s,e){let t=am(s,s.toLowerCase(),0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return t?bJ(t):null}function X6e(s,e,t,i,n,o){let r=Math.min(13,s.length);for(;t<r;t++){let a=am(s,e,t,i,n,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(a)return a}return[0,o]}function bJ(s){if(typeof s>"u")return[];let e=[],t=s[1];for(let i=s.length-1;i>1;i--){let n=s[i]+t,o=e[e.length-1];o&&o.end===n?o.end=n+1:e.push({start:n,end:n+1})}return e}var gd=128;function Q5(){let s=[],e=[];for(let t=0;t<=gd;t++)e[t]=0;for(let t=0;t<=gd;t++)s.push(e.slice(0));return s}function Qz(s){let e=[];for(let t=0;t<=s;t++)e[t]=0;return e}var Xz=Qz(2*gd),q5=Qz(2*gd),Zl=Q5(),gu=Q5(),nk=Q5();function sk(s,e){if(e<0||e>=s.length)return!1;let t=s.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!zp(t)}}function Hz(s,e){if(e<0||e>=s.length)return!1;switch(s.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function ok(s,e,t){return e[s]!==t[s]}function wJ(s,e,t,i,n,o,r=!1){for(;e<t&&n<o;)s[e]===i[n]&&(r&&(Xz[e]=n),e+=1),n+=1;return e===t}var Ql;(function(s){s.Default=[-100,0];function e(t){return!t||t.length===2&&t[0]===-100&&t[1]===0}s.isDefault=e})(Ql||(Ql={}));var K5=class{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}};function am(s,e,t,i,n,o,r=K5.default){let a=s.length>gd?gd:s.length,l=i.length>gd?gd:i.length;if(t>=a||o>=l||a-t>l-o||!wJ(e,t,a,n,o,l,!0))return;vJ(a,l,t,o,e,n);let c=1,d=1,h=t,u=o,f=[!1];for(c=1,h=t;h<a;c++,h++){let b=Xz[h],v=q5[h],C=h+1<a?q5[h+1]:l;for(d=b-o+1,u=b;u<C;d++,u++){let S=Number.MIN_SAFE_INTEGER,L=!1;u<=v&&(S=CJ(s,e,h,t,i,n,u,l,o,Zl[c-1][d-1]===0,f));let x=0;S!==Number.MIN_SAFE_INTEGER&&(L=!0,x=S+gu[c-1][d-1]);let k=u>b,I=k?gu[c][d-1]+(Zl[c][d-1]>0?-5:0):0,A=u>b+1&&Zl[c][d-1]>0,P=A?gu[c][d-2]+(Zl[c][d-2]>0?-5:0):0;if(A&&(!k||P>=I)&&(!L||P>=x))gu[c][d]=P,nk[c][d]=3,Zl[c][d]=0;else if(k&&(!L||I>=x))gu[c][d]=I,nk[c][d]=2,Zl[c][d]=0;else if(L)gu[c][d]=x,nk[c][d]=1,Zl[c][d]=Zl[c-1][d-1]+1;else throw new Error("not possible")}}if(!f[0]&&!r.firstMatchCanBeWeak)return;c--,d--;let g=[gu[c][d],o],p=0,_=0;for(;c>=1;){let b=d;do{let v=nk[c][b];if(v===3)b=b-2;else if(v===2)b=b-1;else break}while(b>=1);p>1&&e[t+c-1]===n[o+d-1]&&!ok(b+o-1,i,n)&&p+1>Zl[c][b]&&(b=d),b===d?p++:p=1,_||(_=b),c--,d=b-1,g.push(d)}l-o===a&&r.boostFullMatch&&(g[0]+=2);let w=_-a;return g[0]-=w,g}function vJ(s,e,t,i,n,o){let r=s-1,a=e-1;for(;r>=t&&a>=i;)n[r]===o[a]&&(q5[r]=a,r--),a--}function CJ(s,e,t,i,n,o,r,a,l,c,d){if(e[t]!==o[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=s[t]===n[r]?7:5:ok(r,n,o)&&(r===0||!ok(r-1,n,o))?(h=s[t]===n[r]?7:5,u=!0):sk(o,r)&&(r===0||!sk(o,r-1))?h=5:(sk(o,r-1)||Hz(o,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=ok(r,n,o)||sk(o,r-1)||Hz(o,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function J6e(s,e,t,i,n,o,r){return yJ(s,e,t,i,n,o,!0,r)}function yJ(s,e,t,i,n,o,r,a){let l=am(s,e,t,i,n,o,a);if(s.length>=3){let c=Math.min(7,s.length-1);for(let d=t+1;d<c;d++){let h=SJ(s,d);if(h){let u=am(h,h.toLowerCase(),t,i,n,o,a);u&&(u[0]-=3,(!l||u[0]>l[0])&&(l=u))}}}return l}function SJ(s,e){if(e+1>=s.length)return;let t=s[e],i=s[e+1];if(t!==i)return s.slice(0,e)+i+t+s.slice(e+2)}var xJ="$(",J5=new RegExp(`\\$\\(${Ce.iconNameExpression}(?:${Ce.iconModifierExpression})?\\)`,"g"),LJ=new RegExp(`(\\\\)?${J5.source}`,"g");function Jz(s){return s.replace(LJ,(e,t)=>t?e:`\\${e}`)}var kJ=new RegExp(`\\\\${J5.source}`,"g");function eU(s){return s.replace(kJ,e=>`\\${e}`)}var DJ=new RegExp(`(\\s)?(\\\\)?${J5.source}(\\s)?`,"g");function lk(s){return s.indexOf(xJ)===-1?s:s.replace(DJ,(e,t,i,n)=>i?e:t||n||"")}function ck(s){return s?s.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}var X5=new RegExp(`\\$\\(${Ce.iconNameCharacter}+\\)`,"g");function Xl(s){X5.lastIndex=0;let e="",t=[],i=0;for(;;){let n=X5.lastIndex,o=X5.exec(s),r=s.substring(n,o?.index);if(r.length>0){e+=r;for(let a=0;a<r.length;a++)t.push(i)}if(!o)break;i+=o[0].length}return{text:e,iconOffsets:t}}function mu(s,e,t=!1){let{text:i,iconOffsets:n}=e;if(!n||n.length===0)return Z5(s,i,t);let o=cl(i," "),r=i.length-o.length,a=Z5(s,o,t);if(a)for(let l of a){let c=n[l.start+r]+r;l.start+=c,l.end+=c}return a}var Gb=class{constructor(e="",t=!1){if(this.value=e,typeof this.value!="string")throw pc("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1,this.supportAlertSyntax=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1,this.supportAlertSyntax=t.supportAlertSyntax??!1)}appendText(e,t=0){return this.value+=EJ(this.supportThemeIcons?Jz(e):e).replace(/([ \t]+)/g,(i,n)=>" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\
|
|
262
|
+
`))}pushElement(e,t=Dx.None,i=dd.None){if(e.type===0){let n=WL(e.resource),o=this.getUriComparisonKey(e.resource);this._pushElement(new om(e,n,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let n=new Set,o=[],r=[];for(let a of e.resources){let l=WL(a),c=this.getUriComparisonKey(a);n.has(c)||(n.add(c),o.push(l),r.push(c))}o.length===1?this._pushElement(new om(e,o[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new v5(e,o,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let n=e.resourceLabels[t],o=e.strResources[t],r;this._editStacks.has(o)?r=this._editStacks.get(o):(r=new zL(n,o),this._editStacks.set(o,r)),r.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let i=this._editStacks.get(t);if(i.hasFutureElements())return null;let n=i.getClosestPastElement();return n?n.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let o of i){let r=WL(o.resource),a=this.getUriComparisonKey(o.resource),l=new om(o,r,a,0,0,0,0);n.set(l.strResource,l)}for(let o of e.strResources){if(t&&t.has(o))continue;this._editStacks.get(o).splitPastWorkspaceElement(e,n)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let o of i){let r=WL(o.resource),a=this.getUriComparisonKey(o.resource),l=new om(o,r,a,0,0,0,0);n.set(l.strResource,l)}for(let o of e.strResources){if(t&&t.has(o))continue;this._editStacks.get(o).splitFutureWorkspaceElement(e,n)}}removeElements(e){let t=typeof e=="string"?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let n=this.getUriComparisonKey(e);this._editStacks.has(n)&&this._editStacks.get(n).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new Tb(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestPastElement();r&&r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof dd){let[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Se(e);for(let i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){let r=this._acquireLocks(i),a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),o()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),o())}async _invokeWorkspacePrepare(e){if(typeof e.actual.prepareUndoRedo>"u")return N.None;let t=e.actual.prepareUndoRedo();return typeof t>"u"?N.None:t}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(N.None);let i=e.actual.prepareUndoRedo();return i?_c(i)?t(i):i.then(n=>t(n)):t(N.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||yz);return new $b(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new rm(this._undo(e,0,!0));for(let o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new rm}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,m(2032,"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,m(2033,"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let o=[];for(let a of i.editStacks)a.getClosestPastElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,m(2034,"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));let r=[];for(let a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,m(2035,"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,m(2036,"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let a;(function(d){d[d.All=0]="All",d[d.This=1]="This",d[d.Cancel=2]="Cancel"})(a||(a={}));let{result:l}=await this._dialogService.prompt({type:Dt.Info,message:m(2037,"Would you like to undo '{0}' across all files?",t.label),buttons:[{label:m(2038,"&&Undo in {0} Files",i.editStacks.length),run:()=>a.All},{label:m(2039,"Undo this &&File"),run:()=>a.This}],cancelButton:{run:()=>a.Cancel}});if(l===a.Cancel)return;if(l===a.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let c=this._checkWorkspaceUndo(e,t,i,!1);if(c)return c.returnValue;n=!0}let o;try{o=await this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}let r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.returnValue;for(let a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,o,()=>this._continueUndoInGroup(t.groupId,n))}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let n=m(2040,"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new $b([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof dd){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let n=this._editStacks.get(e),o=n.getClosestPastElement();if(!o)return;if(o.groupId){let[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,t,i)}return(o.sourceId!==t||o.confirmBeforeUndo)&&!i?this._confirmAndContinueUndo(e,t,o):o.type===1?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:m(2041,"Would you like to undo '{0}'?",i.label),primaryButton:m(2042,"&&Yes"),cancelButton:m(2043,"No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=n)}return[t,i]}canRedo(e){if(e instanceof dd){let[,i]=this._findClosestRedoElementWithSource(e.id);return!!i}let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasFutureElements():!1}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new rm(this._redo(e));for(let o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new rm}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,m(2044,"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,m(2045,"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let o=[];for(let a of i.editStacks)a.getClosestFutureElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndRedo(e,t,null,m(2046,"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));let r=[];for(let a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,m(2047,"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,m(2048,"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}let o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(let r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let i=m(2049,"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new $b([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,o]of this._editStacks){let r=o.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof dd){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return typeof e=="string"?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[n,o]=this._findClosestRedoElementInGroup(i.groupId);if(i!==n&&o)return this._redo(o)}return i.type===1?this._workspaceRedo(e,i):this._resourceRedo(t,i)}}};C5=UX([vz(0,BL),vz(1,pn)],C5);var rm=class{constructor(e){this.returnValue=e}};Ie(em,C5,1);function Yi(s,e,t){return Math.min(Math.max(s,e),t)}var qb=class{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}},UL=class{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}};var $L=oe("environmentService");var $X=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Sz=function(s,e){return function(t,i){e(t,i,s)}},qX=oe("ILanguageFeatureDebounceService"),qL;(function(s){let e=new WeakMap,t=0;function i(n){let o=e.get(n);return o===void 0&&(o=++t,e.set(n,o)),o}s.of=i})(qL||(qL={}));var y5=class{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}},S5=class{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new Go(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>jp(qL.of(i),t),0)}get(e){let t=this._key(e),i=this._cache.get(t);return i?Yi(i.value,this._min,this._max):this.default()}update(e,t){let i=this._key(e),n=this._cache.get(i);n||(n=new UL(6),this._cache.set(i,n));let o=Yi(n.update(t),this._min,this._max);return qp(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){let e=new qb;for(let[,t]of this._cache)e.update(t.value);return e.value}default(){let e=this._overall()|0||this._default;return Yi(e,this._min,this._max)}},x5=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){let n=i?.min??50,o=i?.max??n**2,r=i?.key??void 0,a=`${qL.of(e)},${n}${r?","+r:""}`,l=this._data.get(a);return l||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),l=new y5(n*1.5)):l=new S5(this._logService,t,e,this._overallAverage()|0||n*1.5,n,o),this._data.set(a,l)),l}_overallAverage(){let e=new qb;for(let t of this._data.values())e.update(t.default());return e.value}};x5=$X([Sz(0,Lt),Sz(1,$L)],x5);Ie(qX,x5,1);var KL=class{constructor(e=5){this.timesPerSecond=e,this._lastRun=0,this._minimumTimeBetweenRuns=1e3/e}runIfNotLimited(e){let t=Date.now();t-this._lastRun>=this._minimumTimeBetweenRuns&&(this._lastRun=t,e())}};var jL=class s{static create(e,t){return new s(e,new L5(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){let e=this._tokens.getRange();return e&&new D(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new s(this._startLineNumber,n),new s(this._startLineNumber+r,o)]}applyEdit(e,t){let[i,n,o]=No(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new M(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){let o=i-t;this._startLineNumber-=o;return}let n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){let o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(t===0&&i===0)return;let r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}let a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,o)}reportIfInvalid(e){this._tokens.reportIfInvalid(e,this._startLineNumber)}},L5=class s{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){let e=this._getTokenCount();return e===0?-1:this._getDeltaLine(e-1)}getRange(){let e=this._getTokenCount();if(e===0)return null;let t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new D(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){let n=t+Math.floor((i-t)/2),o=this._getDeltaLine(n);if(o<e)t=n+1;else if(o>e)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;a<i&&this._getDeltaLine(a+1)===e;)a++;return new GL(this._tokens.subarray(4*r,4*a+4))}}return this._getDeltaLine(t)===e?new GL(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){let o=this._tokens,r=this._tokenCount,a=0,l=!1,c=0;for(let d=0;d<r;d++){let h=4*d,u=o[h],f=o[h+1],g=o[h+2],p=o[h+3];if((u>e||u===e&&g>=t)&&(u<i||u===i&&f<=n))l=!0;else{if(a===0&&(c=u),l){let _=4*a;o[_]=u-c,o[_+1]=f,o[_+2]=g,o[_+3]=p}else c!==0&&(o[h]=u-c);a++}}return this._tokenCount=a,c}split(e,t,i,n){let o=this._tokens,r=this._tokenCount,a=[],l=[],c=a,d=0,h=0;for(let u=0;u<r;u++){let f=4*u,g=o[f],p=o[f+1],_=o[f+2],w=o[f+3];if(g>e||g===e&&_>=t){if(g<i||g===i&&p<=n)continue;c!==l&&(c=l,d=0,h=g)}c[d++]=g-h,c[d++]=p,c[d++]=_,c[d++]=w}return[new s(new Uint32Array(a)),new s(new Uint32Array(l)),h]}acceptDeleteRange(e,t,i,n,o){let r=this._tokens,a=this._tokenCount,l=n-t,c=0,d=!1;for(let h=0;h<a;h++){let u=4*h,f=r[u],g=r[u+1],p=r[u+2],_=r[u+3];if(f<t||f===t&&p<=i){c++;continue}else if(f===t&&g<i)f===n&&p>o?p-=o-i:p=i;else if(f===t&&g===i)if(f===n&&p>o)p-=o-i;else{d=!0;continue}else if(f<n||f===n&&g<o)if(f===n&&p>o)f=t,g=i,p=g+(p-o);else{d=!0;continue}else if(f>n){if(l===0&&!d){c=a;break}f-=l}else if(f===n&&g>=o)e&&f===0&&(g+=e,p+=e),f-=l,g-=o-i,p-=o-i;else throw new Error("Not possible!");let w=4*c;r[w]=f,r[w+1]=g,r[w+2]=p,r[w+3]=_,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,o,r){let a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d<c;d++){let h=4*d,u=l[h],f=l[h+1],g=l[h+2];if(!(u<e||u===e&&g<t)){if(u===e&&g===t)if(a)g+=1;else continue;else if(u===e&&f<t&&t<g)i===0?g+=n:g=t;else{if(u===e&&f===t&&a)continue;if(u===e)if(u+=i,i===0)f+=n,g+=n;else{let p=g-f;f=o+(f-t),g=f+p}else u+=i}l[h]=u,l[h+1]=f,l[h+2]=g}}}static{this._rateLimiter=new KL(10/60)}reportIfInvalid(e,t){for(let i=0;i<this._tokenCount;i++){let n=this._getDeltaLine(i)+t;n<1?s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber < 1")}):n>e.getLineCount()?s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber > model.getLineCount()")}):this._getEndCharacter(i)>e.getLineLength(n)&&s._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: end character > model.getLineLength(lineNumber)")})}}},GL=class{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}};var KX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},k5=function(s,e){return function(t,i){e(t,i,s)}},YL=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new I5}getMetadata(e,t,i){let n=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,n),r;if(o)r=o.metadata;else{let a=this._legend.tokenTypes[e],l=[];if(a){let c=t;for(let h=0;c>0&&h<this._legend.tokenModifiers.length;h++)c&1&&l.push(this._legend.tokenModifiers[h]),c=c>>1;let d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){let h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){let h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){let h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){let h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){let h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${o}).`))}};YL=KX([k5(1,Qt),k5(2,Rt),k5(3,Lt)],YL);function i6e(s,e,t){let i=s.data,n=s.data.length/5|0,o=Math.max(Math.ceil(n/1024),400),r=[],a=0,l=1,c=0;for(;a<n;){let d=a,h=Math.min(d+o,n);if(h<n){let b=h;for(;b-1>d&&i[5*b]===0;)b--;if(b-1===d){let v=h;for(;v+1<n&&i[5*v]===0;)v++;h=v}else h=b}let u=new Uint32Array((h-d)*4),f=0,g=0,p=0,_=0;for(;a<h;){let b=5*a,v=i[b],C=i[b+1],S=l+v|0,L=v===0?c+C|0:C,x=i[b+2],k=L+x|0,I=i[b+3],A=i[b+4];if(k<=L)e.warnInvalidLengthSemanticTokens(S,L+1);else if(p===S&&_>L)e.warnOverlappingSemanticTokens(S,L+1);else{let P=e.getMetadata(I,A,t);P!==2147483647&&(g===0&&(g=S),u[f]=S-g,u[f+1]=L,u[f+2]=k,u[f+3]=P,f+=4,p=S,_=k)}l=S,c=L,a++}f!==u.length&&(u=u.subarray(0,f));let w=jL.create(g,u);r.push(w)}return r}var D5=class{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}},I5=class s{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){let n=this._hashFunc(e,t,i),o=this._elements[n];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===i)return o;o=o.next}return null}add(e,t,i,n){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){let o=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength);for(let r of o){let a=r;for(;a;){let l=a.next;a.next=null,this._add(a),a=l}}}this._add(new D5(e,t,i,n))}_add(e){let t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}};var xz=oe("semanticTokensStylingService");var jX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},E5=function(s,e){return function(t,i){e(t,i,s)}},T5=class extends N{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new YL(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};T5=jX([E5(0,Qt),E5(1,Lt),E5(2,Rt)],T5);Ie(xz,T5,1);var ZL="**",Lz="/",QL="[/\\\\]",XL="[^/\\\\]",GX=/\//g;function kz(s,e){switch(s){case 0:return"";case 1:return`${XL}*?`;default:return`(?:${QL}|${XL}+${QL}${e?`|${QL}${XL}+`:""})*?`}}function Dz(s,e){if(!s)return[];let t=[],i=!1,n=!1,o="";for(let r of s){switch(r){case e:if(!i&&!n){t.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}o+=r}return o&&t.push(o),t}function Mz(s){if(!s)return"";let e="",t=Dz(s,Lz);if(t.every(i=>i===ZL))e=".*";else{let i=!1;t.forEach((n,o)=>{if(n===ZL){if(i)return;e+=kz(2,o===t.length-1)}else{let r=!1,a="",l=!1,c="";for(let d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===Lz?h="":h=Bn(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{let u=`(?:${Dz(a,",").map(f=>Mz(f)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=XL;continue;case"*":e+=kz(1);continue;default:e+=Bn(d)}}o<t.length-1&&(t[o+1]!==ZL||o+2<t.length)&&(e+=QL)}i=n===ZL})}return e}var YX=/^\*\*\/\*\.[\w\.-]+$/,ZX=/^\*\*\/([\w\.-]+)\/?$/,QX=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,XX=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,JX=/^\*\*((\/[\w\.-]+)+)\/?$/,eJ=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Iz=new Go(1e4),Ez=function(){return!1},Ra=function(){return null};function M5(s,e){if(!s)return Ra;let t;typeof s!="string"?t=s.pattern:t=s,t=t.trim();let i=e.ignoreCase??!1,n={...e,equals:i?dr:(l,c)=>l===c,endsWith:i?FF:(l,c)=>l.endsWith(c),isEqualOrParent:(l,c)=>f_(l,c,!Jt||i)},o=`${i?t.toLowerCase():t}_${!!e.trimForExclusions}_${i}`,r=Iz.get(o);if(r)return Tz(r,s,n);let a;return YX.test(t)?r=tJ(t.substring(4),t,n):(a=ZX.exec(N5(t,n)))?r=iJ(a[1],t,n):(e.trimForExclusions?XX:QX).test(t)?r=nJ(t,n):(a=JX.exec(N5(t,n)))?r=Nz(a[1].substring(1),t,!0,n):(a=eJ.exec(N5(t,n)))?r=Nz(a[1],t,!1,n):r=sJ(t,n),Iz.set(o,r),Tz(r,s,n)}function Tz(s,e,t){if(typeof e=="string")return s;let i=function(n,o){return t.isEqualOrParent(n,e.base)?s(cl(n.substring(e.base.length),hr),o):null};return i.allBasenames=s.allBasenames,i.allPaths=s.allPaths,i.basenames=s.basenames,i.patterns=s.patterns,i}function N5(s,e){return e.trimForExclusions&&s.endsWith("/**")?s.substring(0,s.length-2):s}function tJ(s,e,t){return function(i,n){return typeof i=="string"&&t.endsWith(i,s)?e:null}}function iJ(s,e,t){let i=`/${s}`,n=`\\${s}`,o=function(a,l){return typeof a!="string"?null:l?t.equals(l,s)?e:null:t.equals(a,s)||t.endsWith(a,i)||t.endsWith(a,n)?e:null},r=[s];return o.basenames=r,o.patterns=[e],o.allBasenames=r,o}function nJ(s,e){let t=Az(s.slice(1,-1).split(",").map(a=>M5(a,e)).filter(a=>a!==Ra),s),i=t.length;if(!i)return Ra;if(i===1)return t[0];let n=function(a,l){for(let c=0,d=t.length;c<d;c++)if(t[c](a,l))return s;return null},o=t.find(a=>!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);let r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function Nz(s,e,t,i){let n=hr===Ot.sep,o=n?s:s.replace(GX,hr),r=hr+o,a=Ot.sep+s,l;return t?l=function(c,d){return typeof c=="string"&&(i.equals(c,o)||i.endsWith(c,r)||!n&&(i.equals(c,s)||i.endsWith(c,a)))?e:null}:l=function(c,d){return typeof c=="string"&&(i.equals(c,o)||!n&&i.equals(c,s))?e:null},l.allPaths=[(t?"*/":"./")+s],l}function sJ(s,e){try{let t=new RegExp(`^${Mz(s)}$`,e.ignoreCase?"i":void 0);return function(i){return t.lastIndex=0,typeof i=="string"&&t.test(i)?s:null}}catch{return Ra}}function Rz(s,e,t){return!s||typeof e!="string"?!1:R5(s,t)(e)}function R5(s,e={}){if(!s)return Ez;if(typeof s=="string"||oJ(s)){let t=M5(s,e);if(t===Ra)return Ez;let i=function(n,o){return!!t(n,o)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return rJ(s,e)}function oJ(s){let e=s;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function rJ(s,e){let t=Az(Object.getOwnPropertyNames(s).map(a=>aJ(a,s[a],e)).filter(a=>a!==Ra)),i=t.length;if(!i)return Ra;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];let a=function(d,h){let u;for(let f=0,g=t.length;f<g;f++){let p=t[f](d,h);if(typeof p=="string")return p;tv(p)&&(u||(u=[]),u.push(p))}return u?(async()=>{for(let f of u){let g=await f;if(typeof g=="string")return g}return null})():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);let c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}let n=function(a,l,c){let d,h;for(let u=0,f=t.length;u<f;u++){let g=t[u];g.requiresSiblings&&c&&(l||(l=vf(a)),d||(d=l.substring(0,l.length-KF(a).length)));let p=g(a,l,d,c);if(typeof p=="string")return p;tv(p)&&(h||(h=[]),h.push(p))}return h?(async()=>{for(let u of h){let f=await u;if(typeof f=="string")return f}return null})():null},o=t.find(a=>!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);let r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function aJ(s,e,t){if(e===!1)return Ra;let i=M5(s,t);if(i===Ra)return Ra;if(typeof e=="boolean")return i;if(e){let n=e.when;if(typeof n=="string"){let o=(r,a,l,c)=>{if(!c||!i(r,a))return null;let d=n.replace("$(basename)",()=>l),h=c(d);return tv(h)?h.then(u=>u?s:null):h?s:null};return o.requiresSiblings=!0,o}}return i}function Az(s,e){let t=s.filter(a=>!!a.basenames);if(t.length<2)return s;let i=t.reduce((a,l)=>{let c=l.basenames;return c?a.concat(c):a},[]),n;if(e){n=[];for(let a=0,l=i.length;a<l;a++)n.push(e)}else n=t.reduce((a,l)=>{let c=l.patterns;return c?a.concat(c):a},[]);let o=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){let h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substring(d)}let c=i.indexOf(l);return c!==-1?n[c]:null};o.basenames=i,o.patterns=n,o.allBasenames=i;let r=s.filter(a=>!a.basenames);return r.push(o),r}function A5(s,e,t,i,n,o){if(Array.isArray(s)){let r=0;for(let a of s){let l=A5(a,e,t,i,n,o);if(l===10)return l;l>r&&(r=l)}return r}else{if(typeof s=="string")return i?s==="*"?5:s===t?10:0:0;if(s){let{language:r,pattern:a,scheme:l,hasAccessToAllModels:c,notebookType:d}=s;if(!i&&!c)return 0;d&&n&&(e=n);let h=0;if(l)if(l===e.scheme)h=10;else if(l==="*")h=5;else return 0;if(r)if(r===t)h=10;else if(r==="*")h=Math.max(h,5);else return 0;if(d)if(d===o)h=10;else if(d==="*"&&o!==void 0)h=Math.max(h,5);else return 0;if(a){let u;if(typeof a=="string"?u=a:u={...a,base:fv(a.base)},u===e.fsPath||Rz(u,e.fsPath))h=10;else return 0}return h}else return 0}}function Oz(s){return typeof s=="string"?!1:Array.isArray(s)?s.every(Oz):!!s.exclusive}var JL=class{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}},Bt=class s{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new E}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),j(()=>{if(i){let n=this._entries.indexOf(i);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,n=>i.push(n.provider)),i}orderedGroups(e){let t=[],i,n;return this._orderedForEach(e,!1,o=>{i&&n===o._score?i.push(o.provider):(n=o._score,i=[o.provider],t.push(i))}),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(let n of this._entries)n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),n=i?new JL(e.uri,e.getLanguageId(),i.uri,i.type,t):new JL(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(n)){this._lastCandidate=n;for(let o of this._entries)if(o._score=A5(o.selector,n.uri,n.languageId,b6(e),n.notebookUri,n.notebookType),Oz(o.selector)&&o._score>0)if(t)o._score=0;else{for(let r of this._entries)r._score=0;o._score=1e3;break}this._entries.sort(s._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:Kb(e.selector)&&!Kb(t.selector)?1:!Kb(e.selector)&&Kb(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}};function Kb(s){return typeof s=="string"?!1:Array.isArray(s)?s.some(Kb):!!s.isBuiltin}var O5=class{constructor(){this.referenceProvider=new Bt(this._score.bind(this)),this.renameProvider=new Bt(this._score.bind(this)),this.newSymbolNamesProvider=new Bt(this._score.bind(this)),this.codeActionProvider=new Bt(this._score.bind(this)),this.definitionProvider=new Bt(this._score.bind(this)),this.typeDefinitionProvider=new Bt(this._score.bind(this)),this.declarationProvider=new Bt(this._score.bind(this)),this.implementationProvider=new Bt(this._score.bind(this)),this.documentSymbolProvider=new Bt(this._score.bind(this)),this.inlayHintsProvider=new Bt(this._score.bind(this)),this.colorProvider=new Bt(this._score.bind(this)),this.codeLensProvider=new Bt(this._score.bind(this)),this.documentFormattingEditProvider=new Bt(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Bt(this._score.bind(this)),this.onTypeFormattingEditProvider=new Bt(this._score.bind(this)),this.signatureHelpProvider=new Bt(this._score.bind(this)),this.hoverProvider=new Bt(this._score.bind(this)),this.documentHighlightProvider=new Bt(this._score.bind(this)),this.multiDocumentHighlightProvider=new Bt(this._score.bind(this)),this.selectionRangeProvider=new Bt(this._score.bind(this)),this.foldingRangeProvider=new Bt(this._score.bind(this)),this.linkProvider=new Bt(this._score.bind(this)),this.inlineCompletionsProvider=new Bt(this._score.bind(this)),this.completionProvider=new Bt(this._score.bind(this)),this.linkedEditingRangeProvider=new Bt(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Bt(this._score.bind(this)),this.documentSemanticTokensProvider=new Bt(this._score.bind(this)),this.documentDropEditProvider=new Bt(this._score.bind(this)),this.documentPasteEditProvider=new Bt(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}};Ie(Ye,O5,1);var Yl=oe("contextViewService"),Ps=oe("contextMenuService");var ek=ie,tk=class extends N{constructor(e){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.classList.toggle("fade-in",!!e),this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Zc(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},ik=class s extends N{static render(e,t,i){return new s(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=ee(e,ek("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=ee(this.actionContainer,ek("a.action")),this.action.setAttribute("role","button"),t.iconClass&&ee(this.action,ek("span.icon")).classList.add(...t.iconClass.split(" ")),this.actionRenderedLabel=i?`${t.label} (${i})`:t.label;let n=ee(this.action,ek("span"));n.textContent=this.actionRenderedLabel,this._store.add(new P5(this.actionContainer,t.run)),this._store.add(new F5(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}};function Pz(s,e){return s&&e?m(7,"Inspect this in the accessible view with {0}.",e):s?m(8,"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var P5=class extends N{constructor(e,t){super(),this._register(O(e,K.CLICK,i=>{i.stopPropagation(),i.preventDefault(),t(e)}))}},F5=class extends N{constructor(e,t,i){super(),this._register(O(e,K.KEY_DOWN,n=>{let o=new Re(n);i.some(r=>o.equals(r))&&(n.stopPropagation(),n.preventDefault(),t(e))}))}};function Fz(s){let e=lJ(s);if(e&&e.length>0)return new Uint32Array(e)}var co=0,fd=new Uint32Array(10);function lJ(s){if(co=0,Aa(s,B5,4352),co>0||(Aa(s,W5,4449),co>0)||(Aa(s,V5,4520),co>0)||(Aa(s,fu,12593),co))return fd.subarray(0,co);if(s>=44032&&s<=55203){let e=s-44032,t=e%588,i=Math.floor(e/588),n=Math.floor(t/28),o=t%28-1;if(i<B5.length?Aa(i,B5,0):4352+i-12593<fu.length&&Aa(4352+i,fu,12593),n<W5.length?Aa(n,W5,0):4449+n-12593<fu.length&&Aa(4449+n-12593,fu,12593),o>=0&&(o<V5.length?Aa(o,V5,0):4520+o-12593<fu.length&&Aa(4520+o-12593,fu,12593)),co>0)return fd.subarray(0,co)}}function Aa(s,e,t){s>=t&&s<t+e.length&&cJ(e[s-t])}function cJ(s){s!==0&&(fd[co++]=s&255,s>>8&&(fd[co++]=s>>8&255),s>>16&&(fd[co++]=s>>16&255))}var B5=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),W5=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),V5=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),fu=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);function zz(...s){return function(e,t){for(let i=0,n=s.length;i<n;i++){let o=s[i](e,t);if(o)return o}return null}}Uz.bind(void 0,!1);var jb=Uz.bind(void 0,!0);function Uz(s,e,t){if(!t||t.length<e.length)return null;let i;return s?i=mf(t,e):i=t.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}function dJ(s,e){let t=e.toLowerCase().indexOf(s.toLowerCase());return t===-1?null:[{start:t,end:t+s.length}]}function hJ(s,e){return z5(s.toLowerCase(),e.toLowerCase(),0,0)}function z5(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]===e[i]){let n=null;return(n=z5(s,e,t+1,i+1))?Y5({start:i,end:i+1},n):null}return z5(s,e,t,i+1)}function j5(s){return 97<=s&&s<=122}function ak(s){return 65<=s&&s<=90}function G5(s){return 48<=s&&s<=57}function $z(s){return s===32||s===9||s===10||s===13}var qz=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(s=>qz.add(s.charCodeAt(0)));function rk(s){return $z(s)||qz.has(s)}function Bz(s,e){return s===e||rk(s)&&rk(e)}var H5=new Map;function Wz(s){if(H5.has(s))return H5.get(s);let e,t=Fz(s);return t&&(e=t),H5.set(s,e),e}function Kz(s){return j5(s)||ak(s)||G5(s)}function Y5(s,e){return e.length===0?e=[s]:s.end===e[0].start?e[0].start=s.start:e.unshift(s),e}function jz(s,e){for(let t=e;t<s.length;t++){let i=s.charCodeAt(t);if(ak(i)||G5(i)||t>0&&!Kz(s.charCodeAt(t-1)))return t}return s.length}function U5(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]!==e[i].toLowerCase())return null;{let n=null,o=i+1;for(n=U5(s,e,t+1,i+1);!n&&(o=jz(e,o))<e.length;)n=U5(s,e,t+1,o),o++;return n===null?null:Y5({start:i,end:i+1},n)}}function uJ(s){let e=0,t=0,i=0,n=0,o=0;for(let d=0;d<s.length;d++)o=s.charCodeAt(d),ak(o)&&e++,j5(o)&&t++,Kz(o)&&i++,G5(o)&&n++;let r=e/s.length,a=t/s.length,l=i/s.length,c=n/s.length;return{upperPercent:r,lowerPercent:a,alphaPercent:l,numericPercent:c}}function fJ(s){let{upperPercent:e,lowerPercent:t}=s;return t===0&&e>.6}function gJ(s){let{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=s;return t>.2&&e<.8&&i>.6&&n<.2}function mJ(s){let e=0,t=0,i=0,n=0;for(let o=0;o<s.length;o++)i=s.charCodeAt(o),ak(i)&&e++,j5(i)&&t++,$z(i)&&n++;return(e===0||t===0)&&n===0?s.length<=30:e<=5}function Gz(s,e){if(!e||(e=e.trim(),e.length===0)||!mJ(s))return null;e.length>60&&(e=e.substring(0,60));let t=uJ(e);if(!gJ(t)){if(!fJ(t))return null;e=e.toLowerCase()}let i=null,n=0;for(s=s.toLowerCase();n<e.length&&(i=U5(s,e,0,n))===null;)n=jz(e,n+1);return i}function Q6e(s,e,t=!1){if(!e||e.length===0)return null;let i=null,n=0;for(s=s.toLowerCase(),e=e.toLowerCase();n<e.length&&(i=$5(s,e,0,n,t),i===null);)n=Yz(e,n+1);return i}function $5(s,e,t,i,n){let o=0;if(t===s.length)return[];if(i===e.length)return null;if(!Bz(s.charCodeAt(t),e.charCodeAt(i))){let l=Wz(s.charCodeAt(t));if(!l)return null;for(let c=0;c<l.length;c++)if(!Bz(l[c],e.charCodeAt(i+c)))return null;o+=l.length-1}let r=null,a=i+o+1;if(r=$5(s,e,t+1,a,n),!n)for(;!r&&(a=Yz(e,a))<e.length;)r=$5(s,e,t+1,a,n),a++;if(!r)return null;if(s.charCodeAt(t)!==e.charCodeAt(i)){let l=Wz(s.charCodeAt(t));if(!l)return r;for(let c=0;c<l.length;c++)if(l[c]!==e.charCodeAt(i+c))return r}return Y5({start:i,end:i+o+1},r)}function Yz(s,e){for(let t=e;t<s.length;t++)if(rk(s.charCodeAt(t))||t>0&&rk(s.charCodeAt(t-1)))return t;return s.length}var pJ=zz(jb,Gz,dJ),_J=zz(jb,Gz,hJ),Vz=new Go(1e4);function Z5(s,e,t=!1){if(typeof s!="string"||typeof e!="string")return null;let i=Vz.get(s);i||(i=new RegExp(PF(s),"i"),Vz.set(s,i));let n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?_J(s,e):pJ(s,e)}function Zz(s,e){let t=am(s,s.toLowerCase(),0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return t?bJ(t):null}function X6e(s,e,t,i,n,o){let r=Math.min(13,s.length);for(;t<r;t++){let a=am(s,e,t,i,n,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(a)return a}return[0,o]}function bJ(s){if(typeof s>"u")return[];let e=[],t=s[1];for(let i=s.length-1;i>1;i--){let n=s[i]+t,o=e[e.length-1];o&&o.end===n?o.end=n+1:e.push({start:n,end:n+1})}return e}var gd=128;function Q5(){let s=[],e=[];for(let t=0;t<=gd;t++)e[t]=0;for(let t=0;t<=gd;t++)s.push(e.slice(0));return s}function Qz(s){let e=[];for(let t=0;t<=s;t++)e[t]=0;return e}var Xz=Qz(2*gd),q5=Qz(2*gd),Zl=Q5(),gu=Q5(),nk=Q5();function sk(s,e){if(e<0||e>=s.length)return!1;let t=s.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!zp(t)}}function Hz(s,e){if(e<0||e>=s.length)return!1;switch(s.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function ok(s,e,t){return e[s]!==t[s]}function wJ(s,e,t,i,n,o,r=!1){for(;e<t&&n<o;)s[e]===i[n]&&(r&&(Xz[e]=n),e+=1),n+=1;return e===t}var Ql;(function(s){s.Default=[-100,0];function e(t){return!t||t.length===2&&t[0]===-100&&t[1]===0}s.isDefault=e})(Ql||(Ql={}));var K5=class{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}};function am(s,e,t,i,n,o,r=K5.default){let a=s.length>gd?gd:s.length,l=i.length>gd?gd:i.length;if(t>=a||o>=l||a-t>l-o||!wJ(e,t,a,n,o,l,!0))return;vJ(a,l,t,o,e,n);let c=1,d=1,h=t,u=o,f=[!1];for(c=1,h=t;h<a;c++,h++){let b=Xz[h],v=q5[h],C=h+1<a?q5[h+1]:l;for(d=b-o+1,u=b;u<C;d++,u++){let S=Number.MIN_SAFE_INTEGER,L=!1;u<=v&&(S=CJ(s,e,h,t,i,n,u,l,o,Zl[c-1][d-1]===0,f));let x=0;S!==Number.MIN_SAFE_INTEGER&&(L=!0,x=S+gu[c-1][d-1]);let k=u>b,I=k?gu[c][d-1]+(Zl[c][d-1]>0?-5:0):0,A=u>b+1&&Zl[c][d-1]>0,P=A?gu[c][d-2]+(Zl[c][d-2]>0?-5:0):0;if(A&&(!k||P>=I)&&(!L||P>=x))gu[c][d]=P,nk[c][d]=3,Zl[c][d]=0;else if(k&&(!L||I>=x))gu[c][d]=I,nk[c][d]=2,Zl[c][d]=0;else if(L)gu[c][d]=x,nk[c][d]=1,Zl[c][d]=Zl[c-1][d-1]+1;else throw new Error("not possible")}}if(!f[0]&&!r.firstMatchCanBeWeak)return;c--,d--;let g=[gu[c][d],o],p=0,_=0;for(;c>=1;){let b=d;do{let v=nk[c][b];if(v===3)b=b-2;else if(v===2)b=b-1;else break}while(b>=1);p>1&&e[t+c-1]===n[o+d-1]&&!ok(b+o-1,i,n)&&p+1>Zl[c][b]&&(b=d),b===d?p++:p=1,_||(_=b),c--,d=b-1,g.push(d)}l-o===a&&r.boostFullMatch&&(g[0]+=2);let w=_-a;return g[0]-=w,g}function vJ(s,e,t,i,n,o){let r=s-1,a=e-1;for(;r>=t&&a>=i;)n[r]===o[a]&&(q5[r]=a,r--),a--}function CJ(s,e,t,i,n,o,r,a,l,c,d){if(e[t]!==o[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=s[t]===n[r]?7:5:ok(r,n,o)&&(r===0||!ok(r-1,n,o))?(h=s[t]===n[r]?7:5,u=!0):sk(o,r)&&(r===0||!sk(o,r-1))?h=5:(sk(o,r-1)||Hz(o,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=ok(r,n,o)||sk(o,r-1)||Hz(o,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function J6e(s,e,t,i,n,o,r){return yJ(s,e,t,i,n,o,!0,r)}function yJ(s,e,t,i,n,o,r,a){let l=am(s,e,t,i,n,o,a);if(s.length>=3){let c=Math.min(7,s.length-1);for(let d=t+1;d<c;d++){let h=SJ(s,d);if(h){let u=am(h,h.toLowerCase(),t,i,n,o,a);u&&(u[0]-=3,(!l||u[0]>l[0])&&(l=u))}}}return l}function SJ(s,e){if(e+1>=s.length)return;let t=s[e],i=s[e+1];if(t!==i)return s.slice(0,e)+i+t+s.slice(e+2)}var xJ="$(",J5=new RegExp(`\\$\\(${Ce.iconNameExpression}(?:${Ce.iconModifierExpression})?\\)`,"g"),LJ=new RegExp(`(\\\\)?${J5.source}`,"g");function Jz(s){return s.replace(LJ,(e,t)=>t?e:`\\${e}`)}var kJ=new RegExp(`\\\\${J5.source}`,"g");function eU(s){return s.replace(kJ,e=>`\\${e}`)}var DJ=new RegExp(`(\\s)?(\\\\)?${J5.source}(\\s)?`,"g");function lk(s){return s.indexOf(xJ)===-1?s:s.replace(DJ,(e,t,i,n)=>i?e:t||n||"")}function ck(s){return s?s.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}var X5=new RegExp(`\\$\\(${Ce.iconNameCharacter}+\\)`,"g");function Xl(s){X5.lastIndex=0;let e="",t=[],i=0;for(;;){let n=X5.lastIndex,o=X5.exec(s),r=s.substring(n,o?.index);if(r.length>0){e+=r;for(let a=0;a<r.length;a++)t.push(i)}if(!o)break;i+=o[0].length}return{text:e,iconOffsets:t}}function mu(s,e,t=!1){let{text:i,iconOffsets:n}=e;if(!n||n.length===0)return Z5(s,i,t);let o=cl(i," "),r=i.length-o.length,a=Z5(s,o,t);if(a)for(let l of a){let c=n[l.start+r]+r;l.start+=c,l.end+=c}return a}var Gb=class{constructor(e="",t=!1){if(this.value=e,typeof this.value!="string")throw pc("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1,this.supportAlertSyntax=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1,this.supportAlertSyntax=t.supportAlertSyntax??!1)}appendText(e,t=0){return this.value+=EJ(this.supportThemeIcons?Jz(e):e).replace(/([ \t]+)/g,(i,n)=>" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\
|
|
263
263
|
`:`
|
|
264
264
|
|
|
265
265
|
`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`
|
|
@@ -815,7 +815,7 @@ ${q$(Z.menuSubmenu)}
|
|
|
815
815
|
top: ${this.virtualDelegate.headerRowHeight+1}px;
|
|
816
816
|
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
|
|
817
817
|
}`),this.styleElement.textContent=t.join(`
|
|
818
|
-
`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}};var Rd=class{constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new jI(e,null,t),this.onDidSpliceModel=this.model.onDidSpliceModel,this.onDidSpliceRenderedNodes=this.model.onDidSpliceRenderedNodes,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare(i,n){return t.sorter.compare(i.element,n.element)}}),this.identityProvider=t.identityProvider}setChildren(e,t=Me.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=Me.empty(),i){let n=new Set,o=new Set,r=l=>{if(l.element===null)return;let c=l;if(n.add(c.element),this.nodes.set(c.element,c),this.identityProvider){let d=this.identityProvider.getId(c.element).toString();o.add(d),this.nodesByIdentity.set(d,c)}i.onDidCreateNode?.(c)},a=l=>{if(l.element===null)return;let c=l;if(n.has(c.element)||this.nodes.delete(c.element),this.identityProvider){let d=this.identityProvider.getId(c.element).toString();o.has(d)||this.nodesByIdentity.delete(d)}i.onDidDeleteNode?.(c)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:r,onDidDeleteNode:a})}preserveCollapseState(e=Me.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),Me.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){let r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i){let r;return typeof t.collapsed>"u"?r=void 0:t.collapsed===Cs.Collapsed||t.collapsed===Cs.PreserveOrCollapsed?r=!0:t.collapsed===Cs.Expanded||t.collapsed===Cs.PreserveOrExpanded?r=!1:r=!!t.collapsed,{...t,children:this.preserveCollapseState(t.children),collapsed:r}}let n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,o;return typeof t.collapsed>"u"||t.collapsed===Cs.PreserveOrCollapsed||t.collapsed===Cs.PreserveOrExpanded?o=i.collapsed:t.collapsed===Cs.Collapsed?o=!0:t.collapsed===Cs.Expanded?o=!1:o=!!t.collapsed,{...t,collapsible:n,collapsed:o,children:this.preserveCollapseState(t.children)}})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}resort(e=null,t=!0){if(!this.sorter)return;let i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t),{})}resortChildren(e,t,i=!0){let n=[...e.children];return(t||i)&&(n=n.sort(this.sorter.compare.bind(this.sorter))),Me.map(n,o=>({element:o.element,collapsible:o.collapsible,collapsed:o.collapsed,children:this.resortChildren(o,t,!1)}))}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new ln(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}};function iE(s){let e=[s.element],t=s.incompressible||!1;return{element:{elements:e,incompressible:t},children:Me.map(Me.from(s.children),iE),collapsible:s.collapsible,collapsed:s.collapsed}}function nE(s){let e=[s.element],t=s.incompressible||!1,i,n;for(;[n,i]=Me.consume(Me.from(s.children),2),!(n.length!==1||n[0].incompressible);)s=n[0],e.push(s.element);return{element:{elements:e,incompressible:t},children:Me.map(Me.concat(n,i),nE),collapsible:s.collapsible,collapsed:s.collapsed}}function S7(s,e=0){let t;return e<s.element.elements.length-1?t=[S7(s,e+1)]:t=Me.map(Me.from(s.children),i=>S7(i,0)),e===0&&s.element.incompressible?{element:s.element.elements[e],children:t,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[e],children:t,collapsible:s.collapsible,collapsed:s.collapsed}}function Gq(s){return S7(s,0)}function Yq(s,e,t){return s.element===e?{...s,children:t}:{...s,children:Me.map(Me.from(s.children),i=>Yq(i,e,t))}}var lne=s=>({getId(e){return e.elements.map(t=>s.getId(t).toString()).join("\0")}}),x7=class{get onDidSpliceRenderedNodes(){return this.model.onDidSpliceRenderedNodes}get onDidSpliceModel(){return this.model.onDidSpliceModel}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new Rd(e,t),this.enabled=typeof t.compressionEnabled>"u"?!0:t.compressionEnabled,this.identityProvider=t.identityProvider}setChildren(e,t=Me.empty(),i){let n=i.diffIdentityProvider&&lne(i.diffIdentityProvider);if(e===null){let g=Me.map(t,this.enabled?nE:iE);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}let o=this.nodes.get(e);if(!o)throw new ln(this.user,"Unknown compressed tree node");let r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),c=Gq(r),d=Yq(c,e,t),h=(this.enabled?nE:iE)(d),u=i.diffIdentityProvider?((g,p)=>i.diffIdentityProvider.getId(g)===i.diffIdentityProvider.getId(p)):void 0;if(nt(h.element.elements,r.element.elements,u)){this._setChildren(o,h.children||Me.empty(),{diffIdentityProvider:n,diffDepth:1});return}let f=l.children.map(g=>g===r?h:g);this._setChildren(l.element,f,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let i=this.model.getNode().children,n=Me.map(i,Gq),o=Me.map(n,e?nE:iE);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){let n=new Set,o=a=>{for(let l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(let l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,{...i,onDidCreateNode:o,onDidDeleteNode:r})}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){let t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}resort(e=null,t=!0){let i=this.getCompressedNode(e);this.model.resort(i,t)}getCompressedNode(e){if(e===null)return null;let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return t}},cne=s=>s[s.length-1],L7=class s{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new s(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}};function dne(s,e){return{...e,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(s(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){let n=t.elements;for(let o=0;o<n.length-1;o++){let r=e.filter.filter(n[o],i);i=Ua(Nd(r)?r.visibility:r)}return e.filter.filter(n[n.length-1],i)}}}}var sE=class{get onDidSpliceModel(){return $.map(this.model.onDidSpliceModel,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidSpliceRenderedNodes(){return $.map(this.model.onDidSpliceRenderedNodes,({start:e,deleteCount:t,elements:i})=>({start:e,deleteCount:t,elements:i.map(n=>this.nodeMapper.map(n))}))}get onDidChangeCollapseState(){return $.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return $.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}constructor(e,t={}){this.rootRef=null,this.elementMapper=t.elementMapper||cne;let i=n=>this.elementMapper(n.elements);this.nodeMapper=new Au(n=>new L7(i,n)),this.model=new x7(e,dne(i,t))}setChildren(e,t=Me.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}resort(e=null,t=!0){return this.model.resort(e,t)}getCompressedTreeNode(e=null){return this.model.getNode(e)}};var hne=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pu=class extends jm{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=Me.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}resort(e,t=!0){this.model.resort(e,t)}hasElement(e){return this.model.has(e)}createModel(e,t){return new Rd(e,t)}},oE=class{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let o=this.stickyScrollDelegate.getCompressedNode(e);o||(o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),o.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement?.(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?.(e,t)??!1}};hne([dt],oE.prototype,"compressedTreeNodeProvider",null);var k7=class{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),e.length===0)return[];for(let n=0;n<e.length;n++){let o=e[n],r=o.position+o.height;if(n+1<e.length&&r+e[n+1].height>i||n>=t-1&&t<e.length){let l=e.slice(0,n),c=e.slice(n),d=this.compressStickyNodes(c);return[...l,d]}}return e}compressStickyNodes(e){if(e.length===0)throw new Error("Can't compress empty sticky nodes");let t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];let i=[];for(let c=0;c<e.length;c++){let d=e[c],h=t.getCompressedTreeNode(d.node.element);if(h.element){if(c!==0&&h.element.incompressible)break;i.push(...h.element.elements)}}if(i.length<2)return e[0];let n=e[e.length-1],o={elements:i,incompressible:!1},r={...n.node,children:[],element:o},a=new Proxy(e[0].node,{}),l={node:a,startIndex:e[0].startIndex,endIndex:n.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(a,r),l}};function une(s,e){return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=s().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}}}var Zm=class extends Pu{constructor(e,t,i,n,o={}){let r=()=>this,a=new k7(()=>this.model),l=n.map(c=>new oE(r,a,c));super(e,t,i,l,{...une(r,o),stickyScrollDelegate:a})}setChildren(e,t=Me.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t){return new sE(e,t)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}};function D7(s){return{...s,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function E7(s,e){return e.parent?e.parent===s?!0:E7(s,e.parent):!1}function fne(s,e){return s===e||E7(s,e)||E7(e,s)}var T7=class s{get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new s(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}},N7=class{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Ce.asClassNameArray(Z.treeItemLoading)),!0):(t.classList.remove(...Ce.asClassNameArray(Z.treeItemLoading)),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}};function Zq(s){return{browserEvent:s.browserEvent,elements:s.elements.map(e=>e.element)}}function Qq(s){return{browserEvent:s.browserEvent,element:s.element&&s.element.element,target:s.target}}var M7=class extends oc{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}};function I7(s){return s instanceof oc?new M7(s):s}var R7=class{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart?.(I7(e),t)}onDragOver(e,t,i,n,o,r=!0){return this.dnd.onDragOver(I7(e),t&&t.element,i,n,o)}drop(e,t,i,n,o){this.dnd.drop(I7(e),t&&t.element,i,n,o)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}},A7=class extends V1{constructor(e,t,i){super(t,i),this.findProvider=e,this.isFindSessionActive=!1}filter(e,t){let i=super.filter(e,t);if(!this.isFindSessionActive||this.findMode===ys.Highlight||!this.findProvider.isVisible)return i;let n=Nd(i)?i.visibility:i;return Ua(n)===0?0:this.findProvider.isVisible(e)?i:0}},O7=class extends H1{constructor(e,t,i,n,o){super(e,i,n,o),this.findProvider=t,this.filter=i,this.activeSession=!1,this.asyncWorkInProgress=!1,this.disposables.add(j(async()=>{this.activeSession&&await this.findProvider.endSession?.()}))}render(){if(this.asyncWorkInProgress||!this.activeFindMetadata)return;let e=this.activeFindMetadata.matchCount===0&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.activeFindMetadata.matchCount)}shouldAllowFocus(e){return this.shouldFocusWhenNavigating(e)}shouldFocusWhenNavigating(e){if(!this.activeSession||!this.activeFindMetadata)return!0;let t=e.element?.element;return t&&this.activeFindMetadata.isMatch(t)?!0:!Ql.isDefault(e.filterData)}};function Xq(s){return s&&{...s,collapseByDefault:!0,identityProvider:s.identityProvider&&{getId(e){return s.identityProvider.getId(e.element)}},dnd:s.dnd&&new R7(s.dnd),multipleSelectionController:s.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return s.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return s.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:s.accessibilityProvider&&{...s.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:s.accessibilityProvider.getRole?e=>s.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:s.accessibilityProvider.isChecked?e=>!!s.accessibilityProvider?.isChecked(e.element):void 0,getAriaLabel(e){return s.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return s.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:s.accessibilityProvider.getWidgetRole?()=>s.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:s.accessibilityProvider.getAriaLevel&&(e=>s.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:s.accessibilityProvider.getActiveDescendantId&&(e=>s.accessibilityProvider.getActiveDescendantId(e.element))},filter:s.filter&&{filter(e,t){return s.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&{...s.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof s.expandOnlyOnTwistieClick>"u"?void 0:typeof s.expandOnlyOnTwistieClick!="function"?s.expandOnlyOnTwistieClick:(e=>s.expandOnlyOnTwistieClick(e.element)),defaultFindVisibility:e=>e.hasChildren&&e.stale?1:typeof s.defaultFindVisibility=="number"?s.defaultFindVisibility:typeof s.defaultFindVisibility>"u"?2:s.defaultFindVisibility(e.element),stickyScrollDelegate:s.stickyScrollDelegate}}function P7(s,e){e(s),s.children.forEach(t=>P7(t,e))}var $1=class{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return $.map(this.tree.onDidChangeFocus,Zq)}get onDidChangeSelection(){return $.map(this.tree.onDidChangeSelection,Zq)}get onMouseDblClick(){return $.map(this.tree.onMouseDblClick,Qq)}get onPointer(){return $.map(this.tree.onPointer,Qq)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new E,this._onDidChangeNodeSlowState=new E,this.nodeMapper=new Au(c=>new T7(c)),this.disposables=new q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=c=>r.collapseByDefault?r.collapseByDefault(c)?Cs.PreserveOrCollapsed:Cs.PreserveOrExpanded:void 0;let a=!1,l;if(r.findProvider&&(r.findWidgetEnabled??!0)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider&&(a=!0,l=new A7(r.findProvider,r.keyboardNavigationLabelProvider,r.filter)),this.tree=this.createTree(e,t,i,n,{...r,findWidgetEnabled:!a,filter:l??r.filter}),this.root=D7({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables),a){let c={styles:r.findWidgetStyles,showNotFoundMessage:r.showNotFoundMessage,defaultFindMatchType:r.defaultFindMatchType,defaultFindMode:r.defaultFindMode};this.findController=this.disposables.add(new O7(this.tree,r.findProvider,l,this.tree.options.contextViewProvider,c)),this.focusNavigationFilter=d=>this.findController.shouldFocusWhenNavigating(d),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindOpenState=this.tree.onDidChangeFindOpenState,this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType}createTree(e,t,i,n,o){let r=new Km(i),a=n.map(c=>new N7(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=Xq(o)||{};return new Pu(e,t,r,a,l)}updateOptions(e={}){this.findController&&(e.defaultFindMode!==void 0&&(this.findController.mode=e.defaultFindMode),e.defaultFindMatchType!==void 0&&(this.findController.matchType=e.defaultFindMatchType)),this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.cancelAllRefreshPromises(),this.root.element=e;let i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)}cancelAllRefreshPromises(e=!1){this.refreshPromises.forEach(t=>t.cancel()),this.refreshPromises.clear(),e&&(this.subTreeRefreshPromises.forEach(t=>t.cancel()),this.subTreeRefreshPromises.clear())}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if(typeof this.root.element>"u")throw new ln(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await $.toPromise(this._onDidRender.event));let r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}let t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){let i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(typeof this.root.element>"u")throw new ln(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await $.toPromise(this._onDidRender.event));let i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(await i.refreshPromise,await $.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;let n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await i.refreshPromise,await $.toPromise(this._onDidRender.event)),n}setSelection(e,t){let i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){let i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){let t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){let t=this.nodes.get(e===this.root.element?null:e);if(!t){let i=this.identityProvider?.getId(e).toString();throw new ln(this.user,`Data tree node not found${i?`: ${i}`:""}`)}return t}async refreshAndRenderNode(e,t,i,n){this.disposables.isDisposed||(await this.refreshNode(e,t,i),!this.disposables.isDisposed&&this.render(e,i,n))}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach((o,r)=>{!n&&fne(r,e)&&(n=o.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,i);return}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n=iv(async()=>{let o=await this.doRefreshNode(e,t,i);e.stale=!1,await qd.settled(o.map(r=>this.doRefreshSubTree(r,t,i)))});return e.refreshPromise=n,this.subTreeRefreshPromises.set(e,n),n.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}),n}async doRefreshNode(e,t,i){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(Me.empty());else{let o=this.doGetChildren(e);if(Np(o))n=Promise.resolve(o);else{let r=Qr(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=o.finally(()=>r.cancel())}}try{let o=await n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),mc(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;let i=this.dataSource.getChildren(e.element);return Np(i)?this.processChildren(i):(t=iv(async()=>this.processChildren(await i)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Se))}setChildren(e,t,i,n){let o=[...t];if(e.children.length===0&&o.length===0)return[];let r=new Map,a=new Map;for(let d of e.children)r.set(d.element,d),this.identityProvider&&a.set(d.id,{node:d,collapsed:this.tree.hasElement(d)&&this.tree.isCollapsed(d)});let l=[],c=o.map(d=>{let h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){let p=D7({element:d,parent:e,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(d)});return h&&p.defaultCollapseState===Cs.PreserveOrExpanded&&l.push(p),p}let u=this.identityProvider.getId(d).toString(),f=a.get(u);if(f){let p=f.node;return r.delete(p.element),this.nodes.delete(p.element),this.nodes.set(d,p),p.element=d,p.hasChildren=h,i?f.collapsed?(p.children.forEach(_=>P7(_,w=>this.nodes.delete(w.element))),p.children.splice(0,p.children.length),p.stale=!0):l.push(p):h&&!f.collapsed&&l.push(p),p}let g=D7({element:d,parent:e,id:u,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(d)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(g),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(g),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1||h&&g.defaultCollapseState===Cs.PreserveOrExpanded)&&l.push(g),g});for(let d of r.values())P7(d,h=>this.nodes.delete(h.element));for(let d of c)this.nodes.set(d.element,d);return eh(e.children,0,e.children.length,c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].forceExpanded=!0,l.push(c[0])),l}render(e,t,i){let n=e.children.map(r=>this.asTreeElement(r,t)),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?Me.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}},F7=class s{get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new s(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}},B7=class{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Ce.asClassNameArray(Z.treeItemLoading)),!0):(t.classList.remove(...Ce.asClassNameArray(Z.treeItemLoading)),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=tt(this.disposables)}};function gne(s){let e=s&&Xq(s);return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(t){return s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}},stickyScrollDelegate:e.stickyScrollDelegate}}var rE=class extends $1{constructor(e,t,i,n,o,r,a={}){super(e,t,i,o,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new Au(l=>new F7(l)),this.filter=a.filter}createTree(e,t,i,n,o){let r=new Km(i),a=n.map(c=>new B7(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=gne(o)||{};return new Zm(e,t,r,a,l)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}render(e,t,i){if(!this.identityProvider)return super.render(e,t);let n=f=>this.identityProvider.getId(f).toString(),o=f=>{let g=new Set;for(let p of f){let _=this.tree.getCompressedTreeNode(p===this.root?null:p);if(_.element)for(let w of _.element.elements)g.add(n(w.element))}return g},r=o(this.tree.getSelection()),a=o(this.tree.getFocus());super.render(e,t,i);let l=this.getSelection(),c=!1,d=this.getFocus(),h=!1,u=f=>{let g=f.element;if(g)for(let p=0;p<g.elements.length;p++){let _=n(g.elements[p].element),w=g.elements[g.elements.length-1].element;r.has(_)&&l.indexOf(w)===-1&&(l.push(w),c=!0),a.has(_)&&d.indexOf(w)===-1&&(d.push(w),h=!0)}f.children.forEach(u)};u(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(l),h&&this.setFocus(d)}processChildren(e){return this.filter&&(e=Me.filter(e,t=>{let i=this.filter.filter(t,1),n=mne(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}};function mne(s){return typeof s=="boolean"?s?1:0:Nd(s)?Ua(s.visibility):Ua(s)}var aE=class extends jm{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t){return new Rd(e,t)}};new ae("isMac",be,m(1684,"Whether the operating system is macOS"));new ae("isLinux",Jt,m(1685,"Whether the operating system is Linux"));var wnt=new ae("isWindows",Wt,m(1686,"Whether the operating system is Windows")),vnt=new ae("isWeb",Us,m(1687,"Whether the platform is a web browser"));new ae("isMacNative",be&&!Us,m(1688,"Whether the operating system is macOS on a non-browser platform"));new ae("isIOS",ss,m(1689,"Whether the operating system is iOS"));new ae("isMobile",Mw,m(1690,"Whether the platform is a mobile web browser"));new ae("isDevelopment",!1,!0);new ae("productQualityType","",m(1691,"Quality type of VS Code"));var W7="inputFocus",lE=new ae(W7,!1,m(1692,"Whether keyboard focus is inside an input box"));var dc=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ct=function(s,e){return function(t,i){e(t,i,s)}},Br=oe("listService"),dE=class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new q,this.lists=[],this._lastFocusedWidget=void 0}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");let i={widget:e,extraContextKeys:t};return this.lists.push(i),Nf(e.getHTMLElement())&&this.setLastFocusedList(e),Ln(e.onDidFocus(()=>this.setLastFocusedList(e)),j(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}},q1=new ae("listScrollAtBoundary","none");Ee.or(q1.isEqualTo("top"),q1.isEqualTo("both"));Ee.or(q1.isEqualTo("bottom"),q1.isEqualTo("both"));var rK=new ae("listFocus",!0),aK=new ae("treestickyScrollFocused",!1),_E=new ae("listSupportsMultiselect",!0),znt=Ee.and(rK,Ee.not(W7),aK.negate()),U7=new ae("listHasSelectionOrFocus",!1),$7=new ae("listDoubleSelection",!1),q7=new ae("listMultiSelection",!1),bE=new ae("listSelectionNavigation",!1),pne=new ae("listSupportsFind",!0),_ne=new ae("treeElementCanCollapse",!1),bne=new ae("treeElementHasParent",!1),wne=new ae("treeElementCanExpand",!1),vne=new ae("treeElementHasChild",!1),Cne=new ae("treeFindOpen",!1),lK="listTypeNavigationMode",cK="listAutomaticKeyboardNavigation";function wE(s,e){let t=s.createScoped(e.getHTMLElement());return rK.bindTo(t),t}function vE(s,e){let t=q1.bindTo(s),i=()=>{let n=e.scrollTop===0,o=e.scrollHeight-e.renderHeight-e.scrollTop<1;n&&o?t.set("both"):n?t.set("top"):o?t.set("bottom"):t.set("none")};return i(),e.onDidScroll(i)}var Bu="workbench.list.multiSelectModifier",cE="workbench.list.openMode",Oo="workbench.list.horizontalScrolling",K7="workbench.list.defaultFindMode",j7="workbench.list.typeNavigationMode",hE="workbench.list.keyboardNavigation",Pr="workbench.list.scrollByPage",G7="workbench.list.defaultFindMatchType",K1="workbench.tree.indent",uE="workbench.tree.renderIndentGuides",Fr="workbench.list.smoothScrolling",$a="workbench.list.mouseWheelScrollSensitivity",qa="workbench.list.fastScrollSensitivity",fE="workbench.tree.expandMode",gE="workbench.tree.enableStickyScroll",mE="workbench.tree.stickyScrollMaxItemCount";function Ka(s){return s.getValue(Bu)==="alt"}var V7=class extends N{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Ka(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Bu)&&(this.useAltAsMultipleSelectionModifier=Ka(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:eP(e)}isSelectionRangeChangeEvent(e){return tP(e)}};function CE(s,e){let t=s.get(Ue),i=s.get(It),n=new q;return[{...e,keyboardNavigationDelegate:{mightProducePrintableCharacter(r){return i.mightProducePrintableCharacter(r)}},smoothScrolling:!!t.getValue(Fr),mouseWheelScrollSensitivity:t.getValue($a),fastScrollSensitivity:t.getValue(qa),multipleSelectionController:e.multipleSelectionController??n.add(new V7(t)),keyboardNavigationEventFilter:yne(i),scrollByPage:!!t.getValue(Pr)},n]}var Jq=class extends An{constructor(e,t,i,n,o,r,a,l,c){let d=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(Oo),[h,u]=c.invokeFunction(CE,o);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(u),this.contextKeyService=wE(r,this),this.disposables.add(vE(this.contextKeyService,this)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.listDoubleSelection=$7.bindTo(this.contextKeyService),this.listMultiSelection=q7.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ka(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let g=this.getSelection(),p=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(g.length>0||p.length>0),this.listMultiSelection.set(g.length>1),this.listDoubleSelection.set(g.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let g=this.getSelection(),p=this.getFocus();this.listHasSelectionOrFocus.set(g.length>0||p.length>0)})),this.disposables.add(l.onDidChangeConfiguration(g=>{g.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(l));let p={};if(g.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let _=!!l.getValue(Oo);p={...p,horizontalScrolling:_}}if(g.affectsConfiguration(Pr)){let _=!!l.getValue(Pr);p={...p,scrollByPage:_}}if(g.affectsConfiguration(Fr)){let _=!!l.getValue(Fr);p={...p,smoothScrolling:_}}if(g.affectsConfiguration($a)){let _=l.getValue($a);p={...p,mouseWheelScrollSensitivity:_}}if(g.affectsConfiguration(qa)){let _=l.getValue(qa);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new pE(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}};Jq=dc([Ct(5,xe),Ct(6,Br),Ct(7,Ue),Ct(8,ue)],Jq);var eK=class extends QI{constructor(e,t,i,n,o,r,a,l,c){let d=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(Oo),[h,u]=c.invokeFunction(CE,o);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables=new q,this.disposables.add(u),this.contextKeyService=wE(r,this),this.disposables.add(vE(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this._useAltAsMultipleSelectionModifier=Ka(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration(g=>{g.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(l));let p={};if(g.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let _=!!l.getValue(Oo);p={...p,horizontalScrolling:_}}if(g.affectsConfiguration(Pr)){let _=!!l.getValue(Pr);p={...p,scrollByPage:_}}if(g.affectsConfiguration(Fr)){let _=!!l.getValue(Fr);p={...p,smoothScrolling:_}}if(g.affectsConfiguration($a)){let _=l.getValue($a);p={...p,mouseWheelScrollSensitivity:_}}if(g.affectsConfiguration(qa)){let _=l.getValue(qa);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new pE(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}dispose(){this.disposables.dispose(),super.dispose()}};eK=dc([Ct(5,xe),Ct(6,Br),Ct(7,Ue),Ct(8,ue)],eK);var tK=class extends tE{constructor(e,t,i,n,o,r,a,l,c,d){let h=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:!!c.getValue(Oo),[u,f]=d.invokeFunction(CE,r);super(e,t,i,n,o,{keyboardSupport:!1,...u,horizontalScrolling:h}),this.disposables.add(f),this.contextKeyService=wE(a,this),this.disposables.add(vE(this.contextKeyService,this)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!r.selectionNavigation),this.listHasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.listDoubleSelection=$7.bindTo(this.contextKeyService),this.listMultiSelection=q7.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ka(c),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let p=this.getSelection(),_=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(p.length>0||_.length>0),this.listMultiSelection.set(p.length>1),this.listDoubleSelection.set(p.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let p=this.getSelection(),_=this.getFocus();this.listHasSelectionOrFocus.set(p.length>0||_.length>0)})),this.disposables.add(c.onDidChangeConfiguration(p=>{p.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(c));let _={};if(p.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let w=!!c.getValue(Oo);_={..._,horizontalScrolling:w}}if(p.affectsConfiguration(Pr)){let w=!!c.getValue(Pr);_={..._,scrollByPage:w}}if(p.affectsConfiguration(Fr)){let w=!!c.getValue(Fr);_={..._,smoothScrolling:w}}if(p.affectsConfiguration($a)){let w=c.getValue($a);_={..._,mouseWheelScrollSensitivity:w}}if(p.affectsConfiguration(qa)){let w=c.getValue(qa);_={..._,fastScrollSensitivity:w}}Object.keys(_).length>0&&this.updateOptions(_)})),this.navigator=new H7(this,{configurationService:c,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}dispose(){this.disposables.dispose(),super.dispose()}};tK=dc([Ct(6,xe),Ct(7,Br),Ct(8,Ue),Ct(9,ue)],tK);var j1=class extends N{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new E),this.onDidOpen=this._onDidOpen.event,this._register($.filter(this.widget.onDidChangeSelection,i=>vo(i.browserEvent))(i=>this.onSelectionFromKeyboard(i))),this._register(this.widget.onPointer(i=>this.onPointer(i.element,i.browserEvent))),this._register(this.widget.onMouseDblClick(i=>this.onMouseDblClick(i.element,i.browserEvent))),typeof t?.openOnSingleClick!="boolean"&&t?.configurationService?(this.openOnSingleClick=t?.configurationService.getValue(cE)!=="doubleClick",this._register(t?.configurationService.onDidChangeConfiguration(i=>{i.affectsConfiguration(cE)&&(this.openOnSingleClick=t?.configurationService.getValue(cE)!=="doubleClick")}))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;let t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;let n=t.button===1,o=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}onMouseDblClick(e,t){if(!t)return;let i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;let o=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}},pE=class extends j1{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}},H7=class extends j1{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}},z7=class extends j1{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}};function yne(s){let e=!1;return t=>{if(t.toKeyCodeChord().isModifierKey())return!1;if(e)return e=!1,!1;let i=s.softDispatch(t,t.target);return i.kind===1?(e=!0,!1):(e=!1,i.kind===0)}}var Qm=class extends Pu{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,a,l,c){let{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(G1,o);super(e,t,i,n,d),this.disposables.add(u),this.internals=new Fu(this,o,h,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};Qm=dc([Ct(5,ue),Ct(6,xe),Ct(7,Br),Ct(8,Ue)],Qm);var iK=class extends Zm{constructor(e,t,i,n,o,r,a,l,c){let{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(G1,o);super(e,t,i,n,d),this.disposables.add(u),this.internals=new Fu(this,o,h,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};iK=dc([Ct(5,ue),Ct(6,xe),Ct(7,Br),Ct(8,Ue)],iK);var nK=class extends aE{constructor(e,t,i,n,o,r,a,l,c,d){let{options:h,getTypeNavigationMode:u,disposable:f}=a.invokeFunction(G1,r);super(e,t,i,n,o,h),this.disposables.add(f),this.internals=new Fu(this,r,u,r.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles!==void 0&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};nK=dc([Ct(6,ue),Ct(7,xe),Ct(8,Br),Ct(9,Ue)],nK);var sK=class extends $1{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,a,l,c,d){let{options:h,getTypeNavigationMode:u,disposable:f}=a.invokeFunction(G1,r);super(e,t,i,n,o,h),this.disposables.add(f),this.internals=new Fu(this,r,u,r.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};sK=dc([Ct(6,ue),Ct(7,xe),Ct(8,Br),Ct(9,Ue)],sK);var oK=class extends rE{constructor(e,t,i,n,o,r,a,l,c,d,h){let{options:u,getTypeNavigationMode:f,disposable:g}=l.invokeFunction(G1,a);super(e,t,i,n,o,r,u),this.disposables.add(g),this.internals=new Fu(this,a,f,a.overrideStyles,c,d,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};oK=dc([Ct(7,ue),Ct(8,xe),Ct(9,Br),Ct(10,Ue)],oK);function dK(s){let e=s.getValue(K7);if(e==="highlight")return ys.Highlight;if(e==="filter")return ys.Filter;let t=s.getValue(hE);if(t==="simple"||t==="highlight")return ys.Highlight;if(t==="filter")return ys.Filter}function hK(s){let e=s.getValue(G7);if(e==="fuzzy")return ar.Fuzzy;if(e==="contiguous")return ar.Contiguous}function G1(s,e){let t=s.get(Ue),i=s.get(Yl),n=s.get(xe),o=s.get(ue),r=()=>{let u=n.getContextKeyValue(lK);if(u==="automatic")return Rr.Automatic;if(u==="trigger")return Rr.Trigger;if(n.getContextKeyValue(cK)===!1)return Rr.Trigger;let g=t.getValue(j7);if(g==="automatic")return Rr.Automatic;if(g==="trigger")return Rr.Trigger},a=e.horizontalScrolling!==void 0?e.horizontalScrolling:!!t.getValue(Oo),[l,c]=o.invokeFunction(CE,e),d=e.paddingBottom,h=e.renderIndentGuides!==void 0?e.renderIndentGuides:t.getValue(uE);return{getTypeNavigationMode:r,disposable:c,options:{keyboardSupport:!1,...l,indent:typeof t.getValue(K1)=="number"?t.getValue(K1):void 0,renderIndentGuides:h,smoothScrolling:!!t.getValue(Fr),defaultFindMode:e.defaultFindMode??dK(t),defaultFindMatchType:e.defaultFindMatchType??hK(t),horizontalScrolling:a,scrollByPage:!!t.getValue(Pr),paddingBottom:d,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:e.expandOnlyOnTwistieClick??t.getValue(fE)==="doubleClick",contextViewProvider:i,findWidgetStyles:R$,enableStickyScroll:!!t.getValue(gE),stickyScrollMaxItemCount:Number(t.getValue(mE))}}}var Fu=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,r,a){this.tree=e,this.disposables=[],this.contextKeyService=wE(o,e),this.disposables.push(vE(this.contextKeyService,e)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.listSupportFindWidget=pne.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.hasDoubleSelection=$7.bindTo(this.contextKeyService),this.hasMultiSelection=q7.bindTo(this.contextKeyService),this.treeElementCanCollapse=_ne.bindTo(this.contextKeyService),this.treeElementHasParent=bne.bindTo(this.contextKeyService),this.treeElementCanExpand=wne.bindTo(this.contextKeyService),this.treeElementHasChild=vne.bindTo(this.contextKeyService),this.treeFindOpen=Cne.bindTo(this.contextKeyService),this.treeStickyScrollFocused=aK.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Ka(a),this.updateStyleOverrides(n);let c=()=>{let h=e.getFocus()[0];if(!h)return;let u=e.getNode(h);this.treeElementCanCollapse.set(u.collapsible&&!u.collapsed),this.treeElementHasParent.set(!!e.getParentElement(h)),this.treeElementCanExpand.set(u.collapsible&&u.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(h))},d=new Set;d.add(lK),d.add(cK),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{let h=e.getSelection(),u=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(h.length>0||u.length>0),this.hasMultiSelection.set(h.length>1),this.hasDoubleSelection.set(h.length===2)})}),e.onDidChangeFocus(()=>{let h=e.getSelection(),u=e.getFocus();this.hasSelectionOrFocus.set(h.length>0||u.length>0),c()}),e.onDidChangeCollapseState(c),e.onDidChangeModel(c),e.onDidChangeFindOpenState(h=>this.treeFindOpen.set(h)),e.onDidChangeStickyScrollFocused(h=>this.treeStickyScrollFocused.set(h)),a.onDidChangeConfiguration(h=>{let u={};if(h.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(a)),h.affectsConfiguration(K1)){let f=a.getValue(K1);u={...u,indent:f}}if(h.affectsConfiguration(uE)&&t.renderIndentGuides===void 0){let f=a.getValue(uE);u={...u,renderIndentGuides:f}}if(h.affectsConfiguration(Fr)){let f=!!a.getValue(Fr);u={...u,smoothScrolling:f}}if(h.affectsConfiguration(K7)||h.affectsConfiguration(hE)){let f=dK(a);u={...u,defaultFindMode:f}}if(h.affectsConfiguration(j7)||h.affectsConfiguration(hE)){let f=i();u={...u,typeNavigationMode:f}}if(h.affectsConfiguration(G7)){let f=hK(a);u={...u,defaultFindMatchType:f}}if(h.affectsConfiguration(Oo)&&t.horizontalScrolling===void 0){let f=!!a.getValue(Oo);u={...u,horizontalScrolling:f}}if(h.affectsConfiguration(Pr)){let f=!!a.getValue(Pr);u={...u,scrollByPage:f}}if(h.affectsConfiguration(fE)&&t.expandOnlyOnTwistieClick===void 0&&(u={...u,expandOnlyOnTwistieClick:a.getValue(fE)==="doubleClick"}),h.affectsConfiguration(gE)){let f=a.getValue(gE);u={...u,enableStickyScroll:f}}if(h.affectsConfiguration(mE)){let f=Math.max(1,a.getValue(mE));u={...u,stickyScrollMaxItemCount:f}}if(h.affectsConfiguration($a)){let f=a.getValue($a);u={...u,mouseWheelScrollSensitivity:f}}if(h.affectsConfiguration(qa)){let f=a.getValue(qa);u={...u,fastScrollSensitivity:f}}Object.keys(u).length>0&&e.updateOptions(u)}),this.contextKeyService.onDidChangeContext(h=>{h.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new z7(e,{configurationService:a,...t}),this.disposables.push(this.navigator)}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?ku(e):Nm)}dispose(){this.disposables=tt(this.disposables)}};Fu=dc([Ct(4,xe),Ct(5,Br),Ct(6,Ue)],Fu);var Sne=ct.as(xo.Configuration);Sne.registerConfiguration({id:"workbench",order:7,title:m(1705,"Workbench"),type:"object",properties:{[Bu]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[m(1706,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),m(1707,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:m(1708,"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[cE]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m(1709,"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Oo]:{type:"boolean",default:!1,description:m(1710,"Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Pr]:{type:"boolean",default:!1,description:m(1711,"Controls whether clicks in the scrollbar scroll page by page.")},[K1]:{type:"number",default:8,minimum:4,maximum:40,description:m(1712,"Controls tree indentation in pixels.")},[uE]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:m(1713,"Controls whether the tree should render indent guides.")},[Fr]:{type:"boolean",default:!1,description:m(1714,"Controls whether lists and trees have smooth scrolling.")},[$a]:{type:"number",default:1,markdownDescription:m(1715,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[qa]:{type:"number",default:5,markdownDescription:m(1716,"Scrolling speed multiplier when pressing `Alt`.")},[K7]:{type:"string",enum:["highlight","filter"],enumDescriptions:[m(1717,"Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),m(1718,"Filter elements when searching.")],default:"highlight",description:m(1719,"Controls the default find mode for lists and trees in the workbench.")},[hE]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[m(1720,"Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),m(1721,"Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),m(1722,"Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:m(1723,"Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:m(1724,"Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[G7]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[m(1725,"Use fuzzy matching when searching."),m(1726,"Use contiguous matching when searching.")],default:"fuzzy",description:m(1727,"Controls the type of matching used when searching lists and trees in the workbench.")},[fE]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m(1728,"Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[gE]:{type:"boolean",default:!0,description:m(1729,"Controls whether sticky scrolling is enabled in trees.")},[mE]:{type:"number",minimum:1,default:7,markdownDescription:m(1730,"Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[j7]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:m(1731,"Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}});var kE=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Y7=function(s,e){return function(t,i){e(t,i,s)}},Z7,ja=ie,yE=class{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new ii(()=>{let n=i.label??"",o=Xl(n).text.trim(),r=i.ariaLabel||[n,this.saneDescription,this.saneDetail].map(a=>ck(a)).filter(a=>!!a).join(", ");return{saneLabel:n,saneSortLabel:o,saneAriaLabel:r}}),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}},Bi=class extends yE{constructor(e,t,i,n,o,r,a){super(e,i,r),this.childIndex=t,this.fireButtonTriggered=n,this._onChecked=o,this.item=r,this._separator=a,this._checked=!1,this.onChecked=i?$.map($.filter(this._onChecked.event,l=>l.element===this),l=>l.checked):$.None,this._saneDetail=r.detail,this._labelHighlights=r.highlights?.label,this._descriptionHighlights=r.highlights?.description,this._detailHighlights=r.highlights?.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}},Ga;(function(s){s[s.NONE=0]="NONE",s[s.MOUSE_HOVER=1]="MOUSE_HOVER",s[s.ACTIVE_ITEM=2]="ACTIVE_ITEM"})(Ga||(Ga={}));var hc=class extends yE{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ga.NONE}},Q7=class{getHeight(e){return e instanceof hc?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Bi?xE.ID:LE.ID}},X7=class{getWidgetAriaLabel(){return m(1770,"Quick Input")}getAriaLabel(e){return e.separator?.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!(!e.hasCheckbox||!(e instanceof Bi)))return{get value(){return e.checked},onDidChange:t=>e.onChecked(()=>t())}}},SE=class{constructor(e){this.hoverDelegate=e}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=new q,t.toDisposeTemplate=new q,t.entry=ee(e,ja(".quick-input-list-entry"));let i=ee(t.entry,ja("label.quick-input-list-label"));t.outerLabel=i,t.checkbox=t.toDisposeTemplate.add(new Ze),t.toDisposeTemplate.add(Mt(i,K.CLICK,c=>{if(t.checkbox.value&&!c.defaultPrevented&&t.checkbox.value.enabled){let d=!t.checkbox.value.checked;t.checkbox.value.checked=d,t.element.checked=d}}));let n=ee(i,ja(".quick-input-list-rows")),o=ee(n,ja(".quick-input-list-row")),r=ee(n,ja(".quick-input-list-row"));t.label=new Ru(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=wl(t.label.element,ja(".quick-input-list-icon"));let a=ee(o,ja(".quick-input-list-entry-keybinding"));t.keybinding=new KI(a,Cn),t.toDisposeTemplate.add(t.keybinding);let l=ee(r,ja(".quick-input-list-label-meta"));return t.detail=new Ru(l,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=ee(t.entry,ja(".quick-input-list-separator")),t.actionBar=new rn(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}},xE=class extends SE{static{Z7=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Z7.ID}ensureCheckbox(e,t){if(!e.hasCheckbox){t.checkbox.value?.domNode.remove(),t.checkbox.clear();return}let i=t.checkbox.value;i?i.setTitle(e.saneLabel):(i=new O1(e.saneLabel,e.checked,{...Tm,size:15}),t.checkbox.value=i,t.outerLabel.prepend(i.domNode)),e.checkboxDisabled?i.disable():i.enable(),i.checked=e.checked,t.toDisposeElement.add(e.onChecked(n=>i.checked=n)),t.toDisposeElement.add(i.onChange(()=>e.checked=i.checked))}renderElement(e,t,i){let n=e.element;i.element=n,n.element=i.entry??void 0;let o=n.item;n.element.classList.toggle("not-pickable",n.item.pickable===!1),this.ensureCheckbox(n,i);let{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=n;if(o.iconPath){let u=Jo(this.themeService.getColorTheme().type)?o.iconPath.dark:o.iconPath.light??o.iconPath.dark,f=ge.revive(u);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=_s(f)}else i.icon.style.backgroundImage="",i.icon.className=o.iconClass?`quick-input-list-icon ${o.iconClass}`:"";let c;!n.saneTooltip&&n.saneDescription&&(c={markdown:{value:Fn(n.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDescription});let d={matches:r||[],descriptionTitle:c,descriptionMatches:a||[],labelEscapeNewLines:!0};if(d.extraClasses=o.iconClasses,d.italic=o.italic,d.strikethrough=o.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(n.saneLabel,n.saneDescription,d),i.keybinding.set(o.keybinding),n.saneDetail){let u;n.saneTooltip||(u={markdown:{value:Fn(n.saneDetail),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(n.saneDetail,void 0,{matches:l,title:u,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";n.separator?.label?(i.separator.textContent=n.separator.label,i.separator.style.display="",this.addItemWithSeparator(n)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!n.separator&&n.childIndex!==0);let h=o.buttons;h&&h.length?(i.actionBar.push(h.map((u,f)=>ac(u,`id-${f}`,()=>n.fireButtonTriggered({button:u,item:n.item}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){let t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};xE=Z7=kE([Y7(1,Qt)],xE);var LE=class s extends SE{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return s.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){let n=e.element;i.element=n,n.element=i.entry??void 0,n.element.classList.toggle("focus-inside",!!n.focusInsideSeparator);let o=n.separator,{labelHighlights:r,descriptionHighlights:a}=n;i.icon.style.backgroundImage="",i.icon.className="";let l;!n.saneTooltip&&n.saneDescription&&(l={markdown:{value:Fn(n.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDescription});let c={matches:r||[],descriptionTitle:l,descriptionMatches:a||[],labelEscapeNewLines:!0};i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(n.saneLabel,n.saneDescription,c),i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");let d=o.buttons;d&&d.length?(i.actionBar.push(d.map((h,u)=>ac(h,`id-${u}`,()=>n.fireSeparatorButtonTriggered({button:h,separator:n.separator}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(n)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||e.element.element?.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){let t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}},Xm=class extends N{constructor(e,t,i,n,o,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new E,this._onLeave=new E,this.onLeave=this._onLeave.event,this._visibleCountObservable=fe("VisibleCount",0),this.onChangedVisibleCount=$.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=fe("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=$.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=fe("CheckedCount",0),this.onChangedCheckedCount=$.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=ld({equalsFn:nt},new Array),this.onChangedCheckedElements=$.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new E,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new E,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new E,this._elementCheckedEventBufferer=new Wo,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new q),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=ee(this.parent,ja(".quick-input-list")),this._separatorRenderer=new LE(t),this._itemRenderer=o.createInstance(xE,t),this._tree=this._register(o.createInstance(Qm,"QuickInput",this._container,new Q7,[this._itemRenderer,this._separatorRenderer],{filter:{filter(a){return a.hidden?0:a instanceof hc?2:1}},sorter:{compare:(a,l)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;let c=this._lastQueryString.toLowerCase();return Lne(a,l,c)}},accessibilityProvider:new X7,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:lc.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return $.map(this._tree.onDidChangeFocus,e=>e.elements.filter(t=>t instanceof Bi).map(t=>t.item),this._store)}get onDidChangeSelection(){return $.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(t=>t instanceof Bi).map(t=>t.item),event:e.browserEvent}),this._store)}get displayed(){return this._container.style.display!=="none"}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(e=>{let t=new Re(e);switch(t.keyCode){case 10:this.toggleCheckbox();break}this._onKeyDown.fire(t)}))}_registerOnContainerClick(){this._register(O(this._container,K.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(O(this._container,K.AUXCLICK,e=>{e.button===1&&this._onLeave.fire()}))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel(()=>{let e=this._itemElements.filter(t=>!t.hidden).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()}))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,(e,t)=>t)(e=>this._updateCheckedObservables()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))}))}_registerHoverListeners(){let e=this._register(new uf(typeof this.hoverDelegate.delay=="function"?this.hoverDelegate.delay():this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{if(Bv(t.browserEvent.target)){e.cancel();return}if(!(!Bv(t.browserEvent.relatedTarget)&&Nt(t.browserEvent.relatedTarget,t.element?.element)))try{await e.trigger(async()=>{t.element instanceof Bi&&this.showHover(t.element)})}catch(i){if(!mc(i))throw i}})),this._register(this._tree.onMouseOut(t=>{Nt(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let i of this._separatorRenderer.visibleSeparators){let n=i===t;!!(i.focusInsideSeparator&Ga.ACTIVE_ITEM)!==n&&(n?i.focusInsideSeparator|=Ga.ACTIVE_ITEM:i.focusInsideSeparator&=~Ga.ACTIVE_ITEM,this._tree.rerender(i))}})),this._register(this._tree.onMouseOver(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ga.MOUSE_HOVER)||(i.focusInsideSeparator|=Ga.MOUSE_HOVER,this._tree.rerender(i))}})),this._register(this._tree.onMouseOut(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ga.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ga.MOUSE_HOVER,this._tree.rerender(i))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let t=e.elements.filter(i=>i instanceof Bi);t.length!==e.elements.length&&(e.elements.length===1&&e.elements[0]instanceof hc&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))}))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents(()=>{this._itemElements.forEach(t=>{!t.hidden&&!t.checkboxDisabled&&t.item.pickable!==!1&&(t.checked=e)})})}setElements(e){this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes");let t;this._itemElements=new Array,this._elementTree=e.reduce((i,n,o)=>{let r;if(n.type==="separator"){if(!n.buttons)return i;t=new hc(o,a=>this._onSeparatorButtonTriggered.fire(a),n),r=t}else{let a=o>0?e[o-1]:void 0,l;a&&a.type==="separator"&&!a.buttons&&(l=a);let c=new Bi(o,t?.children?t.children.length:o,this._hasCheckboxes&&n.pickable!==!1,d=>this._onButtonTriggered.fire(d),this._elementChecked,n,l);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i},new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{let i=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),n=i?.parentNode;if(i&&n){let o=i.nextSibling;i.remove(),n.insertBefore(i,o)}},0)}setFocusedElements(e){let t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i).filter(i=>!i.hidden);if(this._tree.setFocus(t),e.length>0){let i=this._tree.getFocus()[0];i&&this._tree.reveal(i)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){let t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i);this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents(()=>{let t=new Set;for(let i of e)t.add(i);for(let i of this._itemElements)i.checked=t.has(i.item)})}focus(e){if(this._itemElements.length)switch(e===lt.Second&&this._itemElements.length<2&&(e=lt.First),e){case lt.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,t=>t.element instanceof Bi);break;case lt.Second:{this._tree.scrollTop=0;let t=!1;this._tree.focusFirst(void 0,i=>i.element instanceof Bi?t?!0:(t=!t,!1):!1);break}case lt.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,t=>t.element instanceof Bi);break;case lt.Next:{let t=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,n=>n.element instanceof Bi?(this._tree.reveal(n.element),!0):!1);let i=this._tree.getFocus();t.length&&t[0]===i[0]&&this._onLeave.fire();break}case lt.Previous:{let t=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,n=>{if(!(n.element instanceof Bi))return!1;let o=this._tree.getParentElement(n.element);return o===null||o.children[0]!==n.element?this._tree.reveal(n.element):this._tree.reveal(o),!0});let i=this._tree.getFocus();t.length&&t[0]===i[0]&&this._onLeave.fire();break}case lt.NextPage:this._tree.focusNextPage(void 0,t=>t.element instanceof Bi?(this._tree.reveal(t.element),!0):!1);break;case lt.PreviousPage:this._tree.focusPreviousPage(void 0,t=>{if(!(t.element instanceof Bi))return!1;let i=this._tree.getParentElement(t.element);return i===null||i.children[0]!==t.element?this._tree.reveal(t.element):this._tree.reveal(i),!0});break;case lt.NextSeparator:{let t=!1,i=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,o=>{if(t)return!0;if(o.element instanceof hc)t=!0,this._separatorRenderer.isSeparatorVisible(o.element)?this._tree.reveal(o.element.children[0]):this._tree.reveal(o.element,0);else if(o.element instanceof Bi){if(o.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(o.element)?this._tree.reveal(o.element):this._tree.reveal(o.element,0),!0;if(o.element===this._elementTree[0])return this._tree.reveal(o.element,0),!0}return!1});let n=this._tree.getFocus()[0];i===n&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,o=>o.element instanceof Bi));break}case lt.PreviousSeparator:{let t,i=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,n=>{if(n.element instanceof hc)i?t||(this._separatorRenderer.isSeparatorVisible(n.element)?this._tree.reveal(n.element):this._tree.reveal(n.element,0),t=n.element.children[0]):i=!0;else if(n.element instanceof Bi&&!t){if(n.element.separator)this._itemRenderer.isItemWithSeparatorVisible(n.element)?this._tree.reveal(n.element):this._tree.reveal(n.element,0),t=n.element;else if(n.element===this._elementTree[0])return this._tree.reveal(n.element,0),!0}return!1}),t&&this._tree.setFocus([t]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let t=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;let n=i.index&&this._inputElements[i.index-1];i.item&&(i.separator=n&&n.type==="separator"&&!n.buttons?n:void 0)});else{let i;this._itemElements.forEach(n=>{let o;this.matchOnLabelMode==="fuzzy"?o=this.matchOnLabel?mu(e,Xl(n.saneLabel))??void 0:void 0:o=this.matchOnLabel?xne(t,Xl(n.saneLabel))??void 0:void 0;let r=this.matchOnDescription?mu(e,Xl(n.saneDescription||""))??void 0:void 0,a=this.matchOnDetail?mu(e,Xl(n.saneDetail||""))??void 0:void 0;if(o||r||a?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=n.item?!n.item.alwaysShow:!0),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){let l=n.index&&this._inputElements[n.index-1]||void 0;l?.type==="separator"&&!l.buttons&&(i=l),i&&!n.hidden&&(n.separator=i,i=void 0)}})}return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents(()=>{let e=this._tree.getFocus().filter(i=>i instanceof Bi),t=this._allVisibleChecked(e);for(let i of e)i.checkboxDisabled||(i.checked=!t)})}style(e){this._tree.style(e)}toggleHover(){let e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof Bi))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(e);let t=new q;t.add(this._tree.onDidChangeFocus(i=>{i.elements[0]instanceof Bi&&this.showHover(i.elements[0])})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){let t=new Array;for(let i of e)i instanceof hc?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map(n=>({element:n,collapsible:!1,collapsed:!1}))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let o=e[i];if(!o.hidden&&o.item.pickable!==!1)if(o.checked)t=!0;else return!1}return t}_updateCheckedObservables(){rt(e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);let t=this._itemElements.filter(i=>i.checked).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)})}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),!(!e.element||!e.saneTooltip)&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:t=>{this.linkOpenerDelegate(t)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};kE([dt],Xm.prototype,"onDidChangeFocus",null);kE([dt],Xm.prototype,"onDidChangeSelection",null);Xm=kE([Y7(4,ue),Y7(5,ai)],Xm);function xne(s,e){let{text:t,iconOffsets:i}=e;if(!i||i.length===0)return uK(s,t);let n=cl(t," "),o=t.length-n.length,r=uK(s,n);if(r)for(let a of r){let l=i[a.start+o]+o;a.start+=l,a.end+=l}return r}function uK(s,e){let t=e.toLowerCase().indexOf(s.toLowerCase());return t!==-1?[{start:t,end:t+s.length}]:null}function Lne(s,e,t){let i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:$q(s.saneSortLabel,e.saneSortLabel,t)}function kne(s,e={}){ls.registerCommandAndKeybindingRule({weight:200,when:F1,metadata:{description:m(1758,"Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...s,secondary:J7(s.primary,s.secondary??[],e)})}function Ss(s,e={}){ls.registerCommandAndKeybindingRule({weight:200,when:Ee.and(Ee.or(Ee.equals($m,"quickPick"),Ee.equals($m,"quickTree")),F1),metadata:{description:m(1759,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...s,secondary:J7(s.primary,s.secondary??[],e)})}var Y1=be?256:2048;function J7(s,e,t={}){return t.withAltMod&&e.push(512+s),t.withCtrlMod&&(e.push(Y1+s),t.withAltMod&&e.push(512+Y1+s)),t.withCmdMod&&be&&(e.push(2048+s),t.withCtrlMod&&e.push(2304+s),t.withAltMod&&(e.push(2560+s),t.withCtrlMod&&e.push(2816+s))),e}function ho(s,e){return t=>{let i=t.get(rr).currentQuickInput;if(i)return e&&i.quickNavigate?i.focus(e):i.focus(s)}}Ss({id:"quickInput.pageNext",primary:12,handler:ho(lt.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.pagePrevious",primary:11,handler:ho(lt.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.first",primary:Y1+14,handler:ho(lt.First)},{withAltMod:!0,withCmdMod:!0});Ss({id:"quickInput.last",primary:Y1+13,handler:ho(lt.Last)},{withAltMod:!0,withCmdMod:!0});Ss({id:"quickInput.next",primary:18,handler:ho(lt.Next)},{withCtrlMod:!0});Ss({id:"quickInput.previous",primary:16,handler:ho(lt.Previous)},{withCtrlMod:!0});var fK=m(1760,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),gK=m(1761,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");be?(Ss({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:ho(lt.NextSeparator,lt.Next),metadata:{description:fK}}),Ss({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:ho(lt.NextSeparator)},{withCtrlMod:!0}),Ss({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:ho(lt.PreviousSeparator,lt.Previous),metadata:{description:gK}}),Ss({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:ho(lt.PreviousSeparator)},{withCtrlMod:!0})):(Ss({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:ho(lt.NextSeparator,lt.Next),metadata:{description:fK}}),Ss({id:"quickInput.nextSeparator",primary:2578,handler:ho(lt.NextSeparator)}),Ss({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:ho(lt.PreviousSeparator,lt.Previous),metadata:{description:gK}}),Ss({id:"quickInput.previousSeparator",primary:2576,handler:ho(lt.PreviousSeparator)}));ls.registerCommandAndKeybindingRule({id:"quickInput.accept",primary:3,weight:200,when:Ee.and(Ee.notEquals($m,"quickWidget"),F1,Ee.not("isComposing")),metadata:{description:m(1762,"Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},handler:s=>{s.get(rr).currentQuickInput?.accept()},secondary:J7(3,[],{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})});Ss({id:"quickInput.acceptInBackground",when:Ee.and(F1,Ee.equals($m,"quickPick"),Ee.or(lE.negate(),Oq)),primary:17,weight:250,handler:s=>{s.get(rr).currentQuickInput?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});kne({id:"quickInput.hide",primary:9,handler:s=>{s.get(rr).currentQuickInput?.hide()}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.toggleHover",primary:Y1|10,handler:s=>{s.get(rr).toggleHover()}});var Dne=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ine=function(s,e){return function(t,i){e(t,i,s)}},e3,Z1=ie,Jm=class extends N{static{e3=this}static{this.ID="quickInputTreeElement"}constructor(e,t,i,n){super(),this._hoverDelegate=e,this._buttonTriggeredEmitter=t,this.onCheckedEvent=i,this._themeService=n,this.templateId=e3.ID}renderTemplate(e){let t=new q,i=ee(e,Z1(".quick-input-tree-entry")),n=t.add(new zm("",!1,{...Tm,size:15}));i.appendChild(n.domNode);let o=ee(i,Z1("label.quick-input-tree-label")),r=ee(o,Z1(".quick-input-tree-rows")),a=ee(r,Z1(".quick-input-tree-row")),l=wl(a,Z1(".quick-input-tree-icon")),c=t.add(new Ru(a,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this._hoverDelegate})),d=t.add(new rn(i,this._hoverDelegate?{hoverDelegate:this._hoverDelegate}:void 0));return d.domNode.classList.add("quick-input-tree-entry-action-bar"),{toDisposeTemplate:t,entry:i,checkbox:n,icon:l,label:c,actionBar:d,toDisposeElement:new q}}renderElement(e,t,i,n){let o=i.toDisposeElement,r=e.element;if(r.pickable===!1?i.checkbox.domNode.style.display="none":(i.checkbox.domNode.style.display="",i.checkbox.checked=r.checked??!1,o.add($.filter(this.onCheckedEvent,h=>h.item===r)(h=>i.checkbox.checked=h.checked)),r.disabled&&i.checkbox.disable()),r.iconPath){let h=Jo(this._themeService.getColorTheme().type)?r.iconPath.dark:r.iconPath.light??r.iconPath.dark,u=ge.revive(h);i.icon.className="quick-input-tree-icon",i.icon.style.backgroundImage=_s(u)}else i.icon.style.backgroundImage="",i.icon.className=r.iconClass?`quick-input-tree-icon ${r.iconClass}`:"";let{labelHighlights:a,descriptionHighlights:l}=e.filterData||{},c;r.description&&(c={markdown:{value:Fn(r.description),supportThemeIcons:!0},markdownNotSupportedFallback:r.description}),i.label.setLabel(r.label,r.description,{matches:a,descriptionMatches:l,extraClasses:r.iconClasses,italic:r.italic,strikethrough:r.strikethrough,labelEscapeNewLines:!0,descriptionTitle:c});let d=r.buttons;d&&d.length?(i.actionBar.push(d.map((h,u)=>ac(h,`tree-${u}`,()=>this._buttonTriggeredEmitter.fire({item:r,button:h}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i,n){i.toDisposeElement.clear(),i.actionBar.clear()}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}};Jm=e3=Dne([Ine(3,Qt)],Jm);var DE=class{getHeight(e){return 22}getTemplateId(e){return Jm.ID}};function mK(s){let e=!1,t=!1,i=!1;for(let o of s){switch(o.element?.checked){case"mixed":i=!0;break;case!0:e=!0;break;default:t=!0;break}if(e&&t&&i)break}return t?i||e?"mixed":!1:i?"mixed":e}var IE=class{constructor(e){this.onCheckedEvent=e}getWidgetAriaLabel(){return m(1772,"Quick Tree")}getAriaLabel(e){return e.ariaLabel||[e.label,e.description].map(t=>ck(t)).filter(t=>!!t).join(", ")}getWidgetRole(){return"tree"}getRole(e){return"checkbox"}isChecked(e){return{get value(){return e.checked==="mixed"?"mixed":!!e.checked},onDidChange:t=>$.filter(this.onCheckedEvent,i=>i.item===e)(i=>t())}}};var EE=class{constructor(){this.filterValue="",this.matchOnLabel=!0,this.matchOnDescription=!1}filter(e,t){if(!this.filterValue||!(this.matchOnLabel||this.matchOnDescription))return e.children?{visibility:2,data:{}}:{visibility:1,data:{}};let i=this.matchOnLabel?mu(this.filterValue,Xl(e.label))??void 0:void 0,n=this.matchOnDescription?mu(this.filterValue,Xl(e.description||""))??void 0:void 0;return{visibility:t===1||i||n?1:e.children?2:0,data:{labelHighlights:i,descriptionHighlights:n}}}};var TE=class extends N{constructor(){super(...arguments),this._sortByLabel=!0}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}compare(e,t){if(!this._sortByLabel)return 0;if(e.label<t.label)return-1;if(e.label>t.label)return 1;if(e.description&&t.description){if(e.description<t.description)return-1;if(e.description>t.description)return 1}else{if(e.description)return-1;if(t.description)return 1}return 0}};var Ene=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Tne=function(s,e){return function(t,i){e(t,i,s)}},Nne=ie,NE=class extends N{constructor(e,t,i){super(),this.instantiationService=i,this._onDidTriggerButton=this._register(new E),this._onDidChangeCheckboxState=this._register(new E),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event,this._onDidCheckedLeafItemsChange=this._register(new E),this._onLeave=new E,this.onLeave=this._onLeave.event,this._onDidAccept=this._register(new E),this.onDidAccept=this._onDidAccept.event,this._container=ee(e,Nne(".quick-input-tree")),this._renderer=this._register(this.instantiationService.createInstance(Jm,t,this._onDidTriggerButton,this.onDidChangeCheckboxState)),this._filter=this.instantiationService.createInstance(EE),this._sorter=this._register(new TE),this._tree=this._register(this.instantiationService.createInstance(Qm,"QuickInputTree",this._container,new DE,[this._renderer],{accessibilityProvider:new IE(this.onDidChangeCheckboxState),horizontalScrolling:!1,multipleSelectionSupport:!1,findWidgetEnabled:!1,alwaysConsumeMouseWheel:!0,hideTwistiesOfChildlessElements:!0,renderIndentGuides:lc.None,expandOnDoubleClick:!0,expandOnlyOnTwistieClick:!0,disableExpandOnSpacebar:!0,sorter:this._sorter,filter:this._filter})),this.registerOnOpenListener()}get tree(){return this._tree}get displayed(){return this._container.style.display!=="none"}set displayed(e){this._container.style.display=e?"":"none"}get sortByLabel(){return this._sorter.sortByLabel}set sortByLabel(e){this._sorter.sortByLabel=e,this._tree.resort(null,!0)}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}updateFilterOptions(e){e.matchOnLabel!==void 0&&(this._filter.matchOnLabel=e.matchOnLabel),e.matchOnDescription!==void 0&&(this._filter.matchOnDescription=e.matchOnDescription),this._tree.refilter()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}registerOnOpenListener(){this._register(this._tree.onDidOpen(e=>{let t=e.element;if(!t||t.disabled)return;if(t.pickable===!1){this._tree.setFocus([t]),this._onDidAccept.fire();return}let i=t.checked!==!0;if((t.checked??!1)===i)return;t.checked=i,this._tree.rerender(t);let n=new Set,o=[...this._tree.getNode(t).children];for(;o.length;){let a=o.shift();a?.element&&!n.has(a.element)&&(n.add(a.element),(a.element.checked??!1)!==t.checked&&(a.element.checked=t.checked,this._tree.rerender(a.element)),o.push(...a.children))}let r=this._tree.getParentElement(t);for(;r;){let a=[...this._tree.getNode(r).children],l=mK(a);(r.checked??!1)!==l&&(r.checked=l,this._tree.rerender(r)),r=this._tree.getParentElement(r)}this._onDidChangeCheckboxState.fire({item:t,checked:t.checked??!1}),this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems())}))}getCheckedLeafItems(){let e=new Set,t=[...this._tree.getNode().children],i=new Array;for(;t.length;){let n=t.shift();!n?.element||e.has(n.element)||n.element.checked&&(e.add(n.element),t.push(...n.children),n.element.children||i.push(n.element))}return i}};NE=Ene([Tne(2,ue)],NE);var pK=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wu=function(s,e){return function(t,i){e(t,i,s)}},i3,uo=ie,t3="workbench.quickInput.viewState",ME=class extends N{static{i3=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,n,o){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.storageService=o,this.enabled=!0,this.onDidAcceptEmitter=this._register(new E),this.onDidCustomEmitter=this._register(new E),this.onDidTriggerButtonEmitter=this._register(new E),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new E),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new E),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=Tq.bindTo(n),this.quickInputTypeContext=Mq.bindTo(n),this.endOfQuickInputBoxContext=Aq.bindTo(n),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register($.runAndSubscribe(na,({window:r,disposables:a})=>this.registerKeyModsListeners(r,a),{window:Pe,disposables:this._store})),this._register(tN(r=>{this.ui&&J(this.ui.container)===r&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})),this.viewState=this.loadViewState()}registerKeyModsListeners(e,t){let i=n=>{this.keyMods.ctrlCmd=n.ctrlKey||n.metaKey,this.keyMods.alt=n.altKey};for(let n of[K.KEY_DOWN,K.KEY_UP,K.MOUSE_DOWN])t.add(O(e,n,i,!0))}getUI(e){if(this.ui)return e&&J(this._container)!==J(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let t=ee(this._container,uo(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";let i=Oi(t),n=ee(t,uo(".quick-input-titlebar")),o=this._register(new rn(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");let r=ee(n,uo(".quick-input-title")),a=this._register(new rn(n,{hoverDelegate:this.options.hoverDelegate}));a.domNode.classList.add("quick-input-right-action-bar");let l=ee(t,uo(".quick-input-header")),c=this._register(new zm(m(1763,"Toggle all checkboxes"),!1,{...Tm,size:15}));ee(l,c.domNode),this._register(c.onChange(()=>{let z=c.checked;R.setAllVisibleChecked(z===!0)})),this._register(O(c.domNode,K.CLICK,z=>{(z.x||z.y)&&f.setFocus()}));let d=ee(l,uo(".quick-input-description")),h=ee(l,uo(".quick-input-and-message")),u=ee(h,uo(".quick-input-filter")),f=this._register(new $I(u,this.styles.inputBox,this.styles.toggle));f.setAttribute("aria-describedby",`${this.idPrefix}message`);let g=ee(u,uo(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");let p=this._register(new B1(g,{countFormat:m(1764,"{0} Results")},this.styles.countBadge)),_=ee(u,uo(".quick-input-count"));_.setAttribute("aria-live","polite");let w=this._register(new B1(_,{countFormat:m(1765,"{0} Selected")},this.styles.countBadge)),b=this._register(new rn(l,{hoverDelegate:this.options.hoverDelegate}));b.domNode.classList.add("quick-input-inline-action-bar");let v=ee(l,uo(".quick-input-action")),C=this._register(new Nu(v,this.styles.button));C.label=m(1766,"OK"),this._register(C.onDidClick(z=>{this.onDidAcceptEmitter.fire()}));let S=ee(l,uo(".quick-input-action")),L=this._register(new Nu(S,{...this.styles.button,supportIcons:!0}));L.label=m(1767,"Custom"),this._register(L.onDidClick(z=>{this.onDidCustomEmitter.fire()}));let x=ee(h,uo(`#${this.idPrefix}message.quick-input-message`)),k=this._register(new PI(t,this.styles.progressBar));k.getContainer().classList.add("quick-input-progress");let I=ee(t,uo(".quick-input-html-widget"));I.tabIndex=-1;let A=ee(t,uo(".quick-input-description")),P=this.idPrefix+"list",R=this._register(this.instantiationService.createInstance(Xm,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,P));f.setAttribute("aria-controls",P),this._register(R.onDidChangeFocus(()=>{f.hasFocus()&&f.setAttribute("aria-activedescendant",R.getActiveDescendant()??"")})),this._register(R.onChangedAllVisibleChecked(z=>{c.checked=z})),this._register(R.onChangedVisibleCount(z=>{p.setCount(z)})),this._register(R.onChangedCheckedCount(z=>{Kr(()=>w.setCount(z))})),this._register(R.onLeave(()=>{setTimeout(()=>{this.controller&&(f.setFocus(),this.controller instanceof Um&&this.controller.canSelectMany&&R.clearFocus())},0)}));let F=this._register(this.instantiationService.createInstance(NE,t,this.options.hoverDelegate));this._register(F.tree.onDidChangeFocus(()=>{f.hasFocus()&&f.setAttribute("aria-activedescendant",F.getActiveDescendant()??"")})),this._register(F.onLeave(()=>{setTimeout(()=>{this.controller&&(f.setFocus(),F.tree.setFocus([]))},0)})),this._register(F.onDidAccept(()=>{this.onDidAcceptEmitter.fire()})),this._register(F.tree.onDidChangeContentHeight(()=>this.updateLayout()));let H=$o(t);return this._register(H),this._register(O(t,K.FOCUS,z=>{let G=this.getUI();if(Nt(z.relatedTarget,G.inputContainer)){let Y=G.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==Y&&this.endOfQuickInputBoxContext.set(Y)}Nt(z.relatedTarget,G.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=je(z.relatedTarget)?z.relatedTarget:void 0)},!0)),this._register(H.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(vu.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(f.onKeyDown(z=>{let G=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==G&&this.endOfQuickInputBoxContext.set(G),f.removeAttribute("aria-activedescendant")})),this._register(O(t,K.FOCUS,z=>{f.setFocus()})),this.dndController=this._register(this.instantiationService.createInstance(n3,this._container,t,[{node:n,includeChildren:!0},{node:l,includeChildren:!1}],this.viewState)),this._register(we(z=>{let G=this.dndController?.dndViewState.read(z);G&&(G.top!==void 0&&G.left!==void 0?this.viewState={...this.viewState,top:G.top,left:G.left}:this.viewState=void 0,this.updateLayout(),G.done&&this.saveViewState(this.viewState))})),this.ui={container:t,styleSheet:i,leftActionBar:o,titleBar:n,title:r,description1:A,description2:d,widget:I,rightActionBar:a,inlineActionBar:b,checkAll:c,inputContainer:h,filterContainer:u,inputBox:f,visibleCountContainer:g,visibleCount:p,countContainer:_,count:w,okContainer:v,ok:C,message:x,customButtonContainer:S,customButton:L,list:R,tree:F,progressBar:k,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:z=>this.show(z),hide:()=>this.hide(),setVisibilities:z=>this.setVisibilities(z),setEnabled:z=>this.setEnabled(z),setContextKey:z=>this.options.setContextKey(z),linkOpenerDelegate:z=>this.options.linkOpenerDelegate(z)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,ee(this._container,this.ui.container),this.dndController?.reparentUI(this._container))}pick(e,t={},i=cn.None){return new Promise((n,o)=>{let r=d=>{r=n,t.onKeyMods?.(a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}let a=this.createQuickPick({useSeparators:!0}),l,c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{let h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){let h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...d,removeItem:()=>{let h=a.items.indexOf(d.item);if(h!==-1){let u=a.items.slice(),f=u.splice(h,1),g=a.activeItems.filter(_=>_!==f[0]),p=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,g&&(a.activeItems=g),a.keepScrollPosition=p}}})),a.onDidTriggerSeparatorButton(d=>t.onDidTriggerSeparatorButton?.(d)),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{tt(c),r(void 0)})];a.title=t.title,t.value&&(a.value=t.value),a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.prompt=t.prompt,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,t.sortByLabel!==void 0&&(a.sortByLabel=t.sortByLabel),a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{o(d),a.hide()})})}setValidationOnInput(e,t){t&&Vt(t)?(e.severity=Dt.Error,e.validationMessage=t):t&&!Vt(t)?(e.severity=t.severity,e.validationMessage=t.content):(e.severity=Dt.Ignore,e.validationMessage=void 0)}input(e={},t=cn.None){return new Promise(i=>{if(t.isCancellationRequested){i(void 0);return}let n=this.createInputBox(),o=e.validateInput||(()=>Promise.resolve(void 0)),r=$.debounce(n.onDidChangeValue,(d,h)=>h,100),a=e.value||"",l=Promise.resolve(o(a)),c=[n,r(d=>{d!==a&&(l=Promise.resolve(o(d)),a=d),l.then(h=>{d===a&&this.setValidationOnInput(n,h)})}),n.onDidAccept(()=>{let d=n.value;d!==a&&(l=Promise.resolve(o(d)),a=d),l.then(h=>{!h||!Vt(h)&&h.severity!==Dt.Error?(i(d),n.hide()):d===a&&this.setValidationOnInput(n,h)})}),t.onCancellationRequested(()=>{n.hide()}),n.onDidHide(()=>{tt(c),i(void 0)})];n.title=e.title,n.value=e.value||"",n.valueSelection=e.valueSelection,n.prompt=e.prompt,n.placeholder=e.placeHolder,n.password=!!e.password,n.ignoreFocusOut=!!e.ignoreFocusLost,n.show()})}createQuickPick(e={useSeparators:!1}){let t=this.getUI(!0);return new Um(t)}createInputBox(){let e=this.getUI(!0);return new AI(e)}show(e){let t=this.getUI(!0);this.onShowEmitter.fire();let i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",Kt(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Dt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Kt(t.message),t.progressBar.stop(),t.progressBar.getContainer().setAttribute("aria-hidden","true"),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.tree.updateFilterOptions({matchOnDescription:!1,matchOnLabel:!0}),t.tree.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;let n=this.options.backKeybindingLabel();RI.tooltip=n?m(1768,"Back ({0})",n):m(1769,"Back"),t.container.style.display="",this.updateLayout(),this.dndController?.layoutContainer(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.domNode.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.tree.displayed=!!e.tree,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;let t=this.getUI();for(let i of t.leftActionBar.viewItems)i.action.enabled=e;for(let i of t.rightActionBar.viewItems)i.action.enabled=e;e?t.checkAll.enable():t.checkAll.disable(),t.inputBox.enabled=e,t.ok.enabled=e,t.list.enabled=e}}hide(e){let t=this.controller;if(!t)return;t.willHide(e);let i=this.ui?.container,n=i&&!o_(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!n){let o=this.previousFocusElement;for(;o&&!o.offsetParent;)o=o.parentElement??void 0;o?.offsetParent?(o.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}toggleHover(){this.isVisible()&&this.controller instanceof Um&&this.getUI().list.toggleHover()}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){let e=this.ui.container.style,t=Math.min(this.dimension.width*.62,i3.MAX_WIDTH);e.width=t+"px",e.top=`${this.viewState?.top?Math.round(this.dimension.height*this.viewState.top):this.titleBarOffset}px`,e.left=`${Math.round(this.dimension.width*(this.viewState?.left??.5)-t/2)}px`,this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4),this.ui.tree.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list),this.ui.tree.tree.style(this.styles.list);let r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));let a=r.join(`
|
|
818
|
+
`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}};var Rd=class{constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new jI(e,null,t),this.onDidSpliceModel=this.model.onDidSpliceModel,this.onDidSpliceRenderedNodes=this.model.onDidSpliceRenderedNodes,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare(i,n){return t.sorter.compare(i.element,n.element)}}),this.identityProvider=t.identityProvider}setChildren(e,t=Me.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=Me.empty(),i){let n=new Set,o=new Set,r=l=>{if(l.element===null)return;let c=l;if(n.add(c.element),this.nodes.set(c.element,c),this.identityProvider){let d=this.identityProvider.getId(c.element).toString();o.add(d),this.nodesByIdentity.set(d,c)}i.onDidCreateNode?.(c)},a=l=>{if(l.element===null)return;let c=l;if(n.has(c.element)||this.nodes.delete(c.element),this.identityProvider){let d=this.identityProvider.getId(c.element).toString();o.has(d)||this.nodesByIdentity.delete(d)}i.onDidDeleteNode?.(c)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:r,onDidDeleteNode:a})}preserveCollapseState(e=Me.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),Me.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){let r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i){let r;return typeof t.collapsed>"u"?r=void 0:t.collapsed===Cs.Collapsed||t.collapsed===Cs.PreserveOrCollapsed?r=!0:t.collapsed===Cs.Expanded||t.collapsed===Cs.PreserveOrExpanded?r=!1:r=!!t.collapsed,{...t,children:this.preserveCollapseState(t.children),collapsed:r}}let n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,o;return typeof t.collapsed>"u"||t.collapsed===Cs.PreserveOrCollapsed||t.collapsed===Cs.PreserveOrExpanded?o=i.collapsed:t.collapsed===Cs.Collapsed?o=!0:t.collapsed===Cs.Expanded?o=!1:o=!!t.collapsed,{...t,collapsible:n,collapsed:o,children:this.preserveCollapseState(t.children)}})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}resort(e=null,t=!0){if(!this.sorter)return;let i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t),{})}resortChildren(e,t,i=!0){let n=[...e.children];return(t||i)&&(n=n.sort(this.sorter.compare.bind(this.sorter))),Me.map(n,o=>({element:o.element,collapsible:o.collapsible,collapsed:o.collapsed,children:this.resortChildren(o,t,!1)}))}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new ln(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}};function iE(s){let e=[s.element],t=s.incompressible||!1;return{element:{elements:e,incompressible:t},children:Me.map(Me.from(s.children),iE),collapsible:s.collapsible,collapsed:s.collapsed}}function nE(s){let e=[s.element],t=s.incompressible||!1,i,n;for(;[n,i]=Me.consume(Me.from(s.children),2),!(n.length!==1||n[0].incompressible);)s=n[0],e.push(s.element);return{element:{elements:e,incompressible:t},children:Me.map(Me.concat(n,i),nE),collapsible:s.collapsible,collapsed:s.collapsed}}function S7(s,e=0){let t;return e<s.element.elements.length-1?t=[S7(s,e+1)]:t=Me.map(Me.from(s.children),i=>S7(i,0)),e===0&&s.element.incompressible?{element:s.element.elements[e],children:t,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[e],children:t,collapsible:s.collapsible,collapsed:s.collapsed}}function Gq(s){return S7(s,0)}function Yq(s,e,t){return s.element===e?{...s,children:t}:{...s,children:Me.map(Me.from(s.children),i=>Yq(i,e,t))}}var lne=s=>({getId(e){return e.elements.map(t=>s.getId(t).toString()).join("\0")}}),x7=class{get onDidSpliceRenderedNodes(){return this.model.onDidSpliceRenderedNodes}get onDidSpliceModel(){return this.model.onDidSpliceModel}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new Rd(e,t),this.enabled=typeof t.compressionEnabled>"u"?!0:t.compressionEnabled,this.identityProvider=t.identityProvider}setChildren(e,t=Me.empty(),i){let n=i.diffIdentityProvider&&lne(i.diffIdentityProvider);if(e===null){let g=Me.map(t,this.enabled?nE:iE);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}let o=this.nodes.get(e);if(!o)throw new ln(this.user,"Unknown compressed tree node");let r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),c=Gq(r),d=Yq(c,e,t),h=(this.enabled?nE:iE)(d),u=i.diffIdentityProvider?((g,p)=>i.diffIdentityProvider.getId(g)===i.diffIdentityProvider.getId(p)):void 0;if(nt(h.element.elements,r.element.elements,u)){this._setChildren(o,h.children||Me.empty(),{diffIdentityProvider:n,diffDepth:1});return}let f=l.children.map(g=>g===r?h:g);this._setChildren(l.element,f,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let i=this.model.getNode().children,n=Me.map(i,Gq),o=Me.map(n,e?nE:iE);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){let n=new Set,o=a=>{for(let l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(let l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,{...i,onDidCreateNode:o,onDidDeleteNode:r})}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){let t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}resort(e=null,t=!0){let i=this.getCompressedNode(e);this.model.resort(i,t)}getCompressedNode(e){if(e===null)return null;let t=this.nodes.get(e);if(!t)throw new ln(this.user,`Tree element not found: ${e}`);return t}},cne=s=>s[s.length-1],L7=class s{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new s(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}};function dne(s,e){return{...e,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(s(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){let n=t.elements;for(let o=0;o<n.length-1;o++){let r=e.filter.filter(n[o],i);i=Ua(Nd(r)?r.visibility:r)}return e.filter.filter(n[n.length-1],i)}}}}var sE=class{get onDidSpliceModel(){return $.map(this.model.onDidSpliceModel,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidSpliceRenderedNodes(){return $.map(this.model.onDidSpliceRenderedNodes,({start:e,deleteCount:t,elements:i})=>({start:e,deleteCount:t,elements:i.map(n=>this.nodeMapper.map(n))}))}get onDidChangeCollapseState(){return $.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return $.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}constructor(e,t={}){this.rootRef=null,this.elementMapper=t.elementMapper||cne;let i=n=>this.elementMapper(n.elements);this.nodeMapper=new Au(n=>new L7(i,n)),this.model=new x7(e,dne(i,t))}setChildren(e,t=Me.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}resort(e=null,t=!0){return this.model.resort(e,t)}getCompressedTreeNode(e=null){return this.model.getNode(e)}};var hne=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pu=class extends jm{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=Me.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}resort(e,t=!0){this.model.resort(e,t)}hasElement(e){return this.model.has(e)}createModel(e,t){return new Rd(e,t)}},oE=class{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let o=this.stickyScrollDelegate.getCompressedNode(e);o||(o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),o.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement?.(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?.(e,t)??!1}};hne([dt],oE.prototype,"compressedTreeNodeProvider",null);var k7=class{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),e.length===0)return[];for(let n=0;n<e.length;n++){let o=e[n],r=o.position+o.height;if(n+1<e.length&&r+e[n+1].height>i||n>=t-1&&t<e.length){let l=e.slice(0,n),c=e.slice(n),d=this.compressStickyNodes(c);return[...l,d]}}return e}compressStickyNodes(e){if(e.length===0)throw new Error("Can't compress empty sticky nodes");let t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];let i=[];for(let c=0;c<e.length;c++){let d=e[c],h=t.getCompressedTreeNode(d.node.element);if(h.element){if(c!==0&&h.element.incompressible)break;i.push(...h.element.elements)}}if(i.length<2)return e[0];let n=e[e.length-1],o={elements:i,incompressible:!1},r={...n.node,children:[],element:o},a=new Proxy(e[0].node,{}),l={node:a,startIndex:e[0].startIndex,endIndex:n.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(a,r),l}};function une(s,e){return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=s().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}}}var Zm=class extends Pu{constructor(e,t,i,n,o={}){let r=()=>this,a=new k7(()=>this.model),l=n.map(c=>new oE(r,a,c));super(e,t,i,l,{...une(r,o),stickyScrollDelegate:a})}setChildren(e,t=Me.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t){return new sE(e,t)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}};function D7(s){return{...s,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function E7(s,e){return e.parent?e.parent===s?!0:E7(s,e.parent):!1}function fne(s,e){return s===e||E7(s,e)||E7(e,s)}var T7=class s{get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new s(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}},N7=class{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Ce.asClassNameArray(Z.treeItemLoading)),!0):(t.classList.remove(...Ce.asClassNameArray(Z.treeItemLoading)),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}};function Zq(s){return{browserEvent:s.browserEvent,elements:s.elements.map(e=>e.element)}}function Qq(s){return{browserEvent:s.browserEvent,element:s.element&&s.element.element,target:s.target}}var M7=class extends oc{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}};function I7(s){return s instanceof oc?new M7(s):s}var R7=class{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart?.(I7(e),t)}onDragOver(e,t,i,n,o,r=!0){return this.dnd.onDragOver(I7(e),t&&t.element,i,n,o)}drop(e,t,i,n,o){this.dnd.drop(I7(e),t&&t.element,i,n,o)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}},A7=class extends V1{constructor(e,t,i){super(t,i),this.findProvider=e,this.isFindSessionActive=!1}filter(e,t){let i=super.filter(e,t);if(!this.isFindSessionActive||this.findMode===ys.Highlight||!this.findProvider.isVisible)return i;let n=Nd(i)?i.visibility:i;return Ua(n)===0?0:this.findProvider.isVisible(e)?i:0}},O7=class extends H1{constructor(e,t,i,n,o){super(e,i,n,o),this.findProvider=t,this.filter=i,this.activeSession=!1,this.asyncWorkInProgress=!1,this.disposables.add(j(async()=>{this.activeSession&&await this.findProvider.endSession?.()}))}render(){if(this.asyncWorkInProgress||!this.activeFindMetadata)return;let e=this.activeFindMetadata.matchCount===0&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.activeFindMetadata.matchCount)}shouldAllowFocus(e){return this.shouldFocusWhenNavigating(e)}shouldFocusWhenNavigating(e){if(!this.activeSession||!this.activeFindMetadata)return!0;let t=e.element?.element;return t&&this.activeFindMetadata.isMatch(t)?!0:!Ql.isDefault(e.filterData)}};function Xq(s){return s&&{...s,collapseByDefault:!0,identityProvider:s.identityProvider&&{getId(e){return s.identityProvider.getId(e.element)}},dnd:s.dnd&&new R7(s.dnd),multipleSelectionController:s.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return s.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return s.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:s.accessibilityProvider&&{...s.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:s.accessibilityProvider.getRole?e=>s.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:s.accessibilityProvider.isChecked?e=>!!s.accessibilityProvider?.isChecked(e.element):void 0,getAriaLabel(e){return s.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return s.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:s.accessibilityProvider.getWidgetRole?()=>s.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:s.accessibilityProvider.getAriaLevel&&(e=>s.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:s.accessibilityProvider.getActiveDescendantId&&(e=>s.accessibilityProvider.getActiveDescendantId(e.element))},filter:s.filter&&{filter(e,t){return s.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&{...s.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof s.expandOnlyOnTwistieClick>"u"?void 0:typeof s.expandOnlyOnTwistieClick!="function"?s.expandOnlyOnTwistieClick:(e=>s.expandOnlyOnTwistieClick(e.element)),defaultFindVisibility:e=>e.hasChildren&&e.stale?1:typeof s.defaultFindVisibility=="number"?s.defaultFindVisibility:typeof s.defaultFindVisibility>"u"?2:s.defaultFindVisibility(e.element),stickyScrollDelegate:s.stickyScrollDelegate}}function P7(s,e){e(s),s.children.forEach(t=>P7(t,e))}var $1=class{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return $.map(this.tree.onDidChangeFocus,Zq)}get onDidChangeSelection(){return $.map(this.tree.onDidChangeSelection,Zq)}get onMouseDblClick(){return $.map(this.tree.onMouseDblClick,Qq)}get onPointer(){return $.map(this.tree.onPointer,Qq)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new E,this._onDidChangeNodeSlowState=new E,this.nodeMapper=new Au(c=>new T7(c)),this.disposables=new q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=c=>r.collapseByDefault?r.collapseByDefault(c)?Cs.PreserveOrCollapsed:Cs.PreserveOrExpanded:void 0;let a=!1,l;if(r.findProvider&&(r.findWidgetEnabled??!0)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider&&(a=!0,l=new A7(r.findProvider,r.keyboardNavigationLabelProvider,r.filter)),this.tree=this.createTree(e,t,i,n,{...r,findWidgetEnabled:!a,filter:l??r.filter}),this.root=D7({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables),a){let c={styles:r.findWidgetStyles,showNotFoundMessage:r.showNotFoundMessage,defaultFindMatchType:r.defaultFindMatchType,defaultFindMode:r.defaultFindMode};this.findController=this.disposables.add(new O7(this.tree,r.findProvider,l,this.tree.options.contextViewProvider,c)),this.focusNavigationFilter=d=>this.findController.shouldFocusWhenNavigating(d),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindOpenState=this.tree.onDidChangeFindOpenState,this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType}createTree(e,t,i,n,o){let r=new Km(i),a=n.map(c=>new N7(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=Xq(o)||{};return new Pu(e,t,r,a,l)}updateOptions(e={}){this.findController&&(e.defaultFindMode!==void 0&&(this.findController.mode=e.defaultFindMode),e.defaultFindMatchType!==void 0&&(this.findController.matchType=e.defaultFindMatchType)),this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.cancelAllRefreshPromises(),this.root.element=e;let i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)}cancelAllRefreshPromises(e=!1){this.refreshPromises.forEach(t=>t.cancel()),this.refreshPromises.clear(),e&&(this.subTreeRefreshPromises.forEach(t=>t.cancel()),this.subTreeRefreshPromises.clear())}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if(typeof this.root.element>"u")throw new ln(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await $.toPromise(this._onDidRender.event));let r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}let t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){let i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(typeof this.root.element>"u")throw new ln(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await $.toPromise(this._onDidRender.event));let i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(await i.refreshPromise,await $.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;let n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await i.refreshPromise,await $.toPromise(this._onDidRender.event)),n}setSelection(e,t){let i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){let i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){let t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){let t=this.nodes.get(e===this.root.element?null:e);if(!t){let i=this.identityProvider?.getId(e).toString();throw new ln(this.user,`Data tree node not found${i?`: ${i}`:""}`)}return t}async refreshAndRenderNode(e,t,i,n){this.disposables.isDisposed||(await this.refreshNode(e,t,i),!this.disposables.isDisposed&&this.render(e,i,n))}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach((o,r)=>{!n&&fne(r,e)&&(n=o.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,i);return}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n=iv(async()=>{let o=await this.doRefreshNode(e,t,i);e.stale=!1,await qd.settled(o.map(r=>this.doRefreshSubTree(r,t,i)))});return e.refreshPromise=n,this.subTreeRefreshPromises.set(e,n),n.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}),n}async doRefreshNode(e,t,i){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(Me.empty());else{let o=this.doGetChildren(e);if(Np(o))n=Promise.resolve(o);else{let r=Qr(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=o.finally(()=>r.cancel())}}try{let o=await n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),mc(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;let i=this.dataSource.getChildren(e.element);return Np(i)?this.processChildren(i):(t=iv(async()=>this.processChildren(await i)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Se))}setChildren(e,t,i,n){let o=[...t];if(e.children.length===0&&o.length===0)return[];let r=new Map,a=new Map;for(let d of e.children)r.set(d.element,d),this.identityProvider&&a.set(d.id,{node:d,collapsed:this.tree.hasElement(d)&&this.tree.isCollapsed(d)});let l=[],c=o.map(d=>{let h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){let p=D7({element:d,parent:e,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(d)});return h&&p.defaultCollapseState===Cs.PreserveOrExpanded&&l.push(p),p}let u=this.identityProvider.getId(d).toString(),f=a.get(u);if(f){let p=f.node;return r.delete(p.element),this.nodes.delete(p.element),this.nodes.set(d,p),p.element=d,p.hasChildren=h,i?f.collapsed?(p.children.forEach(_=>P7(_,w=>this.nodes.delete(w.element))),p.children.splice(0,p.children.length),p.stale=!0):l.push(p):h&&!f.collapsed&&l.push(p),p}let g=D7({element:d,parent:e,id:u,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(d)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(g),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(g),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1||h&&g.defaultCollapseState===Cs.PreserveOrExpanded)&&l.push(g),g});for(let d of r.values())P7(d,h=>this.nodes.delete(h.element));for(let d of c)this.nodes.set(d.element,d);return eh(e.children,0,e.children.length,c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].forceExpanded=!0,l.push(c[0])),l}render(e,t,i){let n=e.children.map(r=>this.asTreeElement(r,t)),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?Me.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}},F7=class s{get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new s(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}},B7=class{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Ce.asClassNameArray(Z.treeItemLoading)),!0):(t.classList.remove(...Ce.asClassNameArray(Z.treeItemLoading)),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=tt(this.disposables)}};function gne(s){let e=s&&Xq(s);return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(t){return s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}},stickyScrollDelegate:e.stickyScrollDelegate}}var rE=class extends $1{constructor(e,t,i,n,o,r,a={}){super(e,t,i,o,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new Au(l=>new F7(l)),this.filter=a.filter}createTree(e,t,i,n,o){let r=new Km(i),a=n.map(c=>new B7(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=gne(o)||{};return new Zm(e,t,r,a,l)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}render(e,t,i){if(!this.identityProvider)return super.render(e,t);let n=f=>this.identityProvider.getId(f).toString(),o=f=>{let g=new Set;for(let p of f){let _=this.tree.getCompressedTreeNode(p===this.root?null:p);if(_.element)for(let w of _.element.elements)g.add(n(w.element))}return g},r=o(this.tree.getSelection()),a=o(this.tree.getFocus());super.render(e,t,i);let l=this.getSelection(),c=!1,d=this.getFocus(),h=!1,u=f=>{let g=f.element;if(g)for(let p=0;p<g.elements.length;p++){let _=n(g.elements[p].element),w=g.elements[g.elements.length-1].element;r.has(_)&&l.indexOf(w)===-1&&(l.push(w),c=!0),a.has(_)&&d.indexOf(w)===-1&&(d.push(w),h=!0)}f.children.forEach(u)};u(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(l),h&&this.setFocus(d)}processChildren(e){return this.filter&&(e=Me.filter(e,t=>{let i=this.filter.filter(t,1),n=mne(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}};function mne(s){return typeof s=="boolean"?s?1:0:Nd(s)?Ua(s.visibility):Ua(s)}var aE=class extends jm{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t){return new Rd(e,t)}};new ae("isMac",be,m(1684,"Whether the operating system is macOS"));new ae("isLinux",Jt,m(1685,"Whether the operating system is Linux"));var wnt=new ae("isWindows",Wt,m(1686,"Whether the operating system is Windows")),vnt=new ae("isWeb",Us,m(1687,"Whether the platform is a web browser"));new ae("isMacNative",be&&!Us,m(1688,"Whether the operating system is macOS on a non-browser platform"));new ae("isIOS",ss,m(1689,"Whether the operating system is iOS"));new ae("isMobile",Mw,m(1690,"Whether the platform is a mobile web browser"));new ae("isDevelopment",!1,!0);new ae("productQualityType","",m(1691,"Quality type of VS Code"));var W7="inputFocus",lE=new ae(W7,!1,m(1692,"Whether keyboard focus is inside an input box"));var dc=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ct=function(s,e){return function(t,i){e(t,i,s)}},Br=oe("listService"),dE=class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new q,this.lists=[],this._lastFocusedWidget=void 0}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");let i={widget:e,extraContextKeys:t};return this.lists.push(i),Nf(e.getHTMLElement())&&this.setLastFocusedList(e),Ln(e.onDidFocus(()=>this.setLastFocusedList(e)),j(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}},q1=new ae("listScrollAtBoundary","none");Ee.or(q1.isEqualTo("top"),q1.isEqualTo("both"));Ee.or(q1.isEqualTo("bottom"),q1.isEqualTo("both"));var rK=new ae("listFocus",!0),aK=new ae("treestickyScrollFocused",!1),_E=new ae("listSupportsMultiselect",!0),znt=Ee.and(rK,Ee.not(W7),aK.negate()),U7=new ae("listHasSelectionOrFocus",!1),$7=new ae("listDoubleSelection",!1),q7=new ae("listMultiSelection",!1),bE=new ae("listSelectionNavigation",!1),pne=new ae("listSupportsFind",!0),_ne=new ae("treeElementCanCollapse",!1),bne=new ae("treeElementHasParent",!1),wne=new ae("treeElementCanExpand",!1),vne=new ae("treeElementHasChild",!1),Cne=new ae("treeFindOpen",!1),lK="listTypeNavigationMode",cK="listAutomaticKeyboardNavigation";function wE(s,e){let t=s.createScoped(e.getHTMLElement());return rK.bindTo(t),t}function vE(s,e){let t=q1.bindTo(s),i=()=>{let n=e.scrollTop===0,o=e.scrollHeight-e.renderHeight-e.scrollTop<1;n&&o?t.set("both"):n?t.set("top"):o?t.set("bottom"):t.set("none")};return i(),e.onDidScroll(i)}var Bu="workbench.list.multiSelectModifier",cE="workbench.list.openMode",Oo="workbench.list.horizontalScrolling",K7="workbench.list.defaultFindMode",j7="workbench.list.typeNavigationMode",hE="workbench.list.keyboardNavigation",Pr="workbench.list.scrollByPage",G7="workbench.list.defaultFindMatchType",K1="workbench.tree.indent",uE="workbench.tree.renderIndentGuides",Fr="workbench.list.smoothScrolling",$a="workbench.list.mouseWheelScrollSensitivity",qa="workbench.list.fastScrollSensitivity",fE="workbench.tree.expandMode",gE="workbench.tree.enableStickyScroll",mE="workbench.tree.stickyScrollMaxItemCount";function Ka(s){return s.getValue(Bu)==="alt"}var V7=class extends N{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Ka(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Bu)&&(this.useAltAsMultipleSelectionModifier=Ka(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:eP(e)}isSelectionRangeChangeEvent(e){return tP(e)}};function CE(s,e){let t=s.get(Ue),i=s.get(It),n=new q;return[{...e,keyboardNavigationDelegate:{mightProducePrintableCharacter(r){return i.mightProducePrintableCharacter(r)}},smoothScrolling:!!t.getValue(Fr),mouseWheelScrollSensitivity:t.getValue($a),fastScrollSensitivity:t.getValue(qa),multipleSelectionController:e.multipleSelectionController??n.add(new V7(t)),keyboardNavigationEventFilter:yne(i),scrollByPage:!!t.getValue(Pr)},n]}var Jq=class extends An{constructor(e,t,i,n,o,r,a,l,c){let d=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(Oo),[h,u]=c.invokeFunction(CE,o);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(u),this.contextKeyService=wE(r,this),this.disposables.add(vE(this.contextKeyService,this)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.listDoubleSelection=$7.bindTo(this.contextKeyService),this.listMultiSelection=q7.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ka(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let g=this.getSelection(),p=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(g.length>0||p.length>0),this.listMultiSelection.set(g.length>1),this.listDoubleSelection.set(g.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let g=this.getSelection(),p=this.getFocus();this.listHasSelectionOrFocus.set(g.length>0||p.length>0)})),this.disposables.add(l.onDidChangeConfiguration(g=>{g.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(l));let p={};if(g.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let _=!!l.getValue(Oo);p={...p,horizontalScrolling:_}}if(g.affectsConfiguration(Pr)){let _=!!l.getValue(Pr);p={...p,scrollByPage:_}}if(g.affectsConfiguration(Fr)){let _=!!l.getValue(Fr);p={...p,smoothScrolling:_}}if(g.affectsConfiguration($a)){let _=l.getValue($a);p={...p,mouseWheelScrollSensitivity:_}}if(g.affectsConfiguration(qa)){let _=l.getValue(qa);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new pE(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}};Jq=dc([Ct(5,xe),Ct(6,Br),Ct(7,Ue),Ct(8,ue)],Jq);var eK=class extends QI{constructor(e,t,i,n,o,r,a,l,c){let d=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(Oo),[h,u]=c.invokeFunction(CE,o);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables=new q,this.disposables.add(u),this.contextKeyService=wE(r,this),this.disposables.add(vE(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this._useAltAsMultipleSelectionModifier=Ka(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration(g=>{g.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(l));let p={};if(g.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let _=!!l.getValue(Oo);p={...p,horizontalScrolling:_}}if(g.affectsConfiguration(Pr)){let _=!!l.getValue(Pr);p={...p,scrollByPage:_}}if(g.affectsConfiguration(Fr)){let _=!!l.getValue(Fr);p={...p,smoothScrolling:_}}if(g.affectsConfiguration($a)){let _=l.getValue($a);p={...p,mouseWheelScrollSensitivity:_}}if(g.affectsConfiguration(qa)){let _=l.getValue(qa);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new pE(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}dispose(){this.disposables.dispose(),super.dispose()}};eK=dc([Ct(5,xe),Ct(6,Br),Ct(7,Ue),Ct(8,ue)],eK);var tK=class extends tE{constructor(e,t,i,n,o,r,a,l,c,d){let h=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:!!c.getValue(Oo),[u,f]=d.invokeFunction(CE,r);super(e,t,i,n,o,{keyboardSupport:!1,...u,horizontalScrolling:h}),this.disposables.add(f),this.contextKeyService=wE(a,this),this.disposables.add(vE(this.contextKeyService,this)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!r.selectionNavigation),this.listHasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.listDoubleSelection=$7.bindTo(this.contextKeyService),this.listMultiSelection=q7.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ka(c),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let p=this.getSelection(),_=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(p.length>0||_.length>0),this.listMultiSelection.set(p.length>1),this.listDoubleSelection.set(p.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let p=this.getSelection(),_=this.getFocus();this.listHasSelectionOrFocus.set(p.length>0||_.length>0)})),this.disposables.add(c.onDidChangeConfiguration(p=>{p.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(c));let _={};if(p.affectsConfiguration(Oo)&&this.horizontalScrolling===void 0){let w=!!c.getValue(Oo);_={..._,horizontalScrolling:w}}if(p.affectsConfiguration(Pr)){let w=!!c.getValue(Pr);_={..._,scrollByPage:w}}if(p.affectsConfiguration(Fr)){let w=!!c.getValue(Fr);_={..._,smoothScrolling:w}}if(p.affectsConfiguration($a)){let w=c.getValue($a);_={..._,mouseWheelScrollSensitivity:w}}if(p.affectsConfiguration(qa)){let w=c.getValue(qa);_={..._,fastScrollSensitivity:w}}Object.keys(_).length>0&&this.updateOptions(_)})),this.navigator=new H7(this,{configurationService:c,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?ku(e):Nm)}dispose(){this.disposables.dispose(),super.dispose()}};tK=dc([Ct(6,xe),Ct(7,Br),Ct(8,Ue),Ct(9,ue)],tK);var j1=class extends N{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new E),this.onDidOpen=this._onDidOpen.event,this._register($.filter(this.widget.onDidChangeSelection,i=>vo(i.browserEvent))(i=>this.onSelectionFromKeyboard(i))),this._register(this.widget.onPointer(i=>this.onPointer(i.element,i.browserEvent))),this._register(this.widget.onMouseDblClick(i=>this.onMouseDblClick(i.element,i.browserEvent))),typeof t?.openOnSingleClick!="boolean"&&t?.configurationService?(this.openOnSingleClick=t?.configurationService.getValue(cE)!=="doubleClick",this._register(t?.configurationService.onDidChangeConfiguration(i=>{i.affectsConfiguration(cE)&&(this.openOnSingleClick=t?.configurationService.getValue(cE)!=="doubleClick")}))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;let t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;let n=t.button===1,o=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}onMouseDblClick(e,t){if(!t)return;let i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;let o=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}},pE=class extends j1{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}},H7=class extends j1{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}},z7=class extends j1{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}};function yne(s){let e=!1;return t=>{if(t.toKeyCodeChord().isModifierKey())return!1;if(e)return e=!1,!1;let i=s.softDispatch(t,t.target);return i.kind===1?(e=!0,!1):(e=!1,i.kind===0)}}var Qm=class extends Pu{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,a,l,c){let{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(G1,o);super(e,t,i,n,d),this.disposables.add(u),this.internals=new Fu(this,o,h,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};Qm=dc([Ct(5,ue),Ct(6,xe),Ct(7,Br),Ct(8,Ue)],Qm);var iK=class extends Zm{constructor(e,t,i,n,o,r,a,l,c){let{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(G1,o);super(e,t,i,n,d),this.disposables.add(u),this.internals=new Fu(this,o,h,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};iK=dc([Ct(5,ue),Ct(6,xe),Ct(7,Br),Ct(8,Ue)],iK);var nK=class extends aE{constructor(e,t,i,n,o,r,a,l,c,d){let{options:h,getTypeNavigationMode:u,disposable:f}=a.invokeFunction(G1,r);super(e,t,i,n,o,h),this.disposables.add(f),this.internals=new Fu(this,r,u,r.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles!==void 0&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};nK=dc([Ct(6,ue),Ct(7,xe),Ct(8,Br),Ct(9,Ue)],nK);var sK=class extends $1{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,a,l,c,d){let{options:h,getTypeNavigationMode:u,disposable:f}=a.invokeFunction(G1,r);super(e,t,i,n,o,h),this.disposables.add(f),this.internals=new Fu(this,r,u,r.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};sK=dc([Ct(6,ue),Ct(7,xe),Ct(8,Br),Ct(9,Ue)],sK);var oK=class extends rE{constructor(e,t,i,n,o,r,a,l,c,d,h){let{options:u,getTypeNavigationMode:f,disposable:g}=l.invokeFunction(G1,a);super(e,t,i,n,o,r,u),this.disposables.add(g),this.internals=new Fu(this,a,f,a.overrideStyles,c,d,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};oK=dc([Ct(7,ue),Ct(8,xe),Ct(9,Br),Ct(10,Ue)],oK);function dK(s){let e=s.getValue(K7);if(e==="highlight")return ys.Highlight;if(e==="filter")return ys.Filter;let t=s.getValue(hE);if(t==="simple"||t==="highlight")return ys.Highlight;if(t==="filter")return ys.Filter}function hK(s){let e=s.getValue(G7);if(e==="fuzzy")return ar.Fuzzy;if(e==="contiguous")return ar.Contiguous}function G1(s,e){let t=s.get(Ue),i=s.get(Yl),n=s.get(xe),o=s.get(ue),r=()=>{let u=n.getContextKeyValue(lK);if(u==="automatic")return Rr.Automatic;if(u==="trigger")return Rr.Trigger;if(n.getContextKeyValue(cK)===!1)return Rr.Trigger;let g=t.getValue(j7);if(g==="automatic")return Rr.Automatic;if(g==="trigger")return Rr.Trigger},a=e.horizontalScrolling!==void 0?e.horizontalScrolling:!!t.getValue(Oo),[l,c]=o.invokeFunction(CE,e),d=e.paddingBottom,h=e.renderIndentGuides!==void 0?e.renderIndentGuides:t.getValue(uE);return{getTypeNavigationMode:r,disposable:c,options:{keyboardSupport:!1,...l,indent:typeof t.getValue(K1)=="number"?t.getValue(K1):void 0,renderIndentGuides:h,smoothScrolling:!!t.getValue(Fr),defaultFindMode:e.defaultFindMode??dK(t),defaultFindMatchType:e.defaultFindMatchType??hK(t),horizontalScrolling:a,scrollByPage:!!t.getValue(Pr),paddingBottom:d,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:e.expandOnlyOnTwistieClick??t.getValue(fE)==="doubleClick",contextViewProvider:i,findWidgetStyles:R$,enableStickyScroll:!!t.getValue(gE),stickyScrollMaxItemCount:Number(t.getValue(mE))}}}var Fu=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,r,a){this.tree=e,this.disposables=[],this.contextKeyService=wE(o,e),this.disposables.push(vE(this.contextKeyService,e)),this.listSupportsMultiSelect=_E.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),bE.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.listSupportFindWidget=pne.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=U7.bindTo(this.contextKeyService),this.hasDoubleSelection=$7.bindTo(this.contextKeyService),this.hasMultiSelection=q7.bindTo(this.contextKeyService),this.treeElementCanCollapse=_ne.bindTo(this.contextKeyService),this.treeElementHasParent=bne.bindTo(this.contextKeyService),this.treeElementCanExpand=wne.bindTo(this.contextKeyService),this.treeElementHasChild=vne.bindTo(this.contextKeyService),this.treeFindOpen=Cne.bindTo(this.contextKeyService),this.treeStickyScrollFocused=aK.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Ka(a),this.updateStyleOverrides(n);let c=()=>{let h=e.getFocus()[0];if(!h)return;let u=e.getNode(h);this.treeElementCanCollapse.set(u.collapsible&&!u.collapsed),this.treeElementHasParent.set(!!e.getParentElement(h)),this.treeElementCanExpand.set(u.collapsible&&u.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(h))},d=new Set;d.add(lK),d.add(cK),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{let h=e.getSelection(),u=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(h.length>0||u.length>0),this.hasMultiSelection.set(h.length>1),this.hasDoubleSelection.set(h.length===2)})}),e.onDidChangeFocus(()=>{let h=e.getSelection(),u=e.getFocus();this.hasSelectionOrFocus.set(h.length>0||u.length>0),c()}),e.onDidChangeCollapseState(c),e.onDidChangeModel(c),e.onDidChangeFindOpenState(h=>this.treeFindOpen.set(h)),e.onDidChangeStickyScrollFocused(h=>this.treeStickyScrollFocused.set(h)),a.onDidChangeConfiguration(h=>{let u={};if(h.affectsConfiguration(Bu)&&(this._useAltAsMultipleSelectionModifier=Ka(a)),h.affectsConfiguration(K1)){let f=a.getValue(K1);u={...u,indent:f}}if(h.affectsConfiguration(uE)&&t.renderIndentGuides===void 0){let f=a.getValue(uE);u={...u,renderIndentGuides:f}}if(h.affectsConfiguration(Fr)){let f=!!a.getValue(Fr);u={...u,smoothScrolling:f}}if(h.affectsConfiguration(K7)||h.affectsConfiguration(hE)){let f=dK(a);u={...u,defaultFindMode:f}}if(h.affectsConfiguration(j7)||h.affectsConfiguration(hE)){let f=i();u={...u,typeNavigationMode:f}}if(h.affectsConfiguration(G7)){let f=hK(a);u={...u,defaultFindMatchType:f}}if(h.affectsConfiguration(Oo)&&t.horizontalScrolling===void 0){let f=!!a.getValue(Oo);u={...u,horizontalScrolling:f}}if(h.affectsConfiguration(Pr)){let f=!!a.getValue(Pr);u={...u,scrollByPage:f}}if(h.affectsConfiguration(fE)&&t.expandOnlyOnTwistieClick===void 0&&(u={...u,expandOnlyOnTwistieClick:a.getValue(fE)==="doubleClick"}),h.affectsConfiguration(gE)){let f=a.getValue(gE);u={...u,enableStickyScroll:f}}if(h.affectsConfiguration(mE)){let f=Math.max(1,a.getValue(mE));u={...u,stickyScrollMaxItemCount:f}}if(h.affectsConfiguration($a)){let f=a.getValue($a);u={...u,mouseWheelScrollSensitivity:f}}if(h.affectsConfiguration(qa)){let f=a.getValue(qa);u={...u,fastScrollSensitivity:f}}Object.keys(u).length>0&&e.updateOptions(u)}),this.contextKeyService.onDidChangeContext(h=>{h.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new z7(e,{configurationService:a,...t}),this.disposables.push(this.navigator)}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?ku(e):Nm)}dispose(){this.disposables=tt(this.disposables)}};Fu=dc([Ct(4,xe),Ct(5,Br),Ct(6,Ue)],Fu);var Sne=ct.as(xo.Configuration);Sne.registerConfiguration({id:"workbench",order:7,title:m(1705,"Workbench"),type:"object",properties:{[Bu]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[m(1706,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),m(1707,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:m(1708,"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[cE]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m(1709,"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Oo]:{type:"boolean",default:!1,description:m(1710,"Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Pr]:{type:"boolean",default:!1,description:m(1711,"Controls whether clicks in the scrollbar scroll page by page.")},[K1]:{type:"number",default:8,minimum:4,maximum:40,description:m(1712,"Controls tree indentation in pixels.")},[uE]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:m(1713,"Controls whether the tree should render indent guides.")},[Fr]:{type:"boolean",default:!1,description:m(1714,"Controls whether lists and trees have smooth scrolling.")},[$a]:{type:"number",default:1,markdownDescription:m(1715,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[qa]:{type:"number",default:5,markdownDescription:m(1716,"Scrolling speed multiplier when pressing `Alt`.")},[K7]:{type:"string",enum:["highlight","filter"],enumDescriptions:[m(1717,"Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),m(1718,"Filter elements when searching.")],default:"highlight",description:m(1719,"Controls the default find mode for lists and trees in the workbench.")},[hE]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[m(1720,"Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),m(1721,"Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),m(1722,"Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:m(1723,"Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:m(1724,"Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[G7]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[m(1725,"Use fuzzy matching when searching."),m(1726,"Use contiguous matching when searching.")],default:"fuzzy",description:m(1727,"Controls the type of matching used when searching lists and trees in the workbench.")},[fE]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m(1728,"Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[gE]:{type:"boolean",default:!0,description:m(1729,"Controls whether sticky scrolling is enabled in trees.")},[mE]:{type:"number",minimum:1,default:7,markdownDescription:m(1730,"Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[j7]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:m(1731,"Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}});var kE=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Y7=function(s,e){return function(t,i){e(t,i,s)}},Z7,ja=ie,yE=class{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new ii(()=>{let n=i.label??"",o=Xl(n).text.trim(),r=i.ariaLabel||[n,this.saneDescription,this.saneDetail].map(a=>ck(a)).filter(a=>!!a).join(", ");return{saneLabel:n,saneSortLabel:o,saneAriaLabel:r}}),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}},Bi=class extends yE{constructor(e,t,i,n,o,r,a){super(e,i,r),this.childIndex=t,this.fireButtonTriggered=n,this._onChecked=o,this.item=r,this._separator=a,this._checked=!1,this.onChecked=i?$.map($.filter(this._onChecked.event,l=>l.element===this),l=>l.checked):$.None,this._saneDetail=r.detail,this._labelHighlights=r.highlights?.label,this._descriptionHighlights=r.highlights?.description,this._detailHighlights=r.highlights?.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}},Ga;(function(s){s[s.NONE=0]="NONE",s[s.MOUSE_HOVER=1]="MOUSE_HOVER",s[s.ACTIVE_ITEM=2]="ACTIVE_ITEM"})(Ga||(Ga={}));var hc=class extends yE{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ga.NONE}},Q7=class{getHeight(e){return e instanceof hc?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Bi?xE.ID:LE.ID}},X7=class{getWidgetAriaLabel(){return m(1770,"Quick Input")}getAriaLabel(e){return e.separator?.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!(!e.hasCheckbox||!(e instanceof Bi)))return{get value(){return e.checked},onDidChange:t=>e.onChecked(()=>t())}}},SE=class{constructor(e){this.hoverDelegate=e}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=new q,t.toDisposeTemplate=new q,t.entry=ee(e,ja(".quick-input-list-entry"));let i=ee(t.entry,ja("label.quick-input-list-label"));t.outerLabel=i,t.checkbox=t.toDisposeTemplate.add(new Ze),t.toDisposeTemplate.add(Mt(i,K.CLICK,c=>{if(t.checkbox.value&&!c.defaultPrevented&&t.checkbox.value.enabled){let d=!t.checkbox.value.checked;t.checkbox.value.checked=d,t.element.checked=d}}));let n=ee(i,ja(".quick-input-list-rows")),o=ee(n,ja(".quick-input-list-row")),r=ee(n,ja(".quick-input-list-row"));t.label=new Ru(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=wl(t.label.element,ja(".quick-input-list-icon"));let a=ee(o,ja(".quick-input-list-entry-keybinding"));t.keybinding=new KI(a,Cn),t.toDisposeTemplate.add(t.keybinding);let l=ee(r,ja(".quick-input-list-label-meta"));return t.detail=new Ru(l,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=ee(t.entry,ja(".quick-input-list-separator")),t.actionBar=new rn(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}},xE=class extends SE{static{Z7=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Z7.ID}ensureCheckbox(e,t){if(!e.hasCheckbox){t.checkbox.value?.domNode.remove(),t.checkbox.clear();return}let i=t.checkbox.value;i?i.setTitle(e.saneLabel):(i=new O1(e.saneLabel,e.checked,{...Tm,size:15}),t.checkbox.value=i,t.outerLabel.prepend(i.domNode)),e.checkboxDisabled?i.disable():i.enable(),i.checked=e.checked,t.toDisposeElement.add(e.onChecked(n=>i.checked=n)),t.toDisposeElement.add(i.onChange(()=>e.checked=i.checked))}renderElement(e,t,i){let n=e.element;i.element=n,n.element=i.entry??void 0;let o=n.item;n.element.classList.toggle("not-pickable",n.item.pickable===!1),this.ensureCheckbox(n,i);let{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=n;if(o.iconPath){let u=Jo(this.themeService.getColorTheme().type)?o.iconPath.dark:o.iconPath.light??o.iconPath.dark,f=ge.revive(u);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=_s(f)}else i.icon.style.backgroundImage="",i.icon.className=o.iconClass?`quick-input-list-icon ${o.iconClass}`:"";let c;!n.saneTooltip&&n.saneDescription&&(c={markdown:{value:Fn(n.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDescription});let d={matches:r||[],descriptionTitle:c,descriptionMatches:a||[],labelEscapeNewLines:!0};if(d.extraClasses=o.iconClasses,d.italic=o.italic,d.strikethrough=o.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(n.saneLabel,n.saneDescription,d),i.keybinding.set(o.keybinding),n.saneDetail){let u;n.saneTooltip||(u={markdown:{value:Fn(n.saneDetail),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(n.saneDetail,void 0,{matches:l,title:u,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";n.separator?.label?(i.separator.textContent=n.separator.label,i.separator.style.display="",this.addItemWithSeparator(n)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!n.separator&&n.childIndex!==0);let h=o.buttons;h&&h.length?(i.actionBar.push(h.map((u,f)=>ac(u,`id-${f}`,()=>n.fireButtonTriggered({button:u,item:n.item}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){let t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};xE=Z7=kE([Y7(1,Qt)],xE);var LE=class s extends SE{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return s.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){let n=e.element;i.element=n,n.element=i.entry??void 0,n.element.classList.toggle("focus-inside",!!n.focusInsideSeparator);let o=n.separator,{labelHighlights:r,descriptionHighlights:a}=n;i.icon.style.backgroundImage="",i.icon.className="";let l;!n.saneTooltip&&n.saneDescription&&(l={markdown:{value:Fn(n.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:n.saneDescription});let c={matches:r||[],descriptionTitle:l,descriptionMatches:a||[],labelEscapeNewLines:!0};i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(n.saneLabel,n.saneDescription,c),i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");let d=o.buttons;d&&d.length?(i.actionBar.push(d.map((h,u)=>ac(h,`id-${u}`,()=>n.fireSeparatorButtonTriggered({button:h,separator:n.separator}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(n)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||e.element.element?.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){let t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}},Xm=class extends N{constructor(e,t,i,n,o,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new E,this._onLeave=new E,this.onLeave=this._onLeave.event,this._visibleCountObservable=fe("VisibleCount",0),this.onChangedVisibleCount=$.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=fe("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=$.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=fe("CheckedCount",0),this.onChangedCheckedCount=$.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=ld({equalsFn:nt},new Array),this.onChangedCheckedElements=$.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new E,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new E,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new E,this._elementCheckedEventBufferer=new Wo,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new q),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=ee(this.parent,ja(".quick-input-list")),this._separatorRenderer=new LE(t),this._itemRenderer=o.createInstance(xE,t),this._tree=this._register(o.createInstance(Qm,"QuickInput",this._container,new Q7,[this._itemRenderer,this._separatorRenderer],{filter:{filter(a){return a.hidden?0:a instanceof hc?2:1}},sorter:{compare:(a,l)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;let c=this._lastQueryString.toLowerCase();return Lne(a,l,c)}},accessibilityProvider:new X7,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:lc.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return $.map(this._tree.onDidChangeFocus,e=>e.elements.filter(t=>t instanceof Bi).map(t=>t.item),this._store)}get onDidChangeSelection(){return $.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(t=>t instanceof Bi).map(t=>t.item),event:e.browserEvent}),this._store)}get displayed(){return this._container.style.display!=="none"}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(e=>{let t=new Re(e);t.keyCode===10&&this.toggleCheckbox(),this._onKeyDown.fire(t)}))}_registerOnContainerClick(){this._register(O(this._container,K.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(O(this._container,K.AUXCLICK,e=>{e.button===1&&this._onLeave.fire()}))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel(()=>{let e=this._itemElements.filter(t=>!t.hidden).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()}))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,(e,t)=>t)(e=>this._updateCheckedObservables()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))}))}_registerHoverListeners(){let e=this._register(new uf(typeof this.hoverDelegate.delay=="function"?this.hoverDelegate.delay():this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{if(Bv(t.browserEvent.target)){e.cancel();return}if(!(!Bv(t.browserEvent.relatedTarget)&&Nt(t.browserEvent.relatedTarget,t.element?.element)))try{await e.trigger(async()=>{t.element instanceof Bi&&this.showHover(t.element)})}catch(i){if(!mc(i))throw i}})),this._register(this._tree.onMouseOut(t=>{Nt(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let i of this._separatorRenderer.visibleSeparators){let n=i===t;!!(i.focusInsideSeparator&Ga.ACTIVE_ITEM)!==n&&(n?i.focusInsideSeparator|=Ga.ACTIVE_ITEM:i.focusInsideSeparator&=~Ga.ACTIVE_ITEM,this._tree.rerender(i))}})),this._register(this._tree.onMouseOver(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;i.focusInsideSeparator&Ga.MOUSE_HOVER||(i.focusInsideSeparator|=Ga.MOUSE_HOVER,this._tree.rerender(i))}})),this._register(this._tree.onMouseOut(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;i.focusInsideSeparator&Ga.MOUSE_HOVER&&(i.focusInsideSeparator&=~Ga.MOUSE_HOVER,this._tree.rerender(i))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let t=e.elements.filter(i=>i instanceof Bi);t.length!==e.elements.length&&(e.elements.length===1&&e.elements[0]instanceof hc&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))}))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents(()=>{this._itemElements.forEach(t=>{!t.hidden&&!t.checkboxDisabled&&t.item.pickable!==!1&&(t.checked=e)})})}setElements(e){this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes");let t;this._itemElements=new Array,this._elementTree=e.reduce((i,n,o)=>{let r;if(n.type==="separator"){if(!n.buttons)return i;t=new hc(o,a=>this._onSeparatorButtonTriggered.fire(a),n),r=t}else{let a=o>0?e[o-1]:void 0,l;a&&a.type==="separator"&&!a.buttons&&(l=a);let c=new Bi(o,t?.children?t.children.length:o,this._hasCheckboxes&&n.pickable!==!1,d=>this._onButtonTriggered.fire(d),this._elementChecked,n,l);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i},new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{let i=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),n=i?.parentNode;if(i&&n){let o=i.nextSibling;i.remove(),n.insertBefore(i,o)}},0)}setFocusedElements(e){let t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i).filter(i=>!i.hidden);if(this._tree.setFocus(t),e.length>0){let i=this._tree.getFocus()[0];i&&this._tree.reveal(i)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){let t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i);this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents(()=>{let t=new Set;for(let i of e)t.add(i);for(let i of this._itemElements)i.checked=t.has(i.item)})}focus(e){if(this._itemElements.length)switch(e===lt.Second&&this._itemElements.length<2&&(e=lt.First),e){case lt.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,t=>t.element instanceof Bi);break;case lt.Second:{this._tree.scrollTop=0;let t=!1;this._tree.focusFirst(void 0,i=>i.element instanceof Bi?t?!0:(t=!t,!1):!1);break}case lt.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,t=>t.element instanceof Bi);break;case lt.Next:{let t=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,n=>n.element instanceof Bi?(this._tree.reveal(n.element),!0):!1);let i=this._tree.getFocus();t.length&&t[0]===i[0]&&this._onLeave.fire();break}case lt.Previous:{let t=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,n=>{if(!(n.element instanceof Bi))return!1;let o=this._tree.getParentElement(n.element);return o===null||o.children[0]!==n.element?this._tree.reveal(n.element):this._tree.reveal(o),!0});let i=this._tree.getFocus();t.length&&t[0]===i[0]&&this._onLeave.fire();break}case lt.NextPage:this._tree.focusNextPage(void 0,t=>t.element instanceof Bi?(this._tree.reveal(t.element),!0):!1);break;case lt.PreviousPage:this._tree.focusPreviousPage(void 0,t=>{if(!(t.element instanceof Bi))return!1;let i=this._tree.getParentElement(t.element);return i===null||i.children[0]!==t.element?this._tree.reveal(t.element):this._tree.reveal(i),!0});break;case lt.NextSeparator:{let t=!1,i=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,o=>{if(t)return!0;if(o.element instanceof hc)t=!0,this._separatorRenderer.isSeparatorVisible(o.element)?this._tree.reveal(o.element.children[0]):this._tree.reveal(o.element,0);else if(o.element instanceof Bi){if(o.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(o.element)?this._tree.reveal(o.element):this._tree.reveal(o.element,0),!0;if(o.element===this._elementTree[0])return this._tree.reveal(o.element,0),!0}return!1});let n=this._tree.getFocus()[0];i===n&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,o=>o.element instanceof Bi));break}case lt.PreviousSeparator:{let t,i=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,n=>{if(n.element instanceof hc)i?t||(this._separatorRenderer.isSeparatorVisible(n.element)?this._tree.reveal(n.element):this._tree.reveal(n.element,0),t=n.element.children[0]):i=!0;else if(n.element instanceof Bi&&!t){if(n.element.separator)this._itemRenderer.isItemWithSeparatorVisible(n.element)?this._tree.reveal(n.element):this._tree.reveal(n.element,0),t=n.element;else if(n.element===this._elementTree[0])return this._tree.reveal(n.element,0),!0}return!1}),t&&this._tree.setFocus([t]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let t=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;let n=i.index&&this._inputElements[i.index-1];i.item&&(i.separator=n&&n.type==="separator"&&!n.buttons?n:void 0)});else{let i;this._itemElements.forEach(n=>{let o;this.matchOnLabelMode==="fuzzy"?o=this.matchOnLabel?mu(e,Xl(n.saneLabel))??void 0:void 0:o=this.matchOnLabel?xne(t,Xl(n.saneLabel))??void 0:void 0;let r=this.matchOnDescription?mu(e,Xl(n.saneDescription||""))??void 0:void 0,a=this.matchOnDetail?mu(e,Xl(n.saneDetail||""))??void 0:void 0;if(o||r||a?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=n.item?!n.item.alwaysShow:!0),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){let l=n.index&&this._inputElements[n.index-1]||void 0;l?.type==="separator"&&!l.buttons&&(i=l),i&&!n.hidden&&(n.separator=i,i=void 0)}})}return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents(()=>{let e=this._tree.getFocus().filter(i=>i instanceof Bi),t=this._allVisibleChecked(e);for(let i of e)i.checkboxDisabled||(i.checked=!t)})}style(e){this._tree.style(e)}toggleHover(){let e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof Bi))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(e);let t=new q;t.add(this._tree.onDidChangeFocus(i=>{i.elements[0]instanceof Bi&&this.showHover(i.elements[0])})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){let t=new Array;for(let i of e)i instanceof hc?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map(n=>({element:n,collapsible:!1,collapsed:!1}))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let o=e[i];if(!o.hidden&&o.item.pickable!==!1)if(o.checked)t=!0;else return!1}return t}_updateCheckedObservables(){rt(e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);let t=this._itemElements.filter(i=>i.checked).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)})}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),!(!e.element||!e.saneTooltip)&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:t=>{this.linkOpenerDelegate(t)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};kE([dt],Xm.prototype,"onDidChangeFocus",null);kE([dt],Xm.prototype,"onDidChangeSelection",null);Xm=kE([Y7(4,ue),Y7(5,ai)],Xm);function xne(s,e){let{text:t,iconOffsets:i}=e;if(!i||i.length===0)return uK(s,t);let n=cl(t," "),o=t.length-n.length,r=uK(s,n);if(r)for(let a of r){let l=i[a.start+o]+o;a.start+=l,a.end+=l}return r}function uK(s,e){let t=e.toLowerCase().indexOf(s.toLowerCase());return t!==-1?[{start:t,end:t+s.length}]:null}function Lne(s,e,t){let i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:$q(s.saneSortLabel,e.saneSortLabel,t)}function kne(s,e={}){ls.registerCommandAndKeybindingRule({weight:200,when:F1,metadata:{description:m(1758,"Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...s,secondary:J7(s.primary,s.secondary??[],e)})}function Ss(s,e={}){ls.registerCommandAndKeybindingRule({weight:200,when:Ee.and(Ee.or(Ee.equals($m,"quickPick"),Ee.equals($m,"quickTree")),F1),metadata:{description:m(1759,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...s,secondary:J7(s.primary,s.secondary??[],e)})}var Y1=be?256:2048;function J7(s,e,t={}){return t.withAltMod&&e.push(512+s),t.withCtrlMod&&(e.push(Y1+s),t.withAltMod&&e.push(512+Y1+s)),t.withCmdMod&&be&&(e.push(2048+s),t.withCtrlMod&&e.push(2304+s),t.withAltMod&&(e.push(2560+s),t.withCtrlMod&&e.push(2816+s))),e}function ho(s,e){return t=>{let i=t.get(rr).currentQuickInput;if(i)return e&&i.quickNavigate?i.focus(e):i.focus(s)}}Ss({id:"quickInput.pageNext",primary:12,handler:ho(lt.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.pagePrevious",primary:11,handler:ho(lt.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.first",primary:Y1+14,handler:ho(lt.First)},{withAltMod:!0,withCmdMod:!0});Ss({id:"quickInput.last",primary:Y1+13,handler:ho(lt.Last)},{withAltMod:!0,withCmdMod:!0});Ss({id:"quickInput.next",primary:18,handler:ho(lt.Next)},{withCtrlMod:!0});Ss({id:"quickInput.previous",primary:16,handler:ho(lt.Previous)},{withCtrlMod:!0});var fK=m(1760,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),gK=m(1761,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");be?(Ss({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:ho(lt.NextSeparator,lt.Next),metadata:{description:fK}}),Ss({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:ho(lt.NextSeparator)},{withCtrlMod:!0}),Ss({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:ho(lt.PreviousSeparator,lt.Previous),metadata:{description:gK}}),Ss({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:ho(lt.PreviousSeparator)},{withCtrlMod:!0})):(Ss({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:ho(lt.NextSeparator,lt.Next),metadata:{description:fK}}),Ss({id:"quickInput.nextSeparator",primary:2578,handler:ho(lt.NextSeparator)}),Ss({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:ho(lt.PreviousSeparator,lt.Previous),metadata:{description:gK}}),Ss({id:"quickInput.previousSeparator",primary:2576,handler:ho(lt.PreviousSeparator)}));ls.registerCommandAndKeybindingRule({id:"quickInput.accept",primary:3,weight:200,when:Ee.and(Ee.notEquals($m,"quickWidget"),F1,Ee.not("isComposing")),metadata:{description:m(1762,"Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},handler:s=>{s.get(rr).currentQuickInput?.accept()},secondary:J7(3,[],{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})});Ss({id:"quickInput.acceptInBackground",when:Ee.and(F1,Ee.equals($m,"quickPick"),Ee.or(lE.negate(),Oq)),primary:17,weight:250,handler:s=>{s.get(rr).currentQuickInput?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});kne({id:"quickInput.hide",primary:9,handler:s=>{s.get(rr).currentQuickInput?.hide()}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Ss({id:"quickInput.toggleHover",primary:Y1|10,handler:s=>{s.get(rr).toggleHover()}});var Dne=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ine=function(s,e){return function(t,i){e(t,i,s)}},e3,Z1=ie,Jm=class extends N{static{e3=this}static{this.ID="quickInputTreeElement"}constructor(e,t,i,n){super(),this._hoverDelegate=e,this._buttonTriggeredEmitter=t,this.onCheckedEvent=i,this._themeService=n,this.templateId=e3.ID}renderTemplate(e){let t=new q,i=ee(e,Z1(".quick-input-tree-entry")),n=t.add(new zm("",!1,{...Tm,size:15}));i.appendChild(n.domNode);let o=ee(i,Z1("label.quick-input-tree-label")),r=ee(o,Z1(".quick-input-tree-rows")),a=ee(r,Z1(".quick-input-tree-row")),l=wl(a,Z1(".quick-input-tree-icon")),c=t.add(new Ru(a,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this._hoverDelegate})),d=t.add(new rn(i,this._hoverDelegate?{hoverDelegate:this._hoverDelegate}:void 0));return d.domNode.classList.add("quick-input-tree-entry-action-bar"),{toDisposeTemplate:t,entry:i,checkbox:n,icon:l,label:c,actionBar:d,toDisposeElement:new q}}renderElement(e,t,i,n){let o=i.toDisposeElement,r=e.element;if(r.pickable===!1?i.checkbox.domNode.style.display="none":(i.checkbox.domNode.style.display="",i.checkbox.checked=r.checked??!1,o.add($.filter(this.onCheckedEvent,h=>h.item===r)(h=>i.checkbox.checked=h.checked)),r.disabled&&i.checkbox.disable()),r.iconPath){let h=Jo(this._themeService.getColorTheme().type)?r.iconPath.dark:r.iconPath.light??r.iconPath.dark,u=ge.revive(h);i.icon.className="quick-input-tree-icon",i.icon.style.backgroundImage=_s(u)}else i.icon.style.backgroundImage="",i.icon.className=r.iconClass?`quick-input-tree-icon ${r.iconClass}`:"";let{labelHighlights:a,descriptionHighlights:l}=e.filterData||{},c;r.description&&(c={markdown:{value:Fn(r.description),supportThemeIcons:!0},markdownNotSupportedFallback:r.description}),i.label.setLabel(r.label,r.description,{matches:a,descriptionMatches:l,extraClasses:r.iconClasses,italic:r.italic,strikethrough:r.strikethrough,labelEscapeNewLines:!0,descriptionTitle:c});let d=r.buttons;d&&d.length?(i.actionBar.push(d.map((h,u)=>ac(h,`tree-${u}`,()=>this._buttonTriggeredEmitter.fire({item:r,button:h}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i,n){i.toDisposeElement.clear(),i.actionBar.clear()}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}};Jm=e3=Dne([Ine(3,Qt)],Jm);var DE=class{getHeight(e){return 22}getTemplateId(e){return Jm.ID}};function mK(s){let e=!1,t=!1,i=!1;for(let o of s){switch(o.element?.checked){case"mixed":i=!0;break;case!0:e=!0;break;default:t=!0;break}if(e&&t&&i)break}return t?i||e?"mixed":!1:i?"mixed":e}var IE=class{constructor(e){this.onCheckedEvent=e}getWidgetAriaLabel(){return m(1772,"Quick Tree")}getAriaLabel(e){return e.ariaLabel||[e.label,e.description].map(t=>ck(t)).filter(t=>!!t).join(", ")}getWidgetRole(){return"tree"}getRole(e){return"checkbox"}isChecked(e){return{get value(){return e.checked==="mixed"?"mixed":!!e.checked},onDidChange:t=>$.filter(this.onCheckedEvent,i=>i.item===e)(i=>t())}}};var EE=class{constructor(){this.filterValue="",this.matchOnLabel=!0,this.matchOnDescription=!1}filter(e,t){if(!this.filterValue||!(this.matchOnLabel||this.matchOnDescription))return e.children?{visibility:2,data:{}}:{visibility:1,data:{}};let i=this.matchOnLabel?mu(this.filterValue,Xl(e.label))??void 0:void 0,n=this.matchOnDescription?mu(this.filterValue,Xl(e.description||""))??void 0:void 0;return{visibility:t===1||i||n?1:e.children?2:0,data:{labelHighlights:i,descriptionHighlights:n}}}};var TE=class extends N{constructor(){super(...arguments),this._sortByLabel=!0}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}compare(e,t){if(!this._sortByLabel)return 0;if(e.label<t.label)return-1;if(e.label>t.label)return 1;if(e.description&&t.description){if(e.description<t.description)return-1;if(e.description>t.description)return 1}else{if(e.description)return-1;if(t.description)return 1}return 0}};var Ene=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Tne=function(s,e){return function(t,i){e(t,i,s)}},Nne=ie,NE=class extends N{constructor(e,t,i){super(),this.instantiationService=i,this._onDidTriggerButton=this._register(new E),this._onDidChangeCheckboxState=this._register(new E),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event,this._onDidCheckedLeafItemsChange=this._register(new E),this._onLeave=new E,this.onLeave=this._onLeave.event,this._onDidAccept=this._register(new E),this.onDidAccept=this._onDidAccept.event,this._container=ee(e,Nne(".quick-input-tree")),this._renderer=this._register(this.instantiationService.createInstance(Jm,t,this._onDidTriggerButton,this.onDidChangeCheckboxState)),this._filter=this.instantiationService.createInstance(EE),this._sorter=this._register(new TE),this._tree=this._register(this.instantiationService.createInstance(Qm,"QuickInputTree",this._container,new DE,[this._renderer],{accessibilityProvider:new IE(this.onDidChangeCheckboxState),horizontalScrolling:!1,multipleSelectionSupport:!1,findWidgetEnabled:!1,alwaysConsumeMouseWheel:!0,hideTwistiesOfChildlessElements:!0,renderIndentGuides:lc.None,expandOnDoubleClick:!0,expandOnlyOnTwistieClick:!0,disableExpandOnSpacebar:!0,sorter:this._sorter,filter:this._filter})),this.registerOnOpenListener()}get tree(){return this._tree}get displayed(){return this._container.style.display!=="none"}set displayed(e){this._container.style.display=e?"":"none"}get sortByLabel(){return this._sorter.sortByLabel}set sortByLabel(e){this._sorter.sortByLabel=e,this._tree.resort(null,!0)}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}updateFilterOptions(e){e.matchOnLabel!==void 0&&(this._filter.matchOnLabel=e.matchOnLabel),e.matchOnDescription!==void 0&&(this._filter.matchOnDescription=e.matchOnDescription),this._tree.refilter()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}registerOnOpenListener(){this._register(this._tree.onDidOpen(e=>{let t=e.element;if(!t||t.disabled)return;if(t.pickable===!1){this._tree.setFocus([t]),this._onDidAccept.fire();return}let i=t.checked!==!0;if((t.checked??!1)===i)return;t.checked=i,this._tree.rerender(t);let n=new Set,o=[...this._tree.getNode(t).children];for(;o.length;){let a=o.shift();a?.element&&!n.has(a.element)&&(n.add(a.element),(a.element.checked??!1)!==t.checked&&(a.element.checked=t.checked,this._tree.rerender(a.element)),o.push(...a.children))}let r=this._tree.getParentElement(t);for(;r;){let a=[...this._tree.getNode(r).children],l=mK(a);(r.checked??!1)!==l&&(r.checked=l,this._tree.rerender(r)),r=this._tree.getParentElement(r)}this._onDidChangeCheckboxState.fire({item:t,checked:t.checked??!1}),this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems())}))}getCheckedLeafItems(){let e=new Set,t=[...this._tree.getNode().children],i=new Array;for(;t.length;){let n=t.shift();!n?.element||e.has(n.element)||n.element.checked&&(e.add(n.element),t.push(...n.children),n.element.children||i.push(n.element))}return i}};NE=Ene([Tne(2,ue)],NE);var pK=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wu=function(s,e){return function(t,i){e(t,i,s)}},i3,uo=ie,t3="workbench.quickInput.viewState",ME=class extends N{static{i3=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,n,o){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.storageService=o,this.enabled=!0,this.onDidAcceptEmitter=this._register(new E),this.onDidCustomEmitter=this._register(new E),this.onDidTriggerButtonEmitter=this._register(new E),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new E),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new E),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=Tq.bindTo(n),this.quickInputTypeContext=Mq.bindTo(n),this.endOfQuickInputBoxContext=Aq.bindTo(n),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register($.runAndSubscribe(na,({window:r,disposables:a})=>this.registerKeyModsListeners(r,a),{window:Pe,disposables:this._store})),this._register(tN(r=>{this.ui&&J(this.ui.container)===r&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})),this.viewState=this.loadViewState()}registerKeyModsListeners(e,t){let i=n=>{this.keyMods.ctrlCmd=n.ctrlKey||n.metaKey,this.keyMods.alt=n.altKey};for(let n of[K.KEY_DOWN,K.KEY_UP,K.MOUSE_DOWN])t.add(O(e,n,i,!0))}getUI(e){if(this.ui)return e&&J(this._container)!==J(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let t=ee(this._container,uo(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";let i=Oi(t),n=ee(t,uo(".quick-input-titlebar")),o=this._register(new rn(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");let r=ee(n,uo(".quick-input-title")),a=this._register(new rn(n,{hoverDelegate:this.options.hoverDelegate}));a.domNode.classList.add("quick-input-right-action-bar");let l=ee(t,uo(".quick-input-header")),c=this._register(new zm(m(1763,"Toggle all checkboxes"),!1,{...Tm,size:15}));ee(l,c.domNode),this._register(c.onChange(()=>{let z=c.checked;R.setAllVisibleChecked(z===!0)})),this._register(O(c.domNode,K.CLICK,z=>{(z.x||z.y)&&f.setFocus()}));let d=ee(l,uo(".quick-input-description")),h=ee(l,uo(".quick-input-and-message")),u=ee(h,uo(".quick-input-filter")),f=this._register(new $I(u,this.styles.inputBox,this.styles.toggle));f.setAttribute("aria-describedby",`${this.idPrefix}message`);let g=ee(u,uo(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");let p=this._register(new B1(g,{countFormat:m(1764,"{0} Results")},this.styles.countBadge)),_=ee(u,uo(".quick-input-count"));_.setAttribute("aria-live","polite");let w=this._register(new B1(_,{countFormat:m(1765,"{0} Selected")},this.styles.countBadge)),b=this._register(new rn(l,{hoverDelegate:this.options.hoverDelegate}));b.domNode.classList.add("quick-input-inline-action-bar");let v=ee(l,uo(".quick-input-action")),C=this._register(new Nu(v,this.styles.button));C.label=m(1766,"OK"),this._register(C.onDidClick(z=>{this.onDidAcceptEmitter.fire()}));let S=ee(l,uo(".quick-input-action")),L=this._register(new Nu(S,{...this.styles.button,supportIcons:!0}));L.label=m(1767,"Custom"),this._register(L.onDidClick(z=>{this.onDidCustomEmitter.fire()}));let x=ee(h,uo(`#${this.idPrefix}message.quick-input-message`)),k=this._register(new PI(t,this.styles.progressBar));k.getContainer().classList.add("quick-input-progress");let I=ee(t,uo(".quick-input-html-widget"));I.tabIndex=-1;let A=ee(t,uo(".quick-input-description")),P=this.idPrefix+"list",R=this._register(this.instantiationService.createInstance(Xm,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,P));f.setAttribute("aria-controls",P),this._register(R.onDidChangeFocus(()=>{f.hasFocus()&&f.setAttribute("aria-activedescendant",R.getActiveDescendant()??"")})),this._register(R.onChangedAllVisibleChecked(z=>{c.checked=z})),this._register(R.onChangedVisibleCount(z=>{p.setCount(z)})),this._register(R.onChangedCheckedCount(z=>{Kr(()=>w.setCount(z))})),this._register(R.onLeave(()=>{setTimeout(()=>{this.controller&&(f.setFocus(),this.controller instanceof Um&&this.controller.canSelectMany&&R.clearFocus())},0)}));let F=this._register(this.instantiationService.createInstance(NE,t,this.options.hoverDelegate));this._register(F.tree.onDidChangeFocus(()=>{f.hasFocus()&&f.setAttribute("aria-activedescendant",F.getActiveDescendant()??"")})),this._register(F.onLeave(()=>{setTimeout(()=>{this.controller&&(f.setFocus(),F.tree.setFocus([]))},0)})),this._register(F.onDidAccept(()=>{this.onDidAcceptEmitter.fire()})),this._register(F.tree.onDidChangeContentHeight(()=>this.updateLayout()));let H=$o(t);return this._register(H),this._register(O(t,K.FOCUS,z=>{let G=this.getUI();if(Nt(z.relatedTarget,G.inputContainer)){let Y=G.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==Y&&this.endOfQuickInputBoxContext.set(Y)}Nt(z.relatedTarget,G.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=je(z.relatedTarget)?z.relatedTarget:void 0)},!0)),this._register(H.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(vu.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(f.onKeyDown(z=>{let G=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==G&&this.endOfQuickInputBoxContext.set(G),f.removeAttribute("aria-activedescendant")})),this._register(O(t,K.FOCUS,z=>{f.setFocus()})),this.dndController=this._register(this.instantiationService.createInstance(n3,this._container,t,[{node:n,includeChildren:!0},{node:l,includeChildren:!1}],this.viewState)),this._register(we(z=>{let G=this.dndController?.dndViewState.read(z);G&&(G.top!==void 0&&G.left!==void 0?this.viewState={...this.viewState,top:G.top,left:G.left}:this.viewState=void 0,this.updateLayout(),G.done&&this.saveViewState(this.viewState))})),this.ui={container:t,styleSheet:i,leftActionBar:o,titleBar:n,title:r,description1:A,description2:d,widget:I,rightActionBar:a,inlineActionBar:b,checkAll:c,inputContainer:h,filterContainer:u,inputBox:f,visibleCountContainer:g,visibleCount:p,countContainer:_,count:w,okContainer:v,ok:C,message:x,customButtonContainer:S,customButton:L,list:R,tree:F,progressBar:k,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:z=>this.show(z),hide:()=>this.hide(),setVisibilities:z=>this.setVisibilities(z),setEnabled:z=>this.setEnabled(z),setContextKey:z=>this.options.setContextKey(z),linkOpenerDelegate:z=>this.options.linkOpenerDelegate(z)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,ee(this._container,this.ui.container),this.dndController?.reparentUI(this._container))}pick(e,t={},i=cn.None){return new Promise((n,o)=>{let r=d=>{r=n,t.onKeyMods?.(a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}let a=this.createQuickPick({useSeparators:!0}),l,c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{let h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){let h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...d,removeItem:()=>{let h=a.items.indexOf(d.item);if(h!==-1){let u=a.items.slice(),f=u.splice(h,1),g=a.activeItems.filter(_=>_!==f[0]),p=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,g&&(a.activeItems=g),a.keepScrollPosition=p}}})),a.onDidTriggerSeparatorButton(d=>t.onDidTriggerSeparatorButton?.(d)),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{tt(c),r(void 0)})];a.title=t.title,t.value&&(a.value=t.value),a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.prompt=t.prompt,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,t.sortByLabel!==void 0&&(a.sortByLabel=t.sortByLabel),a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{o(d),a.hide()})})}setValidationOnInput(e,t){t&&Vt(t)?(e.severity=Dt.Error,e.validationMessage=t):t&&!Vt(t)?(e.severity=t.severity,e.validationMessage=t.content):(e.severity=Dt.Ignore,e.validationMessage=void 0)}input(e={},t=cn.None){return new Promise(i=>{if(t.isCancellationRequested){i(void 0);return}let n=this.createInputBox(),o=e.validateInput||(()=>Promise.resolve(void 0)),r=$.debounce(n.onDidChangeValue,(d,h)=>h,100),a=e.value||"",l=Promise.resolve(o(a)),c=[n,r(d=>{d!==a&&(l=Promise.resolve(o(d)),a=d),l.then(h=>{d===a&&this.setValidationOnInput(n,h)})}),n.onDidAccept(()=>{let d=n.value;d!==a&&(l=Promise.resolve(o(d)),a=d),l.then(h=>{!h||!Vt(h)&&h.severity!==Dt.Error?(i(d),n.hide()):d===a&&this.setValidationOnInput(n,h)})}),t.onCancellationRequested(()=>{n.hide()}),n.onDidHide(()=>{tt(c),i(void 0)})];n.title=e.title,n.value=e.value||"",n.valueSelection=e.valueSelection,n.prompt=e.prompt,n.placeholder=e.placeHolder,n.password=!!e.password,n.ignoreFocusOut=!!e.ignoreFocusLost,n.show()})}createQuickPick(e={useSeparators:!1}){let t=this.getUI(!0);return new Um(t)}createInputBox(){let e=this.getUI(!0);return new AI(e)}show(e){let t=this.getUI(!0);this.onShowEmitter.fire();let i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",Kt(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Dt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Kt(t.message),t.progressBar.stop(),t.progressBar.getContainer().setAttribute("aria-hidden","true"),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.tree.updateFilterOptions({matchOnDescription:!1,matchOnLabel:!0}),t.tree.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;let n=this.options.backKeybindingLabel();RI.tooltip=n?m(1768,"Back ({0})",n):m(1769,"Back"),t.container.style.display="",this.updateLayout(),this.dndController?.layoutContainer(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.domNode.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.tree.displayed=!!e.tree,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;let t=this.getUI();for(let i of t.leftActionBar.viewItems)i.action.enabled=e;for(let i of t.rightActionBar.viewItems)i.action.enabled=e;e?t.checkAll.enable():t.checkAll.disable(),t.inputBox.enabled=e,t.ok.enabled=e,t.list.enabled=e}}hide(e){let t=this.controller;if(!t)return;t.willHide(e);let i=this.ui?.container,n=i&&!o_(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!n){let o=this.previousFocusElement;for(;o&&!o.offsetParent;)o=o.parentElement??void 0;o?.offsetParent?(o.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}toggleHover(){this.isVisible()&&this.controller instanceof Um&&this.getUI().list.toggleHover()}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){let e=this.ui.container.style,t=Math.min(this.dimension.width*.62,i3.MAX_WIDTH);e.width=t+"px",e.top=`${this.viewState?.top?Math.round(this.dimension.height*this.viewState.top):this.titleBarOffset}px`,e.left=`${Math.round(this.dimension.width*(this.viewState?.left??.5)-t/2)}px`,this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4),this.ui.tree.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list),this.ui.tree.tree.style(this.styles.list);let r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));let a=r.join(`
|
|
819
819
|
`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}loadViewState(){try{let e=JSON.parse(this.storageService.get(t3,-1,"{}"));if(e.top!==void 0||e.left!==void 0)return e}catch{}}saveViewState(e){this.layoutService.activeContainer===this.layoutService.mainContainer&&(e!==void 0?this.storageService.store(t3,JSON.stringify(e),-1,1):this.storageService.remove(t3,-1))}};ME=i3=pK([Wu(1,Xn),Wu(2,ue),Wu(3,xe),Wu(4,Mr)],ME);var n3=class extends N{constructor(e,t,i,n,o,r,a){super(),this._container=e,this._quickInputContainer=t,this._quickInputDragAreas=i,this._layoutService=o,this.configurationService=a,this.dndViewState=fe(this,void 0),this._snapThreshold=20,this._snapLineHorizontalRatio=.25,this._quickInputAlignmentContext=Nq.bindTo(r);let l=W$(this.configurationService)==="custom";this._controlsOnLeft=l&&Rw===1,this._controlsOnRight=l&&(Rw===3||Rw===2),this._registerLayoutListener(),this.registerMouseListeners(),this.dndViewState.set({...n,done:!0},void 0)}reparentUI(e){this._container=e}layoutContainer(e=this._layoutService.activeContainerDimension){let t=this.dndViewState.get(),i=this._quickInputContainer.getBoundingClientRect();if(t?.top&&t?.left){let n=Math.round(t.left*100)/100,o=e.width,r=i.width,a=n*o-r/2;this._layout(t.top*e.height,a)}}_registerLayoutListener(){this._register($.filter(this._layoutService.onDidLayoutContainer,e=>e.container===this._container)(e=>this.layoutContainer(e.dimension)))}registerMouseListeners(){let e=this._quickInputContainer;this._register(Ov(e,t=>{let i=new fi(J(e),t);i.detail===2&&this._quickInputDragAreas.some(({node:n,includeChildren:o})=>o?Nt(i.target,n):i.target===n)&&this.dndViewState.set({top:void 0,left:void 0,done:!0},void 0)})),this._register(Av(e,t=>{let i=J(this._layoutService.activeContainer),n=new fi(i,t);if(!this._quickInputDragAreas.some(({node:h,includeChildren:u})=>u?Nt(n.target,h):n.target===h))return;let o=this._quickInputContainer.getBoundingClientRect(),r=n.browserEvent.clientX-o.left,a=n.browserEvent.clientY-o.top,l=!1,c=nN(i,h=>{new fi(i,h).preventDefault(),l||(l=!0),this._layout(h.clientY-a,h.clientX-r)}),d=Ov(i,h=>{if(l){let u=this.dndViewState.get();this.dndViewState.set({top:u?.top,left:u?.left,done:!0},void 0)}c.dispose(),d.dispose()})}))}_layout(e,t){let i=this._getTopSnapValue(),n=this._getCenterYSnapValue(),o=this._getCenterXSnapValue();e=Math.max(0,Math.min(e,this._container.clientHeight-this._quickInputContainer.clientHeight)),e<this._layoutService.activeContainerOffset.top&&(this._controlsOnLeft?t=Math.max(t,80/yp(He())):this._controlsOnRight&&(t=Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth-140/yp(He()))));let r=Math.abs(e-i)<this._snapThreshold;e=r?i:e;let a=Math.abs(e-n)<this._snapThreshold;e=a?n:e;let l=e/this._container.clientHeight;t=Math.max(0,Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth));let c=Math.abs(t-o)<this._snapThreshold;t=c?o:t;let d=this._container.clientWidth,h=this._quickInputContainer.clientWidth,f=(t+h/2)/d;if(this.dndViewState.set({top:l,left:f,done:!1},void 0),c){if(r){this._quickInputAlignmentContext.set("top");return}else if(a){this._quickInputAlignmentContext.set("center");return}}this._quickInputAlignmentContext.set(void 0)}_getTopSnapValue(){return this._layoutService.activeContainerOffset.quickPickTop}_getCenterYSnapValue(){return Math.round(this._container.clientHeight*this._snapLineHorizontalRatio)}_getCenterXSnapValue(){return Math.round(this._container.clientWidth/2)-Math.round(this._quickInputContainer.clientWidth/2)}};n3=pK([Wu(4,Xn),Wu(5,xe),Wu(6,Ue)],n3);var Mne=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Q1=function(s,e){return function(t,i){e(t,i,s)}},RE=class extends iy{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(NI))),this._quickAccess}constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=o,this._onShow=this._register(new E),this._onHide=this._register(new E),this.contexts=new Map}createController(e=this.layoutService,t){let i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:o=>this.setContextKey(o),linkOpenerDelegate:o=>{this.instantiationService.invokeFunction(r=>{r.get(bd).open(o,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(OI))},n=this._register(this.instantiationService.createInstance(ME,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer(o=>{J(e.activeContainer)===J(n.container)&&n.layout(o,e.activeContainerOffset.quickPickTop)})),this._register(e.onDidChangeActiveContainer(()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)})),this._register(n.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(n.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ae(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t,i=cn.None){return this.controller.pick(e,t,i)}input(e={},t=cn.None){return this.controller.input(e,t)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}toggleHover(){this.hasController&&this.controller.toggleHover()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:Q(_C),quickInputForeground:Q(EW),quickInputTitleBackground:Q(TW),widgetBorder:Q(hC),widgetShadow:Q(Vc)},inputBox:oP,toggle:sP,countBadge:A$,button:N$,progressBar:M$,keybindingLabel:T$,list:ku({listBackground:_C,listFocusBackground:F_,listFocusForeground:P_,listInactiveFocusForeground:P_,listInactiveSelectionIconForeground:wC,listInactiveFocusBackground:F_,listFocusOutline:At,listInactiveFocusOutline:At,treeStickyScrollBackground:_C}),pickerGroup:{pickerGroupBorder:Q(NW),pickerGroupForeground:Q(bC)}}}};RE=Mne([Q1(0,ue),Q1(1,xe),Q1(2,Qt),Q1(3,Xn),Q1(4,Ue)],RE);var _K=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vu=function(s,e){return function(t,i){e(t,i,s)}},s3=class extends RE{constructor(e,t,i,n,o,r){super(t,i,n,new FL(e.getContainerDomNode(),o),r),this.host=void 0;let a=X1.get(e);if(a){let l=a.widget;this.host={_serviceBrand:void 0,get mainContainer(){return l.getDomNode()},getContainer(){return l.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[l.getDomNode()]},get activeContainer(){return l.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return $.map(e.onDidLayoutChange,c=>({container:l.getDomNode(),dimension:c}))},get onDidChangeActiveContainer(){return $.None},get onDidAddContainer(){return $.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};s3=_K([Vu(1,ue),Vu(2,xe),Vu(3,Qt),Vu(4,_t),Vu(5,Ue)],s3);var AE=class{get activeService(){let e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){let i=t=this.instantiationService.createInstance(s3,e);this.mapEditorToService.set(e,t),ll(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t,i=cn.None){return this.activeService.pick(e,t,i)}input(e,t){return this.activeService.input(e,t)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}toggleHover(){return this.activeService.toggleHover()}};AE=_K([Vu(0,ue),Vu(1,_t)],AE);var X1=class s{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(s.ID)}constructor(e){this.editor=e,this.widget=new o3(this.editor)}dispose(){this.widget.dispose()}},o3=class s{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return s.ID}getDomNode(){return this.domNode}getPosition(){return{preference:{top:0,left:0}}}dispose(){this.codeEditor.removeOverlayWidget(this)}};h0(X1.ID,X1,4);var bK={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[Es]:"#FFFFFE",[Eh]:"#000000",[LM]:"#E5EBF1",[jh]:"#D3D3D3",[Gh]:"#939393",[kM]:"#ADD6FF4D"}},wK={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Es]:"#1E1E1E",[Eh]:"#D4D4D4",[LM]:"#3A3D41",[jh]:"#404040",[Gh]:"#707070",[kM]:"#ADD6FF26"}},vK={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Es]:"#000000",[Eh]:"#FFFFFF",[jh]:"#FFFFFF",[Gh]:"#FFFFFF"}},CK={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[Es]:"#FFFFFF",[Eh]:"#292929",[jh]:"#292929",[Gh]:"#292929"}};var Rne={IconContribution:"base.contributions.icons"},yK;(function(s){function e(t,i){let n=t.defaults;for(;Ce.isThemeIcon(n);){let o=Hu.getIcon(n.id);if(!o)return;n=o.defaults}return n}s.getDefinition=e})(yK||(yK={}));var SK;(function(s){function e(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}s.toJSONObject=e;function t(i){let n=o=>Vt(o)?o:void 0;if(i&&Array.isArray(i.src)&&i.src.every(o=>Vt(o.format)&&Vt(o.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(o=>({format:o.format,location:ge.parse(o.location)}))}}s.fromJSONObject=t})(SK||(SK={}));var Ane=/^([\w_-]+)$/,One=m(2024,"The font ID must only contain letters, numbers, underscores and dashes."),r3=class extends N{constructor(){super(),this._onDidChange=this._register(new E),this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:m(2025,"The id of the font to use. If not set, the font that is defined first is used."),pattern:Ane.source,patternErrorMessage:One},fontCharacter:{type:"string",description:m(2026,"The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ce.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return o}let r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;let a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(o,r)=>o.id.localeCompare(r.id),t=o=>{for(;Ce.isThemeIcon(o.defaults);)o=this.iconsById[o.defaults.id];return`codicon codicon-${o?o.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(o=>this.iconsById[o]);for(let o of n.filter(r=>!!r.description).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|${Ce.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(let o of n.filter(r=>!Ce.isThemeIcon(r.defaults)).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|`);return i.join(`
|
|
820
820
|
`)}},Hu=new r3;ct.add(Rne.IconContribution,Hu);function Ya(s,e,t,i){return Hu.registerIcon(s,e,t,i)}function a3(){return Hu}function Pne(){let s=qv();for(let e in s){let t="\\"+s[e].toString(16);Hu.registerIcon(e,{fontCharacter:t})}}Pne();var LK="vscode://schemas/icons",kK=ct.as(xh.JSONContribution);kK.registerSchema(LK,Hu.getIconSchema());var xK=new ft(()=>kK.notifySchemaChanged(LK),200);Hu.onDidChange(()=>{xK.isScheduled()||xK.schedule()});var Cat=Ya("widget-close",Z.close,m(2027,"Icon for the close action in widgets."));Ya("goto-previous-location",Z.arrowUp,m(2028,"Icon for goto previous editor location."));Ya("goto-next-location",Z.arrowDown,m(2029,"Icon for goto next editor location."));Ce.modify(Z.sync,"spin");Ce.modify(Z.loading,"spin");function DK(s){let e=new q,t=e.add(new E),i=a3();return e.add(i.onDidChange(()=>t.fire())),s&&e.add(s.onDidProductIconThemeChange(()=>t.fire())),{dispose:()=>e.dispose(),onDidChange:t.event,getCSS(){let n=s?s.getProductIconTheme():new J1,o={},r=new xm,a=new xm;for(let l of i.getIcons()){let c=n.getIcon(l);if(!c)continue;let d=c.font,h=bs`--vscode-icon-${v1(l.id)}-font-family`,u=bs`--vscode-icon-${v1(l.id)}-content`;d?(o[d.id]=d.definition,a.push(bs`${h}: ${sc(d.id)};`,bs`${u}: ${sc(c.fontCharacter)};`),r.push(bs`.codicon-${v1(l.id)}:before { content: ${sc(c.fontCharacter)}; font-family: ${sc(d.id)}; }`)):(a.push(bs`${u}: ${sc(c.fontCharacter)}; ${h}: 'codicon';`),r.push(bs`.codicon-${v1(l.id)}:before { content: ${sc(c.fontCharacter)}; }`))}for(let l in o){let c=o[l],d=c.weight?bs`font-weight: ${WO(c.weight)};`:bs``,h=c.style?bs`font-style: ${WO(c.style)};`:bs``,u=new xm;for(let f of c.src)u.push(bs`${_s(f.location)} format(${sc(f.format)})`);r.push(bs`@font-face { src: ${u.join(", ")}; font-family: ${sc(l)};${d}${h} font-display: block; }`)}return r.push(bs`:root { ${a.join(" ")} }`),r.join(`
|
|
821
821
|
`)}}}var J1=class{getIcon(e){let t=a3(),i=e.defaults;for(;Ce.isThemeIcon(i);){let n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}};var Ad="vs",ew="vs-dark",ep="hc-black",tp="hc-light",IK=ct.as(bM.ColorContribution),Fne=ct.as(lA.ThemingContribution),FE=class{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(PE(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let e=new Map;for(let t in this.themeData.colors)e.set(t,V.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=l3(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,V.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){let i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=IK.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case Ad:return Ts.LIGHT;case ep:return Ts.HIGH_CONTRAST_DARK;case tp:return Ts.HIGH_CONTRAST_LIGHT;default:return Ts.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let o=l3(this.themeData.base);e=o.rules,o.encodedTokensColors&&(t=o.encodedTokensColors)}let i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){let o={token:""};i&&(o.foreground=i),n&&(o.background=n),e.push(o)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=zb.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){let o=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=qi.getForeground(o),a=qi.getFontStyle(o);return{foreground:r,italic:!!(a&1),bold:!!(a&2),underline:!!(a&4),strikethrough:!!(a&8)}}get tokenColorMap(){return[]}};function PE(s){return s===Ad||s===ew||s===ep||s===tp}function l3(s){switch(s){case Ad:return bK;case ew:return wK;case ep:return vK;case tp:return CK}}function OE(s){let e=l3(s);return new FE(s,e)}var BE=class extends N{constructor(){super(),this._onColorThemeChange=this._register(new E),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new E),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new J1,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ad,OE(Ad)),this._knownThemes.set(ew,OE(ew)),this._knownThemes.set(ep,OE(ep)),this._knownThemes.set(tp,OE(tp));let e=this._register(DK(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|