@thxgg/steward 0.1.5 → 0.1.7
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/83L43bj1.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B3hkJjmY.js +1 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/B93PlW-d.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BLmx8bSh.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BNzFoVmP.js +1 -0
- package/.output/public/_nuxt/BPQ3VLAy.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BR5kRUq4.js +1 -0
- package/.output/public/_nuxt/BRDbaJqY.js +4 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BVQ-GDCI.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYV0-3_D.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/Bhrxn6JZ.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bo1Fdv48.js +76 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/BqmZq_gb.js +1 -0
- package/.output/public/_nuxt/Br6cN0cg.js +1 -0
- package/.output/public/_nuxt/Bri1ZtcQ.js +1 -0
- package/.output/public/_nuxt/BrzmwbiE.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtvRca6l.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/BzTr9Aqm.js +1 -0
- package/.output/public/_nuxt/C-HG3fhB.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C4gqWexZ.js +1 -0
- package/.output/public/_nuxt/C5YyOfLZ.js +1 -0
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/C9oPPf7i.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEJOILWG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CFHQjOhq.js +1 -0
- package/.output/public/_nuxt/CFsNy2aC.js +1 -0
- package/.output/public/_nuxt/CG6Dc4jp.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGscLIrv.js +1 -0
- package/.output/public/_nuxt/CH1njM8p.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CVdnzihN.js +1 -0
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/CXZktZb0.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/CZhp0h8q.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CenWIFCC.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/CklMAg4u.js +1 -0
- package/.output/public/_nuxt/Cl0AqbOI.js +1 -0
- package/.output/public/_nuxt/Cm3UrAx6.js +1 -0
- package/.output/public/_nuxt/CmIQRyeF.js +1 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/Cn7AkR1O.js +1 -0
- package/.output/public/_nuxt/CnnebwVN.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/CpOuai2O.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CuPHTKiy.js +1 -0
- package/.output/public/_nuxt/CufHLc7y.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cvjx9yec.js +1 -0
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/CxbxFI8M.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D0zW6lUK.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4_iv3hh.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGP4VlC8.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DHQR4-dF.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DQwYQDb2.js +1 -0
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRw_LuNl.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DYDTtHLR.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/DZu-aV2c.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/Dg5xB15N.js +1 -0
- package/.output/public/_nuxt/DhQtydpF.js +3 -0
- package/.output/public/_nuxt/DhmSosst.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/Dph4kLrZ.js +1 -0
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/Dv7Oe6Be.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DxNHbxmM.js +1 -0
- package/.output/public/_nuxt/DxSwrfjg.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/Dzze3sRP.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/GsRaNv29.js +1 -0
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/RNghxpo_.js +1 -0
- package/.output/public/_nuxt/TsXTqZ29.js +1 -0
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/W9tJ9s81.js +1 -0
- package/.output/public/_nuxt/X6fIXIFO.js +1 -0
- package/.output/public/_nuxt/YqXBG_HV.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/_prd_.DYvuV73Q.css +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/6683a0d9-9c02-4098-b750-bbbc0305261e.json +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/entry.Dk19PK4d.css +1 -0
- package/.output/public/_nuxt/error-404.o50T1Yh0.css +1 -0
- package/.output/public/_nuxt/error-500.DdcU-NLM.css +1 -0
- package/.output/public/_nuxt/fKv21gyL.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/hJgmCMqR.js +1 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/k_qm7-4y.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/m17aaUwq.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/mjskCLCv.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/qdsjHGoJ.js +1 -0
- package/.output/public/_nuxt/rGO070M0.js +1 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/wDzz0qaB.js +1 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/git-api.mjs +100 -0
- package/.output/server/chunks/_/git-api.mjs.map +1 -0
- package/.output/server/chunks/_/git.mjs +303 -0
- package/.output/server/chunks/_/git.mjs.map +1 -0
- package/.output/server/chunks/_/watcher.mjs +129 -0
- package/.output/server/chunks/_/watcher.mjs.map +1 -0
- package/.output/server/chunks/build/Column-styles.fAtZNsCt.mjs +8 -0
- package/.output/server/chunks/build/Column-styles.fAtZNsCt.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-ZdBUa15f.mjs +4 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-ZdBUa15f.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles-2.mjs-X6QKNjM0.mjs +4 -0
- package/.output/server/chunks/build/DiffViewer-styles-2.mjs-X6QKNjM0.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.0AbHFl6N.mjs +8 -0
- package/.output/server/chunks/build/DiffViewer-styles.0AbHFl6N.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.CoMVrk_N.mjs +8 -0
- package/.output/server/chunks/build/DiffViewer-styles.CoMVrk_N.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.cLfMOdMh.mjs +10 -0
- package/.output/server/chunks/build/DiffViewer-styles.cLfMOdMh.mjs.map +1 -0
- package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs +8 -0
- package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs.map +1 -0
- package/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
- package/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
- package/.output/server/chunks/build/_prd_-CnwhMRyf.mjs +4225 -0
- package/.output/server/chunks/build/_prd_-CnwhMRyf.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-DGOIWqjD.mjs +2222 -0
- package/.output/server/chunks/build/default-DGOIWqjD.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-Bf6kdO80.mjs +98 -0
- package/.output/server/chunks/build/error-404-Bf6kdO80.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DjEXIT5C.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DjEXIT5C.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-D_bcARXN.mjs +76 -0
- package/.output/server/chunks/build/error-500-D_bcARXN.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.DObwArFs.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.DObwArFs.mjs.map +1 -0
- package/.output/server/chunks/build/index-CTpuP9Mj.mjs +76 -0
- package/.output/server/chunks/build/index-CTpuP9Mj.mjs.map +1 -0
- package/.output/server/chunks/build/index-D21S97KB.mjs +256 -0
- package/.output/server/chunks/build/index-D21S97KB.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs +290 -0
- package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1257 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +17 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/usePrd-YhvN6Ary.mjs +563 -0
- package/.output/server/chunks/build/usePrd-YhvN6Ary.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +8056 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/browse.get.mjs +55 -0
- package/.output/server/chunks/routes/api/browse.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +17 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +46 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs +111 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs +86 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs +95 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs +112 -0
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs +44 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs +121 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs +44 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs +81 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs +76 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs +44 -0
- package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs +34 -0
- package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/watch.get.mjs +67 -0
- package/.output/server/chunks/routes/api/watch.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +500 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +11 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1055 -0
- package/.output/server/node_modules/@floating-ui/core/package.json +63 -0
- package/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +777 -0
- package/.output/server/node_modules/@floating-ui/dom/package.json +71 -0
- package/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
- package/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +139 -0
- package/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
- package/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
- package/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
- package/.output/server/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs +48 -0
- package/.output/server/node_modules/@internationalized/date/dist/CalendarDate.mjs +252 -0
- package/.output/server/node_modules/@internationalized/date/dist/DateFormatter.mjs +140 -0
- package/.output/server/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs +167 -0
- package/.output/server/node_modules/@internationalized/date/dist/GregorianCalendar.mjs +140 -0
- package/.output/server/node_modules/@internationalized/date/dist/HebrewCalendar.mjs +150 -0
- package/.output/server/node_modules/@internationalized/date/dist/IndianCalendar.mjs +101 -0
- package/.output/server/node_modules/@internationalized/date/dist/IslamicCalendar.mjs +161 -0
- package/.output/server/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs +174 -0
- package/.output/server/node_modules/@internationalized/date/dist/PersianCalendar.mjs +82 -0
- package/.output/server/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs +75 -0
- package/.output/server/node_modules/@internationalized/date/dist/conversion.mjs +218 -0
- package/.output/server/node_modules/@internationalized/date/dist/createCalendar.mjs +64 -0
- package/.output/server/node_modules/@internationalized/date/dist/import.mjs +45 -0
- package/.output/server/node_modules/@internationalized/date/dist/manipulation.mjs +344 -0
- package/.output/server/node_modules/@internationalized/date/dist/queries.mjs +320 -0
- package/.output/server/node_modules/@internationalized/date/dist/string.mjs +175 -0
- package/.output/server/node_modules/@internationalized/date/dist/utils.mjs +17 -0
- package/.output/server/node_modules/@internationalized/date/dist/weekStartData.mjs +113 -0
- package/.output/server/node_modules/@internationalized/date/package.json +35 -0
- package/.output/server/node_modules/@internationalized/number/dist/NumberFormatter.mjs +152 -0
- package/.output/server/node_modules/@internationalized/number/dist/NumberParser.mjs +273 -0
- package/.output/server/node_modules/@internationalized/number/dist/import.mjs +19 -0
- package/.output/server/node_modules/@internationalized/number/package.json +35 -0
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2446 -0
- package/.output/server/node_modules/@shikijs/core/package.json +56 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
- package/.output/server/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
- package/.output/server/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
- package/.output/server/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/c.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cpp-macro.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cpp.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/d.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/go.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/http.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/java.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
- package/.output/server/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/less.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/log.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/make.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/move.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/nextflow.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
- package/.output/server/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
- package/.output/server/node_modules/@shikijs/langs/dist/php.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/po.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/python.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/r.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
- package/.output/server/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
- package/.output/server/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/typst.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/v.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/package.json +380 -0
- package/.output/server/node_modules/@shikijs/themes/dist/andromeeda.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/aurora-x.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/ayu-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/ayu-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/ayu-mirage.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-frappe.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-latte.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-macchiato.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-mocha.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/dark-plus.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/dracula-soft.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/dracula.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/everforest-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/everforest-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark-default.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark-dimmed.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark-high-contrast.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-light-default.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-light-high-contrast.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-hard.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-medium.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-soft.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/horizon.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/houston.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-dragon.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-lotus.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-wave.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/laserwave.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/light-plus.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/material-theme-darker.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/material-theme-lighter.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/material-theme-ocean.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/material-theme-palenight.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/material-theme.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/min-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/min-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/monokai.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/night-owl-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/night-owl.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/nord.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/one-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/plastic.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/poimandres.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/red.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/rose-pine-dawn.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/rose-pine-moon.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/rose-pine.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/slack-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/slack-ochin.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/snazzy-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/solarized-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/solarized-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/synthwave-84.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/tokyo-night.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/vesper.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/vitesse-black.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/vitesse-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/vitesse-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/package.json +102 -0
- package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/.output/server/node_modules/@shikijs/types/package.json +36 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
- package/.output/server/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
- package/.output/server/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
- package/.output/server/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
- package/.output/server/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/.output/server/node_modules/@swc/helpers/package.json +694 -0
- package/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +887 -0
- package/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +73 -0
- package/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
- package/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
- package/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6798 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1750 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@vueuse/core/dist/index.js +8596 -0
- package/.output/server/node_modules/@vueuse/core/package.json +49 -0
- package/.output/server/node_modules/@vueuse/shared/dist/index.js +2066 -0
- package/.output/server/node_modules/@vueuse/shared/package.json +42 -0
- package/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
- package/.output/server/node_modules/aria-hidden/package.json +71 -0
- package/.output/server/node_modules/ccount/index.js +27 -0
- package/.output/server/node_modules/ccount/package.json +71 -0
- package/.output/server/node_modules/character-entities-html4/index.js +259 -0
- package/.output/server/node_modules/character-entities-html4/package.json +79 -0
- package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
- package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
- package/.output/server/node_modules/chokidar/handler.js +632 -0
- package/.output/server/node_modules/chokidar/index.js +822 -0
- package/.output/server/node_modules/chokidar/package.json +63 -0
- package/.output/server/node_modules/class-variance-authority/dist/index.mjs +56 -0
- package/.output/server/node_modules/class-variance-authority/package.json +63 -0
- package/.output/server/node_modules/clsx/dist/clsx.mjs +1 -0
- package/.output/server/node_modules/clsx/package.json +60 -0
- package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
- package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
- package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
- package/.output/server/node_modules/defu/package.json +43 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +7 -0
- package/.output/server/node_modules/devalue/src/parse.js +246 -0
- package/.output/server/node_modules/devalue/src/stringify.js +350 -0
- package/.output/server/node_modules/devalue/src/uneval.js +490 -0
- package/.output/server/node_modules/devalue/src/utils.js +148 -0
- package/.output/server/node_modules/dompurify/dist/purify.es.mjs +1386 -0
- package/.output/server/node_modules/dompurify/package.json +171 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
- package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
- package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
- package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
- package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
- package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
- package/.output/server/node_modules/hookable/package.json +52 -0
- package/.output/server/node_modules/html-void-elements/index.js +27 -0
- package/.output/server/node_modules/html-void-elements/package.json +79 -0
- package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +24066 -0
- package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
- package/.output/server/node_modules/marked/lib/marked.esm.js +72 -0
- package/.output/server/node_modules/marked/package.json +103 -0
- package/.output/server/node_modules/ohash/dist/crypto/node/index.mjs +5 -0
- package/.output/server/node_modules/ohash/dist/index.mjs +10 -0
- package/.output/server/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs +13 -0
- package/.output/server/node_modules/ohash/package.json +57 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
- package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
- package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
- package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/.output/server/node_modules/property-information/index.js +17 -0
- package/.output/server/node_modules/property-information/lib/aria.js +61 -0
- package/.output/server/node_modules/property-information/lib/find.js +97 -0
- package/.output/server/node_modules/property-information/lib/hast-to-react.js +30 -0
- package/.output/server/node_modules/property-information/lib/html.js +322 -0
- package/.output/server/node_modules/property-information/lib/normalize.js +12 -0
- package/.output/server/node_modules/property-information/lib/svg.js +567 -0
- package/.output/server/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
- package/.output/server/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
- package/.output/server/node_modules/property-information/lib/util/create.js +69 -0
- package/.output/server/node_modules/property-information/lib/util/defined-info.js +60 -0
- package/.output/server/node_modules/property-information/lib/util/info.js +32 -0
- package/.output/server/node_modules/property-information/lib/util/merge.js +27 -0
- package/.output/server/node_modules/property-information/lib/util/schema.js +29 -0
- package/.output/server/node_modules/property-information/lib/util/types.js +13 -0
- package/.output/server/node_modules/property-information/lib/xlink.js +17 -0
- package/.output/server/node_modules/property-information/lib/xml.js +9 -0
- package/.output/server/node_modules/property-information/lib/xmlns.js +9 -0
- package/.output/server/node_modules/property-information/package.json +121 -0
- package/.output/server/node_modules/readdirp/index.js +272 -0
- package/.output/server/node_modules/readdirp/package.json +66 -0
- package/.output/server/node_modules/regex/package.json +60 -0
- package/.output/server/node_modules/regex/src/atomic.js +224 -0
- package/.output/server/node_modules/regex/src/internals.js +2 -0
- package/.output/server/node_modules/regex/src/subclass.js +98 -0
- package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
- package/.output/server/node_modules/regex-recursion/package.json +47 -0
- package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
- package/.output/server/node_modules/regex-utilities/package.json +35 -0
- package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
- package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionContent.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionHeader.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionItem.js +116 -0
- package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionRoot.js +96 -0
- package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionTrigger.js +68 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogAction.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogCancel.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogContent.js +73 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogDescription.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogOverlay.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogRoot.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogTitle.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogTrigger.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/AspectRatio/AspectRatio.js +56 -0
- package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarFallback.js +59 -0
- package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarImage.js +76 -0
- package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarRoot.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Avatar/utils.js +49 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarCell.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarCellTrigger.js +176 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGrid.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridBody.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridHead.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridRow.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeadCell.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeader.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeading.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarNext.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarPrev.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarRoot.js +317 -0
- package/.output/server/node_modules/reka-ui/dist/Calendar/useCalendar.js +267 -0
- package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxGroupRoot.js +115 -0
- package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxIndicator.js +59 -0
- package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxRoot.js +157 -0
- package/.output/server/node_modules/reka-ui/dist/Checkbox/utils.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleContent.js +113 -0
- package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleRoot.js +86 -0
- package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleTrigger.js +59 -0
- package/.output/server/node_modules/reka-ui/dist/Collection/Collection.js +79 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js +50 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxArrow.js +55 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxCancel.js +50 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxContent.js +144 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js +214 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxInput.js +134 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxItem.js +88 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js +259 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxSeparator.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js +68 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js +64 -0
- package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxVirtualizer.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuCheckboxItem.js +55 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuContent.js +136 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuGroup.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuItem.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuItemIndicator.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuLabel.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRadioGroup.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRadioItem.js +55 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRoot.js +74 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSeparator.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSub.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSubContent.js +126 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSubTrigger.js +44 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuTrigger.js +124 -0
- package/.output/server/node_modules/reka-ui/dist/ContextMenu/utils.js +8 -0
- package/.output/server/node_modules/reka-ui/dist/DateField/DateFieldInput.js +90 -0
- package/.output/server/node_modules/reka-ui/dist/DateField/DateFieldRoot.js +284 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerAnchor.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerArrow.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCalendar.js +60 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCell.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCellTrigger.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerClose.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerContent.js +147 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerField.js +56 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGrid.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridBody.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridHead.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridRow.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeadCell.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeader.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeading.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerInput.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerNext.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerPrev.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerRoot.js +245 -0
- package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerTrigger.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangeField/DateRangeFieldInput.js +96 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangeField/DateRangeFieldRoot.js +342 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerAnchor.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerArrow.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCalendar.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCell.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCellTrigger.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerClose.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerContent.js +147 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerField.js +57 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGrid.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridBody.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridHead.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridRow.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeadCell.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeader.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeading.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerInput.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerNext.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerPrev.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerRoot.js +284 -0
- package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerTrigger.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogClose.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContent.js +79 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +111 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +85 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +87 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogDescription.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogRoot.js +71 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogTitle.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/DialogTrigger.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/Dialog/utils.js +26 -0
- package/.output/server/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js +130 -0
- package/.output/server/node_modules/reka-ui/dist/DismissableLayer/DismissableLayerBranch.js +43 -0
- package/.output/server/node_modules/reka-ui/dist/DismissableLayer/utils.js +122 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuCheckboxItem.js +55 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuContent.js +158 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuGroup.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuItem.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuItemIndicator.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuLabel.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRadioGroup.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRadioItem.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRoot.js +82 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSeparator.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSub.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSubContent.js +126 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSubTrigger.js +44 -0
- package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuTrigger.js +95 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableArea.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableCancelTrigger.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableEditTrigger.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableInput.js +90 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditablePreview.js +62 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableRoot.js +224 -0
- package/.output/server/node_modules/reka-ui/dist/Editable/EditableSubmitTrigger.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/FocusScope/FocusScope.js +154 -0
- package/.output/server/node_modules/reka-ui/dist/FocusScope/stack.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/FocusScope/utils.js +79 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +131 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +192 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +88 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +70 -0
- package/.output/server/node_modules/reka-ui/dist/HoverCard/utils.js +20 -0
- package/.output/server/node_modules/reka-ui/dist/Label/Label.js +43 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxContent.js +79 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxFilter.js +104 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxGroup.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxGroupLabel.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxItem.js +108 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxRoot.js +338 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxVirtualizer.js +218 -0
- package/.output/server/node_modules/reka-ui/dist/Listbox/utils.js +22 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuAnchor.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuArrow.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuCheckboxItem.js +65 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuContent.js +143 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuContentImpl.js +324 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuGroup.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuItem.js +90 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuItemImpl.js +100 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuItemIndicator.js +54 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuLabel.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuRadioGroup.js +54 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuRadioItem.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuRoot.js +71 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuRootContentModal.js +135 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuRootContentNonModal.js +129 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuSeparator.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuSub.js +64 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuSubContent.js +167 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/MenuSubTrigger.js +157 -0
- package/.output/server/node_modules/reka-ui/dist/Menu/utils.js +69 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarCheckboxItem.js +55 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarContent.js +180 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarGroup.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarItem.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarItemIndicator.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarLabel.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarMenu.js +56 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRadioGroup.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRadioItem.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRoot.js +100 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSeparator.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSub.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSubContent.js +147 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSubTrigger.js +44 -0
- package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarTrigger.js +125 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuContent.js +95 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuContentImpl.js +166 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuIndicator.js +85 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuItem.js +121 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuLink.js +75 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuList.js +57 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuRoot.js +183 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuSub.js +114 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuTrigger.js +150 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuViewport.js +158 -0
- package/.output/server/node_modules/reka-ui/dist/NavigationMenu/utils.js +61 -0
- package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldDecrement.js +69 -0
- package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldIncrement.js +69 -0
- package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldInput.js +115 -0
- package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldRoot.js +224 -0
- package/.output/server/node_modules/reka-ui/dist/NumberField/utils.js +72 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationEllipsis.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationFirst.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationLast.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationList.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationListItem.js +59 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationNext.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationPrev.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationRoot.js +96 -0
- package/.output/server/node_modules/reka-ui/dist/Pagination/utils.js +74 -0
- package/.output/server/node_modules/reka-ui/dist/PinInput/PinInputInput.js +210 -0
- package/.output/server/node_modules/reka-ui/dist/PinInput/PinInputRoot.js +149 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverAnchor.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverClose.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContent.js +139 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +171 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +146 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +148 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverRoot.js +70 -0
- package/.output/server/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +68 -0
- package/.output/server/node_modules/reka-ui/dist/Popper/PopperAnchor.js +49 -0
- package/.output/server/node_modules/reka-ui/dist/Popper/PopperArrow.js +96 -0
- package/.output/server/node_modules/reka-ui/dist/Popper/PopperContent.js +273 -0
- package/.output/server/node_modules/reka-ui/dist/Popper/PopperRoot.js +27 -0
- package/.output/server/node_modules/reka-ui/dist/Popper/utils.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Presence/Presence.js +50 -0
- package/.output/server/node_modules/reka-ui/dist/Presence/usePresence.js +122 -0
- package/.output/server/node_modules/reka-ui/dist/Primitive/Primitive.js +33 -0
- package/.output/server/node_modules/reka-ui/dist/Primitive/Slot.js +30 -0
- package/.output/server/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js +16 -0
- package/.output/server/node_modules/reka-ui/dist/Progress/ProgressIndicator.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/Progress/ProgressRoot.js +124 -0
- package/.output/server/node_modules/reka-ui/dist/RadioGroup/Radio.js +126 -0
- package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupIndicator.js +57 -0
- package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupItem.js +132 -0
- package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupRoot.js +138 -0
- package/.output/server/node_modules/reka-ui/dist/RadioGroup/utils.js +15 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCell.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCellTrigger.js +237 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGrid.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridBody.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridHead.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridRow.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeadCell.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeader.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeading.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarNext.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarPrev.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarRoot.js +392 -0
- package/.output/server/node_modules/reka-ui/dist/RangeCalendar/useRangeCalendar.js +145 -0
- package/.output/server/node_modules/reka-ui/dist/RovingFocus/RovingFocusGroup.js +145 -0
- package/.output/server/node_modules/reka-ui/dist/RovingFocus/RovingFocusItem.js +110 -0
- package/.output/server/node_modules/reka-ui/dist/RovingFocus/utils.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaCorner.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaCornerImpl.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaRoot.js +128 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbar.js +99 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarAuto.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarGlimpse.js +126 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarHover.js +65 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarImpl.js +123 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarScroll.js +88 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarVisible.js +107 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarX.js +45 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarY.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaThumb.js +98 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaViewport.js +76 -0
- package/.output/server/node_modules/reka-ui/dist/ScrollArea/utils.js +72 -0
- package/.output/server/node_modules/reka-ui/dist/Select/BubbleSelect.js +95 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectArrow.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectContent.js +160 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectContentImpl.js +311 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectGroup.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectIcon.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectItem.js +153 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectItemAlignedPosition.js +162 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectItemIndicator.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectItemText.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectLabel.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectPopperPosition.js +118 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectProvider.js +29 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectRoot.js +185 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollButtonImpl.js +62 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollDownButton.js +62 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollUpButton.js +61 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectSeparator.js +34 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectTrigger.js +132 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectValue.js +72 -0
- package/.output/server/node_modules/reka-ui/dist/Select/SelectViewport.js +97 -0
- package/.output/server/node_modules/reka-ui/dist/Select/utils.js +30 -0
- package/.output/server/node_modules/reka-ui/dist/Separator/Separator.js +43 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderHorizontal.js +106 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderImpl.js +78 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderRange.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderRoot.js +217 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderThumb.js +40 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderThumbImpl.js +103 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderTrack.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/SliderVertical.js +101 -0
- package/.output/server/node_modules/reka-ui/dist/Slider/utils.js +129 -0
- package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +409 -0
- package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterPanel.js +151 -0
- package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js +154 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperDescription.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperItem.js +94 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperRoot.js +172 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperSeparator.js +52 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperTitle.js +39 -0
- package/.output/server/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +115 -0
- package/.output/server/node_modules/reka-ui/dist/Switch/SwitchRoot.js +133 -0
- package/.output/server/node_modules/reka-ui/dist/Switch/SwitchThumb.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/TabsContent.js +88 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/TabsIndicator.js +70 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/TabsList.js +68 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/TabsRoot.js +109 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/TabsTrigger.js +93 -0
- package/.output/server/node_modules/reka-ui/dist/Tabs/utils.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputClear.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputInput.js +151 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItem.js +78 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItemDelete.js +61 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItemText.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputRoot.js +256 -0
- package/.output/server/node_modules/reka-ui/dist/Teleport/Teleport.js +49 -0
- package/.output/server/node_modules/reka-ui/dist/TimeField/TimeFieldInput.js +92 -0
- package/.output/server/node_modules/reka-ui/dist/TimeField/TimeFieldRoot.js +320 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/FocusProxy.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastAction.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastAnnounce.js +32 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastAnnounceExclude.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastClose.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastDescription.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastProvider.js +80 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastRoot.js +140 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastRootImpl.js +234 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastTitle.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/ToastViewport.js +178 -0
- package/.output/server/node_modules/reka-ui/dist/Toast/utils.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/Toggle/Toggle.js +110 -0
- package/.output/server/node_modules/reka-ui/dist/ToggleGroup/ToggleGroupItem.js +63 -0
- package/.output/server/node_modules/reka-ui/dist/ToggleGroup/ToggleGroupRoot.js +128 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarButton.js +51 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarLink.js +49 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarRoot.js +81 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarSeparator.js +46 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarToggleGroup.js +89 -0
- package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarToggleItem.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipArrow.js +47 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContent.js +104 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContentHoverable.js +100 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContentImpl.js +148 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipPortal.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipProvider.js +78 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipRoot.js +132 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipTrigger.js +114 -0
- package/.output/server/node_modules/reka-ui/dist/Tooltip/utils.js +6 -0
- package/.output/server/node_modules/reka-ui/dist/Tree/TreeItem.js +175 -0
- package/.output/server/node_modules/reka-ui/dist/Tree/TreeRoot.js +243 -0
- package/.output/server/node_modules/reka-ui/dist/Tree/TreeVirtualizer.js +168 -0
- package/.output/server/node_modules/reka-ui/dist/Tree/utils.js +12 -0
- package/.output/server/node_modules/reka-ui/dist/Viewport/Viewport.js +62 -0
- package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js +86 -0
- package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js +73 -0
- package/.output/server/node_modules/reka-ui/dist/component/Arrow.js +69 -0
- package/.output/server/node_modules/reka-ui/dist/component/BaseSeparator.js +61 -0
- package/.output/server/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +94 -0
- package/.output/server/node_modules/reka-ui/dist/date/calendar.js +156 -0
- package/.output/server/node_modules/reka-ui/dist/date/comparators.js +194 -0
- package/.output/server/node_modules/reka-ui/dist/date/index.js +0 -0
- package/.output/server/node_modules/reka-ui/dist/date/parser.js +135 -0
- package/.output/server/node_modules/reka-ui/dist/date/parts.js +27 -0
- package/.output/server/node_modules/reka-ui/dist/date/placeholders.js +493 -0
- package/.output/server/node_modules/reka-ui/dist/date/segment.js +41 -0
- package/.output/server/node_modules/reka-ui/dist/date/useDateField.js +720 -0
- package/.output/server/node_modules/reka-ui/dist/date/utils.js +85 -0
- package/.output/server/node_modules/reka-ui/dist/index.js +466 -0
- package/.output/server/node_modules/reka-ui/dist/index2.js +0 -0
- package/.output/server/node_modules/reka-ui/dist/shared/arrays.js +42 -0
- package/.output/server/node_modules/reka-ui/dist/shared/browser.js +6 -0
- package/.output/server/node_modules/reka-ui/dist/shared/clamp.js +66 -0
- package/.output/server/node_modules/reka-ui/dist/shared/createContext.js +35 -0
- package/.output/server/node_modules/reka-ui/dist/shared/getActiveElement.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js +15 -0
- package/.output/server/node_modules/reka-ui/dist/shared/isValueEqualOrExist.js +22 -0
- package/.output/server/node_modules/reka-ui/dist/shared/nullish.js +8 -0
- package/.output/server/node_modules/reka-ui/dist/shared/renderSlotFragments.js +14 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useArrowNavigation.js +64 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useBodyScrollLock.js +95 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useDateFormatter.js +140 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useDirection.js +17 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useEmitAsProps.js +26 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useFilter.js +58 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useFocusGuards.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useFormControl.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useForwardExpose.js +57 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useForwardProps.js +37 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js +29 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useGraceArea.js +200 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useHideOthers.js +26 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useId.js +24 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useIsUsingKeyboard.js +27 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useKbd.js +43 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useLocale.js +17 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useNonce.js +12 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useSelectionBehavior.js +53 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useSingleOrMultipleValue.js +63 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useSize.js +48 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useStateMachine.js +32 -0
- package/.output/server/node_modules/reka-ui/dist/shared/useTypeahead.js +70 -0
- package/.output/server/node_modules/reka-ui/dist/shared/withDefault.js +25 -0
- package/.output/server/node_modules/reka-ui/dist/utils/assert.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/utils/calculate.js +113 -0
- package/.output/server/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +25 -0
- package/.output/server/node_modules/reka-ui/dist/utils/compare.js +17 -0
- package/.output/server/node_modules/reka-ui/dist/utils/constants.js +6 -0
- package/.output/server/node_modules/reka-ui/dist/utils/debounce.js +15 -0
- package/.output/server/node_modules/reka-ui/dist/utils/dom.js +38 -0
- package/.output/server/node_modules/reka-ui/dist/utils/events.js +36 -0
- package/.output/server/node_modules/reka-ui/dist/utils/layout.js +137 -0
- package/.output/server/node_modules/reka-ui/dist/utils/pivot.js +11 -0
- package/.output/server/node_modules/reka-ui/dist/utils/rects.js +9 -0
- package/.output/server/node_modules/reka-ui/dist/utils/registry.js +183 -0
- package/.output/server/node_modules/reka-ui/dist/utils/resizePanel.js +22 -0
- package/.output/server/node_modules/reka-ui/dist/utils/stackingOrder.js +94 -0
- package/.output/server/node_modules/reka-ui/dist/utils/storage.js +61 -0
- package/.output/server/node_modules/reka-ui/dist/utils/style.js +62 -0
- package/.output/server/node_modules/reka-ui/dist/utils/validation.js +53 -0
- package/.output/server/node_modules/reka-ui/package.json +121 -0
- package/.output/server/node_modules/shiki/dist/bundle-full.mjs +27 -0
- package/.output/server/node_modules/shiki/dist/bundle-web.mjs +366 -0
- package/.output/server/node_modules/shiki/dist/index.mjs +6 -0
- package/.output/server/node_modules/shiki/dist/langs.mjs +1412 -0
- package/.output/server/node_modules/shiki/dist/themes.mjs +389 -0
- package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
- package/.output/server/node_modules/shiki/package.json +70 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/space-separated-tokens/index.js +24 -0
- package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
- package/.output/server/node_modules/stringify-entities/index.js +6 -0
- package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
- package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
- package/.output/server/node_modules/stringify-entities/package.json +86 -0
- package/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3282 -0
- package/.output/server/node_modules/tailwind-merge/package.json +93 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B578PsDV.mjs +266 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BFfcxOoW.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.eK9_7LaY.mjs +198 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
- package/.output/server/node_modules/vue-demi/package.json +47 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/vue-sonner/lib/vue-sonner.js +801 -0
- package/.output/server/node_modules/vue-sonner/package.json +80 -0
- package/.output/server/node_modules/zwitch/index.js +118 -0
- package/.output/server/node_modules/zwitch/package.json +72 -0
- package/.output/server/package.json +78 -0
- package/README.md +1 -2
- package/dist/host/src/index.js +2 -2
- package/dist/host/src/ui.js +62 -22
- package/dist/server/utils/repos.js +2 -2
- package/package.json +17 -15
- package/app/app.vue +0 -14
- package/app/assets/css/main.css +0 -129
- package/app/components/CommandPalette.vue +0 -182
- package/app/components/ShortcutsHelp.vue +0 -85
- package/app/components/git/ChangesMinimap.vue +0 -143
- package/app/components/git/CommitList.vue +0 -224
- package/app/components/git/DiffPanel.vue +0 -402
- package/app/components/git/DiffViewer.vue +0 -803
- package/app/components/layout/RepoSelector.vue +0 -358
- package/app/components/layout/Sidebar.vue +0 -91
- package/app/components/prd/Meta.vue +0 -69
- package/app/components/prd/Viewer.vue +0 -285
- package/app/components/tasks/Board.vue +0 -86
- package/app/components/tasks/Card.vue +0 -108
- package/app/components/tasks/Column.vue +0 -108
- package/app/components/tasks/Detail.vue +0 -291
- package/app/components/ui/badge/Badge.vue +0 -26
- package/app/components/ui/badge/index.ts +0 -26
- package/app/components/ui/button/Button.vue +0 -29
- package/app/components/ui/button/index.ts +0 -38
- package/app/components/ui/card/Card.vue +0 -22
- package/app/components/ui/card/CardAction.vue +0 -17
- package/app/components/ui/card/CardContent.vue +0 -17
- package/app/components/ui/card/CardDescription.vue +0 -17
- package/app/components/ui/card/CardFooter.vue +0 -17
- package/app/components/ui/card/CardHeader.vue +0 -17
- package/app/components/ui/card/CardTitle.vue +0 -17
- package/app/components/ui/card/index.ts +0 -7
- package/app/components/ui/combobox/Combobox.vue +0 -19
- package/app/components/ui/combobox/ComboboxAnchor.vue +0 -23
- package/app/components/ui/combobox/ComboboxEmpty.vue +0 -21
- package/app/components/ui/combobox/ComboboxGroup.vue +0 -27
- package/app/components/ui/combobox/ComboboxInput.vue +0 -42
- package/app/components/ui/combobox/ComboboxItem.vue +0 -24
- package/app/components/ui/combobox/ComboboxItemIndicator.vue +0 -23
- package/app/components/ui/combobox/ComboboxList.vue +0 -33
- package/app/components/ui/combobox/ComboboxSeparator.vue +0 -21
- package/app/components/ui/combobox/ComboboxTrigger.vue +0 -24
- package/app/components/ui/combobox/ComboboxViewport.vue +0 -23
- package/app/components/ui/combobox/index.ts +0 -13
- package/app/components/ui/command/Command.vue +0 -103
- package/app/components/ui/command/CommandDialog.vue +0 -33
- package/app/components/ui/command/CommandEmpty.vue +0 -27
- package/app/components/ui/command/CommandGroup.vue +0 -45
- package/app/components/ui/command/CommandInput.vue +0 -54
- package/app/components/ui/command/CommandItem.vue +0 -76
- package/app/components/ui/command/CommandList.vue +0 -25
- package/app/components/ui/command/CommandSeparator.vue +0 -21
- package/app/components/ui/command/CommandShortcut.vue +0 -17
- package/app/components/ui/command/index.ts +0 -25
- package/app/components/ui/dialog/Dialog.vue +0 -19
- package/app/components/ui/dialog/DialogClose.vue +0 -15
- package/app/components/ui/dialog/DialogContent.vue +0 -53
- package/app/components/ui/dialog/DialogDescription.vue +0 -23
- package/app/components/ui/dialog/DialogFooter.vue +0 -15
- package/app/components/ui/dialog/DialogHeader.vue +0 -17
- package/app/components/ui/dialog/DialogOverlay.vue +0 -21
- package/app/components/ui/dialog/DialogScrollContent.vue +0 -59
- package/app/components/ui/dialog/DialogTitle.vue +0 -23
- package/app/components/ui/dialog/DialogTrigger.vue +0 -15
- package/app/components/ui/dialog/index.ts +0 -10
- package/app/components/ui/input/Input.vue +0 -33
- package/app/components/ui/input/index.ts +0 -1
- package/app/components/ui/scroll-area/ScrollArea.vue +0 -33
- package/app/components/ui/scroll-area/ScrollBar.vue +0 -32
- package/app/components/ui/scroll-area/index.ts +0 -2
- package/app/components/ui/separator/Separator.vue +0 -29
- package/app/components/ui/separator/index.ts +0 -1
- package/app/components/ui/sheet/Sheet.vue +0 -19
- package/app/components/ui/sheet/SheetClose.vue +0 -15
- package/app/components/ui/sheet/SheetContent.vue +0 -62
- package/app/components/ui/sheet/SheetDescription.vue +0 -21
- package/app/components/ui/sheet/SheetFooter.vue +0 -16
- package/app/components/ui/sheet/SheetHeader.vue +0 -15
- package/app/components/ui/sheet/SheetOverlay.vue +0 -21
- package/app/components/ui/sheet/SheetTitle.vue +0 -21
- package/app/components/ui/sheet/SheetTrigger.vue +0 -15
- package/app/components/ui/sheet/index.ts +0 -8
- package/app/components/ui/tabs/Tabs.vue +0 -24
- package/app/components/ui/tabs/TabsContent.vue +0 -21
- package/app/components/ui/tabs/TabsList.vue +0 -24
- package/app/components/ui/tabs/TabsTrigger.vue +0 -26
- package/app/components/ui/tabs/index.ts +0 -4
- package/app/components/ui/tooltip/Tooltip.vue +0 -19
- package/app/components/ui/tooltip/TooltipContent.vue +0 -34
- package/app/components/ui/tooltip/TooltipProvider.vue +0 -14
- package/app/components/ui/tooltip/TooltipTrigger.vue +0 -15
- package/app/components/ui/tooltip/index.ts +0 -4
- package/app/composables/useFileWatch.ts +0 -78
- package/app/composables/useGit.ts +0 -180
- package/app/composables/useKeyboard.ts +0 -180
- package/app/composables/usePrd.ts +0 -86
- package/app/composables/useRepos.ts +0 -108
- package/app/composables/useThemeMode.ts +0 -38
- package/app/composables/useToast.ts +0 -31
- package/app/layouts/default.vue +0 -197
- package/app/lib/utils.ts +0 -7
- package/app/pages/[repo]/[prd].vue +0 -263
- package/app/pages/index.vue +0 -257
- package/app/types/git.ts +0 -81
- package/app/types/index.ts +0 -29
- package/app/types/prd.ts +0 -49
- package/app/types/repo.ts +0 -37
- package/app/types/task.ts +0 -134
- package/components.json +0 -21
- package/nuxt.config.ts +0 -34
- package/server/api/browse.get.ts +0 -52
- package/server/api/repos/[repoId]/git/commits.get.ts +0 -103
- package/server/api/repos/[repoId]/git/diff.get.ts +0 -77
- package/server/api/repos/[repoId]/git/file-content.get.ts +0 -66
- package/server/api/repos/[repoId]/git/file-diff.get.ts +0 -109
- package/server/api/repos/[repoId]/prd/[prdSlug]/progress.get.ts +0 -36
- package/server/api/repos/[repoId]/prd/[prdSlug]/tasks/[taskId]/commits.get.ts +0 -146
- package/server/api/repos/[repoId]/prd/[prdSlug]/tasks.get.ts +0 -36
- package/server/api/repos/[repoId]/prd/[prdSlug].get.ts +0 -97
- package/server/api/repos/[repoId]/prds.get.ts +0 -85
- package/server/api/repos/[repoId]/refresh-git-repos.post.ts +0 -42
- package/server/api/repos/[repoId].delete.ts +0 -27
- package/server/api/repos/index.get.ts +0 -5
- package/server/api/repos/index.post.ts +0 -39
- package/server/api/watch.get.ts +0 -63
- package/server/plugins/migrate-legacy-state.ts +0 -19
- package/server/tsconfig.json +0 -3
- package/server/utils/db.ts +0 -169
- package/server/utils/git.ts +0 -478
- package/server/utils/prd-state.ts +0 -335
- package/server/utils/repos.ts +0 -322
- package/server/utils/watcher.ts +0 -179
- package/tsconfig.json +0 -4
- /package/{public → .output/public}/favicon.ico +0 -0
- /package/{public → .output/public}/robots.txt +0 -0
|
@@ -0,0 +1,2446 @@
|
|
|
1
|
+
import { ShikiError as ShikiError$1 } from '@shikijs/types';
|
|
2
|
+
export * from '@shikijs/types';
|
|
3
|
+
import { FontStyle, INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from '@shikijs/vscode-textmate';
|
|
4
|
+
import { toHtml } from 'hast-util-to-html';
|
|
5
|
+
|
|
6
|
+
function resolveColorReplacements(theme, options) {
|
|
7
|
+
const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
|
|
8
|
+
const themeName = typeof theme === "string" ? theme : theme.name;
|
|
9
|
+
for (const [key, value] of Object.entries(options?.colorReplacements || {})) {
|
|
10
|
+
if (typeof value === "string")
|
|
11
|
+
replacements[key] = value;
|
|
12
|
+
else if (key === themeName)
|
|
13
|
+
Object.assign(replacements, value);
|
|
14
|
+
}
|
|
15
|
+
return replacements;
|
|
16
|
+
}
|
|
17
|
+
function applyColorReplacements(color, replacements) {
|
|
18
|
+
if (!color)
|
|
19
|
+
return color;
|
|
20
|
+
return replacements?.[color?.toLowerCase()] || color;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function toArray(x) {
|
|
24
|
+
return Array.isArray(x) ? x : [x];
|
|
25
|
+
}
|
|
26
|
+
async function normalizeGetter(p) {
|
|
27
|
+
return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
|
|
28
|
+
}
|
|
29
|
+
function isPlainLang(lang) {
|
|
30
|
+
return !lang || ["plaintext", "txt", "text", "plain"].includes(lang);
|
|
31
|
+
}
|
|
32
|
+
function isSpecialLang(lang) {
|
|
33
|
+
return lang === "ansi" || isPlainLang(lang);
|
|
34
|
+
}
|
|
35
|
+
function isNoneTheme(theme) {
|
|
36
|
+
return theme === "none";
|
|
37
|
+
}
|
|
38
|
+
function isSpecialTheme(theme) {
|
|
39
|
+
return isNoneTheme(theme);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function addClassToHast(node, className) {
|
|
43
|
+
if (!className)
|
|
44
|
+
return node;
|
|
45
|
+
node.properties ||= {};
|
|
46
|
+
node.properties.class ||= [];
|
|
47
|
+
if (typeof node.properties.class === "string")
|
|
48
|
+
node.properties.class = node.properties.class.split(/\s+/g);
|
|
49
|
+
if (!Array.isArray(node.properties.class))
|
|
50
|
+
node.properties.class = [];
|
|
51
|
+
const targets = Array.isArray(className) ? className : className.split(/\s+/g);
|
|
52
|
+
for (const c of targets) {
|
|
53
|
+
if (c && !node.properties.class.includes(c))
|
|
54
|
+
node.properties.class.push(c);
|
|
55
|
+
}
|
|
56
|
+
return node;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function splitLines(code, preserveEnding = false) {
|
|
60
|
+
if (code.length === 0) {
|
|
61
|
+
return [["", 0]];
|
|
62
|
+
}
|
|
63
|
+
const parts = code.split(/(\r?\n)/g);
|
|
64
|
+
let index = 0;
|
|
65
|
+
const lines = [];
|
|
66
|
+
for (let i = 0; i < parts.length; i += 2) {
|
|
67
|
+
const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
|
|
68
|
+
lines.push([line, index]);
|
|
69
|
+
index += parts[i].length;
|
|
70
|
+
index += parts[i + 1]?.length || 0;
|
|
71
|
+
}
|
|
72
|
+
return lines;
|
|
73
|
+
}
|
|
74
|
+
function createPositionConverter(code) {
|
|
75
|
+
const lines = splitLines(code, true).map(([line]) => line);
|
|
76
|
+
function indexToPos(index) {
|
|
77
|
+
if (index === code.length) {
|
|
78
|
+
return {
|
|
79
|
+
line: lines.length - 1,
|
|
80
|
+
character: lines[lines.length - 1].length
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
let character = index;
|
|
84
|
+
let line = 0;
|
|
85
|
+
for (const lineText of lines) {
|
|
86
|
+
if (character < lineText.length)
|
|
87
|
+
break;
|
|
88
|
+
character -= lineText.length;
|
|
89
|
+
line++;
|
|
90
|
+
}
|
|
91
|
+
return { line, character };
|
|
92
|
+
}
|
|
93
|
+
function posToIndex(line, character) {
|
|
94
|
+
let index = 0;
|
|
95
|
+
for (let i = 0; i < line; i++)
|
|
96
|
+
index += lines[i].length;
|
|
97
|
+
index += character;
|
|
98
|
+
return index;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
lines,
|
|
102
|
+
indexToPos,
|
|
103
|
+
posToIndex
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function guessEmbeddedLanguages(code, _lang, highlighter) {
|
|
107
|
+
const langs = /* @__PURE__ */ new Set();
|
|
108
|
+
for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
|
|
109
|
+
const lang = match[1].toLowerCase().trim();
|
|
110
|
+
if (lang)
|
|
111
|
+
langs.add(lang);
|
|
112
|
+
}
|
|
113
|
+
for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
|
|
114
|
+
const lang = match[1].toLowerCase().trim();
|
|
115
|
+
if (lang)
|
|
116
|
+
langs.add(lang);
|
|
117
|
+
}
|
|
118
|
+
for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
|
|
119
|
+
const lang = match[1].toLowerCase().trim();
|
|
120
|
+
if (lang)
|
|
121
|
+
langs.add(lang);
|
|
122
|
+
}
|
|
123
|
+
for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
|
|
124
|
+
const fullType = match[1].toLowerCase().trim();
|
|
125
|
+
const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
|
|
126
|
+
if (lang)
|
|
127
|
+
langs.add(lang);
|
|
128
|
+
}
|
|
129
|
+
if (!highlighter)
|
|
130
|
+
return Array.from(langs);
|
|
131
|
+
const bundle = highlighter.getBundledLanguages();
|
|
132
|
+
return Array.from(langs).filter((l) => l && bundle[l]);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
|
|
136
|
+
const COLOR_KEYS = ["color", "background-color"];
|
|
137
|
+
|
|
138
|
+
function splitToken(token, offsets) {
|
|
139
|
+
let lastOffset = 0;
|
|
140
|
+
const tokens = [];
|
|
141
|
+
for (const offset of offsets) {
|
|
142
|
+
if (offset > lastOffset) {
|
|
143
|
+
tokens.push({
|
|
144
|
+
...token,
|
|
145
|
+
content: token.content.slice(lastOffset, offset),
|
|
146
|
+
offset: token.offset + lastOffset
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
lastOffset = offset;
|
|
150
|
+
}
|
|
151
|
+
if (lastOffset < token.content.length) {
|
|
152
|
+
tokens.push({
|
|
153
|
+
...token,
|
|
154
|
+
content: token.content.slice(lastOffset),
|
|
155
|
+
offset: token.offset + lastOffset
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return tokens;
|
|
159
|
+
}
|
|
160
|
+
function splitTokens(tokens, breakpoints) {
|
|
161
|
+
const sorted = Array.from(breakpoints instanceof Set ? breakpoints : new Set(breakpoints)).sort((a, b) => a - b);
|
|
162
|
+
if (!sorted.length)
|
|
163
|
+
return tokens;
|
|
164
|
+
return tokens.map((line) => {
|
|
165
|
+
return line.flatMap((token) => {
|
|
166
|
+
const breakpointsInToken = sorted.filter((i) => token.offset < i && i < token.offset + token.content.length).map((i) => i - token.offset).sort((a, b) => a - b);
|
|
167
|
+
if (!breakpointsInToken.length)
|
|
168
|
+
return token;
|
|
169
|
+
return splitToken(token, breakpointsInToken);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor, colorsRendering = "css-vars") {
|
|
174
|
+
const token = {
|
|
175
|
+
content: merged.content,
|
|
176
|
+
explanation: merged.explanation,
|
|
177
|
+
offset: merged.offset
|
|
178
|
+
};
|
|
179
|
+
const styles = variantsOrder.map((t) => getTokenStyleObject(merged.variants[t]));
|
|
180
|
+
const styleKeys = new Set(styles.flatMap((t) => Object.keys(t)));
|
|
181
|
+
const mergedStyles = {};
|
|
182
|
+
const varKey = (idx, key) => {
|
|
183
|
+
const keyName = key === "color" ? "" : key === "background-color" ? "-bg" : `-${key}`;
|
|
184
|
+
return cssVariablePrefix + variantsOrder[idx] + (key === "color" ? "" : keyName);
|
|
185
|
+
};
|
|
186
|
+
styles.forEach((cur, idx) => {
|
|
187
|
+
for (const key of styleKeys) {
|
|
188
|
+
const value = cur[key] || "inherit";
|
|
189
|
+
if (idx === 0 && defaultColor && COLOR_KEYS.includes(key)) {
|
|
190
|
+
if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && styles.length > 1) {
|
|
191
|
+
const lightIndex = variantsOrder.findIndex((t) => t === "light");
|
|
192
|
+
const darkIndex = variantsOrder.findIndex((t) => t === "dark");
|
|
193
|
+
if (lightIndex === -1 || darkIndex === -1)
|
|
194
|
+
throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
|
|
195
|
+
const lightValue = styles[lightIndex][key] || "inherit";
|
|
196
|
+
const darkValue = styles[darkIndex][key] || "inherit";
|
|
197
|
+
mergedStyles[key] = `light-dark(${lightValue}, ${darkValue})`;
|
|
198
|
+
if (colorsRendering === "css-vars")
|
|
199
|
+
mergedStyles[varKey(idx, key)] = value;
|
|
200
|
+
} else {
|
|
201
|
+
mergedStyles[key] = value;
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
if (colorsRendering === "css-vars")
|
|
205
|
+
mergedStyles[varKey(idx, key)] = value;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
token.htmlStyle = mergedStyles;
|
|
210
|
+
return token;
|
|
211
|
+
}
|
|
212
|
+
function getTokenStyleObject(token) {
|
|
213
|
+
const styles = {};
|
|
214
|
+
if (token.color)
|
|
215
|
+
styles.color = token.color;
|
|
216
|
+
if (token.bgColor)
|
|
217
|
+
styles["background-color"] = token.bgColor;
|
|
218
|
+
if (token.fontStyle) {
|
|
219
|
+
if (token.fontStyle & FontStyle.Italic)
|
|
220
|
+
styles["font-style"] = "italic";
|
|
221
|
+
if (token.fontStyle & FontStyle.Bold)
|
|
222
|
+
styles["font-weight"] = "bold";
|
|
223
|
+
const decorations = [];
|
|
224
|
+
if (token.fontStyle & FontStyle.Underline)
|
|
225
|
+
decorations.push("underline");
|
|
226
|
+
if (token.fontStyle & FontStyle.Strikethrough)
|
|
227
|
+
decorations.push("line-through");
|
|
228
|
+
if (decorations.length)
|
|
229
|
+
styles["text-decoration"] = decorations.join(" ");
|
|
230
|
+
}
|
|
231
|
+
return styles;
|
|
232
|
+
}
|
|
233
|
+
function stringifyTokenStyle(token) {
|
|
234
|
+
if (typeof token === "string")
|
|
235
|
+
return token;
|
|
236
|
+
return Object.entries(token).map(([key, value]) => `${key}:${value}`).join(";");
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const _grammarStateMap = /* @__PURE__ */ new WeakMap();
|
|
240
|
+
function setLastGrammarStateToMap(keys, state) {
|
|
241
|
+
_grammarStateMap.set(keys, state);
|
|
242
|
+
}
|
|
243
|
+
function getLastGrammarStateFromMap(keys) {
|
|
244
|
+
return _grammarStateMap.get(keys);
|
|
245
|
+
}
|
|
246
|
+
class GrammarState {
|
|
247
|
+
/**
|
|
248
|
+
* Theme to Stack mapping
|
|
249
|
+
*/
|
|
250
|
+
_stacks = {};
|
|
251
|
+
lang;
|
|
252
|
+
get themes() {
|
|
253
|
+
return Object.keys(this._stacks);
|
|
254
|
+
}
|
|
255
|
+
get theme() {
|
|
256
|
+
return this.themes[0];
|
|
257
|
+
}
|
|
258
|
+
get _stack() {
|
|
259
|
+
return this._stacks[this.theme];
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Static method to create a initial grammar state.
|
|
263
|
+
*/
|
|
264
|
+
static initial(lang, themes) {
|
|
265
|
+
return new GrammarState(
|
|
266
|
+
Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])),
|
|
267
|
+
lang
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
constructor(...args) {
|
|
271
|
+
if (args.length === 2) {
|
|
272
|
+
const [stacksMap, lang] = args;
|
|
273
|
+
this.lang = lang;
|
|
274
|
+
this._stacks = stacksMap;
|
|
275
|
+
} else {
|
|
276
|
+
const [stack, lang, theme] = args;
|
|
277
|
+
this.lang = lang;
|
|
278
|
+
this._stacks = { [theme]: stack };
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get the internal stack object.
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
getInternalStack(theme = this.theme) {
|
|
286
|
+
return this._stacks[theme];
|
|
287
|
+
}
|
|
288
|
+
getScopes(theme = this.theme) {
|
|
289
|
+
return getScopes(this._stacks[theme]);
|
|
290
|
+
}
|
|
291
|
+
toJSON() {
|
|
292
|
+
return {
|
|
293
|
+
lang: this.lang,
|
|
294
|
+
theme: this.theme,
|
|
295
|
+
themes: this.themes,
|
|
296
|
+
scopes: this.getScopes()
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function getScopes(stack) {
|
|
301
|
+
const scopes = [];
|
|
302
|
+
const visited = /* @__PURE__ */ new Set();
|
|
303
|
+
function pushScope(stack2) {
|
|
304
|
+
if (visited.has(stack2))
|
|
305
|
+
return;
|
|
306
|
+
visited.add(stack2);
|
|
307
|
+
const name = stack2?.nameScopesList?.scopeName;
|
|
308
|
+
if (name)
|
|
309
|
+
scopes.push(name);
|
|
310
|
+
if (stack2.parent)
|
|
311
|
+
pushScope(stack2.parent);
|
|
312
|
+
}
|
|
313
|
+
pushScope(stack);
|
|
314
|
+
return scopes;
|
|
315
|
+
}
|
|
316
|
+
function getGrammarStack(state, theme) {
|
|
317
|
+
if (!(state instanceof GrammarState))
|
|
318
|
+
throw new ShikiError$1("Invalid grammar state");
|
|
319
|
+
return state.getInternalStack(theme);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function transformerDecorations() {
|
|
323
|
+
const map = /* @__PURE__ */ new WeakMap();
|
|
324
|
+
function getContext(shiki) {
|
|
325
|
+
if (!map.has(shiki.meta)) {
|
|
326
|
+
let normalizePosition = function(p) {
|
|
327
|
+
if (typeof p === "number") {
|
|
328
|
+
if (p < 0 || p > shiki.source.length)
|
|
329
|
+
throw new ShikiError$1(`Invalid decoration offset: ${p}. Code length: ${shiki.source.length}`);
|
|
330
|
+
return {
|
|
331
|
+
...converter.indexToPos(p),
|
|
332
|
+
offset: p
|
|
333
|
+
};
|
|
334
|
+
} else {
|
|
335
|
+
const line = converter.lines[p.line];
|
|
336
|
+
if (line === void 0)
|
|
337
|
+
throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Lines length: ${converter.lines.length}`);
|
|
338
|
+
let character = p.character;
|
|
339
|
+
if (character < 0)
|
|
340
|
+
character = line.length + character;
|
|
341
|
+
if (character < 0 || character > line.length)
|
|
342
|
+
throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Line ${p.line} length: ${line.length}`);
|
|
343
|
+
return {
|
|
344
|
+
...p,
|
|
345
|
+
character,
|
|
346
|
+
offset: converter.posToIndex(p.line, character)
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
const converter = createPositionConverter(shiki.source);
|
|
351
|
+
const decorations = (shiki.options.decorations || []).map((d) => ({
|
|
352
|
+
...d,
|
|
353
|
+
start: normalizePosition(d.start),
|
|
354
|
+
end: normalizePosition(d.end)
|
|
355
|
+
}));
|
|
356
|
+
verifyIntersections(decorations);
|
|
357
|
+
map.set(shiki.meta, {
|
|
358
|
+
decorations,
|
|
359
|
+
converter,
|
|
360
|
+
source: shiki.source
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
return map.get(shiki.meta);
|
|
364
|
+
}
|
|
365
|
+
return {
|
|
366
|
+
name: "shiki:decorations",
|
|
367
|
+
tokens(tokens) {
|
|
368
|
+
if (!this.options.decorations?.length)
|
|
369
|
+
return;
|
|
370
|
+
const ctx = getContext(this);
|
|
371
|
+
const breakpoints = ctx.decorations.flatMap((d) => [d.start.offset, d.end.offset]);
|
|
372
|
+
const splitted = splitTokens(tokens, breakpoints);
|
|
373
|
+
return splitted;
|
|
374
|
+
},
|
|
375
|
+
code(codeEl) {
|
|
376
|
+
if (!this.options.decorations?.length)
|
|
377
|
+
return;
|
|
378
|
+
const ctx = getContext(this);
|
|
379
|
+
const lines = Array.from(codeEl.children).filter((i) => i.type === "element" && i.tagName === "span");
|
|
380
|
+
if (lines.length !== ctx.converter.lines.length)
|
|
381
|
+
throw new ShikiError$1(`Number of lines in code element (${lines.length}) does not match the number of lines in the source (${ctx.converter.lines.length}). Failed to apply decorations.`);
|
|
382
|
+
function applyLineSection(line, start, end, decoration) {
|
|
383
|
+
const lineEl = lines[line];
|
|
384
|
+
let text = "";
|
|
385
|
+
let startIndex = -1;
|
|
386
|
+
let endIndex = -1;
|
|
387
|
+
if (start === 0)
|
|
388
|
+
startIndex = 0;
|
|
389
|
+
if (end === 0)
|
|
390
|
+
endIndex = 0;
|
|
391
|
+
if (end === Number.POSITIVE_INFINITY)
|
|
392
|
+
endIndex = lineEl.children.length;
|
|
393
|
+
if (startIndex === -1 || endIndex === -1) {
|
|
394
|
+
for (let i = 0; i < lineEl.children.length; i++) {
|
|
395
|
+
text += stringify(lineEl.children[i]);
|
|
396
|
+
if (startIndex === -1 && text.length === start)
|
|
397
|
+
startIndex = i + 1;
|
|
398
|
+
if (endIndex === -1 && text.length === end)
|
|
399
|
+
endIndex = i + 1;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
if (startIndex === -1)
|
|
403
|
+
throw new ShikiError$1(`Failed to find start index for decoration ${JSON.stringify(decoration.start)}`);
|
|
404
|
+
if (endIndex === -1)
|
|
405
|
+
throw new ShikiError$1(`Failed to find end index for decoration ${JSON.stringify(decoration.end)}`);
|
|
406
|
+
const children = lineEl.children.slice(startIndex, endIndex);
|
|
407
|
+
if (!decoration.alwaysWrap && children.length === lineEl.children.length) {
|
|
408
|
+
applyDecoration(lineEl, decoration, "line");
|
|
409
|
+
} else if (!decoration.alwaysWrap && children.length === 1 && children[0].type === "element") {
|
|
410
|
+
applyDecoration(children[0], decoration, "token");
|
|
411
|
+
} else {
|
|
412
|
+
const wrapper = {
|
|
413
|
+
type: "element",
|
|
414
|
+
tagName: "span",
|
|
415
|
+
properties: {},
|
|
416
|
+
children
|
|
417
|
+
};
|
|
418
|
+
applyDecoration(wrapper, decoration, "wrapper");
|
|
419
|
+
lineEl.children.splice(startIndex, children.length, wrapper);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
function applyLine(line, decoration) {
|
|
423
|
+
lines[line] = applyDecoration(lines[line], decoration, "line");
|
|
424
|
+
}
|
|
425
|
+
function applyDecoration(el, decoration, type) {
|
|
426
|
+
const properties = decoration.properties || {};
|
|
427
|
+
const transform = decoration.transform || ((i) => i);
|
|
428
|
+
el.tagName = decoration.tagName || "span";
|
|
429
|
+
el.properties = {
|
|
430
|
+
...el.properties,
|
|
431
|
+
...properties,
|
|
432
|
+
class: el.properties.class
|
|
433
|
+
};
|
|
434
|
+
if (decoration.properties?.class)
|
|
435
|
+
addClassToHast(el, decoration.properties.class);
|
|
436
|
+
el = transform(el, type) || el;
|
|
437
|
+
return el;
|
|
438
|
+
}
|
|
439
|
+
const lineApplies = [];
|
|
440
|
+
const sorted = ctx.decorations.sort((a, b) => b.start.offset - a.start.offset || a.end.offset - b.end.offset);
|
|
441
|
+
for (const decoration of sorted) {
|
|
442
|
+
const { start, end } = decoration;
|
|
443
|
+
if (start.line === end.line) {
|
|
444
|
+
applyLineSection(start.line, start.character, end.character, decoration);
|
|
445
|
+
} else if (start.line < end.line) {
|
|
446
|
+
applyLineSection(start.line, start.character, Number.POSITIVE_INFINITY, decoration);
|
|
447
|
+
for (let i = start.line + 1; i < end.line; i++)
|
|
448
|
+
lineApplies.unshift(() => applyLine(i, decoration));
|
|
449
|
+
applyLineSection(end.line, 0, end.character, decoration);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
lineApplies.forEach((i) => i());
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function verifyIntersections(items) {
|
|
457
|
+
for (let i = 0; i < items.length; i++) {
|
|
458
|
+
const foo = items[i];
|
|
459
|
+
if (foo.start.offset > foo.end.offset)
|
|
460
|
+
throw new ShikiError$1(`Invalid decoration range: ${JSON.stringify(foo.start)} - ${JSON.stringify(foo.end)}`);
|
|
461
|
+
for (let j = i + 1; j < items.length; j++) {
|
|
462
|
+
const bar = items[j];
|
|
463
|
+
const isFooHasBarStart = foo.start.offset <= bar.start.offset && bar.start.offset < foo.end.offset;
|
|
464
|
+
const isFooHasBarEnd = foo.start.offset < bar.end.offset && bar.end.offset <= foo.end.offset;
|
|
465
|
+
const isBarHasFooStart = bar.start.offset <= foo.start.offset && foo.start.offset < bar.end.offset;
|
|
466
|
+
const isBarHasFooEnd = bar.start.offset < foo.end.offset && foo.end.offset <= bar.end.offset;
|
|
467
|
+
if (isFooHasBarStart || isFooHasBarEnd || isBarHasFooStart || isBarHasFooEnd) {
|
|
468
|
+
if (isFooHasBarStart && isFooHasBarEnd)
|
|
469
|
+
continue;
|
|
470
|
+
if (isBarHasFooStart && isBarHasFooEnd)
|
|
471
|
+
continue;
|
|
472
|
+
if (isBarHasFooStart && foo.start.offset === foo.end.offset)
|
|
473
|
+
continue;
|
|
474
|
+
if (isFooHasBarEnd && bar.start.offset === bar.end.offset)
|
|
475
|
+
continue;
|
|
476
|
+
throw new ShikiError$1(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function stringify(el) {
|
|
482
|
+
if (el.type === "text")
|
|
483
|
+
return el.value;
|
|
484
|
+
if (el.type === "element")
|
|
485
|
+
return el.children.map(stringify).join("");
|
|
486
|
+
return "";
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
const builtInTransformers = [
|
|
490
|
+
/* @__PURE__ */ transformerDecorations()
|
|
491
|
+
];
|
|
492
|
+
function getTransformers(options) {
|
|
493
|
+
const transformers = sortTransformersByEnforcement(options.transformers || []);
|
|
494
|
+
return [
|
|
495
|
+
...transformers.pre,
|
|
496
|
+
...transformers.normal,
|
|
497
|
+
...transformers.post,
|
|
498
|
+
...builtInTransformers
|
|
499
|
+
];
|
|
500
|
+
}
|
|
501
|
+
function sortTransformersByEnforcement(transformers) {
|
|
502
|
+
const pre = [];
|
|
503
|
+
const post = [];
|
|
504
|
+
const normal = [];
|
|
505
|
+
for (const transformer of transformers) {
|
|
506
|
+
switch (transformer.enforce) {
|
|
507
|
+
case "pre":
|
|
508
|
+
pre.push(transformer);
|
|
509
|
+
break;
|
|
510
|
+
case "post":
|
|
511
|
+
post.push(transformer);
|
|
512
|
+
break;
|
|
513
|
+
default:
|
|
514
|
+
normal.push(transformer);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return { pre, post, normal };
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// src/colors.ts
|
|
521
|
+
var namedColors = [
|
|
522
|
+
"black",
|
|
523
|
+
"red",
|
|
524
|
+
"green",
|
|
525
|
+
"yellow",
|
|
526
|
+
"blue",
|
|
527
|
+
"magenta",
|
|
528
|
+
"cyan",
|
|
529
|
+
"white",
|
|
530
|
+
"brightBlack",
|
|
531
|
+
"brightRed",
|
|
532
|
+
"brightGreen",
|
|
533
|
+
"brightYellow",
|
|
534
|
+
"brightBlue",
|
|
535
|
+
"brightMagenta",
|
|
536
|
+
"brightCyan",
|
|
537
|
+
"brightWhite"
|
|
538
|
+
];
|
|
539
|
+
|
|
540
|
+
// src/decorations.ts
|
|
541
|
+
var decorations = {
|
|
542
|
+
1: "bold",
|
|
543
|
+
2: "dim",
|
|
544
|
+
3: "italic",
|
|
545
|
+
4: "underline",
|
|
546
|
+
7: "reverse",
|
|
547
|
+
8: "hidden",
|
|
548
|
+
9: "strikethrough"
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
// src/parser.ts
|
|
552
|
+
function findSequence(value, position) {
|
|
553
|
+
const nextEscape = value.indexOf("\x1B", position);
|
|
554
|
+
if (nextEscape !== -1) {
|
|
555
|
+
if (value[nextEscape + 1] === "[") {
|
|
556
|
+
const nextClose = value.indexOf("m", nextEscape);
|
|
557
|
+
if (nextClose !== -1) {
|
|
558
|
+
return {
|
|
559
|
+
sequence: value.substring(nextEscape + 2, nextClose).split(";"),
|
|
560
|
+
startPosition: nextEscape,
|
|
561
|
+
position: nextClose + 1
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return {
|
|
567
|
+
position: value.length
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
function parseColor(sequence) {
|
|
571
|
+
const colorMode = sequence.shift();
|
|
572
|
+
if (colorMode === "2") {
|
|
573
|
+
const rgb = sequence.splice(0, 3).map((x) => Number.parseInt(x));
|
|
574
|
+
if (rgb.length !== 3 || rgb.some((x) => Number.isNaN(x)))
|
|
575
|
+
return;
|
|
576
|
+
return {
|
|
577
|
+
type: "rgb",
|
|
578
|
+
rgb
|
|
579
|
+
};
|
|
580
|
+
} else if (colorMode === "5") {
|
|
581
|
+
const index = sequence.shift();
|
|
582
|
+
if (index) {
|
|
583
|
+
return { type: "table", index: Number(index) };
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function parseSequence(sequence) {
|
|
588
|
+
const commands = [];
|
|
589
|
+
while (sequence.length > 0) {
|
|
590
|
+
const code = sequence.shift();
|
|
591
|
+
if (!code)
|
|
592
|
+
continue;
|
|
593
|
+
const codeInt = Number.parseInt(code);
|
|
594
|
+
if (Number.isNaN(codeInt))
|
|
595
|
+
continue;
|
|
596
|
+
if (codeInt === 0) {
|
|
597
|
+
commands.push({ type: "resetAll" });
|
|
598
|
+
} else if (codeInt <= 9) {
|
|
599
|
+
const decoration = decorations[codeInt];
|
|
600
|
+
if (decoration) {
|
|
601
|
+
commands.push({
|
|
602
|
+
type: "setDecoration",
|
|
603
|
+
value: decorations[codeInt]
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
} else if (codeInt <= 29) {
|
|
607
|
+
const decoration = decorations[codeInt - 20];
|
|
608
|
+
if (decoration) {
|
|
609
|
+
commands.push({
|
|
610
|
+
type: "resetDecoration",
|
|
611
|
+
value: decoration
|
|
612
|
+
});
|
|
613
|
+
if (decoration === "dim") {
|
|
614
|
+
commands.push({
|
|
615
|
+
type: "resetDecoration",
|
|
616
|
+
value: "bold"
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
} else if (codeInt <= 37) {
|
|
621
|
+
commands.push({
|
|
622
|
+
type: "setForegroundColor",
|
|
623
|
+
value: { type: "named", name: namedColors[codeInt - 30] }
|
|
624
|
+
});
|
|
625
|
+
} else if (codeInt === 38) {
|
|
626
|
+
const color = parseColor(sequence);
|
|
627
|
+
if (color) {
|
|
628
|
+
commands.push({
|
|
629
|
+
type: "setForegroundColor",
|
|
630
|
+
value: color
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
} else if (codeInt === 39) {
|
|
634
|
+
commands.push({
|
|
635
|
+
type: "resetForegroundColor"
|
|
636
|
+
});
|
|
637
|
+
} else if (codeInt <= 47) {
|
|
638
|
+
commands.push({
|
|
639
|
+
type: "setBackgroundColor",
|
|
640
|
+
value: { type: "named", name: namedColors[codeInt - 40] }
|
|
641
|
+
});
|
|
642
|
+
} else if (codeInt === 48) {
|
|
643
|
+
const color = parseColor(sequence);
|
|
644
|
+
if (color) {
|
|
645
|
+
commands.push({
|
|
646
|
+
type: "setBackgroundColor",
|
|
647
|
+
value: color
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
} else if (codeInt === 49) {
|
|
651
|
+
commands.push({
|
|
652
|
+
type: "resetBackgroundColor"
|
|
653
|
+
});
|
|
654
|
+
} else if (codeInt === 53) {
|
|
655
|
+
commands.push({
|
|
656
|
+
type: "setDecoration",
|
|
657
|
+
value: "overline"
|
|
658
|
+
});
|
|
659
|
+
} else if (codeInt === 55) {
|
|
660
|
+
commands.push({
|
|
661
|
+
type: "resetDecoration",
|
|
662
|
+
value: "overline"
|
|
663
|
+
});
|
|
664
|
+
} else if (codeInt >= 90 && codeInt <= 97) {
|
|
665
|
+
commands.push({
|
|
666
|
+
type: "setForegroundColor",
|
|
667
|
+
value: { type: "named", name: namedColors[codeInt - 90 + 8] }
|
|
668
|
+
});
|
|
669
|
+
} else if (codeInt >= 100 && codeInt <= 107) {
|
|
670
|
+
commands.push({
|
|
671
|
+
type: "setBackgroundColor",
|
|
672
|
+
value: { type: "named", name: namedColors[codeInt - 100 + 8] }
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return commands;
|
|
677
|
+
}
|
|
678
|
+
function createAnsiSequenceParser() {
|
|
679
|
+
let foreground = null;
|
|
680
|
+
let background = null;
|
|
681
|
+
let decorations2 = /* @__PURE__ */ new Set();
|
|
682
|
+
return {
|
|
683
|
+
parse(value) {
|
|
684
|
+
const tokens = [];
|
|
685
|
+
let position = 0;
|
|
686
|
+
do {
|
|
687
|
+
const findResult = findSequence(value, position);
|
|
688
|
+
const text = findResult.sequence ? value.substring(position, findResult.startPosition) : value.substring(position);
|
|
689
|
+
if (text.length > 0) {
|
|
690
|
+
tokens.push({
|
|
691
|
+
value: text,
|
|
692
|
+
foreground,
|
|
693
|
+
background,
|
|
694
|
+
decorations: new Set(decorations2)
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
if (findResult.sequence) {
|
|
698
|
+
const commands = parseSequence(findResult.sequence);
|
|
699
|
+
for (const styleToken of commands) {
|
|
700
|
+
if (styleToken.type === "resetAll") {
|
|
701
|
+
foreground = null;
|
|
702
|
+
background = null;
|
|
703
|
+
decorations2.clear();
|
|
704
|
+
} else if (styleToken.type === "resetForegroundColor") {
|
|
705
|
+
foreground = null;
|
|
706
|
+
} else if (styleToken.type === "resetBackgroundColor") {
|
|
707
|
+
background = null;
|
|
708
|
+
} else if (styleToken.type === "resetDecoration") {
|
|
709
|
+
decorations2.delete(styleToken.value);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
for (const styleToken of commands) {
|
|
713
|
+
if (styleToken.type === "setForegroundColor") {
|
|
714
|
+
foreground = styleToken.value;
|
|
715
|
+
} else if (styleToken.type === "setBackgroundColor") {
|
|
716
|
+
background = styleToken.value;
|
|
717
|
+
} else if (styleToken.type === "setDecoration") {
|
|
718
|
+
decorations2.add(styleToken.value);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
position = findResult.position;
|
|
723
|
+
} while (position < value.length);
|
|
724
|
+
return tokens;
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// src/palette.ts
|
|
730
|
+
var defaultNamedColorsMap = {
|
|
731
|
+
black: "#000000",
|
|
732
|
+
red: "#bb0000",
|
|
733
|
+
green: "#00bb00",
|
|
734
|
+
yellow: "#bbbb00",
|
|
735
|
+
blue: "#0000bb",
|
|
736
|
+
magenta: "#ff00ff",
|
|
737
|
+
cyan: "#00bbbb",
|
|
738
|
+
white: "#eeeeee",
|
|
739
|
+
brightBlack: "#555555",
|
|
740
|
+
brightRed: "#ff5555",
|
|
741
|
+
brightGreen: "#00ff00",
|
|
742
|
+
brightYellow: "#ffff55",
|
|
743
|
+
brightBlue: "#5555ff",
|
|
744
|
+
brightMagenta: "#ff55ff",
|
|
745
|
+
brightCyan: "#55ffff",
|
|
746
|
+
brightWhite: "#ffffff"
|
|
747
|
+
};
|
|
748
|
+
function createColorPalette(namedColorsMap = defaultNamedColorsMap) {
|
|
749
|
+
function namedColor(name) {
|
|
750
|
+
return namedColorsMap[name];
|
|
751
|
+
}
|
|
752
|
+
function rgbColor(rgb) {
|
|
753
|
+
return `#${rgb.map((x) => Math.max(0, Math.min(x, 255)).toString(16).padStart(2, "0")).join("")}`;
|
|
754
|
+
}
|
|
755
|
+
let colorTable;
|
|
756
|
+
function getColorTable() {
|
|
757
|
+
if (colorTable) {
|
|
758
|
+
return colorTable;
|
|
759
|
+
}
|
|
760
|
+
colorTable = [];
|
|
761
|
+
for (let i = 0; i < namedColors.length; i++) {
|
|
762
|
+
colorTable.push(namedColor(namedColors[i]));
|
|
763
|
+
}
|
|
764
|
+
let levels = [0, 95, 135, 175, 215, 255];
|
|
765
|
+
for (let r = 0; r < 6; r++) {
|
|
766
|
+
for (let g = 0; g < 6; g++) {
|
|
767
|
+
for (let b = 0; b < 6; b++) {
|
|
768
|
+
colorTable.push(rgbColor([levels[r], levels[g], levels[b]]));
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
let level = 8;
|
|
773
|
+
for (let i = 0; i < 24; i++, level += 10) {
|
|
774
|
+
colorTable.push(rgbColor([level, level, level]));
|
|
775
|
+
}
|
|
776
|
+
return colorTable;
|
|
777
|
+
}
|
|
778
|
+
function tableColor(index) {
|
|
779
|
+
return getColorTable()[index];
|
|
780
|
+
}
|
|
781
|
+
function value(color) {
|
|
782
|
+
switch (color.type) {
|
|
783
|
+
case "named":
|
|
784
|
+
return namedColor(color.name);
|
|
785
|
+
case "rgb":
|
|
786
|
+
return rgbColor(color.rgb);
|
|
787
|
+
case "table":
|
|
788
|
+
return tableColor(color.index);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return {
|
|
792
|
+
value
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
const defaultAnsiColors = {
|
|
797
|
+
black: "#000000",
|
|
798
|
+
red: "#cd3131",
|
|
799
|
+
green: "#0DBC79",
|
|
800
|
+
yellow: "#E5E510",
|
|
801
|
+
blue: "#2472C8",
|
|
802
|
+
magenta: "#BC3FBC",
|
|
803
|
+
cyan: "#11A8CD",
|
|
804
|
+
white: "#E5E5E5",
|
|
805
|
+
brightBlack: "#666666",
|
|
806
|
+
brightRed: "#F14C4C",
|
|
807
|
+
brightGreen: "#23D18B",
|
|
808
|
+
brightYellow: "#F5F543",
|
|
809
|
+
brightBlue: "#3B8EEA",
|
|
810
|
+
brightMagenta: "#D670D6",
|
|
811
|
+
brightCyan: "#29B8DB",
|
|
812
|
+
brightWhite: "#FFFFFF"
|
|
813
|
+
};
|
|
814
|
+
function tokenizeAnsiWithTheme(theme, fileContents, options) {
|
|
815
|
+
const colorReplacements = resolveColorReplacements(theme, options);
|
|
816
|
+
const lines = splitLines(fileContents);
|
|
817
|
+
const ansiPalette = Object.fromEntries(
|
|
818
|
+
namedColors.map((name) => {
|
|
819
|
+
const key = `terminal.ansi${name[0].toUpperCase()}${name.substring(1)}`;
|
|
820
|
+
const themeColor = theme.colors?.[key];
|
|
821
|
+
return [name, themeColor || defaultAnsiColors[name]];
|
|
822
|
+
})
|
|
823
|
+
);
|
|
824
|
+
const colorPalette = createColorPalette(ansiPalette);
|
|
825
|
+
const parser = createAnsiSequenceParser();
|
|
826
|
+
return lines.map(
|
|
827
|
+
(line) => parser.parse(line[0]).map((token) => {
|
|
828
|
+
let color;
|
|
829
|
+
let bgColor;
|
|
830
|
+
if (token.decorations.has("reverse")) {
|
|
831
|
+
color = token.background ? colorPalette.value(token.background) : theme.bg;
|
|
832
|
+
bgColor = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
|
|
833
|
+
} else {
|
|
834
|
+
color = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
|
|
835
|
+
bgColor = token.background ? colorPalette.value(token.background) : void 0;
|
|
836
|
+
}
|
|
837
|
+
color = applyColorReplacements(color, colorReplacements);
|
|
838
|
+
bgColor = applyColorReplacements(bgColor, colorReplacements);
|
|
839
|
+
if (token.decorations.has("dim"))
|
|
840
|
+
color = dimColor(color);
|
|
841
|
+
let fontStyle = FontStyle.None;
|
|
842
|
+
if (token.decorations.has("bold"))
|
|
843
|
+
fontStyle |= FontStyle.Bold;
|
|
844
|
+
if (token.decorations.has("italic"))
|
|
845
|
+
fontStyle |= FontStyle.Italic;
|
|
846
|
+
if (token.decorations.has("underline"))
|
|
847
|
+
fontStyle |= FontStyle.Underline;
|
|
848
|
+
if (token.decorations.has("strikethrough"))
|
|
849
|
+
fontStyle |= FontStyle.Strikethrough;
|
|
850
|
+
return {
|
|
851
|
+
content: token.value,
|
|
852
|
+
offset: line[1],
|
|
853
|
+
// TODO: more accurate offset? might need to fork ansi-sequence-parser
|
|
854
|
+
color,
|
|
855
|
+
bgColor,
|
|
856
|
+
fontStyle
|
|
857
|
+
};
|
|
858
|
+
})
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
function dimColor(color) {
|
|
862
|
+
const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
|
|
863
|
+
if (hexMatch) {
|
|
864
|
+
const hex = hexMatch[1];
|
|
865
|
+
if (hex.length === 8) {
|
|
866
|
+
const alpha = Math.round(Number.parseInt(hex.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
|
|
867
|
+
return `#${hex.slice(0, 6)}${alpha}`;
|
|
868
|
+
} else if (hex.length === 6) {
|
|
869
|
+
return `#${hex}80`;
|
|
870
|
+
} else if (hex.length === 4) {
|
|
871
|
+
const r = hex[0];
|
|
872
|
+
const g = hex[1];
|
|
873
|
+
const b = hex[2];
|
|
874
|
+
const a = hex[3];
|
|
875
|
+
const alpha = Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0");
|
|
876
|
+
return `#${r}${r}${g}${g}${b}${b}${alpha}`;
|
|
877
|
+
} else if (hex.length === 3) {
|
|
878
|
+
const r = hex[0];
|
|
879
|
+
const g = hex[1];
|
|
880
|
+
const b = hex[2];
|
|
881
|
+
return `#${r}${r}${g}${g}${b}${b}80`;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
const cssVarMatch = color.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
885
|
+
if (cssVarMatch)
|
|
886
|
+
return `var(${cssVarMatch[1]}-dim)`;
|
|
887
|
+
return color;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
function codeToTokensBase(internal, code, options = {}) {
|
|
891
|
+
const {
|
|
892
|
+
theme: themeName = internal.getLoadedThemes()[0]
|
|
893
|
+
} = options;
|
|
894
|
+
const lang = internal.resolveLangAlias(options.lang || "text");
|
|
895
|
+
if (isPlainLang(lang) || isNoneTheme(themeName))
|
|
896
|
+
return splitLines(code).map((line) => [{ content: line[0], offset: line[1] }]);
|
|
897
|
+
const { theme, colorMap } = internal.setTheme(themeName);
|
|
898
|
+
if (lang === "ansi")
|
|
899
|
+
return tokenizeAnsiWithTheme(theme, code, options);
|
|
900
|
+
const _grammar = internal.getLanguage(options.lang || "text");
|
|
901
|
+
if (options.grammarState) {
|
|
902
|
+
if (options.grammarState.lang !== _grammar.name) {
|
|
903
|
+
throw new ShikiError$1(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
|
|
904
|
+
}
|
|
905
|
+
if (!options.grammarState.themes.includes(theme.name)) {
|
|
906
|
+
throw new ShikiError$1(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
|
|
910
|
+
}
|
|
911
|
+
function getLastGrammarState(...args) {
|
|
912
|
+
if (args.length === 2) {
|
|
913
|
+
return getLastGrammarStateFromMap(args[1]);
|
|
914
|
+
}
|
|
915
|
+
const [internal, code, options = {}] = args;
|
|
916
|
+
const {
|
|
917
|
+
lang = "text",
|
|
918
|
+
theme: themeName = internal.getLoadedThemes()[0]
|
|
919
|
+
} = options;
|
|
920
|
+
if (isPlainLang(lang) || isNoneTheme(themeName))
|
|
921
|
+
throw new ShikiError$1("Plain language does not have grammar state");
|
|
922
|
+
if (lang === "ansi")
|
|
923
|
+
throw new ShikiError$1("ANSI language does not have grammar state");
|
|
924
|
+
const { theme, colorMap } = internal.setTheme(themeName);
|
|
925
|
+
const _grammar = internal.getLanguage(lang);
|
|
926
|
+
return new GrammarState(
|
|
927
|
+
_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack,
|
|
928
|
+
_grammar.name,
|
|
929
|
+
theme.name
|
|
930
|
+
);
|
|
931
|
+
}
|
|
932
|
+
function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
|
|
933
|
+
const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
|
|
934
|
+
const grammarState = new GrammarState(
|
|
935
|
+
result.stateStack,
|
|
936
|
+
grammar.name,
|
|
937
|
+
theme.name
|
|
938
|
+
);
|
|
939
|
+
setLastGrammarStateToMap(result.tokens, grammarState);
|
|
940
|
+
return result.tokens;
|
|
941
|
+
}
|
|
942
|
+
function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
|
|
943
|
+
const colorReplacements = resolveColorReplacements(theme, options);
|
|
944
|
+
const {
|
|
945
|
+
tokenizeMaxLineLength = 0,
|
|
946
|
+
tokenizeTimeLimit = 500
|
|
947
|
+
} = options;
|
|
948
|
+
const lines = splitLines(code);
|
|
949
|
+
let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(
|
|
950
|
+
options.grammarContextCode,
|
|
951
|
+
grammar,
|
|
952
|
+
theme,
|
|
953
|
+
colorMap,
|
|
954
|
+
{
|
|
955
|
+
...options,
|
|
956
|
+
grammarState: void 0,
|
|
957
|
+
grammarContextCode: void 0
|
|
958
|
+
}
|
|
959
|
+
).stateStack : INITIAL;
|
|
960
|
+
let actual = [];
|
|
961
|
+
const final = [];
|
|
962
|
+
for (let i = 0, len = lines.length; i < len; i++) {
|
|
963
|
+
const [line, lineOffset] = lines[i];
|
|
964
|
+
if (line === "") {
|
|
965
|
+
actual = [];
|
|
966
|
+
final.push([]);
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
|
|
970
|
+
actual = [];
|
|
971
|
+
final.push([{
|
|
972
|
+
content: line,
|
|
973
|
+
offset: lineOffset,
|
|
974
|
+
color: "",
|
|
975
|
+
fontStyle: 0
|
|
976
|
+
}]);
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
let resultWithScopes;
|
|
980
|
+
let tokensWithScopes;
|
|
981
|
+
let tokensWithScopesIndex;
|
|
982
|
+
if (options.includeExplanation) {
|
|
983
|
+
resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
|
|
984
|
+
tokensWithScopes = resultWithScopes.tokens;
|
|
985
|
+
tokensWithScopesIndex = 0;
|
|
986
|
+
}
|
|
987
|
+
const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
|
|
988
|
+
const tokensLength = result.tokens.length / 2;
|
|
989
|
+
for (let j = 0; j < tokensLength; j++) {
|
|
990
|
+
const startIndex = result.tokens[2 * j];
|
|
991
|
+
const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
|
|
992
|
+
if (startIndex === nextStartIndex)
|
|
993
|
+
continue;
|
|
994
|
+
const metadata = result.tokens[2 * j + 1];
|
|
995
|
+
const color = applyColorReplacements(
|
|
996
|
+
colorMap[EncodedTokenMetadata.getForeground(metadata)],
|
|
997
|
+
colorReplacements
|
|
998
|
+
);
|
|
999
|
+
const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
|
|
1000
|
+
const token = {
|
|
1001
|
+
content: line.substring(startIndex, nextStartIndex),
|
|
1002
|
+
offset: lineOffset + startIndex,
|
|
1003
|
+
color,
|
|
1004
|
+
fontStyle
|
|
1005
|
+
};
|
|
1006
|
+
if (options.includeExplanation) {
|
|
1007
|
+
const themeSettingsSelectors = [];
|
|
1008
|
+
if (options.includeExplanation !== "scopeName") {
|
|
1009
|
+
for (const setting of theme.settings) {
|
|
1010
|
+
let selectors;
|
|
1011
|
+
switch (typeof setting.scope) {
|
|
1012
|
+
case "string":
|
|
1013
|
+
selectors = setting.scope.split(/,/).map((scope) => scope.trim());
|
|
1014
|
+
break;
|
|
1015
|
+
case "object":
|
|
1016
|
+
selectors = setting.scope;
|
|
1017
|
+
break;
|
|
1018
|
+
default:
|
|
1019
|
+
continue;
|
|
1020
|
+
}
|
|
1021
|
+
themeSettingsSelectors.push({
|
|
1022
|
+
settings: setting,
|
|
1023
|
+
selectors: selectors.map((selector) => selector.split(/ /))
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
token.explanation = [];
|
|
1028
|
+
let offset = 0;
|
|
1029
|
+
while (startIndex + offset < nextStartIndex) {
|
|
1030
|
+
const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
|
|
1031
|
+
const tokenWithScopesText = line.substring(
|
|
1032
|
+
tokenWithScopes.startIndex,
|
|
1033
|
+
tokenWithScopes.endIndex
|
|
1034
|
+
);
|
|
1035
|
+
offset += tokenWithScopesText.length;
|
|
1036
|
+
token.explanation.push({
|
|
1037
|
+
content: tokenWithScopesText,
|
|
1038
|
+
scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(
|
|
1039
|
+
tokenWithScopes.scopes
|
|
1040
|
+
) : explainThemeScopesFull(
|
|
1041
|
+
themeSettingsSelectors,
|
|
1042
|
+
tokenWithScopes.scopes
|
|
1043
|
+
)
|
|
1044
|
+
});
|
|
1045
|
+
tokensWithScopesIndex += 1;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
actual.push(token);
|
|
1049
|
+
}
|
|
1050
|
+
final.push(actual);
|
|
1051
|
+
actual = [];
|
|
1052
|
+
stateStack = result.ruleStack;
|
|
1053
|
+
}
|
|
1054
|
+
return {
|
|
1055
|
+
tokens: final,
|
|
1056
|
+
stateStack
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
function explainThemeScopesNameOnly(scopes) {
|
|
1060
|
+
return scopes.map((scope) => ({ scopeName: scope }));
|
|
1061
|
+
}
|
|
1062
|
+
function explainThemeScopesFull(themeSelectors, scopes) {
|
|
1063
|
+
const result = [];
|
|
1064
|
+
for (let i = 0, len = scopes.length; i < len; i++) {
|
|
1065
|
+
const scope = scopes[i];
|
|
1066
|
+
result[i] = {
|
|
1067
|
+
scopeName: scope,
|
|
1068
|
+
themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
return result;
|
|
1072
|
+
}
|
|
1073
|
+
function matchesOne(selector, scope) {
|
|
1074
|
+
return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
|
|
1075
|
+
}
|
|
1076
|
+
function matches(selectors, scope, parentScopes) {
|
|
1077
|
+
if (!matchesOne(selectors[selectors.length - 1], scope))
|
|
1078
|
+
return false;
|
|
1079
|
+
let selectorParentIndex = selectors.length - 2;
|
|
1080
|
+
let parentIndex = parentScopes.length - 1;
|
|
1081
|
+
while (selectorParentIndex >= 0 && parentIndex >= 0) {
|
|
1082
|
+
if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex]))
|
|
1083
|
+
selectorParentIndex -= 1;
|
|
1084
|
+
parentIndex -= 1;
|
|
1085
|
+
}
|
|
1086
|
+
if (selectorParentIndex === -1)
|
|
1087
|
+
return true;
|
|
1088
|
+
return false;
|
|
1089
|
+
}
|
|
1090
|
+
function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
|
|
1091
|
+
const result = [];
|
|
1092
|
+
for (const { selectors, settings } of themeSettingsSelectors) {
|
|
1093
|
+
for (const selectorPieces of selectors) {
|
|
1094
|
+
if (matches(selectorPieces, scope, parentScopes)) {
|
|
1095
|
+
result.push(settings);
|
|
1096
|
+
break;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
return result;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
function codeToTokensWithThemes(internal, code, options) {
|
|
1104
|
+
const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] }));
|
|
1105
|
+
const themedTokens = themes.map((t) => {
|
|
1106
|
+
const tokens2 = codeToTokensBase(internal, code, {
|
|
1107
|
+
...options,
|
|
1108
|
+
theme: t.theme
|
|
1109
|
+
});
|
|
1110
|
+
const state = getLastGrammarStateFromMap(tokens2);
|
|
1111
|
+
const theme = typeof t.theme === "string" ? t.theme : t.theme.name;
|
|
1112
|
+
return {
|
|
1113
|
+
tokens: tokens2,
|
|
1114
|
+
state,
|
|
1115
|
+
theme
|
|
1116
|
+
};
|
|
1117
|
+
});
|
|
1118
|
+
const tokens = syncThemesTokenization(
|
|
1119
|
+
...themedTokens.map((i) => i.tokens)
|
|
1120
|
+
);
|
|
1121
|
+
const mergedTokens = tokens[0].map(
|
|
1122
|
+
(line, lineIdx) => line.map((_token, tokenIdx) => {
|
|
1123
|
+
const mergedToken = {
|
|
1124
|
+
content: _token.content,
|
|
1125
|
+
variants: {},
|
|
1126
|
+
offset: _token.offset
|
|
1127
|
+
};
|
|
1128
|
+
if ("includeExplanation" in options && options.includeExplanation) {
|
|
1129
|
+
mergedToken.explanation = _token.explanation;
|
|
1130
|
+
}
|
|
1131
|
+
tokens.forEach((t, themeIdx) => {
|
|
1132
|
+
const {
|
|
1133
|
+
content: _,
|
|
1134
|
+
explanation: __,
|
|
1135
|
+
offset: ___,
|
|
1136
|
+
...styles
|
|
1137
|
+
} = t[lineIdx][tokenIdx];
|
|
1138
|
+
mergedToken.variants[themes[themeIdx].color] = styles;
|
|
1139
|
+
});
|
|
1140
|
+
return mergedToken;
|
|
1141
|
+
})
|
|
1142
|
+
);
|
|
1143
|
+
const mergedGrammarState = themedTokens[0].state ? new GrammarState(
|
|
1144
|
+
Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])),
|
|
1145
|
+
themedTokens[0].state.lang
|
|
1146
|
+
) : void 0;
|
|
1147
|
+
if (mergedGrammarState)
|
|
1148
|
+
setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
|
|
1149
|
+
return mergedTokens;
|
|
1150
|
+
}
|
|
1151
|
+
function syncThemesTokenization(...themes) {
|
|
1152
|
+
const outThemes = themes.map(() => []);
|
|
1153
|
+
const count = themes.length;
|
|
1154
|
+
for (let i = 0; i < themes[0].length; i++) {
|
|
1155
|
+
const lines = themes.map((t) => t[i]);
|
|
1156
|
+
const outLines = outThemes.map(() => []);
|
|
1157
|
+
outThemes.forEach((t, i2) => t.push(outLines[i2]));
|
|
1158
|
+
const indexes = lines.map(() => 0);
|
|
1159
|
+
const current = lines.map((l) => l[0]);
|
|
1160
|
+
while (current.every((t) => t)) {
|
|
1161
|
+
const minLength = Math.min(...current.map((t) => t.content.length));
|
|
1162
|
+
for (let n = 0; n < count; n++) {
|
|
1163
|
+
const token = current[n];
|
|
1164
|
+
if (token.content.length === minLength) {
|
|
1165
|
+
outLines[n].push(token);
|
|
1166
|
+
indexes[n] += 1;
|
|
1167
|
+
current[n] = lines[n][indexes[n]];
|
|
1168
|
+
} else {
|
|
1169
|
+
outLines[n].push({
|
|
1170
|
+
...token,
|
|
1171
|
+
content: token.content.slice(0, minLength)
|
|
1172
|
+
});
|
|
1173
|
+
current[n] = {
|
|
1174
|
+
...token,
|
|
1175
|
+
content: token.content.slice(minLength),
|
|
1176
|
+
offset: token.offset + minLength
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
return outThemes;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
function codeToTokens(internal, code, options) {
|
|
1186
|
+
let bg;
|
|
1187
|
+
let fg;
|
|
1188
|
+
let tokens;
|
|
1189
|
+
let themeName;
|
|
1190
|
+
let rootStyle;
|
|
1191
|
+
let grammarState;
|
|
1192
|
+
if ("themes" in options) {
|
|
1193
|
+
const {
|
|
1194
|
+
defaultColor = "light",
|
|
1195
|
+
cssVariablePrefix = "--shiki-",
|
|
1196
|
+
colorsRendering = "css-vars"
|
|
1197
|
+
} = options;
|
|
1198
|
+
const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
|
|
1199
|
+
if (themes.length === 0)
|
|
1200
|
+
throw new ShikiError$1("`themes` option must not be empty");
|
|
1201
|
+
const themeTokens = codeToTokensWithThemes(
|
|
1202
|
+
internal,
|
|
1203
|
+
code,
|
|
1204
|
+
options
|
|
1205
|
+
);
|
|
1206
|
+
grammarState = getLastGrammarStateFromMap(themeTokens);
|
|
1207
|
+
if (defaultColor && DEFAULT_COLOR_LIGHT_DARK !== defaultColor && !themes.find((t) => t.color === defaultColor))
|
|
1208
|
+
throw new ShikiError$1(`\`themes\` option must contain the defaultColor key \`${defaultColor}\``);
|
|
1209
|
+
const themeRegs = themes.map((t) => internal.getTheme(t.theme));
|
|
1210
|
+
const themesOrder = themes.map((t) => t.color);
|
|
1211
|
+
tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor, colorsRendering)));
|
|
1212
|
+
if (grammarState)
|
|
1213
|
+
setLastGrammarStateToMap(tokens, grammarState);
|
|
1214
|
+
const themeColorReplacements = themes.map((t) => resolveColorReplacements(t.theme, options));
|
|
1215
|
+
fg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "fg", colorsRendering);
|
|
1216
|
+
bg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "bg", colorsRendering);
|
|
1217
|
+
themeName = `shiki-themes ${themeRegs.map((t) => t.name).join(" ")}`;
|
|
1218
|
+
rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
|
|
1219
|
+
} else if ("theme" in options) {
|
|
1220
|
+
const colorReplacements = resolveColorReplacements(options.theme, options);
|
|
1221
|
+
tokens = codeToTokensBase(
|
|
1222
|
+
internal,
|
|
1223
|
+
code,
|
|
1224
|
+
options
|
|
1225
|
+
);
|
|
1226
|
+
const _theme = internal.getTheme(options.theme);
|
|
1227
|
+
bg = applyColorReplacements(_theme.bg, colorReplacements);
|
|
1228
|
+
fg = applyColorReplacements(_theme.fg, colorReplacements);
|
|
1229
|
+
themeName = _theme.name;
|
|
1230
|
+
grammarState = getLastGrammarStateFromMap(tokens);
|
|
1231
|
+
} else {
|
|
1232
|
+
throw new ShikiError$1("Invalid options, either `theme` or `themes` must be provided");
|
|
1233
|
+
}
|
|
1234
|
+
return {
|
|
1235
|
+
tokens,
|
|
1236
|
+
fg,
|
|
1237
|
+
bg,
|
|
1238
|
+
themeName,
|
|
1239
|
+
rootStyle,
|
|
1240
|
+
grammarState
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, property, colorsRendering) {
|
|
1244
|
+
return themes.map((t, idx) => {
|
|
1245
|
+
const value = applyColorReplacements(themeRegs[idx][property], themeColorReplacements[idx]) || "inherit";
|
|
1246
|
+
const cssVar = `${cssVariablePrefix + t.color}${property === "bg" ? "-bg" : ""}:${value}`;
|
|
1247
|
+
if (idx === 0 && defaultColor) {
|
|
1248
|
+
if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && themes.length > 1) {
|
|
1249
|
+
const lightIndex = themes.findIndex((t2) => t2.color === "light");
|
|
1250
|
+
const darkIndex = themes.findIndex((t2) => t2.color === "dark");
|
|
1251
|
+
if (lightIndex === -1 || darkIndex === -1)
|
|
1252
|
+
throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
|
|
1253
|
+
const lightValue = applyColorReplacements(themeRegs[lightIndex][property], themeColorReplacements[lightIndex]) || "inherit";
|
|
1254
|
+
const darkValue = applyColorReplacements(themeRegs[darkIndex][property], themeColorReplacements[darkIndex]) || "inherit";
|
|
1255
|
+
return `light-dark(${lightValue}, ${darkValue});${cssVar}`;
|
|
1256
|
+
}
|
|
1257
|
+
return value;
|
|
1258
|
+
}
|
|
1259
|
+
if (colorsRendering === "css-vars") {
|
|
1260
|
+
return cssVar;
|
|
1261
|
+
}
|
|
1262
|
+
return null;
|
|
1263
|
+
}).filter((i) => !!i).join(";");
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
function codeToHast(internal, code, options, transformerContext = {
|
|
1267
|
+
meta: {},
|
|
1268
|
+
options,
|
|
1269
|
+
codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
|
|
1270
|
+
codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
|
|
1271
|
+
}) {
|
|
1272
|
+
let input = code;
|
|
1273
|
+
for (const transformer of getTransformers(options))
|
|
1274
|
+
input = transformer.preprocess?.call(transformerContext, input, options) || input;
|
|
1275
|
+
let {
|
|
1276
|
+
tokens,
|
|
1277
|
+
fg,
|
|
1278
|
+
bg,
|
|
1279
|
+
themeName,
|
|
1280
|
+
rootStyle,
|
|
1281
|
+
grammarState
|
|
1282
|
+
} = codeToTokens(internal, input, options);
|
|
1283
|
+
const {
|
|
1284
|
+
mergeWhitespaces = true,
|
|
1285
|
+
mergeSameStyleTokens = false
|
|
1286
|
+
} = options;
|
|
1287
|
+
if (mergeWhitespaces === true)
|
|
1288
|
+
tokens = mergeWhitespaceTokens(tokens);
|
|
1289
|
+
else if (mergeWhitespaces === "never")
|
|
1290
|
+
tokens = splitWhitespaceTokens(tokens);
|
|
1291
|
+
if (mergeSameStyleTokens) {
|
|
1292
|
+
tokens = mergeAdjacentStyledTokens(tokens);
|
|
1293
|
+
}
|
|
1294
|
+
const contextSource = {
|
|
1295
|
+
...transformerContext,
|
|
1296
|
+
get source() {
|
|
1297
|
+
return input;
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
for (const transformer of getTransformers(options))
|
|
1301
|
+
tokens = transformer.tokens?.call(contextSource, tokens) || tokens;
|
|
1302
|
+
return tokensToHast(
|
|
1303
|
+
tokens,
|
|
1304
|
+
{
|
|
1305
|
+
...options,
|
|
1306
|
+
fg,
|
|
1307
|
+
bg,
|
|
1308
|
+
themeName,
|
|
1309
|
+
rootStyle: options.rootStyle === false ? false : options.rootStyle ?? rootStyle
|
|
1310
|
+
},
|
|
1311
|
+
contextSource,
|
|
1312
|
+
grammarState
|
|
1313
|
+
);
|
|
1314
|
+
}
|
|
1315
|
+
function tokensToHast(tokens, options, transformerContext, grammarState = getLastGrammarStateFromMap(tokens)) {
|
|
1316
|
+
const transformers = getTransformers(options);
|
|
1317
|
+
const lines = [];
|
|
1318
|
+
const root = {
|
|
1319
|
+
type: "root",
|
|
1320
|
+
children: []
|
|
1321
|
+
};
|
|
1322
|
+
const {
|
|
1323
|
+
structure = "classic",
|
|
1324
|
+
tabindex = "0"
|
|
1325
|
+
} = options;
|
|
1326
|
+
const properties = {
|
|
1327
|
+
class: `shiki ${options.themeName || ""}`
|
|
1328
|
+
};
|
|
1329
|
+
if (options.rootStyle !== false) {
|
|
1330
|
+
if (options.rootStyle != null)
|
|
1331
|
+
properties.style = options.rootStyle;
|
|
1332
|
+
else
|
|
1333
|
+
properties.style = `background-color:${options.bg};color:${options.fg}`;
|
|
1334
|
+
}
|
|
1335
|
+
if (tabindex !== false && tabindex != null)
|
|
1336
|
+
properties.tabindex = tabindex.toString();
|
|
1337
|
+
for (const [key, value] of Object.entries(options.meta || {})) {
|
|
1338
|
+
if (!key.startsWith("_"))
|
|
1339
|
+
properties[key] = value;
|
|
1340
|
+
}
|
|
1341
|
+
let preNode = {
|
|
1342
|
+
type: "element",
|
|
1343
|
+
tagName: "pre",
|
|
1344
|
+
properties,
|
|
1345
|
+
children: [],
|
|
1346
|
+
data: options.data
|
|
1347
|
+
};
|
|
1348
|
+
let codeNode = {
|
|
1349
|
+
type: "element",
|
|
1350
|
+
tagName: "code",
|
|
1351
|
+
properties: {},
|
|
1352
|
+
children: lines
|
|
1353
|
+
};
|
|
1354
|
+
const lineNodes = [];
|
|
1355
|
+
const context = {
|
|
1356
|
+
...transformerContext,
|
|
1357
|
+
structure,
|
|
1358
|
+
addClassToHast,
|
|
1359
|
+
get source() {
|
|
1360
|
+
return transformerContext.source;
|
|
1361
|
+
},
|
|
1362
|
+
get tokens() {
|
|
1363
|
+
return tokens;
|
|
1364
|
+
},
|
|
1365
|
+
get options() {
|
|
1366
|
+
return options;
|
|
1367
|
+
},
|
|
1368
|
+
get root() {
|
|
1369
|
+
return root;
|
|
1370
|
+
},
|
|
1371
|
+
get pre() {
|
|
1372
|
+
return preNode;
|
|
1373
|
+
},
|
|
1374
|
+
get code() {
|
|
1375
|
+
return codeNode;
|
|
1376
|
+
},
|
|
1377
|
+
get lines() {
|
|
1378
|
+
return lineNodes;
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1381
|
+
tokens.forEach((line, idx) => {
|
|
1382
|
+
if (idx) {
|
|
1383
|
+
if (structure === "inline")
|
|
1384
|
+
root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
|
|
1385
|
+
else if (structure === "classic")
|
|
1386
|
+
lines.push({ type: "text", value: "\n" });
|
|
1387
|
+
}
|
|
1388
|
+
let lineNode = {
|
|
1389
|
+
type: "element",
|
|
1390
|
+
tagName: "span",
|
|
1391
|
+
properties: { class: "line" },
|
|
1392
|
+
children: []
|
|
1393
|
+
};
|
|
1394
|
+
let col = 0;
|
|
1395
|
+
for (const token of line) {
|
|
1396
|
+
let tokenNode = {
|
|
1397
|
+
type: "element",
|
|
1398
|
+
tagName: "span",
|
|
1399
|
+
properties: {
|
|
1400
|
+
...token.htmlAttrs
|
|
1401
|
+
},
|
|
1402
|
+
children: [{ type: "text", value: token.content }]
|
|
1403
|
+
};
|
|
1404
|
+
const style = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
|
|
1405
|
+
if (style)
|
|
1406
|
+
tokenNode.properties.style = style;
|
|
1407
|
+
for (const transformer of transformers)
|
|
1408
|
+
tokenNode = transformer?.span?.call(context, tokenNode, idx + 1, col, lineNode, token) || tokenNode;
|
|
1409
|
+
if (structure === "inline")
|
|
1410
|
+
root.children.push(tokenNode);
|
|
1411
|
+
else if (structure === "classic")
|
|
1412
|
+
lineNode.children.push(tokenNode);
|
|
1413
|
+
col += token.content.length;
|
|
1414
|
+
}
|
|
1415
|
+
if (structure === "classic") {
|
|
1416
|
+
for (const transformer of transformers)
|
|
1417
|
+
lineNode = transformer?.line?.call(context, lineNode, idx + 1) || lineNode;
|
|
1418
|
+
lineNodes.push(lineNode);
|
|
1419
|
+
lines.push(lineNode);
|
|
1420
|
+
} else if (structure === "inline") {
|
|
1421
|
+
lineNodes.push(lineNode);
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
if (structure === "classic") {
|
|
1425
|
+
for (const transformer of transformers)
|
|
1426
|
+
codeNode = transformer?.code?.call(context, codeNode) || codeNode;
|
|
1427
|
+
preNode.children.push(codeNode);
|
|
1428
|
+
for (const transformer of transformers)
|
|
1429
|
+
preNode = transformer?.pre?.call(context, preNode) || preNode;
|
|
1430
|
+
root.children.push(preNode);
|
|
1431
|
+
} else if (structure === "inline") {
|
|
1432
|
+
const syntheticLines = [];
|
|
1433
|
+
let currentLine = {
|
|
1434
|
+
type: "element",
|
|
1435
|
+
tagName: "span",
|
|
1436
|
+
properties: { class: "line" },
|
|
1437
|
+
children: []
|
|
1438
|
+
};
|
|
1439
|
+
for (const child of root.children) {
|
|
1440
|
+
if (child.type === "element" && child.tagName === "br") {
|
|
1441
|
+
syntheticLines.push(currentLine);
|
|
1442
|
+
currentLine = {
|
|
1443
|
+
type: "element",
|
|
1444
|
+
tagName: "span",
|
|
1445
|
+
properties: { class: "line" },
|
|
1446
|
+
children: []
|
|
1447
|
+
};
|
|
1448
|
+
} else if (child.type === "element" || child.type === "text") {
|
|
1449
|
+
currentLine.children.push(child);
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
syntheticLines.push(currentLine);
|
|
1453
|
+
const syntheticCode = {
|
|
1454
|
+
type: "element",
|
|
1455
|
+
tagName: "code",
|
|
1456
|
+
properties: {},
|
|
1457
|
+
children: syntheticLines
|
|
1458
|
+
};
|
|
1459
|
+
let transformedCode = syntheticCode;
|
|
1460
|
+
for (const transformer of transformers)
|
|
1461
|
+
transformedCode = transformer?.code?.call(context, transformedCode) || transformedCode;
|
|
1462
|
+
root.children = [];
|
|
1463
|
+
for (let i = 0; i < transformedCode.children.length; i++) {
|
|
1464
|
+
if (i > 0)
|
|
1465
|
+
root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
|
|
1466
|
+
const line = transformedCode.children[i];
|
|
1467
|
+
if (line.type === "element")
|
|
1468
|
+
root.children.push(...line.children);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
let result = root;
|
|
1472
|
+
for (const transformer of transformers)
|
|
1473
|
+
result = transformer?.root?.call(context, result) || result;
|
|
1474
|
+
if (grammarState)
|
|
1475
|
+
setLastGrammarStateToMap(result, grammarState);
|
|
1476
|
+
return result;
|
|
1477
|
+
}
|
|
1478
|
+
function mergeWhitespaceTokens(tokens) {
|
|
1479
|
+
return tokens.map((line) => {
|
|
1480
|
+
const newLine = [];
|
|
1481
|
+
let carryOnContent = "";
|
|
1482
|
+
let firstOffset;
|
|
1483
|
+
line.forEach((token, idx) => {
|
|
1484
|
+
const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
|
|
1485
|
+
const couldMerge = !isDecorated;
|
|
1486
|
+
if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
|
|
1487
|
+
if (firstOffset === void 0)
|
|
1488
|
+
firstOffset = token.offset;
|
|
1489
|
+
carryOnContent += token.content;
|
|
1490
|
+
} else {
|
|
1491
|
+
if (carryOnContent) {
|
|
1492
|
+
if (couldMerge) {
|
|
1493
|
+
newLine.push({
|
|
1494
|
+
...token,
|
|
1495
|
+
offset: firstOffset,
|
|
1496
|
+
content: carryOnContent + token.content
|
|
1497
|
+
});
|
|
1498
|
+
} else {
|
|
1499
|
+
newLine.push(
|
|
1500
|
+
{
|
|
1501
|
+
content: carryOnContent,
|
|
1502
|
+
offset: firstOffset
|
|
1503
|
+
},
|
|
1504
|
+
token
|
|
1505
|
+
);
|
|
1506
|
+
}
|
|
1507
|
+
firstOffset = void 0;
|
|
1508
|
+
carryOnContent = "";
|
|
1509
|
+
} else {
|
|
1510
|
+
newLine.push(token);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
return newLine;
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
function splitWhitespaceTokens(tokens) {
|
|
1518
|
+
return tokens.map((line) => {
|
|
1519
|
+
return line.flatMap((token) => {
|
|
1520
|
+
if (token.content.match(/^\s+$/))
|
|
1521
|
+
return token;
|
|
1522
|
+
const match = token.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
1523
|
+
if (!match)
|
|
1524
|
+
return token;
|
|
1525
|
+
const [, leading, content, trailing] = match;
|
|
1526
|
+
if (!leading && !trailing)
|
|
1527
|
+
return token;
|
|
1528
|
+
const expanded = [{
|
|
1529
|
+
...token,
|
|
1530
|
+
offset: token.offset + leading.length,
|
|
1531
|
+
content
|
|
1532
|
+
}];
|
|
1533
|
+
if (leading) {
|
|
1534
|
+
expanded.unshift({
|
|
1535
|
+
content: leading,
|
|
1536
|
+
offset: token.offset
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
if (trailing) {
|
|
1540
|
+
expanded.push({
|
|
1541
|
+
content: trailing,
|
|
1542
|
+
offset: token.offset + leading.length + content.length
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
return expanded;
|
|
1546
|
+
});
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
function mergeAdjacentStyledTokens(tokens) {
|
|
1550
|
+
return tokens.map((line) => {
|
|
1551
|
+
const newLine = [];
|
|
1552
|
+
for (const token of line) {
|
|
1553
|
+
if (newLine.length === 0) {
|
|
1554
|
+
newLine.push({ ...token });
|
|
1555
|
+
continue;
|
|
1556
|
+
}
|
|
1557
|
+
const prevToken = newLine[newLine.length - 1];
|
|
1558
|
+
const prevStyle = stringifyTokenStyle(prevToken.htmlStyle || getTokenStyleObject(prevToken));
|
|
1559
|
+
const currentStyle = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
|
|
1560
|
+
const isPrevDecorated = prevToken.fontStyle && (prevToken.fontStyle & FontStyle.Underline || prevToken.fontStyle & FontStyle.Strikethrough);
|
|
1561
|
+
const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
|
|
1562
|
+
if (!isPrevDecorated && !isDecorated && prevStyle === currentStyle) {
|
|
1563
|
+
prevToken.content += token.content;
|
|
1564
|
+
} else {
|
|
1565
|
+
newLine.push({ ...token });
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
return newLine;
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
const hastToHtml = toHtml;
|
|
1573
|
+
function codeToHtml(internal, code, options) {
|
|
1574
|
+
const context = {
|
|
1575
|
+
meta: {},
|
|
1576
|
+
options,
|
|
1577
|
+
codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
|
|
1578
|
+
codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
|
|
1579
|
+
};
|
|
1580
|
+
let result = hastToHtml(codeToHast(internal, code, options, context));
|
|
1581
|
+
for (const transformer of getTransformers(options))
|
|
1582
|
+
result = transformer.postprocess?.call(context, result, options) || result;
|
|
1583
|
+
return result;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
const VSCODE_FALLBACK_EDITOR_FG = { light: "#333333", dark: "#bbbbbb" };
|
|
1587
|
+
const VSCODE_FALLBACK_EDITOR_BG = { light: "#fffffe", dark: "#1e1e1e" };
|
|
1588
|
+
const RESOLVED_KEY = "__shiki_resolved";
|
|
1589
|
+
function normalizeTheme(rawTheme) {
|
|
1590
|
+
if (rawTheme?.[RESOLVED_KEY])
|
|
1591
|
+
return rawTheme;
|
|
1592
|
+
const theme = {
|
|
1593
|
+
...rawTheme
|
|
1594
|
+
};
|
|
1595
|
+
if (theme.tokenColors && !theme.settings) {
|
|
1596
|
+
theme.settings = theme.tokenColors;
|
|
1597
|
+
delete theme.tokenColors;
|
|
1598
|
+
}
|
|
1599
|
+
theme.type ||= "dark";
|
|
1600
|
+
theme.colorReplacements = { ...theme.colorReplacements };
|
|
1601
|
+
theme.settings ||= [];
|
|
1602
|
+
let { bg, fg } = theme;
|
|
1603
|
+
if (!bg || !fg) {
|
|
1604
|
+
const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
|
|
1605
|
+
if (globalSetting?.settings?.foreground)
|
|
1606
|
+
fg = globalSetting.settings.foreground;
|
|
1607
|
+
if (globalSetting?.settings?.background)
|
|
1608
|
+
bg = globalSetting.settings.background;
|
|
1609
|
+
if (!fg && theme?.colors?.["editor.foreground"])
|
|
1610
|
+
fg = theme.colors["editor.foreground"];
|
|
1611
|
+
if (!bg && theme?.colors?.["editor.background"])
|
|
1612
|
+
bg = theme.colors["editor.background"];
|
|
1613
|
+
if (!fg)
|
|
1614
|
+
fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
|
|
1615
|
+
if (!bg)
|
|
1616
|
+
bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
|
|
1617
|
+
theme.fg = fg;
|
|
1618
|
+
theme.bg = bg;
|
|
1619
|
+
}
|
|
1620
|
+
if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) {
|
|
1621
|
+
theme.settings.unshift({
|
|
1622
|
+
settings: {
|
|
1623
|
+
foreground: theme.fg,
|
|
1624
|
+
background: theme.bg
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
let replacementCount = 0;
|
|
1629
|
+
const replacementMap = /* @__PURE__ */ new Map();
|
|
1630
|
+
function getReplacementColor(value) {
|
|
1631
|
+
if (replacementMap.has(value))
|
|
1632
|
+
return replacementMap.get(value);
|
|
1633
|
+
replacementCount += 1;
|
|
1634
|
+
const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
|
|
1635
|
+
if (theme.colorReplacements?.[`#${hex}`])
|
|
1636
|
+
return getReplacementColor(value);
|
|
1637
|
+
replacementMap.set(value, hex);
|
|
1638
|
+
return hex;
|
|
1639
|
+
}
|
|
1640
|
+
theme.settings = theme.settings.map((setting) => {
|
|
1641
|
+
const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
|
|
1642
|
+
const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
|
|
1643
|
+
if (!replaceFg && !replaceBg)
|
|
1644
|
+
return setting;
|
|
1645
|
+
const clone = {
|
|
1646
|
+
...setting,
|
|
1647
|
+
settings: {
|
|
1648
|
+
...setting.settings
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
if (replaceFg) {
|
|
1652
|
+
const replacement = getReplacementColor(setting.settings.foreground);
|
|
1653
|
+
theme.colorReplacements[replacement] = setting.settings.foreground;
|
|
1654
|
+
clone.settings.foreground = replacement;
|
|
1655
|
+
}
|
|
1656
|
+
if (replaceBg) {
|
|
1657
|
+
const replacement = getReplacementColor(setting.settings.background);
|
|
1658
|
+
theme.colorReplacements[replacement] = setting.settings.background;
|
|
1659
|
+
clone.settings.background = replacement;
|
|
1660
|
+
}
|
|
1661
|
+
return clone;
|
|
1662
|
+
});
|
|
1663
|
+
for (const key of Object.keys(theme.colors || {})) {
|
|
1664
|
+
if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
|
|
1665
|
+
if (!theme.colors[key]?.startsWith("#")) {
|
|
1666
|
+
const replacement = getReplacementColor(theme.colors[key]);
|
|
1667
|
+
theme.colorReplacements[replacement] = theme.colors[key];
|
|
1668
|
+
theme.colors[key] = replacement;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
Object.defineProperty(theme, RESOLVED_KEY, {
|
|
1673
|
+
enumerable: false,
|
|
1674
|
+
writable: false,
|
|
1675
|
+
value: true
|
|
1676
|
+
});
|
|
1677
|
+
return theme;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
async function resolveLangs(langs) {
|
|
1681
|
+
return Array.from(new Set((await Promise.all(
|
|
1682
|
+
langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r]))
|
|
1683
|
+
)).flat()));
|
|
1684
|
+
}
|
|
1685
|
+
async function resolveThemes(themes) {
|
|
1686
|
+
const resolved = await Promise.all(
|
|
1687
|
+
themes.map(
|
|
1688
|
+
async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))
|
|
1689
|
+
)
|
|
1690
|
+
);
|
|
1691
|
+
return resolved.filter((i) => !!i);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
let _emitDeprecation = 3;
|
|
1695
|
+
let _emitError = false;
|
|
1696
|
+
function enableDeprecationWarnings(emitDeprecation = true, emitError = false) {
|
|
1697
|
+
_emitDeprecation = emitDeprecation;
|
|
1698
|
+
_emitError = emitError;
|
|
1699
|
+
}
|
|
1700
|
+
function warnDeprecated(message, version = 3) {
|
|
1701
|
+
if (!_emitDeprecation)
|
|
1702
|
+
return;
|
|
1703
|
+
if (typeof _emitDeprecation === "number" && version > _emitDeprecation)
|
|
1704
|
+
return;
|
|
1705
|
+
if (_emitError) {
|
|
1706
|
+
throw new Error(`[SHIKI DEPRECATE]: ${message}`);
|
|
1707
|
+
} else {
|
|
1708
|
+
console.trace(`[SHIKI DEPRECATE]: ${message}`);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
class ShikiError extends Error {
|
|
1713
|
+
constructor(message) {
|
|
1714
|
+
super(message);
|
|
1715
|
+
this.name = "ShikiError";
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
function resolveLangAlias(name, alias) {
|
|
1720
|
+
if (!alias)
|
|
1721
|
+
return name;
|
|
1722
|
+
if (alias[name]) {
|
|
1723
|
+
const resolved = /* @__PURE__ */ new Set([name]);
|
|
1724
|
+
while (alias[name]) {
|
|
1725
|
+
name = alias[name];
|
|
1726
|
+
if (resolved.has(name))
|
|
1727
|
+
throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
|
|
1728
|
+
resolved.add(name);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
return name;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
class Registry extends Registry$1 {
|
|
1735
|
+
constructor(_resolver, _themes, _langs, _alias = {}) {
|
|
1736
|
+
super(_resolver);
|
|
1737
|
+
this._resolver = _resolver;
|
|
1738
|
+
this._themes = _themes;
|
|
1739
|
+
this._langs = _langs;
|
|
1740
|
+
this._alias = _alias;
|
|
1741
|
+
this._themes.map((t) => this.loadTheme(t));
|
|
1742
|
+
this.loadLanguages(this._langs);
|
|
1743
|
+
}
|
|
1744
|
+
_resolvedThemes = /* @__PURE__ */ new Map();
|
|
1745
|
+
_resolvedGrammars = /* @__PURE__ */ new Map();
|
|
1746
|
+
_langMap = /* @__PURE__ */ new Map();
|
|
1747
|
+
_langGraph = /* @__PURE__ */ new Map();
|
|
1748
|
+
_textmateThemeCache = /* @__PURE__ */ new WeakMap();
|
|
1749
|
+
_loadedThemesCache = null;
|
|
1750
|
+
_loadedLanguagesCache = null;
|
|
1751
|
+
getTheme(theme) {
|
|
1752
|
+
if (typeof theme === "string")
|
|
1753
|
+
return this._resolvedThemes.get(theme);
|
|
1754
|
+
else
|
|
1755
|
+
return this.loadTheme(theme);
|
|
1756
|
+
}
|
|
1757
|
+
loadTheme(theme) {
|
|
1758
|
+
const _theme = normalizeTheme(theme);
|
|
1759
|
+
if (_theme.name) {
|
|
1760
|
+
this._resolvedThemes.set(_theme.name, _theme);
|
|
1761
|
+
this._loadedThemesCache = null;
|
|
1762
|
+
}
|
|
1763
|
+
return _theme;
|
|
1764
|
+
}
|
|
1765
|
+
getLoadedThemes() {
|
|
1766
|
+
if (!this._loadedThemesCache)
|
|
1767
|
+
this._loadedThemesCache = [...this._resolvedThemes.keys()];
|
|
1768
|
+
return this._loadedThemesCache;
|
|
1769
|
+
}
|
|
1770
|
+
// Override and re-implement this method to cache the textmate themes as `TextMateTheme.createFromRawTheme`
|
|
1771
|
+
// is expensive. Themes can switch often especially for dual-theme support.
|
|
1772
|
+
//
|
|
1773
|
+
// The parent class also accepts `colorMap` as the second parameter, but since we don't use that,
|
|
1774
|
+
// we omit here so it's easier to cache the themes.
|
|
1775
|
+
setTheme(theme) {
|
|
1776
|
+
let textmateTheme = this._textmateThemeCache.get(theme);
|
|
1777
|
+
if (!textmateTheme) {
|
|
1778
|
+
textmateTheme = Theme.createFromRawTheme(theme);
|
|
1779
|
+
this._textmateThemeCache.set(theme, textmateTheme);
|
|
1780
|
+
}
|
|
1781
|
+
this._syncRegistry.setTheme(textmateTheme);
|
|
1782
|
+
}
|
|
1783
|
+
getGrammar(name) {
|
|
1784
|
+
name = resolveLangAlias(name, this._alias);
|
|
1785
|
+
return this._resolvedGrammars.get(name);
|
|
1786
|
+
}
|
|
1787
|
+
loadLanguage(lang) {
|
|
1788
|
+
if (this.getGrammar(lang.name))
|
|
1789
|
+
return;
|
|
1790
|
+
const embeddedLazilyBy = new Set(
|
|
1791
|
+
[...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name))
|
|
1792
|
+
);
|
|
1793
|
+
this._resolver.addLanguage(lang);
|
|
1794
|
+
const grammarConfig = {
|
|
1795
|
+
balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
|
|
1796
|
+
unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
|
|
1797
|
+
};
|
|
1798
|
+
this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
|
|
1799
|
+
const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
|
|
1800
|
+
g.name = lang.name;
|
|
1801
|
+
this._resolvedGrammars.set(lang.name, g);
|
|
1802
|
+
if (lang.aliases) {
|
|
1803
|
+
lang.aliases.forEach((alias) => {
|
|
1804
|
+
this._alias[alias] = lang.name;
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
this._loadedLanguagesCache = null;
|
|
1808
|
+
if (embeddedLazilyBy.size) {
|
|
1809
|
+
for (const e of embeddedLazilyBy) {
|
|
1810
|
+
this._resolvedGrammars.delete(e.name);
|
|
1811
|
+
this._loadedLanguagesCache = null;
|
|
1812
|
+
this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
|
|
1813
|
+
this._syncRegistry?._grammars?.delete(e.scopeName);
|
|
1814
|
+
this.loadLanguage(this._langMap.get(e.name));
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
dispose() {
|
|
1819
|
+
super.dispose();
|
|
1820
|
+
this._resolvedThemes.clear();
|
|
1821
|
+
this._resolvedGrammars.clear();
|
|
1822
|
+
this._langMap.clear();
|
|
1823
|
+
this._langGraph.clear();
|
|
1824
|
+
this._loadedThemesCache = null;
|
|
1825
|
+
}
|
|
1826
|
+
loadLanguages(langs) {
|
|
1827
|
+
for (const lang of langs)
|
|
1828
|
+
this.resolveEmbeddedLanguages(lang);
|
|
1829
|
+
const langsGraphArray = Array.from(this._langGraph.entries());
|
|
1830
|
+
const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
|
|
1831
|
+
if (missingLangs.length) {
|
|
1832
|
+
const dependents = langsGraphArray.filter(([_, lang]) => {
|
|
1833
|
+
if (!lang)
|
|
1834
|
+
return false;
|
|
1835
|
+
const embedded = lang.embeddedLanguages || lang.embeddedLangs;
|
|
1836
|
+
return embedded?.some((l) => missingLangs.map(([name]) => name).includes(l));
|
|
1837
|
+
}).filter((lang) => !missingLangs.includes(lang));
|
|
1838
|
+
throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
|
|
1839
|
+
}
|
|
1840
|
+
for (const [_, lang] of langsGraphArray)
|
|
1841
|
+
this._resolver.addLanguage(lang);
|
|
1842
|
+
for (const [_, lang] of langsGraphArray)
|
|
1843
|
+
this.loadLanguage(lang);
|
|
1844
|
+
}
|
|
1845
|
+
getLoadedLanguages() {
|
|
1846
|
+
if (!this._loadedLanguagesCache) {
|
|
1847
|
+
this._loadedLanguagesCache = [
|
|
1848
|
+
.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])
|
|
1849
|
+
];
|
|
1850
|
+
}
|
|
1851
|
+
return this._loadedLanguagesCache;
|
|
1852
|
+
}
|
|
1853
|
+
resolveEmbeddedLanguages(lang) {
|
|
1854
|
+
this._langMap.set(lang.name, lang);
|
|
1855
|
+
this._langGraph.set(lang.name, lang);
|
|
1856
|
+
const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
|
|
1857
|
+
if (embedded) {
|
|
1858
|
+
for (const embeddedLang of embedded)
|
|
1859
|
+
this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
class Resolver {
|
|
1865
|
+
_langs = /* @__PURE__ */ new Map();
|
|
1866
|
+
_scopeToLang = /* @__PURE__ */ new Map();
|
|
1867
|
+
_injections = /* @__PURE__ */ new Map();
|
|
1868
|
+
_onigLib;
|
|
1869
|
+
constructor(engine, langs) {
|
|
1870
|
+
this._onigLib = {
|
|
1871
|
+
createOnigScanner: (patterns) => engine.createScanner(patterns),
|
|
1872
|
+
createOnigString: (s) => engine.createString(s)
|
|
1873
|
+
};
|
|
1874
|
+
langs.forEach((i) => this.addLanguage(i));
|
|
1875
|
+
}
|
|
1876
|
+
get onigLib() {
|
|
1877
|
+
return this._onigLib;
|
|
1878
|
+
}
|
|
1879
|
+
getLangRegistration(langIdOrAlias) {
|
|
1880
|
+
return this._langs.get(langIdOrAlias);
|
|
1881
|
+
}
|
|
1882
|
+
loadGrammar(scopeName) {
|
|
1883
|
+
return this._scopeToLang.get(scopeName);
|
|
1884
|
+
}
|
|
1885
|
+
addLanguage(l) {
|
|
1886
|
+
this._langs.set(l.name, l);
|
|
1887
|
+
if (l.aliases) {
|
|
1888
|
+
l.aliases.forEach((a) => {
|
|
1889
|
+
this._langs.set(a, l);
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
this._scopeToLang.set(l.scopeName, l);
|
|
1893
|
+
if (l.injectTo) {
|
|
1894
|
+
l.injectTo.forEach((i) => {
|
|
1895
|
+
if (!this._injections.get(i))
|
|
1896
|
+
this._injections.set(i, []);
|
|
1897
|
+
this._injections.get(i).push(l.scopeName);
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
getInjections(scopeName) {
|
|
1902
|
+
const scopeParts = scopeName.split(".");
|
|
1903
|
+
let injections = [];
|
|
1904
|
+
for (let i = 1; i <= scopeParts.length; i++) {
|
|
1905
|
+
const subScopeName = scopeParts.slice(0, i).join(".");
|
|
1906
|
+
injections = [...injections, ...this._injections.get(subScopeName) || []];
|
|
1907
|
+
}
|
|
1908
|
+
return injections;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
let instancesCount = 0;
|
|
1913
|
+
function createShikiInternalSync(options) {
|
|
1914
|
+
instancesCount += 1;
|
|
1915
|
+
if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0)
|
|
1916
|
+
console.warn(`[Shiki] ${instancesCount} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
1917
|
+
let isDisposed = false;
|
|
1918
|
+
if (!options.engine)
|
|
1919
|
+
throw new ShikiError("`engine` option is required for synchronous mode");
|
|
1920
|
+
const langs = (options.langs || []).flat(1);
|
|
1921
|
+
const themes = (options.themes || []).flat(1).map(normalizeTheme);
|
|
1922
|
+
const resolver = new Resolver(options.engine, langs);
|
|
1923
|
+
const _registry = new Registry(resolver, themes, langs, options.langAlias);
|
|
1924
|
+
let _lastTheme;
|
|
1925
|
+
function resolveLangAlias$1(name) {
|
|
1926
|
+
return resolveLangAlias(name, options.langAlias);
|
|
1927
|
+
}
|
|
1928
|
+
function getLanguage(name) {
|
|
1929
|
+
ensureNotDisposed();
|
|
1930
|
+
const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
|
|
1931
|
+
if (!_lang)
|
|
1932
|
+
throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
|
|
1933
|
+
return _lang;
|
|
1934
|
+
}
|
|
1935
|
+
function getTheme(name) {
|
|
1936
|
+
if (name === "none")
|
|
1937
|
+
return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
|
|
1938
|
+
ensureNotDisposed();
|
|
1939
|
+
const _theme = _registry.getTheme(name);
|
|
1940
|
+
if (!_theme)
|
|
1941
|
+
throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
|
|
1942
|
+
return _theme;
|
|
1943
|
+
}
|
|
1944
|
+
function setTheme(name) {
|
|
1945
|
+
ensureNotDisposed();
|
|
1946
|
+
const theme = getTheme(name);
|
|
1947
|
+
if (_lastTheme !== name) {
|
|
1948
|
+
_registry.setTheme(theme);
|
|
1949
|
+
_lastTheme = name;
|
|
1950
|
+
}
|
|
1951
|
+
const colorMap = _registry.getColorMap();
|
|
1952
|
+
return {
|
|
1953
|
+
theme,
|
|
1954
|
+
colorMap
|
|
1955
|
+
};
|
|
1956
|
+
}
|
|
1957
|
+
function getLoadedThemes() {
|
|
1958
|
+
ensureNotDisposed();
|
|
1959
|
+
return _registry.getLoadedThemes();
|
|
1960
|
+
}
|
|
1961
|
+
function getLoadedLanguages() {
|
|
1962
|
+
ensureNotDisposed();
|
|
1963
|
+
return _registry.getLoadedLanguages();
|
|
1964
|
+
}
|
|
1965
|
+
function loadLanguageSync(...langs2) {
|
|
1966
|
+
ensureNotDisposed();
|
|
1967
|
+
_registry.loadLanguages(langs2.flat(1));
|
|
1968
|
+
}
|
|
1969
|
+
async function loadLanguage(...langs2) {
|
|
1970
|
+
return loadLanguageSync(await resolveLangs(langs2));
|
|
1971
|
+
}
|
|
1972
|
+
function loadThemeSync(...themes2) {
|
|
1973
|
+
ensureNotDisposed();
|
|
1974
|
+
for (const theme of themes2.flat(1)) {
|
|
1975
|
+
_registry.loadTheme(theme);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
async function loadTheme(...themes2) {
|
|
1979
|
+
ensureNotDisposed();
|
|
1980
|
+
return loadThemeSync(await resolveThemes(themes2));
|
|
1981
|
+
}
|
|
1982
|
+
function ensureNotDisposed() {
|
|
1983
|
+
if (isDisposed)
|
|
1984
|
+
throw new ShikiError("Shiki instance has been disposed");
|
|
1985
|
+
}
|
|
1986
|
+
function dispose() {
|
|
1987
|
+
if (isDisposed)
|
|
1988
|
+
return;
|
|
1989
|
+
isDisposed = true;
|
|
1990
|
+
_registry.dispose();
|
|
1991
|
+
instancesCount -= 1;
|
|
1992
|
+
}
|
|
1993
|
+
return {
|
|
1994
|
+
setTheme,
|
|
1995
|
+
getTheme,
|
|
1996
|
+
getLanguage,
|
|
1997
|
+
getLoadedThemes,
|
|
1998
|
+
getLoadedLanguages,
|
|
1999
|
+
resolveLangAlias: resolveLangAlias$1,
|
|
2000
|
+
loadLanguage,
|
|
2001
|
+
loadLanguageSync,
|
|
2002
|
+
loadTheme,
|
|
2003
|
+
loadThemeSync,
|
|
2004
|
+
dispose,
|
|
2005
|
+
[Symbol.dispose]: dispose
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
async function createShikiInternal(options) {
|
|
2010
|
+
if (!options.engine) {
|
|
2011
|
+
warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
|
|
2012
|
+
}
|
|
2013
|
+
const [
|
|
2014
|
+
themes,
|
|
2015
|
+
langs,
|
|
2016
|
+
engine
|
|
2017
|
+
] = await Promise.all([
|
|
2018
|
+
resolveThemes(options.themes || []),
|
|
2019
|
+
resolveLangs(options.langs || []),
|
|
2020
|
+
options.engine
|
|
2021
|
+
]);
|
|
2022
|
+
return createShikiInternalSync({
|
|
2023
|
+
...options,
|
|
2024
|
+
themes,
|
|
2025
|
+
langs,
|
|
2026
|
+
engine
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
async function createHighlighterCore(options) {
|
|
2031
|
+
const internal = await createShikiInternal(options);
|
|
2032
|
+
return {
|
|
2033
|
+
getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
|
|
2034
|
+
codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
|
|
2035
|
+
codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
|
|
2036
|
+
codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
|
|
2037
|
+
codeToHast: (code, options2) => codeToHast(internal, code, options2),
|
|
2038
|
+
codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
|
|
2039
|
+
getBundledLanguages: () => ({}),
|
|
2040
|
+
getBundledThemes: () => ({}),
|
|
2041
|
+
...internal,
|
|
2042
|
+
getInternalContext: () => internal
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
function createHighlighterCoreSync(options) {
|
|
2046
|
+
const internal = createShikiInternalSync(options);
|
|
2047
|
+
return {
|
|
2048
|
+
getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
|
|
2049
|
+
codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
|
|
2050
|
+
codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
|
|
2051
|
+
codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
|
|
2052
|
+
codeToHast: (code, options2) => codeToHast(internal, code, options2),
|
|
2053
|
+
codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
|
|
2054
|
+
getBundledLanguages: () => ({}),
|
|
2055
|
+
getBundledThemes: () => ({}),
|
|
2056
|
+
...internal,
|
|
2057
|
+
getInternalContext: () => internal
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
function makeSingletonHighlighterCore(createHighlighter) {
|
|
2061
|
+
let _shiki;
|
|
2062
|
+
async function getSingletonHighlighterCore2(options) {
|
|
2063
|
+
if (!_shiki) {
|
|
2064
|
+
_shiki = createHighlighter({
|
|
2065
|
+
...options,
|
|
2066
|
+
themes: options.themes || [],
|
|
2067
|
+
langs: options.langs || []
|
|
2068
|
+
});
|
|
2069
|
+
return _shiki;
|
|
2070
|
+
} else {
|
|
2071
|
+
const s = await _shiki;
|
|
2072
|
+
await Promise.all([
|
|
2073
|
+
s.loadTheme(...options.themes || []),
|
|
2074
|
+
s.loadLanguage(...options.langs || [])
|
|
2075
|
+
]);
|
|
2076
|
+
return s;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
return getSingletonHighlighterCore2;
|
|
2080
|
+
}
|
|
2081
|
+
const getSingletonHighlighterCore = /* @__PURE__ */ makeSingletonHighlighterCore(createHighlighterCore);
|
|
2082
|
+
|
|
2083
|
+
function createBundledHighlighter(options) {
|
|
2084
|
+
const bundledLanguages = options.langs;
|
|
2085
|
+
const bundledThemes = options.themes;
|
|
2086
|
+
const engine = options.engine;
|
|
2087
|
+
async function createHighlighter(options2) {
|
|
2088
|
+
function resolveLang(lang) {
|
|
2089
|
+
if (typeof lang === "string") {
|
|
2090
|
+
lang = options2.langAlias?.[lang] || lang;
|
|
2091
|
+
if (isSpecialLang(lang))
|
|
2092
|
+
return [];
|
|
2093
|
+
const bundle = bundledLanguages[lang];
|
|
2094
|
+
if (!bundle)
|
|
2095
|
+
throw new ShikiError$1(`Language \`${lang}\` is not included in this bundle. You may want to load it from external source.`);
|
|
2096
|
+
return bundle;
|
|
2097
|
+
}
|
|
2098
|
+
return lang;
|
|
2099
|
+
}
|
|
2100
|
+
function resolveTheme(theme) {
|
|
2101
|
+
if (isSpecialTheme(theme))
|
|
2102
|
+
return "none";
|
|
2103
|
+
if (typeof theme === "string") {
|
|
2104
|
+
const bundle = bundledThemes[theme];
|
|
2105
|
+
if (!bundle)
|
|
2106
|
+
throw new ShikiError$1(`Theme \`${theme}\` is not included in this bundle. You may want to load it from external source.`);
|
|
2107
|
+
return bundle;
|
|
2108
|
+
}
|
|
2109
|
+
return theme;
|
|
2110
|
+
}
|
|
2111
|
+
const _themes = (options2.themes ?? []).map((i) => resolveTheme(i));
|
|
2112
|
+
const langs = (options2.langs ?? []).map((i) => resolveLang(i));
|
|
2113
|
+
const core = await createHighlighterCore({
|
|
2114
|
+
engine: options2.engine ?? engine(),
|
|
2115
|
+
...options2,
|
|
2116
|
+
themes: _themes,
|
|
2117
|
+
langs
|
|
2118
|
+
});
|
|
2119
|
+
return {
|
|
2120
|
+
...core,
|
|
2121
|
+
loadLanguage(...langs2) {
|
|
2122
|
+
return core.loadLanguage(...langs2.map(resolveLang));
|
|
2123
|
+
},
|
|
2124
|
+
loadTheme(...themes) {
|
|
2125
|
+
return core.loadTheme(...themes.map(resolveTheme));
|
|
2126
|
+
},
|
|
2127
|
+
getBundledLanguages() {
|
|
2128
|
+
return bundledLanguages;
|
|
2129
|
+
},
|
|
2130
|
+
getBundledThemes() {
|
|
2131
|
+
return bundledThemes;
|
|
2132
|
+
}
|
|
2133
|
+
};
|
|
2134
|
+
}
|
|
2135
|
+
return createHighlighter;
|
|
2136
|
+
}
|
|
2137
|
+
function makeSingletonHighlighter(createHighlighter) {
|
|
2138
|
+
let _shiki;
|
|
2139
|
+
async function getSingletonHighlighter(options = {}) {
|
|
2140
|
+
if (!_shiki) {
|
|
2141
|
+
_shiki = createHighlighter({
|
|
2142
|
+
...options,
|
|
2143
|
+
themes: [],
|
|
2144
|
+
langs: []
|
|
2145
|
+
});
|
|
2146
|
+
const s = await _shiki;
|
|
2147
|
+
await Promise.all([
|
|
2148
|
+
s.loadTheme(...options.themes || []),
|
|
2149
|
+
s.loadLanguage(...options.langs || [])
|
|
2150
|
+
]);
|
|
2151
|
+
return s;
|
|
2152
|
+
} else {
|
|
2153
|
+
const s = await _shiki;
|
|
2154
|
+
await Promise.all([
|
|
2155
|
+
s.loadTheme(...options.themes || []),
|
|
2156
|
+
s.loadLanguage(...options.langs || [])
|
|
2157
|
+
]);
|
|
2158
|
+
return s;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
return getSingletonHighlighter;
|
|
2162
|
+
}
|
|
2163
|
+
function createSingletonShorthands(createHighlighter, config) {
|
|
2164
|
+
const getSingletonHighlighter = makeSingletonHighlighter(createHighlighter);
|
|
2165
|
+
async function get(code, options) {
|
|
2166
|
+
const shiki = await getSingletonHighlighter({
|
|
2167
|
+
langs: [options.lang],
|
|
2168
|
+
themes: "theme" in options ? [options.theme] : Object.values(options.themes)
|
|
2169
|
+
});
|
|
2170
|
+
const langs = await config?.guessEmbeddedLanguages?.(code, options.lang, shiki);
|
|
2171
|
+
if (langs) {
|
|
2172
|
+
await shiki.loadLanguage(...langs);
|
|
2173
|
+
}
|
|
2174
|
+
return shiki;
|
|
2175
|
+
}
|
|
2176
|
+
return {
|
|
2177
|
+
getSingletonHighlighter(options) {
|
|
2178
|
+
return getSingletonHighlighter(options);
|
|
2179
|
+
},
|
|
2180
|
+
async codeToHtml(code, options) {
|
|
2181
|
+
const shiki = await get(code, options);
|
|
2182
|
+
return shiki.codeToHtml(code, options);
|
|
2183
|
+
},
|
|
2184
|
+
async codeToHast(code, options) {
|
|
2185
|
+
const shiki = await get(code, options);
|
|
2186
|
+
return shiki.codeToHast(code, options);
|
|
2187
|
+
},
|
|
2188
|
+
async codeToTokens(code, options) {
|
|
2189
|
+
const shiki = await get(code, options);
|
|
2190
|
+
return shiki.codeToTokens(code, options);
|
|
2191
|
+
},
|
|
2192
|
+
async codeToTokensBase(code, options) {
|
|
2193
|
+
const shiki = await get(code, options);
|
|
2194
|
+
return shiki.codeToTokensBase(code, options);
|
|
2195
|
+
},
|
|
2196
|
+
async codeToTokensWithThemes(code, options) {
|
|
2197
|
+
const shiki = await get(code, options);
|
|
2198
|
+
return shiki.codeToTokensWithThemes(code, options);
|
|
2199
|
+
},
|
|
2200
|
+
async getLastGrammarState(code, options) {
|
|
2201
|
+
const shiki = await getSingletonHighlighter({
|
|
2202
|
+
langs: [options.lang],
|
|
2203
|
+
themes: [options.theme]
|
|
2204
|
+
});
|
|
2205
|
+
return shiki.getLastGrammarState(code, options);
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
const createdBundledHighlighter = createBundledHighlighter;
|
|
2210
|
+
|
|
2211
|
+
function createCssVariablesTheme(options = {}) {
|
|
2212
|
+
const {
|
|
2213
|
+
name = "css-variables",
|
|
2214
|
+
variablePrefix = "--shiki-",
|
|
2215
|
+
fontStyle = true
|
|
2216
|
+
} = options;
|
|
2217
|
+
const variable = (name2) => {
|
|
2218
|
+
if (options.variableDefaults?.[name2])
|
|
2219
|
+
return `var(${variablePrefix}${name2}, ${options.variableDefaults[name2]})`;
|
|
2220
|
+
return `var(${variablePrefix}${name2})`;
|
|
2221
|
+
};
|
|
2222
|
+
const theme = {
|
|
2223
|
+
name,
|
|
2224
|
+
type: "dark",
|
|
2225
|
+
colors: {
|
|
2226
|
+
"editor.foreground": variable("foreground"),
|
|
2227
|
+
"editor.background": variable("background"),
|
|
2228
|
+
"terminal.ansiBlack": variable("ansi-black"),
|
|
2229
|
+
"terminal.ansiRed": variable("ansi-red"),
|
|
2230
|
+
"terminal.ansiGreen": variable("ansi-green"),
|
|
2231
|
+
"terminal.ansiYellow": variable("ansi-yellow"),
|
|
2232
|
+
"terminal.ansiBlue": variable("ansi-blue"),
|
|
2233
|
+
"terminal.ansiMagenta": variable("ansi-magenta"),
|
|
2234
|
+
"terminal.ansiCyan": variable("ansi-cyan"),
|
|
2235
|
+
"terminal.ansiWhite": variable("ansi-white"),
|
|
2236
|
+
"terminal.ansiBrightBlack": variable("ansi-bright-black"),
|
|
2237
|
+
"terminal.ansiBrightRed": variable("ansi-bright-red"),
|
|
2238
|
+
"terminal.ansiBrightGreen": variable("ansi-bright-green"),
|
|
2239
|
+
"terminal.ansiBrightYellow": variable("ansi-bright-yellow"),
|
|
2240
|
+
"terminal.ansiBrightBlue": variable("ansi-bright-blue"),
|
|
2241
|
+
"terminal.ansiBrightMagenta": variable("ansi-bright-magenta"),
|
|
2242
|
+
"terminal.ansiBrightCyan": variable("ansi-bright-cyan"),
|
|
2243
|
+
"terminal.ansiBrightWhite": variable("ansi-bright-white")
|
|
2244
|
+
},
|
|
2245
|
+
tokenColors: [
|
|
2246
|
+
{
|
|
2247
|
+
scope: [
|
|
2248
|
+
"keyword.operator.accessor",
|
|
2249
|
+
"meta.group.braces.round.function.arguments",
|
|
2250
|
+
"meta.template.expression",
|
|
2251
|
+
"markup.fenced_code meta.embedded.block"
|
|
2252
|
+
],
|
|
2253
|
+
settings: {
|
|
2254
|
+
foreground: variable("foreground")
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
scope: "emphasis",
|
|
2259
|
+
settings: {
|
|
2260
|
+
fontStyle: "italic"
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
scope: ["strong", "markup.heading.markdown", "markup.bold.markdown"],
|
|
2265
|
+
settings: {
|
|
2266
|
+
fontStyle: "bold"
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
scope: ["markup.italic.markdown"],
|
|
2271
|
+
settings: {
|
|
2272
|
+
fontStyle: "italic"
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
scope: "meta.link.inline.markdown",
|
|
2277
|
+
settings: {
|
|
2278
|
+
fontStyle: "underline",
|
|
2279
|
+
foreground: variable("token-link")
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
scope: ["string", "markup.fenced_code", "markup.inline"],
|
|
2284
|
+
settings: {
|
|
2285
|
+
foreground: variable("token-string")
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
{
|
|
2289
|
+
scope: ["comment", "string.quoted.docstring.multi"],
|
|
2290
|
+
settings: {
|
|
2291
|
+
foreground: variable("token-comment")
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
scope: [
|
|
2296
|
+
"constant.numeric",
|
|
2297
|
+
"constant.language",
|
|
2298
|
+
"constant.other.placeholder",
|
|
2299
|
+
"constant.character.format.placeholder",
|
|
2300
|
+
"variable.language.this",
|
|
2301
|
+
"variable.other.object",
|
|
2302
|
+
"variable.other.class",
|
|
2303
|
+
"variable.other.constant",
|
|
2304
|
+
"meta.property-name",
|
|
2305
|
+
"meta.property-value",
|
|
2306
|
+
"support"
|
|
2307
|
+
],
|
|
2308
|
+
settings: {
|
|
2309
|
+
foreground: variable("token-constant")
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
scope: [
|
|
2314
|
+
"keyword",
|
|
2315
|
+
"storage.modifier",
|
|
2316
|
+
"storage.type",
|
|
2317
|
+
"storage.control.clojure",
|
|
2318
|
+
"entity.name.function.clojure",
|
|
2319
|
+
"entity.name.tag.yaml",
|
|
2320
|
+
"support.function.node",
|
|
2321
|
+
"support.type.property-name.json",
|
|
2322
|
+
"punctuation.separator.key-value",
|
|
2323
|
+
"punctuation.definition.template-expression"
|
|
2324
|
+
],
|
|
2325
|
+
settings: {
|
|
2326
|
+
foreground: variable("token-keyword")
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
scope: "variable.parameter.function",
|
|
2331
|
+
settings: {
|
|
2332
|
+
foreground: variable("token-parameter")
|
|
2333
|
+
}
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
scope: [
|
|
2337
|
+
"support.function",
|
|
2338
|
+
"entity.name.type",
|
|
2339
|
+
"entity.other.inherited-class",
|
|
2340
|
+
"meta.function-call",
|
|
2341
|
+
"meta.instance.constructor",
|
|
2342
|
+
"entity.other.attribute-name",
|
|
2343
|
+
"entity.name.function",
|
|
2344
|
+
"constant.keyword.clojure"
|
|
2345
|
+
],
|
|
2346
|
+
settings: {
|
|
2347
|
+
foreground: variable("token-function")
|
|
2348
|
+
}
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
scope: [
|
|
2352
|
+
"entity.name.tag",
|
|
2353
|
+
"string.quoted",
|
|
2354
|
+
"string.regexp",
|
|
2355
|
+
"string.interpolated",
|
|
2356
|
+
"string.template",
|
|
2357
|
+
"string.unquoted.plain.out.yaml",
|
|
2358
|
+
"keyword.other.template"
|
|
2359
|
+
],
|
|
2360
|
+
settings: {
|
|
2361
|
+
foreground: variable("token-string-expression")
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
scope: [
|
|
2366
|
+
"punctuation.definition.arguments",
|
|
2367
|
+
"punctuation.definition.dict",
|
|
2368
|
+
"punctuation.separator",
|
|
2369
|
+
"meta.function-call.arguments"
|
|
2370
|
+
],
|
|
2371
|
+
settings: {
|
|
2372
|
+
foreground: variable("token-punctuation")
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
// [Custom] Markdown links
|
|
2377
|
+
scope: [
|
|
2378
|
+
"markup.underline.link",
|
|
2379
|
+
"punctuation.definition.metadata.markdown"
|
|
2380
|
+
],
|
|
2381
|
+
settings: {
|
|
2382
|
+
foreground: variable("token-link")
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
// [Custom] Markdown list
|
|
2387
|
+
scope: ["beginning.punctuation.definition.list.markdown"],
|
|
2388
|
+
settings: {
|
|
2389
|
+
foreground: variable("token-string")
|
|
2390
|
+
}
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
// [Custom] Markdown punctuation definition brackets
|
|
2394
|
+
scope: [
|
|
2395
|
+
"punctuation.definition.string.begin.markdown",
|
|
2396
|
+
"punctuation.definition.string.end.markdown",
|
|
2397
|
+
"string.other.link.title.markdown",
|
|
2398
|
+
"string.other.link.description.markdown"
|
|
2399
|
+
],
|
|
2400
|
+
settings: {
|
|
2401
|
+
foreground: variable("token-keyword")
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
// [Custom] Diff
|
|
2406
|
+
scope: [
|
|
2407
|
+
"markup.inserted",
|
|
2408
|
+
"meta.diff.header.to-file",
|
|
2409
|
+
"punctuation.definition.inserted"
|
|
2410
|
+
],
|
|
2411
|
+
settings: {
|
|
2412
|
+
foreground: variable("token-inserted")
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
scope: [
|
|
2417
|
+
"markup.deleted",
|
|
2418
|
+
"meta.diff.header.from-file",
|
|
2419
|
+
"punctuation.definition.deleted"
|
|
2420
|
+
],
|
|
2421
|
+
settings: {
|
|
2422
|
+
foreground: variable("token-deleted")
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
{
|
|
2426
|
+
scope: [
|
|
2427
|
+
"markup.changed",
|
|
2428
|
+
"punctuation.definition.changed"
|
|
2429
|
+
],
|
|
2430
|
+
settings: {
|
|
2431
|
+
foreground: variable("token-changed")
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
]
|
|
2435
|
+
};
|
|
2436
|
+
if (!fontStyle) {
|
|
2437
|
+
theme.tokenColors = theme.tokenColors?.map((tokenColor) => {
|
|
2438
|
+
if (tokenColor.settings?.fontStyle)
|
|
2439
|
+
delete tokenColor.settings.fontStyle;
|
|
2440
|
+
return tokenColor;
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2443
|
+
return theme;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
export { addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createBundledHighlighter, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createdBundledHighlighter, enableDeprecationWarnings, flatTokenVariants, getSingletonHighlighterCore, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };
|