@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.
Files changed (1596) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/2EtD6e53.js +1 -0
  3. package/.output/public/_nuxt/2UxHyX5q.js +1 -0
  4. package/.output/public/_nuxt/3e1v2bzS.js +1 -0
  5. package/.output/public/_nuxt/4A_iFExJ.js +1 -0
  6. package/.output/public/_nuxt/5X7smno1.js +1 -0
  7. package/.output/public/_nuxt/5i3qLPDT.js +1 -0
  8. package/.output/public/_nuxt/83L43bj1.js +1 -0
  9. package/.output/public/_nuxt/85-TOEBH.js +1 -0
  10. package/.output/public/_nuxt/B0m2ddpp.js +1 -0
  11. package/.output/public/_nuxt/B1dDrJ26.js +1 -0
  12. package/.output/public/_nuxt/B1yitclQ.js +1 -0
  13. package/.output/public/_nuxt/B3hkJjmY.js +1 -0
  14. package/.output/public/_nuxt/B6aJPvgy.js +1 -0
  15. package/.output/public/_nuxt/B7c-h3xW.js +1 -0
  16. package/.output/public/_nuxt/B7mTdjB0.js +1 -0
  17. package/.output/public/_nuxt/B93PlW-d.js +1 -0
  18. package/.output/public/_nuxt/BBf5iR-q.js +1 -0
  19. package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
  20. package/.output/public/_nuxt/BERRCDM3.js +1 -0
  21. package/.output/public/_nuxt/BETggiCN.js +1 -0
  22. package/.output/public/_nuxt/BEwlwnbL.js +1 -0
  23. package/.output/public/_nuxt/BFfxhgS-.js +1 -0
  24. package/.output/public/_nuxt/BGHnOYBU.js +1 -0
  25. package/.output/public/_nuxt/BGJmEYvX.js +1 -0
  26. package/.output/public/_nuxt/BH7IYjvW.js +1 -0
  27. package/.output/public/_nuxt/BIGW1oBm.js +1 -0
  28. package/.output/public/_nuxt/BJDFO7_C.js +1 -0
  29. package/.output/public/_nuxt/BLmx8bSh.js +1 -0
  30. package/.output/public/_nuxt/BLtJtn59.js +1 -0
  31. package/.output/public/_nuxt/BM1_JUlF.js +1 -0
  32. package/.output/public/_nuxt/BMWR74SV.js +1 -0
  33. package/.output/public/_nuxt/BNzFoVmP.js +1 -0
  34. package/.output/public/_nuxt/BPQ3VLAy.js +1 -0
  35. package/.output/public/_nuxt/BQ8w6xss.js +1 -0
  36. package/.output/public/_nuxt/BR5kRUq4.js +1 -0
  37. package/.output/public/_nuxt/BRDbaJqY.js +4 -0
  38. package/.output/public/_nuxt/BRHolxvo.js +1 -0
  39. package/.output/public/_nuxt/BRZ36xJF.js +1 -0
  40. package/.output/public/_nuxt/BTJTHyun.js +1 -0
  41. package/.output/public/_nuxt/BTifaqeh.js +1 -0
  42. package/.output/public/_nuxt/BUw7H-hv.js +1 -0
  43. package/.output/public/_nuxt/BV7otONQ.js +1 -0
  44. package/.output/public/_nuxt/BVQ-GDCI.js +1 -0
  45. package/.output/public/_nuxt/BWvSN4gD.js +1 -0
  46. package/.output/public/_nuxt/BXkSAIEj.js +1 -0
  47. package/.output/public/_nuxt/BYV0-3_D.js +1 -0
  48. package/.output/public/_nuxt/BYunw83y.js +1 -0
  49. package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
  50. package/.output/public/_nuxt/B_m7g4N7.js +1 -0
  51. package/.output/public/_nuxt/Ba13S78F.js +1 -0
  52. package/.output/public/_nuxt/BcOcwvcX.js +1 -0
  53. package/.output/public/_nuxt/BcVCzyr7.js +1 -0
  54. package/.output/public/_nuxt/BdImnpbu.js +1 -0
  55. package/.output/public/_nuxt/BdnUsdx6.js +1 -0
  56. package/.output/public/_nuxt/BfHTSMKl.js +1 -0
  57. package/.output/public/_nuxt/BfjtVDDH.js +1 -0
  58. package/.output/public/_nuxt/BgDCqdQA.js +1 -0
  59. package/.output/public/_nuxt/BhOHFoWU.js +1 -0
  60. package/.output/public/_nuxt/BhRPY-oY.js +1 -0
  61. package/.output/public/_nuxt/Bhrxn6JZ.js +1 -0
  62. package/.output/public/_nuxt/BkioyH1T.js +1 -0
  63. package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
  64. package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
  65. package/.output/public/_nuxt/Bmn6On1c.js +1 -0
  66. package/.output/public/_nuxt/Bo1Fdv48.js +76 -0
  67. package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
  68. package/.output/public/_nuxt/Bp6g37R7.js +1 -0
  69. package/.output/public/_nuxt/BqTXFGrv.js +1 -0
  70. package/.output/public/_nuxt/BqYA7rlc.js +1 -0
  71. package/.output/public/_nuxt/BqmZq_gb.js +1 -0
  72. package/.output/public/_nuxt/Br6cN0cg.js +1 -0
  73. package/.output/public/_nuxt/Bri1ZtcQ.js +1 -0
  74. package/.output/public/_nuxt/BrzmwbiE.js +1 -0
  75. package/.output/public/_nuxt/BsS91CYL.js +1 -0
  76. package/.output/public/_nuxt/BspZqrRM.js +1 -0
  77. package/.output/public/_nuxt/BtCnVYZw.js +1 -0
  78. package/.output/public/_nuxt/BtOb2qkB.js +1 -0
  79. package/.output/public/_nuxt/BthQWCQV.js +1 -0
  80. package/.output/public/_nuxt/BtqSS_iP.js +1 -0
  81. package/.output/public/_nuxt/BtvRca6l.js +1 -0
  82. package/.output/public/_nuxt/Buea-lGh.js +1 -0
  83. package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
  84. package/.output/public/_nuxt/BvzEVeQv.js +1 -0
  85. package/.output/public/_nuxt/Bw305WKR.js +1 -0
  86. package/.output/public/_nuxt/BxgE0vQu.js +1 -0
  87. package/.output/public/_nuxt/BzJJZx-M.js +1 -0
  88. package/.output/public/_nuxt/BzTr9Aqm.js +1 -0
  89. package/.output/public/_nuxt/C-HG3fhB.js +1 -0
  90. package/.output/public/_nuxt/C-SQnVFl.js +1 -0
  91. package/.output/public/_nuxt/C-sUppwS.js +1 -0
  92. package/.output/public/_nuxt/C0HS_06l.js +1 -0
  93. package/.output/public/_nuxt/C0hk2d4L.js +1 -0
  94. package/.output/public/_nuxt/C151Ov-r.js +1 -0
  95. package/.output/public/_nuxt/C2t-YnRu.js +1 -0
  96. package/.output/public/_nuxt/C39BiMTA.js +1 -0
  97. package/.output/public/_nuxt/C3B-1QV4.js +1 -0
  98. package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
  99. package/.output/public/_nuxt/C3mMm8J8.js +1 -0
  100. package/.output/public/_nuxt/C47S-Tmv.js +1 -0
  101. package/.output/public/_nuxt/C4EeE6gA.js +1 -0
  102. package/.output/public/_nuxt/C4IJs8-o.js +1 -0
  103. package/.output/public/_nuxt/C4gqWexZ.js +1 -0
  104. package/.output/public/_nuxt/C5YyOfLZ.js +1 -0
  105. package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
  106. package/.output/public/_nuxt/C8M2exoo.js +1 -0
  107. package/.output/public/_nuxt/C8lEn-DE.js +1 -0
  108. package/.output/public/_nuxt/C98Dy4si.js +1 -0
  109. package/.output/public/_nuxt/C9XAeP06.js +1 -0
  110. package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
  111. package/.output/public/_nuxt/C9oPPf7i.js +1 -0
  112. package/.output/public/_nuxt/C9tS-k6U.js +1 -0
  113. package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
  114. package/.output/public/_nuxt/CDx5xZoG.js +1 -0
  115. package/.output/public/_nuxt/CEJOILWG.js +1 -0
  116. package/.output/public/_nuxt/CEL-wOlO.js +1 -0
  117. package/.output/public/_nuxt/CEu0bR-o.js +1 -0
  118. package/.output/public/_nuxt/CF10PKvl.js +1 -0
  119. package/.output/public/_nuxt/CFHQjOhq.js +1 -0
  120. package/.output/public/_nuxt/CFsNy2aC.js +1 -0
  121. package/.output/public/_nuxt/CG6Dc4jp.js +1 -0
  122. package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
  123. package/.output/public/_nuxt/CGscLIrv.js +1 -0
  124. package/.output/public/_nuxt/CH1njM8p.js +1 -0
  125. package/.output/public/_nuxt/CHLpvVh8.js +1 -0
  126. package/.output/public/_nuxt/CHM0blh-.js +1 -0
  127. package/.output/public/_nuxt/CJc9bBzg.js +1 -0
  128. package/.output/public/_nuxt/CKIfxQSi.js +1 -0
  129. package/.output/public/_nuxt/CLZrNe3w.js +1 -0
  130. package/.output/public/_nuxt/CLxacb5B.js +1 -0
  131. package/.output/public/_nuxt/CMTm3GFP.js +1 -0
  132. package/.output/public/_nuxt/CMjwMIkn.js +1 -0
  133. package/.output/public/_nuxt/CO1LY3CK.js +1 -0
  134. package/.output/public/_nuxt/COcwbKMJ.js +1 -0
  135. package/.output/public/_nuxt/COkxafJQ.js +1 -0
  136. package/.output/public/_nuxt/COt5Ahok.js +1 -0
  137. package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
  138. package/.output/public/_nuxt/CS3Unz2-.js +1 -0
  139. package/.output/public/_nuxt/CSXwinHm.js +1 -0
  140. package/.output/public/_nuxt/CTRr51gU.js +1 -0
  141. package/.output/public/_nuxt/CVO1_9PV.js +1 -0
  142. package/.output/public/_nuxt/CVdnzihN.js +1 -0
  143. package/.output/public/_nuxt/CW8IKDeL.js +1 -0
  144. package/.output/public/_nuxt/CXZktZb0.js +1 -0
  145. package/.output/public/_nuxt/CXtECtnM.js +1 -0
  146. package/.output/public/_nuxt/CYsAdtH9.js +1 -0
  147. package/.output/public/_nuxt/CZhp0h8q.js +1 -0
  148. package/.output/public/_nuxt/CafNBF8u.js +1 -0
  149. package/.output/public/_nuxt/CbFg5uaA.js +1 -0
  150. package/.output/public/_nuxt/CbfX1IO0.js +1 -0
  151. package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
  152. package/.output/public/_nuxt/CeZK1NFH.js +1 -0
  153. package/.output/public/_nuxt/CenWIFCC.js +1 -0
  154. package/.output/public/_nuxt/CfQXZHmo.js +1 -0
  155. package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
  156. package/.output/public/_nuxt/ChMvpjG-.js +1 -0
  157. package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
  158. package/.output/public/_nuxt/CjoLj4QM.js +1 -0
  159. package/.output/public/_nuxt/CkByrt1z.js +1 -0
  160. package/.output/public/_nuxt/CkXjmgJE.js +1 -0
  161. package/.output/public/_nuxt/CklMAg4u.js +1 -0
  162. package/.output/public/_nuxt/Cl0AqbOI.js +1 -0
  163. package/.output/public/_nuxt/Cm3UrAx6.js +1 -0
  164. package/.output/public/_nuxt/CmIQRyeF.js +1 -0
  165. package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
  166. package/.output/public/_nuxt/Cn7AkR1O.js +1 -0
  167. package/.output/public/_nuxt/CnnebwVN.js +1 -0
  168. package/.output/public/_nuxt/CnnmHF94.js +1 -0
  169. package/.output/public/_nuxt/CnsnAmq5.js +1 -0
  170. package/.output/public/_nuxt/Co6uUVPk.js +1 -0
  171. package/.output/public/_nuxt/CoDkCxhg.js +1 -0
  172. package/.output/public/_nuxt/Cp-IABpG.js +1 -0
  173. package/.output/public/_nuxt/CpOuai2O.js +1 -0
  174. package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
  175. package/.output/public/_nuxt/CquLrc37.js +1 -0
  176. package/.output/public/_nuxt/CsfeWuGM.js +1 -0
  177. package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
  178. package/.output/public/_nuxt/CuPHTKiy.js +1 -0
  179. package/.output/public/_nuxt/CufHLc7y.js +1 -0
  180. package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
  181. package/.output/public/_nuxt/Cvjx9yec.js +1 -0
  182. package/.output/public/_nuxt/CwoSXNpI.js +1 -0
  183. package/.output/public/_nuxt/CxGSJlkm.js +1 -0
  184. package/.output/public/_nuxt/CxLEBnE3.js +1 -0
  185. package/.output/public/_nuxt/CxbxFI8M.js +1 -0
  186. package/.output/public/_nuxt/CyktbL80.js +1 -0
  187. package/.output/public/_nuxt/CylS5w8V.js +1 -0
  188. package/.output/public/_nuxt/CzTSHFRz.js +1 -0
  189. package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
  190. package/.output/public/_nuxt/D0YGMca9.js +1 -0
  191. package/.output/public/_nuxt/D0r3Knsf.js +1 -0
  192. package/.output/public/_nuxt/D0zW6lUK.js +1 -0
  193. package/.output/public/_nuxt/D17OF-Vu.js +1 -0
  194. package/.output/public/_nuxt/D1j8_8rp.js +1 -0
  195. package/.output/public/_nuxt/D3lLCCz7.js +1 -0
  196. package/.output/public/_nuxt/D4_iv3hh.js +1 -0
  197. package/.output/public/_nuxt/D4h5O-jR.js +1 -0
  198. package/.output/public/_nuxt/D5-asLiD.js +1 -0
  199. package/.output/public/_nuxt/D53aC0YG.js +1 -0
  200. package/.output/public/_nuxt/D5KoaKCx.js +1 -0
  201. package/.output/public/_nuxt/D7o27uSR.js +1 -0
  202. package/.output/public/_nuxt/D7oLnXFd.js +1 -0
  203. package/.output/public/_nuxt/D82EKSYY.js +1 -0
  204. package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
  205. package/.output/public/_nuxt/D8_7TLub.js +1 -0
  206. package/.output/public/_nuxt/D93ZcfNL.js +1 -0
  207. package/.output/public/_nuxt/D97Zzqfu.js +1 -0
  208. package/.output/public/_nuxt/DAi9KRSo.js +1 -0
  209. package/.output/public/_nuxt/DEthMvLe.js +1 -0
  210. package/.output/public/_nuxt/DFQXde-d.js +1 -0
  211. package/.output/public/_nuxt/DFWUc33u.js +1 -0
  212. package/.output/public/_nuxt/DFXneXwc.js +1 -0
  213. package/.output/public/_nuxt/DGP4VlC8.js +1 -0
  214. package/.output/public/_nuxt/DGztddWO.js +1 -0
  215. package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
  216. package/.output/public/_nuxt/DHCkPAjA.js +1 -0
  217. package/.output/public/_nuxt/DHJKELXO.js +1 -0
  218. package/.output/public/_nuxt/DHQR4-dF.js +1 -0
  219. package/.output/public/_nuxt/DJjDtW9f.js +1 -0
  220. package/.output/public/_nuxt/DM8c43g1.js +1 -0
  221. package/.output/public/_nuxt/DMwsHuHA.js +1 -0
  222. package/.output/public/_nuxt/DMzUqQB5.js +1 -0
  223. package/.output/public/_nuxt/DPfMkruS.js +1 -0
  224. package/.output/public/_nuxt/DQwYQDb2.js +1 -0
  225. package/.output/public/_nuxt/DQyhUUbL.js +1 -0
  226. package/.output/public/_nuxt/DRg8JJMk.js +1 -0
  227. package/.output/public/_nuxt/DRw_LuNl.js +1 -0
  228. package/.output/public/_nuxt/DU1UobuO.js +1 -0
  229. package/.output/public/_nuxt/DUszq2jm.js +1 -0
  230. package/.output/public/_nuxt/DV7GczEv.js +1 -0
  231. package/.output/public/_nuxt/DVFEvuxE.js +1 -0
  232. package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
  233. package/.output/public/_nuxt/DVxCFoDh.js +1 -0
  234. package/.output/public/_nuxt/DWedfzmr.js +1 -0
  235. package/.output/public/_nuxt/DWrx1Km3.js +1 -0
  236. package/.output/public/_nuxt/DXbdFlpD.js +1 -0
  237. package/.output/public/_nuxt/DXmwc3jG.js +1 -0
  238. package/.output/public/_nuxt/DXvB9xmW.js +1 -0
  239. package/.output/public/_nuxt/DYDTtHLR.js +1 -0
  240. package/.output/public/_nuxt/DYoxhk2S.js +1 -0
  241. package/.output/public/_nuxt/DZf3V79B.js +1 -0
  242. package/.output/public/_nuxt/DZu-aV2c.js +1 -0
  243. package/.output/public/_nuxt/DZxFcAj9.js +1 -0
  244. package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
  245. package/.output/public/_nuxt/Da5cRb03.js +1 -0
  246. package/.output/public/_nuxt/DcaNXYhu.js +1 -0
  247. package/.output/public/_nuxt/Dd19v3D-.js +1 -0
  248. package/.output/public/_nuxt/DdkO51Og.js +1 -0
  249. package/.output/public/_nuxt/Ddv68eIx.js +1 -0
  250. package/.output/public/_nuxt/Des-eS-w.js +1 -0
  251. package/.output/public/_nuxt/Df6bDoY_.js +1 -0
  252. package/.output/public/_nuxt/Dg5xB15N.js +1 -0
  253. package/.output/public/_nuxt/DhQtydpF.js +3 -0
  254. package/.output/public/_nuxt/DhmSosst.js +1 -0
  255. package/.output/public/_nuxt/DkFqJrB1.js +1 -0
  256. package/.output/public/_nuxt/DkwncUOv.js +1 -0
  257. package/.output/public/_nuxt/DlAUqK2U.js +1 -0
  258. package/.output/public/_nuxt/DnULxvSX.js +1 -0
  259. package/.output/public/_nuxt/Dpen1YoG.js +1 -0
  260. package/.output/public/_nuxt/Dph4kLrZ.js +1 -0
  261. package/.output/public/_nuxt/DqQDbK_p.js +1 -0
  262. package/.output/public/_nuxt/DqwNpetd.js +1 -0
  263. package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
  264. package/.output/public/_nuxt/Dspwwk_N.js +1 -0
  265. package/.output/public/_nuxt/DsumFeuD.js +1 -0
  266. package/.output/public/_nuxt/Dv7Oe6Be.js +1 -0
  267. package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
  268. package/.output/public/_nuxt/DxNHbxmM.js +1 -0
  269. package/.output/public/_nuxt/DxSwrfjg.js +1 -0
  270. package/.output/public/_nuxt/DyxjwDmM.js +1 -0
  271. package/.output/public/_nuxt/Dzze3sRP.js +1 -0
  272. package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
  273. package/.output/public/_nuxt/GsRaNv29.js +1 -0
  274. package/.output/public/_nuxt/IF9eRakj.js +1 -0
  275. package/.output/public/_nuxt/IeuSbFQv.js +1 -0
  276. package/.output/public/_nuxt/L9t79GZl.js +1 -0
  277. package/.output/public/_nuxt/MzD3tlZU.js +1 -0
  278. package/.output/public/_nuxt/P80f7IUj.js +1 -0
  279. package/.output/public/_nuxt/Pmp26Uib.js +1 -0
  280. package/.output/public/_nuxt/QIJgUcNo.js +1 -0
  281. package/.output/public/_nuxt/RNghxpo_.js +1 -0
  282. package/.output/public/_nuxt/TsXTqZ29.js +1 -0
  283. package/.output/public/_nuxt/VCDPK7BO.js +1 -0
  284. package/.output/public/_nuxt/VOosw3JB.js +1 -0
  285. package/.output/public/_nuxt/W9tJ9s81.js +1 -0
  286. package/.output/public/_nuxt/X6fIXIFO.js +1 -0
  287. package/.output/public/_nuxt/YqXBG_HV.js +1 -0
  288. package/.output/public/_nuxt/Yzrsuije.js +1 -0
  289. package/.output/public/_nuxt/_prd_.DYvuV73Q.css +1 -0
  290. package/.output/public/_nuxt/_ykCGR6B.js +1 -0
  291. package/.output/public/_nuxt/bCR0ucgS.js +1 -0
  292. package/.output/public/_nuxt/bN70gL4F.js +1 -0
  293. package/.output/public/_nuxt/builds/latest.json +1 -0
  294. package/.output/public/_nuxt/builds/meta/6683a0d9-9c02-4098-b750-bbbc0305261e.json +1 -0
  295. package/.output/public/_nuxt/dwOrl1Do.js +1 -0
  296. package/.output/public/_nuxt/entry.Dk19PK4d.css +1 -0
  297. package/.output/public/_nuxt/error-404.o50T1Yh0.css +1 -0
  298. package/.output/public/_nuxt/error-500.DdcU-NLM.css +1 -0
  299. package/.output/public/_nuxt/fKv21gyL.js +1 -0
  300. package/.output/public/_nuxt/fuZLfV_i.js +1 -0
  301. package/.output/public/_nuxt/g9-lgVsj.js +1 -0
  302. package/.output/public/_nuxt/gcz8RCvz.js +1 -0
  303. package/.output/public/_nuxt/hJgmCMqR.js +1 -0
  304. package/.output/public/_nuxt/hegEt444.js +1 -0
  305. package/.output/public/_nuxt/k_qm7-4y.js +1 -0
  306. package/.output/public/_nuxt/lXgVvXCa.js +1 -0
  307. package/.output/public/_nuxt/m17aaUwq.js +1 -0
  308. package/.output/public/_nuxt/mWjccvbQ.js +1 -0
  309. package/.output/public/_nuxt/mjskCLCv.js +1 -0
  310. package/.output/public/_nuxt/n2N0HUVH.js +1 -0
  311. package/.output/public/_nuxt/qdsjHGoJ.js +1 -0
  312. package/.output/public/_nuxt/rGO070M0.js +1 -0
  313. package/.output/public/_nuxt/u5AG7uiY.js +1 -0
  314. package/.output/public/_nuxt/uYugtg8r.js +1 -0
  315. package/.output/public/_nuxt/vGWfd6FD.js +1 -0
  316. package/.output/public/_nuxt/wDzz0qaB.js +1 -0
  317. package/.output/public/_nuxt/yv6CvBhz.js +1 -0
  318. package/.output/server/chunks/_/error-500.mjs +19 -0
  319. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  320. package/.output/server/chunks/_/git-api.mjs +100 -0
  321. package/.output/server/chunks/_/git-api.mjs.map +1 -0
  322. package/.output/server/chunks/_/git.mjs +303 -0
  323. package/.output/server/chunks/_/git.mjs.map +1 -0
  324. package/.output/server/chunks/_/watcher.mjs +129 -0
  325. package/.output/server/chunks/_/watcher.mjs.map +1 -0
  326. package/.output/server/chunks/build/Column-styles.fAtZNsCt.mjs +8 -0
  327. package/.output/server/chunks/build/Column-styles.fAtZNsCt.mjs.map +1 -0
  328. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-ZdBUa15f.mjs +4 -0
  329. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-ZdBUa15f.mjs.map +1 -0
  330. package/.output/server/chunks/build/DiffViewer-styles-2.mjs-X6QKNjM0.mjs +4 -0
  331. package/.output/server/chunks/build/DiffViewer-styles-2.mjs-X6QKNjM0.mjs.map +1 -0
  332. package/.output/server/chunks/build/DiffViewer-styles.0AbHFl6N.mjs +8 -0
  333. package/.output/server/chunks/build/DiffViewer-styles.0AbHFl6N.mjs.map +1 -0
  334. package/.output/server/chunks/build/DiffViewer-styles.CoMVrk_N.mjs +8 -0
  335. package/.output/server/chunks/build/DiffViewer-styles.CoMVrk_N.mjs.map +1 -0
  336. package/.output/server/chunks/build/DiffViewer-styles.cLfMOdMh.mjs +10 -0
  337. package/.output/server/chunks/build/DiffViewer-styles.cLfMOdMh.mjs.map +1 -0
  338. package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs +8 -0
  339. package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs.map +1 -0
  340. package/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
  341. package/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
  342. package/.output/server/chunks/build/_prd_-CnwhMRyf.mjs +4225 -0
  343. package/.output/server/chunks/build/_prd_-CnwhMRyf.mjs.map +1 -0
  344. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  345. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  346. package/.output/server/chunks/build/default-DGOIWqjD.mjs +2222 -0
  347. package/.output/server/chunks/build/default-DGOIWqjD.mjs.map +1 -0
  348. package/.output/server/chunks/build/error-404-Bf6kdO80.mjs +98 -0
  349. package/.output/server/chunks/build/error-404-Bf6kdO80.mjs.map +1 -0
  350. package/.output/server/chunks/build/error-404-styles.DjEXIT5C.mjs +8 -0
  351. package/.output/server/chunks/build/error-404-styles.DjEXIT5C.mjs.map +1 -0
  352. package/.output/server/chunks/build/error-500-D_bcARXN.mjs +76 -0
  353. package/.output/server/chunks/build/error-500-D_bcARXN.mjs.map +1 -0
  354. package/.output/server/chunks/build/error-500-styles.DObwArFs.mjs +8 -0
  355. package/.output/server/chunks/build/error-500-styles.DObwArFs.mjs.map +1 -0
  356. package/.output/server/chunks/build/index-CTpuP9Mj.mjs +76 -0
  357. package/.output/server/chunks/build/index-CTpuP9Mj.mjs.map +1 -0
  358. package/.output/server/chunks/build/index-D21S97KB.mjs +256 -0
  359. package/.output/server/chunks/build/index-D21S97KB.mjs.map +1 -0
  360. package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs +290 -0
  361. package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs.map +1 -0
  362. package/.output/server/chunks/build/server.mjs +1257 -0
  363. package/.output/server/chunks/build/server.mjs.map +1 -0
  364. package/.output/server/chunks/build/styles.mjs +17 -0
  365. package/.output/server/chunks/build/styles.mjs.map +1 -0
  366. package/.output/server/chunks/build/usePrd-YhvN6Ary.mjs +563 -0
  367. package/.output/server/chunks/build/usePrd-YhvN6Ary.mjs.map +1 -0
  368. package/.output/server/chunks/nitro/nitro.mjs +8056 -0
  369. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  370. package/.output/server/chunks/routes/api/browse.get.mjs +55 -0
  371. package/.output/server/chunks/routes/api/browse.get.mjs.map +1 -0
  372. package/.output/server/chunks/routes/api/index.get.mjs +17 -0
  373. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
  374. package/.output/server/chunks/routes/api/index.post.mjs +46 -0
  375. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
  376. package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs +111 -0
  377. package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs.map +1 -0
  378. package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs +86 -0
  379. package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs.map +1 -0
  380. package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs +95 -0
  381. package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs.map +1 -0
  382. package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs +112 -0
  383. package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs.map +1 -0
  384. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs +44 -0
  385. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs.map +1 -0
  386. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs +121 -0
  387. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs.map +1 -0
  388. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs +44 -0
  389. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs.map +1 -0
  390. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs +81 -0
  391. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs.map +1 -0
  392. package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs +76 -0
  393. package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs.map +1 -0
  394. package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs +44 -0
  395. package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs.map +1 -0
  396. package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs +34 -0
  397. package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs.map +1 -0
  398. package/.output/server/chunks/routes/api/watch.get.mjs +67 -0
  399. package/.output/server/chunks/routes/api/watch.get.mjs.map +1 -0
  400. package/.output/server/chunks/routes/renderer.mjs +500 -0
  401. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  402. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  403. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  404. package/.output/server/index.mjs +11 -0
  405. package/.output/server/index.mjs.map +1 -0
  406. package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
  407. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  408. package/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1055 -0
  409. package/.output/server/node_modules/@floating-ui/core/package.json +63 -0
  410. package/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +777 -0
  411. package/.output/server/node_modules/@floating-ui/dom/package.json +71 -0
  412. package/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
  413. package/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +139 -0
  414. package/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
  415. package/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
  416. package/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
  417. package/.output/server/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs +48 -0
  418. package/.output/server/node_modules/@internationalized/date/dist/CalendarDate.mjs +252 -0
  419. package/.output/server/node_modules/@internationalized/date/dist/DateFormatter.mjs +140 -0
  420. package/.output/server/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs +167 -0
  421. package/.output/server/node_modules/@internationalized/date/dist/GregorianCalendar.mjs +140 -0
  422. package/.output/server/node_modules/@internationalized/date/dist/HebrewCalendar.mjs +150 -0
  423. package/.output/server/node_modules/@internationalized/date/dist/IndianCalendar.mjs +101 -0
  424. package/.output/server/node_modules/@internationalized/date/dist/IslamicCalendar.mjs +161 -0
  425. package/.output/server/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs +174 -0
  426. package/.output/server/node_modules/@internationalized/date/dist/PersianCalendar.mjs +82 -0
  427. package/.output/server/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs +75 -0
  428. package/.output/server/node_modules/@internationalized/date/dist/conversion.mjs +218 -0
  429. package/.output/server/node_modules/@internationalized/date/dist/createCalendar.mjs +64 -0
  430. package/.output/server/node_modules/@internationalized/date/dist/import.mjs +45 -0
  431. package/.output/server/node_modules/@internationalized/date/dist/manipulation.mjs +344 -0
  432. package/.output/server/node_modules/@internationalized/date/dist/queries.mjs +320 -0
  433. package/.output/server/node_modules/@internationalized/date/dist/string.mjs +175 -0
  434. package/.output/server/node_modules/@internationalized/date/dist/utils.mjs +17 -0
  435. package/.output/server/node_modules/@internationalized/date/dist/weekStartData.mjs +113 -0
  436. package/.output/server/node_modules/@internationalized/date/package.json +35 -0
  437. package/.output/server/node_modules/@internationalized/number/dist/NumberFormatter.mjs +152 -0
  438. package/.output/server/node_modules/@internationalized/number/dist/NumberParser.mjs +273 -0
  439. package/.output/server/node_modules/@internationalized/number/dist/import.mjs +19 -0
  440. package/.output/server/node_modules/@internationalized/number/package.json +35 -0
  441. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2446 -0
  442. package/.output/server/node_modules/@shikijs/core/package.json +56 -0
  443. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
  444. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
  445. package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
  446. package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
  447. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
  448. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
  449. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
  450. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
  451. package/.output/server/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
  452. package/.output/server/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
  453. package/.output/server/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
  454. package/.output/server/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
  455. package/.output/server/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
  456. package/.output/server/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
  457. package/.output/server/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
  458. package/.output/server/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
  459. package/.output/server/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
  460. package/.output/server/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
  461. package/.output/server/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
  462. package/.output/server/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
  463. package/.output/server/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
  464. package/.output/server/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
  465. package/.output/server/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
  466. package/.output/server/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
  467. package/.output/server/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
  468. package/.output/server/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
  469. package/.output/server/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
  470. package/.output/server/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
  471. package/.output/server/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
  472. package/.output/server/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
  473. package/.output/server/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
  474. package/.output/server/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
  475. package/.output/server/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
  476. package/.output/server/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
  477. package/.output/server/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
  478. package/.output/server/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
  479. package/.output/server/node_modules/@shikijs/langs/dist/c.mjs +5 -0
  480. package/.output/server/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
  481. package/.output/server/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
  482. package/.output/server/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
  483. package/.output/server/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
  484. package/.output/server/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
  485. package/.output/server/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
  486. package/.output/server/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
  487. package/.output/server/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
  488. package/.output/server/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
  489. package/.output/server/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
  490. package/.output/server/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
  491. package/.output/server/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
  492. package/.output/server/node_modules/@shikijs/langs/dist/cpp-macro.mjs +12 -0
  493. package/.output/server/node_modules/@shikijs/langs/dist/cpp.mjs +14 -0
  494. package/.output/server/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
  495. package/.output/server/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
  496. package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
  497. package/.output/server/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
  498. package/.output/server/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
  499. package/.output/server/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
  500. package/.output/server/node_modules/@shikijs/langs/dist/d.mjs +5 -0
  501. package/.output/server/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
  502. package/.output/server/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
  503. package/.output/server/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
  504. package/.output/server/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
  505. package/.output/server/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
  506. package/.output/server/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
  507. package/.output/server/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
  508. package/.output/server/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
  509. package/.output/server/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
  510. package/.output/server/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
  511. package/.output/server/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
  512. package/.output/server/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
  513. package/.output/server/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
  514. package/.output/server/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
  515. package/.output/server/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
  516. package/.output/server/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
  517. package/.output/server/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
  518. package/.output/server/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
  519. package/.output/server/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
  520. package/.output/server/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
  521. package/.output/server/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
  522. package/.output/server/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
  523. package/.output/server/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
  524. package/.output/server/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
  525. package/.output/server/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
  526. package/.output/server/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
  527. package/.output/server/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
  528. package/.output/server/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
  529. package/.output/server/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
  530. package/.output/server/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
  531. package/.output/server/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
  532. package/.output/server/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
  533. package/.output/server/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
  534. package/.output/server/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
  535. package/.output/server/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
  536. package/.output/server/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
  537. package/.output/server/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
  538. package/.output/server/node_modules/@shikijs/langs/dist/go.mjs +5 -0
  539. package/.output/server/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
  540. package/.output/server/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
  541. package/.output/server/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
  542. package/.output/server/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
  543. package/.output/server/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
  544. package/.output/server/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
  545. package/.output/server/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
  546. package/.output/server/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
  547. package/.output/server/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
  548. package/.output/server/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
  549. package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
  550. package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
  551. package/.output/server/node_modules/@shikijs/langs/dist/http.mjs +14 -0
  552. package/.output/server/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
  553. package/.output/server/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
  554. package/.output/server/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
  555. package/.output/server/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
  556. package/.output/server/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
  557. package/.output/server/node_modules/@shikijs/langs/dist/java.mjs +5 -0
  558. package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
  559. package/.output/server/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
  560. package/.output/server/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
  561. package/.output/server/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
  562. package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
  563. package/.output/server/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
  564. package/.output/server/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
  565. package/.output/server/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
  566. package/.output/server/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
  567. package/.output/server/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
  568. package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
  569. package/.output/server/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
  570. package/.output/server/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
  571. package/.output/server/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
  572. package/.output/server/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
  573. package/.output/server/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
  574. package/.output/server/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
  575. package/.output/server/node_modules/@shikijs/langs/dist/less.mjs +5 -0
  576. package/.output/server/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
  577. package/.output/server/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
  578. package/.output/server/node_modules/@shikijs/langs/dist/log.mjs +5 -0
  579. package/.output/server/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
  580. package/.output/server/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
  581. package/.output/server/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
  582. package/.output/server/node_modules/@shikijs/langs/dist/make.mjs +5 -0
  583. package/.output/server/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
  584. package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
  585. package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
  586. package/.output/server/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
  587. package/.output/server/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
  588. package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
  589. package/.output/server/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
  590. package/.output/server/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
  591. package/.output/server/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
  592. package/.output/server/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
  593. package/.output/server/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
  594. package/.output/server/node_modules/@shikijs/langs/dist/move.mjs +5 -0
  595. package/.output/server/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
  596. package/.output/server/node_modules/@shikijs/langs/dist/nextflow.mjs +5 -0
  597. package/.output/server/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
  598. package/.output/server/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
  599. package/.output/server/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
  600. package/.output/server/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
  601. package/.output/server/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
  602. package/.output/server/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
  603. package/.output/server/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
  604. package/.output/server/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
  605. package/.output/server/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
  606. package/.output/server/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
  607. package/.output/server/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
  608. package/.output/server/node_modules/@shikijs/langs/dist/php.mjs +18 -0
  609. package/.output/server/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
  610. package/.output/server/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
  611. package/.output/server/node_modules/@shikijs/langs/dist/po.mjs +5 -0
  612. package/.output/server/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
  613. package/.output/server/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
  614. package/.output/server/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
  615. package/.output/server/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
  616. package/.output/server/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
  617. package/.output/server/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
  618. package/.output/server/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
  619. package/.output/server/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
  620. package/.output/server/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
  621. package/.output/server/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
  622. package/.output/server/node_modules/@shikijs/langs/dist/python.mjs +5 -0
  623. package/.output/server/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
  624. package/.output/server/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
  625. package/.output/server/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
  626. package/.output/server/node_modules/@shikijs/langs/dist/r.mjs +5 -0
  627. package/.output/server/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
  628. package/.output/server/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
  629. package/.output/server/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
  630. package/.output/server/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
  631. package/.output/server/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
  632. package/.output/server/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
  633. package/.output/server/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
  634. package/.output/server/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
  635. package/.output/server/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
  636. package/.output/server/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
  637. package/.output/server/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
  638. package/.output/server/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
  639. package/.output/server/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
  640. package/.output/server/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
  641. package/.output/server/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
  642. package/.output/server/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
  643. package/.output/server/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
  644. package/.output/server/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
  645. package/.output/server/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
  646. package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
  647. package/.output/server/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
  648. package/.output/server/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
  649. package/.output/server/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
  650. package/.output/server/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
  651. package/.output/server/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
  652. package/.output/server/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
  653. package/.output/server/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
  654. package/.output/server/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
  655. package/.output/server/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
  656. package/.output/server/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
  657. package/.output/server/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
  658. package/.output/server/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
  659. package/.output/server/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
  660. package/.output/server/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
  661. package/.output/server/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
  662. package/.output/server/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
  663. package/.output/server/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
  664. package/.output/server/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
  665. package/.output/server/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
  666. package/.output/server/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
  667. package/.output/server/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
  668. package/.output/server/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
  669. package/.output/server/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
  670. package/.output/server/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
  671. package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
  672. package/.output/server/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
  673. package/.output/server/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
  674. package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
  675. package/.output/server/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
  676. package/.output/server/node_modules/@shikijs/langs/dist/typst.mjs +5 -0
  677. package/.output/server/node_modules/@shikijs/langs/dist/v.mjs +5 -0
  678. package/.output/server/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
  679. package/.output/server/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
  680. package/.output/server/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
  681. package/.output/server/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
  682. package/.output/server/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
  683. package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
  684. package/.output/server/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
  685. package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
  686. package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
  687. package/.output/server/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
  688. package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
  689. package/.output/server/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
  690. package/.output/server/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
  691. package/.output/server/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
  692. package/.output/server/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
  693. package/.output/server/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
  694. package/.output/server/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
  695. package/.output/server/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
  696. package/.output/server/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
  697. package/.output/server/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
  698. package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
  699. package/.output/server/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
  700. package/.output/server/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
  701. package/.output/server/node_modules/@shikijs/langs/package.json +380 -0
  702. package/.output/server/node_modules/@shikijs/themes/dist/andromeeda.mjs +2 -0
  703. package/.output/server/node_modules/@shikijs/themes/dist/aurora-x.mjs +2 -0
  704. package/.output/server/node_modules/@shikijs/themes/dist/ayu-dark.mjs +2 -0
  705. package/.output/server/node_modules/@shikijs/themes/dist/ayu-light.mjs +2 -0
  706. package/.output/server/node_modules/@shikijs/themes/dist/ayu-mirage.mjs +2 -0
  707. package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-frappe.mjs +2 -0
  708. package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-latte.mjs +2 -0
  709. package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-macchiato.mjs +2 -0
  710. package/.output/server/node_modules/@shikijs/themes/dist/catppuccin-mocha.mjs +2 -0
  711. package/.output/server/node_modules/@shikijs/themes/dist/dark-plus.mjs +2 -0
  712. package/.output/server/node_modules/@shikijs/themes/dist/dracula-soft.mjs +2 -0
  713. package/.output/server/node_modules/@shikijs/themes/dist/dracula.mjs +2 -0
  714. package/.output/server/node_modules/@shikijs/themes/dist/everforest-dark.mjs +2 -0
  715. package/.output/server/node_modules/@shikijs/themes/dist/everforest-light.mjs +2 -0
  716. package/.output/server/node_modules/@shikijs/themes/dist/github-dark-default.mjs +2 -0
  717. package/.output/server/node_modules/@shikijs/themes/dist/github-dark-dimmed.mjs +2 -0
  718. package/.output/server/node_modules/@shikijs/themes/dist/github-dark-high-contrast.mjs +2 -0
  719. package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
  720. package/.output/server/node_modules/@shikijs/themes/dist/github-light-default.mjs +2 -0
  721. package/.output/server/node_modules/@shikijs/themes/dist/github-light-high-contrast.mjs +2 -0
  722. package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
  723. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.mjs +2 -0
  724. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.mjs +2 -0
  725. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.mjs +2 -0
  726. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-hard.mjs +2 -0
  727. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-medium.mjs +2 -0
  728. package/.output/server/node_modules/@shikijs/themes/dist/gruvbox-light-soft.mjs +2 -0
  729. package/.output/server/node_modules/@shikijs/themes/dist/horizon.mjs +2 -0
  730. package/.output/server/node_modules/@shikijs/themes/dist/houston.mjs +2 -0
  731. package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-dragon.mjs +2 -0
  732. package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-lotus.mjs +2 -0
  733. package/.output/server/node_modules/@shikijs/themes/dist/kanagawa-wave.mjs +2 -0
  734. package/.output/server/node_modules/@shikijs/themes/dist/laserwave.mjs +2 -0
  735. package/.output/server/node_modules/@shikijs/themes/dist/light-plus.mjs +2 -0
  736. package/.output/server/node_modules/@shikijs/themes/dist/material-theme-darker.mjs +2 -0
  737. package/.output/server/node_modules/@shikijs/themes/dist/material-theme-lighter.mjs +2 -0
  738. package/.output/server/node_modules/@shikijs/themes/dist/material-theme-ocean.mjs +2 -0
  739. package/.output/server/node_modules/@shikijs/themes/dist/material-theme-palenight.mjs +2 -0
  740. package/.output/server/node_modules/@shikijs/themes/dist/material-theme.mjs +2 -0
  741. package/.output/server/node_modules/@shikijs/themes/dist/min-dark.mjs +2 -0
  742. package/.output/server/node_modules/@shikijs/themes/dist/min-light.mjs +2 -0
  743. package/.output/server/node_modules/@shikijs/themes/dist/monokai.mjs +2 -0
  744. package/.output/server/node_modules/@shikijs/themes/dist/night-owl-light.mjs +2 -0
  745. package/.output/server/node_modules/@shikijs/themes/dist/night-owl.mjs +2 -0
  746. package/.output/server/node_modules/@shikijs/themes/dist/nord.mjs +2 -0
  747. package/.output/server/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +2 -0
  748. package/.output/server/node_modules/@shikijs/themes/dist/one-light.mjs +2 -0
  749. package/.output/server/node_modules/@shikijs/themes/dist/plastic.mjs +2 -0
  750. package/.output/server/node_modules/@shikijs/themes/dist/poimandres.mjs +2 -0
  751. package/.output/server/node_modules/@shikijs/themes/dist/red.mjs +2 -0
  752. package/.output/server/node_modules/@shikijs/themes/dist/rose-pine-dawn.mjs +2 -0
  753. package/.output/server/node_modules/@shikijs/themes/dist/rose-pine-moon.mjs +2 -0
  754. package/.output/server/node_modules/@shikijs/themes/dist/rose-pine.mjs +2 -0
  755. package/.output/server/node_modules/@shikijs/themes/dist/slack-dark.mjs +2 -0
  756. package/.output/server/node_modules/@shikijs/themes/dist/slack-ochin.mjs +2 -0
  757. package/.output/server/node_modules/@shikijs/themes/dist/snazzy-light.mjs +2 -0
  758. package/.output/server/node_modules/@shikijs/themes/dist/solarized-dark.mjs +2 -0
  759. package/.output/server/node_modules/@shikijs/themes/dist/solarized-light.mjs +2 -0
  760. package/.output/server/node_modules/@shikijs/themes/dist/synthwave-84.mjs +2 -0
  761. package/.output/server/node_modules/@shikijs/themes/dist/tokyo-night.mjs +2 -0
  762. package/.output/server/node_modules/@shikijs/themes/dist/vesper.mjs +2 -0
  763. package/.output/server/node_modules/@shikijs/themes/dist/vitesse-black.mjs +2 -0
  764. package/.output/server/node_modules/@shikijs/themes/dist/vitesse-dark.mjs +2 -0
  765. package/.output/server/node_modules/@shikijs/themes/dist/vitesse-light.mjs +2 -0
  766. package/.output/server/node_modules/@shikijs/themes/package.json +102 -0
  767. package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
  768. package/.output/server/node_modules/@shikijs/types/package.json +36 -0
  769. package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
  770. package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
  771. package/.output/server/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
  772. package/.output/server/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
  773. package/.output/server/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
  774. package/.output/server/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  775. package/.output/server/node_modules/@swc/helpers/package.json +694 -0
  776. package/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +887 -0
  777. package/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +73 -0
  778. package/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
  779. package/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
  780. package/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
  781. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  782. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  783. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  784. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  785. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  786. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  787. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  788. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  789. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  790. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  791. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  792. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  793. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  794. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  795. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  796. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  797. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  798. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  799. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  800. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  801. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -0
  802. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  803. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6798 -0
  804. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  805. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1750 -0
  806. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  807. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
  808. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  809. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  810. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  811. package/.output/server/node_modules/@vueuse/core/dist/index.js +8596 -0
  812. package/.output/server/node_modules/@vueuse/core/package.json +49 -0
  813. package/.output/server/node_modules/@vueuse/shared/dist/index.js +2066 -0
  814. package/.output/server/node_modules/@vueuse/shared/package.json +42 -0
  815. package/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
  816. package/.output/server/node_modules/aria-hidden/package.json +71 -0
  817. package/.output/server/node_modules/ccount/index.js +27 -0
  818. package/.output/server/node_modules/ccount/package.json +71 -0
  819. package/.output/server/node_modules/character-entities-html4/index.js +259 -0
  820. package/.output/server/node_modules/character-entities-html4/package.json +79 -0
  821. package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
  822. package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
  823. package/.output/server/node_modules/chokidar/handler.js +632 -0
  824. package/.output/server/node_modules/chokidar/index.js +822 -0
  825. package/.output/server/node_modules/chokidar/package.json +63 -0
  826. package/.output/server/node_modules/class-variance-authority/dist/index.mjs +56 -0
  827. package/.output/server/node_modules/class-variance-authority/package.json +63 -0
  828. package/.output/server/node_modules/clsx/dist/clsx.mjs +1 -0
  829. package/.output/server/node_modules/clsx/package.json +60 -0
  830. package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
  831. package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
  832. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  833. package/.output/server/node_modules/defu/package.json +43 -0
  834. package/.output/server/node_modules/devalue/index.js +4 -0
  835. package/.output/server/node_modules/devalue/package.json +37 -0
  836. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  837. package/.output/server/node_modules/devalue/src/constants.js +7 -0
  838. package/.output/server/node_modules/devalue/src/parse.js +246 -0
  839. package/.output/server/node_modules/devalue/src/stringify.js +350 -0
  840. package/.output/server/node_modules/devalue/src/uneval.js +490 -0
  841. package/.output/server/node_modules/devalue/src/utils.js +148 -0
  842. package/.output/server/node_modules/dompurify/dist/purify.es.mjs +1386 -0
  843. package/.output/server/node_modules/dompurify/package.json +171 -0
  844. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  845. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  846. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  847. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  848. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  849. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  850. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  851. package/.output/server/node_modules/entities/package.json +120 -0
  852. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  853. package/.output/server/node_modules/estree-walker/package.json +37 -0
  854. package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
  855. package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
  856. package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
  857. package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
  858. package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
  859. package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
  860. package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
  861. package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
  862. package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
  863. package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
  864. package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
  865. package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
  866. package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
  867. package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
  868. package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
  869. package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
  870. package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
  871. package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
  872. package/.output/server/node_modules/hookable/package.json +52 -0
  873. package/.output/server/node_modules/html-void-elements/index.js +27 -0
  874. package/.output/server/node_modules/html-void-elements/package.json +79 -0
  875. package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +24066 -0
  876. package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
  877. package/.output/server/node_modules/marked/lib/marked.esm.js +72 -0
  878. package/.output/server/node_modules/marked/package.json +103 -0
  879. package/.output/server/node_modules/ohash/dist/crypto/node/index.mjs +5 -0
  880. package/.output/server/node_modules/ohash/dist/index.mjs +10 -0
  881. package/.output/server/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs +13 -0
  882. package/.output/server/node_modules/ohash/package.json +57 -0
  883. package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
  884. package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
  885. package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
  886. package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
  887. package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
  888. package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
  889. package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
  890. package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
  891. package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
  892. package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  893. package/.output/server/node_modules/perfect-debounce/package.json +41 -0
  894. package/.output/server/node_modules/property-information/index.js +17 -0
  895. package/.output/server/node_modules/property-information/lib/aria.js +61 -0
  896. package/.output/server/node_modules/property-information/lib/find.js +97 -0
  897. package/.output/server/node_modules/property-information/lib/hast-to-react.js +30 -0
  898. package/.output/server/node_modules/property-information/lib/html.js +322 -0
  899. package/.output/server/node_modules/property-information/lib/normalize.js +12 -0
  900. package/.output/server/node_modules/property-information/lib/svg.js +567 -0
  901. package/.output/server/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  902. package/.output/server/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  903. package/.output/server/node_modules/property-information/lib/util/create.js +69 -0
  904. package/.output/server/node_modules/property-information/lib/util/defined-info.js +60 -0
  905. package/.output/server/node_modules/property-information/lib/util/info.js +32 -0
  906. package/.output/server/node_modules/property-information/lib/util/merge.js +27 -0
  907. package/.output/server/node_modules/property-information/lib/util/schema.js +29 -0
  908. package/.output/server/node_modules/property-information/lib/util/types.js +13 -0
  909. package/.output/server/node_modules/property-information/lib/xlink.js +17 -0
  910. package/.output/server/node_modules/property-information/lib/xml.js +9 -0
  911. package/.output/server/node_modules/property-information/lib/xmlns.js +9 -0
  912. package/.output/server/node_modules/property-information/package.json +121 -0
  913. package/.output/server/node_modules/readdirp/index.js +272 -0
  914. package/.output/server/node_modules/readdirp/package.json +66 -0
  915. package/.output/server/node_modules/regex/package.json +60 -0
  916. package/.output/server/node_modules/regex/src/atomic.js +224 -0
  917. package/.output/server/node_modules/regex/src/internals.js +2 -0
  918. package/.output/server/node_modules/regex/src/subclass.js +98 -0
  919. package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
  920. package/.output/server/node_modules/regex-recursion/package.json +47 -0
  921. package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
  922. package/.output/server/node_modules/regex-utilities/package.json +35 -0
  923. package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
  924. package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionContent.js +66 -0
  925. package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionHeader.js +53 -0
  926. package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionItem.js +116 -0
  927. package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionRoot.js +96 -0
  928. package/.output/server/node_modules/reka-ui/dist/Accordion/AccordionTrigger.js +68 -0
  929. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogAction.js +37 -0
  930. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogCancel.js +42 -0
  931. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogContent.js +73 -0
  932. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogDescription.js +37 -0
  933. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogOverlay.js +40 -0
  934. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogPortal.js +42 -0
  935. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogRoot.js +40 -0
  936. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogTitle.js +37 -0
  937. package/.output/server/node_modules/reka-ui/dist/AlertDialog/AlertDialogTrigger.js +37 -0
  938. package/.output/server/node_modules/reka-ui/dist/AspectRatio/AspectRatio.js +56 -0
  939. package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarFallback.js +59 -0
  940. package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarImage.js +76 -0
  941. package/.output/server/node_modules/reka-ui/dist/Avatar/AvatarRoot.js +42 -0
  942. package/.output/server/node_modules/reka-ui/dist/Avatar/utils.js +49 -0
  943. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarCell.js +53 -0
  944. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarCellTrigger.js +176 -0
  945. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGrid.js +51 -0
  946. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridBody.js +35 -0
  947. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridHead.js +35 -0
  948. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarGridRow.js +35 -0
  949. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeadCell.js +35 -0
  950. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeader.js +35 -0
  951. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarHeading.js +37 -0
  952. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarNext.js +58 -0
  953. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarPrev.js +58 -0
  954. package/.output/server/node_modules/reka-ui/dist/Calendar/CalendarRoot.js +317 -0
  955. package/.output/server/node_modules/reka-ui/dist/Calendar/useCalendar.js +267 -0
  956. package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxGroupRoot.js +115 -0
  957. package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxIndicator.js +59 -0
  958. package/.output/server/node_modules/reka-ui/dist/Checkbox/CheckboxRoot.js +157 -0
  959. package/.output/server/node_modules/reka-ui/dist/Checkbox/utils.js +11 -0
  960. package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleContent.js +113 -0
  961. package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleRoot.js +86 -0
  962. package/.output/server/node_modules/reka-ui/dist/Collapsible/CollapsibleTrigger.js +59 -0
  963. package/.output/server/node_modules/reka-ui/dist/Collection/Collection.js +79 -0
  964. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js +50 -0
  965. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxArrow.js +55 -0
  966. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxCancel.js +50 -0
  967. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxContent.js +144 -0
  968. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js +214 -0
  969. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js +37 -0
  970. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js +58 -0
  971. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxInput.js +134 -0
  972. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxItem.js +88 -0
  973. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js +35 -0
  974. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js +48 -0
  975. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxPortal.js +42 -0
  976. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js +259 -0
  977. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxSeparator.js +36 -0
  978. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js +68 -0
  979. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js +64 -0
  980. package/.output/server/node_modules/reka-ui/dist/Combobox/ComboboxVirtualizer.js +45 -0
  981. package/.output/server/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js +58 -0
  982. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuArrow.js +51 -0
  983. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuCheckboxItem.js +55 -0
  984. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuContent.js +136 -0
  985. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuGroup.js +36 -0
  986. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuItem.js +51 -0
  987. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuItemIndicator.js +40 -0
  988. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuLabel.js +36 -0
  989. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuPortal.js +42 -0
  990. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRadioGroup.js +47 -0
  991. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRadioItem.js +55 -0
  992. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuRoot.js +74 -0
  993. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSeparator.js +36 -0
  994. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSub.js +47 -0
  995. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSubContent.js +126 -0
  996. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuSubTrigger.js +44 -0
  997. package/.output/server/node_modules/reka-ui/dist/ContextMenu/ContextMenuTrigger.js +124 -0
  998. package/.output/server/node_modules/reka-ui/dist/ContextMenu/utils.js +8 -0
  999. package/.output/server/node_modules/reka-ui/dist/DateField/DateFieldInput.js +90 -0
  1000. package/.output/server/node_modules/reka-ui/dist/DateField/DateFieldRoot.js +284 -0
  1001. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerAnchor.js +38 -0
  1002. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerArrow.js +46 -0
  1003. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCalendar.js +60 -0
  1004. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCell.js +38 -0
  1005. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerCellTrigger.js +42 -0
  1006. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerClose.js +34 -0
  1007. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerContent.js +147 -0
  1008. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerField.js +56 -0
  1009. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGrid.js +34 -0
  1010. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridBody.js +34 -0
  1011. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridHead.js +34 -0
  1012. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerGridRow.js +34 -0
  1013. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeadCell.js +34 -0
  1014. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeader.js +34 -0
  1015. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerHeading.js +34 -0
  1016. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerInput.js +38 -0
  1017. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerNext.js +38 -0
  1018. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerPrev.js +38 -0
  1019. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerRoot.js +245 -0
  1020. package/.output/server/node_modules/reka-ui/dist/DatePicker/DatePickerTrigger.js +41 -0
  1021. package/.output/server/node_modules/reka-ui/dist/DateRangeField/DateRangeFieldInput.js +96 -0
  1022. package/.output/server/node_modules/reka-ui/dist/DateRangeField/DateRangeFieldRoot.js +342 -0
  1023. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerAnchor.js +38 -0
  1024. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerArrow.js +46 -0
  1025. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCalendar.js +66 -0
  1026. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCell.js +38 -0
  1027. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerCellTrigger.js +42 -0
  1028. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerClose.js +34 -0
  1029. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerContent.js +147 -0
  1030. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerField.js +57 -0
  1031. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGrid.js +34 -0
  1032. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridBody.js +34 -0
  1033. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridHead.js +34 -0
  1034. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerGridRow.js +34 -0
  1035. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeadCell.js +34 -0
  1036. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeader.js +34 -0
  1037. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerHeading.js +34 -0
  1038. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerInput.js +42 -0
  1039. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerNext.js +38 -0
  1040. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerPrev.js +38 -0
  1041. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerRoot.js +284 -0
  1042. package/.output/server/node_modules/reka-ui/dist/DateRangePicker/DateRangePickerTrigger.js +41 -0
  1043. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogClose.js +42 -0
  1044. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContent.js +79 -0
  1045. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +111 -0
  1046. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +85 -0
  1047. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +87 -0
  1048. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogDescription.js +39 -0
  1049. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +52 -0
  1050. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +48 -0
  1051. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogPortal.js +42 -0
  1052. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogRoot.js +71 -0
  1053. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogTitle.js +39 -0
  1054. package/.output/server/node_modules/reka-ui/dist/Dialog/DialogTrigger.js +58 -0
  1055. package/.output/server/node_modules/reka-ui/dist/Dialog/utils.js +26 -0
  1056. package/.output/server/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js +130 -0
  1057. package/.output/server/node_modules/reka-ui/dist/DismissableLayer/DismissableLayerBranch.js +43 -0
  1058. package/.output/server/node_modules/reka-ui/dist/DismissableLayer/utils.js +122 -0
  1059. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuArrow.js +51 -0
  1060. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuCheckboxItem.js +55 -0
  1061. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuContent.js +158 -0
  1062. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuGroup.js +36 -0
  1063. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuItem.js +51 -0
  1064. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuItemIndicator.js +40 -0
  1065. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuLabel.js +36 -0
  1066. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuPortal.js +42 -0
  1067. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRadioGroup.js +47 -0
  1068. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRadioItem.js +52 -0
  1069. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRoot.js +82 -0
  1070. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSeparator.js +36 -0
  1071. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSub.js +47 -0
  1072. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSubContent.js +126 -0
  1073. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSubTrigger.js +44 -0
  1074. package/.output/server/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuTrigger.js +95 -0
  1075. package/.output/server/node_modules/reka-ui/dist/Editable/EditableArea.js +53 -0
  1076. package/.output/server/node_modules/reka-ui/dist/Editable/EditableCancelTrigger.js +52 -0
  1077. package/.output/server/node_modules/reka-ui/dist/Editable/EditableEditTrigger.js +52 -0
  1078. package/.output/server/node_modules/reka-ui/dist/Editable/EditableInput.js +90 -0
  1079. package/.output/server/node_modules/reka-ui/dist/Editable/EditablePreview.js +62 -0
  1080. package/.output/server/node_modules/reka-ui/dist/Editable/EditableRoot.js +224 -0
  1081. package/.output/server/node_modules/reka-ui/dist/Editable/EditableSubmitTrigger.js +52 -0
  1082. package/.output/server/node_modules/reka-ui/dist/FocusScope/FocusScope.js +154 -0
  1083. package/.output/server/node_modules/reka-ui/dist/FocusScope/stack.js +34 -0
  1084. package/.output/server/node_modules/reka-ui/dist/FocusScope/utils.js +79 -0
  1085. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardArrow.js +51 -0
  1086. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +131 -0
  1087. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +192 -0
  1088. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +42 -0
  1089. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +88 -0
  1090. package/.output/server/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +70 -0
  1091. package/.output/server/node_modules/reka-ui/dist/HoverCard/utils.js +20 -0
  1092. package/.output/server/node_modules/reka-ui/dist/Label/Label.js +43 -0
  1093. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxContent.js +79 -0
  1094. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxFilter.js +104 -0
  1095. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxGroup.js +39 -0
  1096. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxGroupLabel.js +41 -0
  1097. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxItem.js +108 -0
  1098. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js +42 -0
  1099. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxRoot.js +338 -0
  1100. package/.output/server/node_modules/reka-ui/dist/Listbox/ListboxVirtualizer.js +218 -0
  1101. package/.output/server/node_modules/reka-ui/dist/Listbox/utils.js +22 -0
  1102. package/.output/server/node_modules/reka-ui/dist/Menu/MenuAnchor.js +38 -0
  1103. package/.output/server/node_modules/reka-ui/dist/Menu/MenuArrow.js +46 -0
  1104. package/.output/server/node_modules/reka-ui/dist/Menu/MenuCheckboxItem.js +65 -0
  1105. package/.output/server/node_modules/reka-ui/dist/Menu/MenuContent.js +143 -0
  1106. package/.output/server/node_modules/reka-ui/dist/Menu/MenuContentImpl.js +324 -0
  1107. package/.output/server/node_modules/reka-ui/dist/Menu/MenuGroup.js +34 -0
  1108. package/.output/server/node_modules/reka-ui/dist/Menu/MenuItem.js +90 -0
  1109. package/.output/server/node_modules/reka-ui/dist/Menu/MenuItemImpl.js +100 -0
  1110. package/.output/server/node_modules/reka-ui/dist/Menu/MenuItemIndicator.js +54 -0
  1111. package/.output/server/node_modules/reka-ui/dist/Menu/MenuLabel.js +35 -0
  1112. package/.output/server/node_modules/reka-ui/dist/Menu/MenuPortal.js +42 -0
  1113. package/.output/server/node_modules/reka-ui/dist/Menu/MenuRadioGroup.js +54 -0
  1114. package/.output/server/node_modules/reka-ui/dist/Menu/MenuRadioItem.js +66 -0
  1115. package/.output/server/node_modules/reka-ui/dist/Menu/MenuRoot.js +71 -0
  1116. package/.output/server/node_modules/reka-ui/dist/Menu/MenuRootContentModal.js +135 -0
  1117. package/.output/server/node_modules/reka-ui/dist/Menu/MenuRootContentNonModal.js +129 -0
  1118. package/.output/server/node_modules/reka-ui/dist/Menu/MenuSeparator.js +37 -0
  1119. package/.output/server/node_modules/reka-ui/dist/Menu/MenuSub.js +64 -0
  1120. package/.output/server/node_modules/reka-ui/dist/Menu/MenuSubContent.js +167 -0
  1121. package/.output/server/node_modules/reka-ui/dist/Menu/MenuSubTrigger.js +157 -0
  1122. package/.output/server/node_modules/reka-ui/dist/Menu/utils.js +69 -0
  1123. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarArrow.js +51 -0
  1124. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarCheckboxItem.js +55 -0
  1125. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarContent.js +180 -0
  1126. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarGroup.js +36 -0
  1127. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarItem.js +51 -0
  1128. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarItemIndicator.js +40 -0
  1129. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarLabel.js +36 -0
  1130. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarMenu.js +56 -0
  1131. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarPortal.js +42 -0
  1132. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRadioGroup.js +47 -0
  1133. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRadioItem.js +52 -0
  1134. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarRoot.js +100 -0
  1135. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSeparator.js +36 -0
  1136. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSub.js +47 -0
  1137. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSubContent.js +147 -0
  1138. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarSubTrigger.js +44 -0
  1139. package/.output/server/node_modules/reka-ui/dist/Menubar/MenubarTrigger.js +125 -0
  1140. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuContent.js +95 -0
  1141. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuContentImpl.js +166 -0
  1142. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuIndicator.js +85 -0
  1143. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuItem.js +121 -0
  1144. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuLink.js +75 -0
  1145. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuList.js +57 -0
  1146. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuRoot.js +183 -0
  1147. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuSub.js +114 -0
  1148. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuTrigger.js +150 -0
  1149. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/NavigationMenuViewport.js +158 -0
  1150. package/.output/server/node_modules/reka-ui/dist/NavigationMenu/utils.js +61 -0
  1151. package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldDecrement.js +69 -0
  1152. package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldIncrement.js +69 -0
  1153. package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldInput.js +115 -0
  1154. package/.output/server/node_modules/reka-ui/dist/NumberField/NumberFieldRoot.js +224 -0
  1155. package/.output/server/node_modules/reka-ui/dist/NumberField/utils.js +72 -0
  1156. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationEllipsis.js +36 -0
  1157. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationFirst.js +45 -0
  1158. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationLast.js +45 -0
  1159. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationList.js +42 -0
  1160. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationListItem.js +59 -0
  1161. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationNext.js +45 -0
  1162. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationPrev.js +45 -0
  1163. package/.output/server/node_modules/reka-ui/dist/Pagination/PaginationRoot.js +96 -0
  1164. package/.output/server/node_modules/reka-ui/dist/Pagination/utils.js +74 -0
  1165. package/.output/server/node_modules/reka-ui/dist/PinInput/PinInputInput.js +210 -0
  1166. package/.output/server/node_modules/reka-ui/dist/PinInput/PinInputRoot.js +149 -0
  1167. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverAnchor.js +48 -0
  1168. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverArrow.js +51 -0
  1169. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverClose.js +48 -0
  1170. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContent.js +139 -0
  1171. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +171 -0
  1172. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +146 -0
  1173. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +148 -0
  1174. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverPortal.js +42 -0
  1175. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverRoot.js +70 -0
  1176. package/.output/server/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +68 -0
  1177. package/.output/server/node_modules/reka-ui/dist/Popper/PopperAnchor.js +49 -0
  1178. package/.output/server/node_modules/reka-ui/dist/Popper/PopperArrow.js +96 -0
  1179. package/.output/server/node_modules/reka-ui/dist/Popper/PopperContent.js +273 -0
  1180. package/.output/server/node_modules/reka-ui/dist/Popper/PopperRoot.js +27 -0
  1181. package/.output/server/node_modules/reka-ui/dist/Popper/utils.js +52 -0
  1182. package/.output/server/node_modules/reka-ui/dist/Presence/Presence.js +50 -0
  1183. package/.output/server/node_modules/reka-ui/dist/Presence/usePresence.js +122 -0
  1184. package/.output/server/node_modules/reka-ui/dist/Primitive/Primitive.js +33 -0
  1185. package/.output/server/node_modules/reka-ui/dist/Primitive/Slot.js +30 -0
  1186. package/.output/server/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js +16 -0
  1187. package/.output/server/node_modules/reka-ui/dist/Progress/ProgressIndicator.js +46 -0
  1188. package/.output/server/node_modules/reka-ui/dist/Progress/ProgressRoot.js +124 -0
  1189. package/.output/server/node_modules/reka-ui/dist/RadioGroup/Radio.js +126 -0
  1190. package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupIndicator.js +57 -0
  1191. package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupItem.js +132 -0
  1192. package/.output/server/node_modules/reka-ui/dist/RadioGroup/RadioGroupRoot.js +138 -0
  1193. package/.output/server/node_modules/reka-ui/dist/RadioGroup/utils.js +15 -0
  1194. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCell.js +53 -0
  1195. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCellTrigger.js +237 -0
  1196. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGrid.js +52 -0
  1197. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridBody.js +35 -0
  1198. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridHead.js +35 -0
  1199. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridRow.js +35 -0
  1200. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeadCell.js +35 -0
  1201. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeader.js +35 -0
  1202. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeading.js +37 -0
  1203. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarNext.js +58 -0
  1204. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarPrev.js +58 -0
  1205. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarRoot.js +392 -0
  1206. package/.output/server/node_modules/reka-ui/dist/RangeCalendar/useRangeCalendar.js +145 -0
  1207. package/.output/server/node_modules/reka-ui/dist/RovingFocus/RovingFocusGroup.js +145 -0
  1208. package/.output/server/node_modules/reka-ui/dist/RovingFocus/RovingFocusItem.js +110 -0
  1209. package/.output/server/node_modules/reka-ui/dist/RovingFocus/utils.js +47 -0
  1210. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaCorner.js +40 -0
  1211. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaCornerImpl.js +53 -0
  1212. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaRoot.js +128 -0
  1213. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbar.js +99 -0
  1214. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarAuto.js +52 -0
  1215. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarGlimpse.js +126 -0
  1216. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarHover.js +65 -0
  1217. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarImpl.js +123 -0
  1218. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarScroll.js +88 -0
  1219. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarVisible.js +107 -0
  1220. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarX.js +45 -0
  1221. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarY.js +46 -0
  1222. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaThumb.js +98 -0
  1223. package/.output/server/node_modules/reka-ui/dist/ScrollArea/ScrollAreaViewport.js +76 -0
  1224. package/.output/server/node_modules/reka-ui/dist/ScrollArea/utils.js +72 -0
  1225. package/.output/server/node_modules/reka-ui/dist/Select/BubbleSelect.js +95 -0
  1226. package/.output/server/node_modules/reka-ui/dist/Select/SelectArrow.js +51 -0
  1227. package/.output/server/node_modules/reka-ui/dist/Select/SelectContent.js +160 -0
  1228. package/.output/server/node_modules/reka-ui/dist/Select/SelectContentImpl.js +311 -0
  1229. package/.output/server/node_modules/reka-ui/dist/Select/SelectGroup.js +39 -0
  1230. package/.output/server/node_modules/reka-ui/dist/Select/SelectIcon.js +38 -0
  1231. package/.output/server/node_modules/reka-ui/dist/Select/SelectItem.js +153 -0
  1232. package/.output/server/node_modules/reka-ui/dist/Select/SelectItemAlignedPosition.js +162 -0
  1233. package/.output/server/node_modules/reka-ui/dist/Select/SelectItemIndicator.js +40 -0
  1234. package/.output/server/node_modules/reka-ui/dist/Select/SelectItemText.js +66 -0
  1235. package/.output/server/node_modules/reka-ui/dist/Select/SelectLabel.js +41 -0
  1236. package/.output/server/node_modules/reka-ui/dist/Select/SelectPopperPosition.js +118 -0
  1237. package/.output/server/node_modules/reka-ui/dist/Select/SelectPortal.js +42 -0
  1238. package/.output/server/node_modules/reka-ui/dist/Select/SelectProvider.js +29 -0
  1239. package/.output/server/node_modules/reka-ui/dist/Select/SelectRoot.js +185 -0
  1240. package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollButtonImpl.js +62 -0
  1241. package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollDownButton.js +62 -0
  1242. package/.output/server/node_modules/reka-ui/dist/Select/SelectScrollUpButton.js +61 -0
  1243. package/.output/server/node_modules/reka-ui/dist/Select/SelectSeparator.js +34 -0
  1244. package/.output/server/node_modules/reka-ui/dist/Select/SelectTrigger.js +132 -0
  1245. package/.output/server/node_modules/reka-ui/dist/Select/SelectValue.js +72 -0
  1246. package/.output/server/node_modules/reka-ui/dist/Select/SelectViewport.js +97 -0
  1247. package/.output/server/node_modules/reka-ui/dist/Select/utils.js +30 -0
  1248. package/.output/server/node_modules/reka-ui/dist/Separator/Separator.js +43 -0
  1249. package/.output/server/node_modules/reka-ui/dist/Slider/SliderHorizontal.js +106 -0
  1250. package/.output/server/node_modules/reka-ui/dist/Slider/SliderImpl.js +78 -0
  1251. package/.output/server/node_modules/reka-ui/dist/Slider/SliderRange.js +58 -0
  1252. package/.output/server/node_modules/reka-ui/dist/Slider/SliderRoot.js +217 -0
  1253. package/.output/server/node_modules/reka-ui/dist/Slider/SliderThumb.js +40 -0
  1254. package/.output/server/node_modules/reka-ui/dist/Slider/SliderThumbImpl.js +103 -0
  1255. package/.output/server/node_modules/reka-ui/dist/Slider/SliderTrack.js +48 -0
  1256. package/.output/server/node_modules/reka-ui/dist/Slider/SliderVertical.js +101 -0
  1257. package/.output/server/node_modules/reka-ui/dist/Slider/utils.js +129 -0
  1258. package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +409 -0
  1259. package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterPanel.js +151 -0
  1260. package/.output/server/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js +154 -0
  1261. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperDescription.js +39 -0
  1262. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +38 -0
  1263. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperItem.js +94 -0
  1264. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperRoot.js +172 -0
  1265. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperSeparator.js +52 -0
  1266. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperTitle.js +39 -0
  1267. package/.output/server/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +115 -0
  1268. package/.output/server/node_modules/reka-ui/dist/Switch/SwitchRoot.js +133 -0
  1269. package/.output/server/node_modules/reka-ui/dist/Switch/SwitchThumb.js +48 -0
  1270. package/.output/server/node_modules/reka-ui/dist/Tabs/TabsContent.js +88 -0
  1271. package/.output/server/node_modules/reka-ui/dist/Tabs/TabsIndicator.js +70 -0
  1272. package/.output/server/node_modules/reka-ui/dist/Tabs/TabsList.js +68 -0
  1273. package/.output/server/node_modules/reka-ui/dist/Tabs/TabsRoot.js +109 -0
  1274. package/.output/server/node_modules/reka-ui/dist/Tabs/TabsTrigger.js +93 -0
  1275. package/.output/server/node_modules/reka-ui/dist/Tabs/utils.js +11 -0
  1276. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputClear.js +47 -0
  1277. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputInput.js +151 -0
  1278. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItem.js +78 -0
  1279. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItemDelete.js +61 -0
  1280. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputItemText.js +41 -0
  1281. package/.output/server/node_modules/reka-ui/dist/TagsInput/TagsInputRoot.js +256 -0
  1282. package/.output/server/node_modules/reka-ui/dist/Teleport/Teleport.js +49 -0
  1283. package/.output/server/node_modules/reka-ui/dist/TimeField/TimeFieldInput.js +92 -0
  1284. package/.output/server/node_modules/reka-ui/dist/TimeField/TimeFieldRoot.js +320 -0
  1285. package/.output/server/node_modules/reka-ui/dist/Toast/FocusProxy.js +36 -0
  1286. package/.output/server/node_modules/reka-ui/dist/Toast/ToastAction.js +53 -0
  1287. package/.output/server/node_modules/reka-ui/dist/Toast/ToastAnnounce.js +32 -0
  1288. package/.output/server/node_modules/reka-ui/dist/Toast/ToastAnnounceExclude.js +46 -0
  1289. package/.output/server/node_modules/reka-ui/dist/Toast/ToastClose.js +47 -0
  1290. package/.output/server/node_modules/reka-ui/dist/Toast/ToastDescription.js +36 -0
  1291. package/.output/server/node_modules/reka-ui/dist/Toast/ToastPortal.js +42 -0
  1292. package/.output/server/node_modules/reka-ui/dist/Toast/ToastProvider.js +80 -0
  1293. package/.output/server/node_modules/reka-ui/dist/Toast/ToastRoot.js +140 -0
  1294. package/.output/server/node_modules/reka-ui/dist/Toast/ToastRootImpl.js +234 -0
  1295. package/.output/server/node_modules/reka-ui/dist/Toast/ToastTitle.js +36 -0
  1296. package/.output/server/node_modules/reka-ui/dist/Toast/ToastViewport.js +178 -0
  1297. package/.output/server/node_modules/reka-ui/dist/Toast/utils.js +47 -0
  1298. package/.output/server/node_modules/reka-ui/dist/Toggle/Toggle.js +110 -0
  1299. package/.output/server/node_modules/reka-ui/dist/ToggleGroup/ToggleGroupItem.js +63 -0
  1300. package/.output/server/node_modules/reka-ui/dist/ToggleGroup/ToggleGroupRoot.js +128 -0
  1301. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarButton.js +51 -0
  1302. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarLink.js +49 -0
  1303. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarRoot.js +81 -0
  1304. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarSeparator.js +46 -0
  1305. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarToggleGroup.js +89 -0
  1306. package/.output/server/node_modules/reka-ui/dist/Toolbar/ToolbarToggleItem.js +48 -0
  1307. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipArrow.js +47 -0
  1308. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContent.js +104 -0
  1309. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContentHoverable.js +100 -0
  1310. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipContentImpl.js +148 -0
  1311. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipPortal.js +42 -0
  1312. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipProvider.js +78 -0
  1313. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipRoot.js +132 -0
  1314. package/.output/server/node_modules/reka-ui/dist/Tooltip/TooltipTrigger.js +114 -0
  1315. package/.output/server/node_modules/reka-ui/dist/Tooltip/utils.js +6 -0
  1316. package/.output/server/node_modules/reka-ui/dist/Tree/TreeItem.js +175 -0
  1317. package/.output/server/node_modules/reka-ui/dist/Tree/TreeRoot.js +243 -0
  1318. package/.output/server/node_modules/reka-ui/dist/Tree/TreeVirtualizer.js +168 -0
  1319. package/.output/server/node_modules/reka-ui/dist/Tree/utils.js +12 -0
  1320. package/.output/server/node_modules/reka-ui/dist/Viewport/Viewport.js +62 -0
  1321. package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js +66 -0
  1322. package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js +86 -0
  1323. package/.output/server/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js +73 -0
  1324. package/.output/server/node_modules/reka-ui/dist/component/Arrow.js +69 -0
  1325. package/.output/server/node_modules/reka-ui/dist/component/BaseSeparator.js +61 -0
  1326. package/.output/server/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +48 -0
  1327. package/.output/server/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +94 -0
  1328. package/.output/server/node_modules/reka-ui/dist/date/calendar.js +156 -0
  1329. package/.output/server/node_modules/reka-ui/dist/date/comparators.js +194 -0
  1330. package/.output/server/node_modules/reka-ui/dist/date/index.js +0 -0
  1331. package/.output/server/node_modules/reka-ui/dist/date/parser.js +135 -0
  1332. package/.output/server/node_modules/reka-ui/dist/date/parts.js +27 -0
  1333. package/.output/server/node_modules/reka-ui/dist/date/placeholders.js +493 -0
  1334. package/.output/server/node_modules/reka-ui/dist/date/segment.js +41 -0
  1335. package/.output/server/node_modules/reka-ui/dist/date/useDateField.js +720 -0
  1336. package/.output/server/node_modules/reka-ui/dist/date/utils.js +85 -0
  1337. package/.output/server/node_modules/reka-ui/dist/index.js +466 -0
  1338. package/.output/server/node_modules/reka-ui/dist/index2.js +0 -0
  1339. package/.output/server/node_modules/reka-ui/dist/shared/arrays.js +42 -0
  1340. package/.output/server/node_modules/reka-ui/dist/shared/browser.js +6 -0
  1341. package/.output/server/node_modules/reka-ui/dist/shared/clamp.js +66 -0
  1342. package/.output/server/node_modules/reka-ui/dist/shared/createContext.js +35 -0
  1343. package/.output/server/node_modules/reka-ui/dist/shared/getActiveElement.js +11 -0
  1344. package/.output/server/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js +15 -0
  1345. package/.output/server/node_modules/reka-ui/dist/shared/isValueEqualOrExist.js +22 -0
  1346. package/.output/server/node_modules/reka-ui/dist/shared/nullish.js +8 -0
  1347. package/.output/server/node_modules/reka-ui/dist/shared/renderSlotFragments.js +14 -0
  1348. package/.output/server/node_modules/reka-ui/dist/shared/useArrowNavigation.js +64 -0
  1349. package/.output/server/node_modules/reka-ui/dist/shared/useBodyScrollLock.js +95 -0
  1350. package/.output/server/node_modules/reka-ui/dist/shared/useDateFormatter.js +140 -0
  1351. package/.output/server/node_modules/reka-ui/dist/shared/useDirection.js +17 -0
  1352. package/.output/server/node_modules/reka-ui/dist/shared/useEmitAsProps.js +26 -0
  1353. package/.output/server/node_modules/reka-ui/dist/shared/useFilter.js +58 -0
  1354. package/.output/server/node_modules/reka-ui/dist/shared/useFocusGuards.js +37 -0
  1355. package/.output/server/node_modules/reka-ui/dist/shared/useFormControl.js +11 -0
  1356. package/.output/server/node_modules/reka-ui/dist/shared/useForwardExpose.js +57 -0
  1357. package/.output/server/node_modules/reka-ui/dist/shared/useForwardProps.js +37 -0
  1358. package/.output/server/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js +29 -0
  1359. package/.output/server/node_modules/reka-ui/dist/shared/useGraceArea.js +200 -0
  1360. package/.output/server/node_modules/reka-ui/dist/shared/useHideOthers.js +26 -0
  1361. package/.output/server/node_modules/reka-ui/dist/shared/useId.js +24 -0
  1362. package/.output/server/node_modules/reka-ui/dist/shared/useIsUsingKeyboard.js +27 -0
  1363. package/.output/server/node_modules/reka-ui/dist/shared/useKbd.js +43 -0
  1364. package/.output/server/node_modules/reka-ui/dist/shared/useLocale.js +17 -0
  1365. package/.output/server/node_modules/reka-ui/dist/shared/useNonce.js +12 -0
  1366. package/.output/server/node_modules/reka-ui/dist/shared/useSelectionBehavior.js +53 -0
  1367. package/.output/server/node_modules/reka-ui/dist/shared/useSingleOrMultipleValue.js +63 -0
  1368. package/.output/server/node_modules/reka-ui/dist/shared/useSize.js +48 -0
  1369. package/.output/server/node_modules/reka-ui/dist/shared/useStateMachine.js +32 -0
  1370. package/.output/server/node_modules/reka-ui/dist/shared/useTypeahead.js +70 -0
  1371. package/.output/server/node_modules/reka-ui/dist/shared/withDefault.js +25 -0
  1372. package/.output/server/node_modules/reka-ui/dist/utils/assert.js +11 -0
  1373. package/.output/server/node_modules/reka-ui/dist/utils/calculate.js +113 -0
  1374. package/.output/server/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +25 -0
  1375. package/.output/server/node_modules/reka-ui/dist/utils/compare.js +17 -0
  1376. package/.output/server/node_modules/reka-ui/dist/utils/constants.js +6 -0
  1377. package/.output/server/node_modules/reka-ui/dist/utils/debounce.js +15 -0
  1378. package/.output/server/node_modules/reka-ui/dist/utils/dom.js +38 -0
  1379. package/.output/server/node_modules/reka-ui/dist/utils/events.js +36 -0
  1380. package/.output/server/node_modules/reka-ui/dist/utils/layout.js +137 -0
  1381. package/.output/server/node_modules/reka-ui/dist/utils/pivot.js +11 -0
  1382. package/.output/server/node_modules/reka-ui/dist/utils/rects.js +9 -0
  1383. package/.output/server/node_modules/reka-ui/dist/utils/registry.js +183 -0
  1384. package/.output/server/node_modules/reka-ui/dist/utils/resizePanel.js +22 -0
  1385. package/.output/server/node_modules/reka-ui/dist/utils/stackingOrder.js +94 -0
  1386. package/.output/server/node_modules/reka-ui/dist/utils/storage.js +61 -0
  1387. package/.output/server/node_modules/reka-ui/dist/utils/style.js +62 -0
  1388. package/.output/server/node_modules/reka-ui/dist/utils/validation.js +53 -0
  1389. package/.output/server/node_modules/reka-ui/package.json +121 -0
  1390. package/.output/server/node_modules/shiki/dist/bundle-full.mjs +27 -0
  1391. package/.output/server/node_modules/shiki/dist/bundle-web.mjs +366 -0
  1392. package/.output/server/node_modules/shiki/dist/index.mjs +6 -0
  1393. package/.output/server/node_modules/shiki/dist/langs.mjs +1412 -0
  1394. package/.output/server/node_modules/shiki/dist/themes.mjs +389 -0
  1395. package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
  1396. package/.output/server/node_modules/shiki/package.json +70 -0
  1397. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  1398. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  1399. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  1400. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  1401. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  1402. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  1403. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  1404. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  1405. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  1406. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  1407. package/.output/server/node_modules/source-map-js/package.json +71 -0
  1408. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  1409. package/.output/server/node_modules/space-separated-tokens/index.js +24 -0
  1410. package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
  1411. package/.output/server/node_modules/stringify-entities/index.js +6 -0
  1412. package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
  1413. package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
  1414. package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
  1415. package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
  1416. package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
  1417. package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
  1418. package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
  1419. package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
  1420. package/.output/server/node_modules/stringify-entities/package.json +86 -0
  1421. package/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3282 -0
  1422. package/.output/server/node_modules/tailwind-merge/package.json +93 -0
  1423. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  1424. package/.output/server/node_modules/ufo/package.json +48 -0
  1425. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  1426. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  1427. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  1428. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  1429. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  1430. package/.output/server/node_modules/unhead/dist/shared/unhead.B578PsDV.mjs +266 -0
  1431. package/.output/server/node_modules/unhead/dist/shared/unhead.BFfcxOoW.mjs +180 -0
  1432. package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
  1433. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  1434. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
  1435. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  1436. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  1437. package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
  1438. package/.output/server/node_modules/unhead/dist/shared/unhead.eK9_7LaY.mjs +198 -0
  1439. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  1440. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  1441. package/.output/server/node_modules/unhead/package.json +105 -0
  1442. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  1443. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  1444. package/.output/server/node_modules/vue/index.js +7 -0
  1445. package/.output/server/node_modules/vue/index.mjs +1 -0
  1446. package/.output/server/node_modules/vue/package.json +112 -0
  1447. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  1448. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  1449. package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
  1450. package/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
  1451. package/.output/server/node_modules/vue-demi/package.json +47 -0
  1452. package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
  1453. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
  1454. package/.output/server/node_modules/vue-router/package.json +153 -0
  1455. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  1456. package/.output/server/node_modules/vue-sonner/lib/vue-sonner.js +801 -0
  1457. package/.output/server/node_modules/vue-sonner/package.json +80 -0
  1458. package/.output/server/node_modules/zwitch/index.js +118 -0
  1459. package/.output/server/node_modules/zwitch/package.json +72 -0
  1460. package/.output/server/package.json +78 -0
  1461. package/README.md +1 -2
  1462. package/dist/host/src/index.js +2 -2
  1463. package/dist/host/src/ui.js +62 -22
  1464. package/dist/server/utils/repos.js +2 -2
  1465. package/package.json +17 -15
  1466. package/app/app.vue +0 -14
  1467. package/app/assets/css/main.css +0 -129
  1468. package/app/components/CommandPalette.vue +0 -182
  1469. package/app/components/ShortcutsHelp.vue +0 -85
  1470. package/app/components/git/ChangesMinimap.vue +0 -143
  1471. package/app/components/git/CommitList.vue +0 -224
  1472. package/app/components/git/DiffPanel.vue +0 -402
  1473. package/app/components/git/DiffViewer.vue +0 -803
  1474. package/app/components/layout/RepoSelector.vue +0 -358
  1475. package/app/components/layout/Sidebar.vue +0 -91
  1476. package/app/components/prd/Meta.vue +0 -69
  1477. package/app/components/prd/Viewer.vue +0 -285
  1478. package/app/components/tasks/Board.vue +0 -86
  1479. package/app/components/tasks/Card.vue +0 -108
  1480. package/app/components/tasks/Column.vue +0 -108
  1481. package/app/components/tasks/Detail.vue +0 -291
  1482. package/app/components/ui/badge/Badge.vue +0 -26
  1483. package/app/components/ui/badge/index.ts +0 -26
  1484. package/app/components/ui/button/Button.vue +0 -29
  1485. package/app/components/ui/button/index.ts +0 -38
  1486. package/app/components/ui/card/Card.vue +0 -22
  1487. package/app/components/ui/card/CardAction.vue +0 -17
  1488. package/app/components/ui/card/CardContent.vue +0 -17
  1489. package/app/components/ui/card/CardDescription.vue +0 -17
  1490. package/app/components/ui/card/CardFooter.vue +0 -17
  1491. package/app/components/ui/card/CardHeader.vue +0 -17
  1492. package/app/components/ui/card/CardTitle.vue +0 -17
  1493. package/app/components/ui/card/index.ts +0 -7
  1494. package/app/components/ui/combobox/Combobox.vue +0 -19
  1495. package/app/components/ui/combobox/ComboboxAnchor.vue +0 -23
  1496. package/app/components/ui/combobox/ComboboxEmpty.vue +0 -21
  1497. package/app/components/ui/combobox/ComboboxGroup.vue +0 -27
  1498. package/app/components/ui/combobox/ComboboxInput.vue +0 -42
  1499. package/app/components/ui/combobox/ComboboxItem.vue +0 -24
  1500. package/app/components/ui/combobox/ComboboxItemIndicator.vue +0 -23
  1501. package/app/components/ui/combobox/ComboboxList.vue +0 -33
  1502. package/app/components/ui/combobox/ComboboxSeparator.vue +0 -21
  1503. package/app/components/ui/combobox/ComboboxTrigger.vue +0 -24
  1504. package/app/components/ui/combobox/ComboboxViewport.vue +0 -23
  1505. package/app/components/ui/combobox/index.ts +0 -13
  1506. package/app/components/ui/command/Command.vue +0 -103
  1507. package/app/components/ui/command/CommandDialog.vue +0 -33
  1508. package/app/components/ui/command/CommandEmpty.vue +0 -27
  1509. package/app/components/ui/command/CommandGroup.vue +0 -45
  1510. package/app/components/ui/command/CommandInput.vue +0 -54
  1511. package/app/components/ui/command/CommandItem.vue +0 -76
  1512. package/app/components/ui/command/CommandList.vue +0 -25
  1513. package/app/components/ui/command/CommandSeparator.vue +0 -21
  1514. package/app/components/ui/command/CommandShortcut.vue +0 -17
  1515. package/app/components/ui/command/index.ts +0 -25
  1516. package/app/components/ui/dialog/Dialog.vue +0 -19
  1517. package/app/components/ui/dialog/DialogClose.vue +0 -15
  1518. package/app/components/ui/dialog/DialogContent.vue +0 -53
  1519. package/app/components/ui/dialog/DialogDescription.vue +0 -23
  1520. package/app/components/ui/dialog/DialogFooter.vue +0 -15
  1521. package/app/components/ui/dialog/DialogHeader.vue +0 -17
  1522. package/app/components/ui/dialog/DialogOverlay.vue +0 -21
  1523. package/app/components/ui/dialog/DialogScrollContent.vue +0 -59
  1524. package/app/components/ui/dialog/DialogTitle.vue +0 -23
  1525. package/app/components/ui/dialog/DialogTrigger.vue +0 -15
  1526. package/app/components/ui/dialog/index.ts +0 -10
  1527. package/app/components/ui/input/Input.vue +0 -33
  1528. package/app/components/ui/input/index.ts +0 -1
  1529. package/app/components/ui/scroll-area/ScrollArea.vue +0 -33
  1530. package/app/components/ui/scroll-area/ScrollBar.vue +0 -32
  1531. package/app/components/ui/scroll-area/index.ts +0 -2
  1532. package/app/components/ui/separator/Separator.vue +0 -29
  1533. package/app/components/ui/separator/index.ts +0 -1
  1534. package/app/components/ui/sheet/Sheet.vue +0 -19
  1535. package/app/components/ui/sheet/SheetClose.vue +0 -15
  1536. package/app/components/ui/sheet/SheetContent.vue +0 -62
  1537. package/app/components/ui/sheet/SheetDescription.vue +0 -21
  1538. package/app/components/ui/sheet/SheetFooter.vue +0 -16
  1539. package/app/components/ui/sheet/SheetHeader.vue +0 -15
  1540. package/app/components/ui/sheet/SheetOverlay.vue +0 -21
  1541. package/app/components/ui/sheet/SheetTitle.vue +0 -21
  1542. package/app/components/ui/sheet/SheetTrigger.vue +0 -15
  1543. package/app/components/ui/sheet/index.ts +0 -8
  1544. package/app/components/ui/tabs/Tabs.vue +0 -24
  1545. package/app/components/ui/tabs/TabsContent.vue +0 -21
  1546. package/app/components/ui/tabs/TabsList.vue +0 -24
  1547. package/app/components/ui/tabs/TabsTrigger.vue +0 -26
  1548. package/app/components/ui/tabs/index.ts +0 -4
  1549. package/app/components/ui/tooltip/Tooltip.vue +0 -19
  1550. package/app/components/ui/tooltip/TooltipContent.vue +0 -34
  1551. package/app/components/ui/tooltip/TooltipProvider.vue +0 -14
  1552. package/app/components/ui/tooltip/TooltipTrigger.vue +0 -15
  1553. package/app/components/ui/tooltip/index.ts +0 -4
  1554. package/app/composables/useFileWatch.ts +0 -78
  1555. package/app/composables/useGit.ts +0 -180
  1556. package/app/composables/useKeyboard.ts +0 -180
  1557. package/app/composables/usePrd.ts +0 -86
  1558. package/app/composables/useRepos.ts +0 -108
  1559. package/app/composables/useThemeMode.ts +0 -38
  1560. package/app/composables/useToast.ts +0 -31
  1561. package/app/layouts/default.vue +0 -197
  1562. package/app/lib/utils.ts +0 -7
  1563. package/app/pages/[repo]/[prd].vue +0 -263
  1564. package/app/pages/index.vue +0 -257
  1565. package/app/types/git.ts +0 -81
  1566. package/app/types/index.ts +0 -29
  1567. package/app/types/prd.ts +0 -49
  1568. package/app/types/repo.ts +0 -37
  1569. package/app/types/task.ts +0 -134
  1570. package/components.json +0 -21
  1571. package/nuxt.config.ts +0 -34
  1572. package/server/api/browse.get.ts +0 -52
  1573. package/server/api/repos/[repoId]/git/commits.get.ts +0 -103
  1574. package/server/api/repos/[repoId]/git/diff.get.ts +0 -77
  1575. package/server/api/repos/[repoId]/git/file-content.get.ts +0 -66
  1576. package/server/api/repos/[repoId]/git/file-diff.get.ts +0 -109
  1577. package/server/api/repos/[repoId]/prd/[prdSlug]/progress.get.ts +0 -36
  1578. package/server/api/repos/[repoId]/prd/[prdSlug]/tasks/[taskId]/commits.get.ts +0 -146
  1579. package/server/api/repos/[repoId]/prd/[prdSlug]/tasks.get.ts +0 -36
  1580. package/server/api/repos/[repoId]/prd/[prdSlug].get.ts +0 -97
  1581. package/server/api/repos/[repoId]/prds.get.ts +0 -85
  1582. package/server/api/repos/[repoId]/refresh-git-repos.post.ts +0 -42
  1583. package/server/api/repos/[repoId].delete.ts +0 -27
  1584. package/server/api/repos/index.get.ts +0 -5
  1585. package/server/api/repos/index.post.ts +0 -39
  1586. package/server/api/watch.get.ts +0 -63
  1587. package/server/plugins/migrate-legacy-state.ts +0 -19
  1588. package/server/tsconfig.json +0 -3
  1589. package/server/utils/db.ts +0 -169
  1590. package/server/utils/git.ts +0 -478
  1591. package/server/utils/prd-state.ts +0 -335
  1592. package/server/utils/repos.ts +0 -322
  1593. package/server/utils/watcher.ts +0 -179
  1594. package/tsconfig.json +0 -4
  1595. /package/{public → .output/public}/favicon.ico +0 -0
  1596. /package/{public → .output/public}/robots.txt +0 -0
@@ -0,0 +1,3216 @@
1
+ // src/utils.ts
2
+ function clone(something) {
3
+ return doClone(something);
4
+ }
5
+ function doClone(something) {
6
+ if (Array.isArray(something)) {
7
+ return cloneArray(something);
8
+ }
9
+ if (something instanceof RegExp) {
10
+ return something;
11
+ }
12
+ if (typeof something === "object") {
13
+ return cloneObj(something);
14
+ }
15
+ return something;
16
+ }
17
+ function cloneArray(arr) {
18
+ let r = [];
19
+ for (let i = 0, len = arr.length; i < len; i++) {
20
+ r[i] = doClone(arr[i]);
21
+ }
22
+ return r;
23
+ }
24
+ function cloneObj(obj) {
25
+ let r = {};
26
+ for (let key in obj) {
27
+ r[key] = doClone(obj[key]);
28
+ }
29
+ return r;
30
+ }
31
+ function mergeObjects(target, ...sources) {
32
+ sources.forEach((source) => {
33
+ for (let key in source) {
34
+ target[key] = source[key];
35
+ }
36
+ });
37
+ return target;
38
+ }
39
+ function basename(path) {
40
+ const idx = ~path.lastIndexOf("/") || ~path.lastIndexOf("\\");
41
+ if (idx === 0) {
42
+ return path;
43
+ } else if (~idx === path.length - 1) {
44
+ return basename(path.substring(0, path.length - 1));
45
+ } else {
46
+ return path.substr(~idx + 1);
47
+ }
48
+ }
49
+ var CAPTURING_REGEX_SOURCE = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;
50
+ var RegexSource = class {
51
+ static hasCaptures(regexSource) {
52
+ if (regexSource === null) {
53
+ return false;
54
+ }
55
+ CAPTURING_REGEX_SOURCE.lastIndex = 0;
56
+ return CAPTURING_REGEX_SOURCE.test(regexSource);
57
+ }
58
+ static replaceCaptures(regexSource, captureSource, captureIndices) {
59
+ return regexSource.replace(CAPTURING_REGEX_SOURCE, (match, index, commandIndex, command) => {
60
+ let capture = captureIndices[parseInt(index || commandIndex, 10)];
61
+ if (capture) {
62
+ let result = captureSource.substring(capture.start, capture.end);
63
+ while (result[0] === ".") {
64
+ result = result.substring(1);
65
+ }
66
+ switch (command) {
67
+ case "downcase":
68
+ return result.toLowerCase();
69
+ case "upcase":
70
+ return result.toUpperCase();
71
+ default:
72
+ return result;
73
+ }
74
+ } else {
75
+ return match;
76
+ }
77
+ });
78
+ }
79
+ };
80
+ function strcmp(a, b) {
81
+ if (a < b) {
82
+ return -1;
83
+ }
84
+ if (a > b) {
85
+ return 1;
86
+ }
87
+ return 0;
88
+ }
89
+ function strArrCmp(a, b) {
90
+ if (a === null && b === null) {
91
+ return 0;
92
+ }
93
+ if (!a) {
94
+ return -1;
95
+ }
96
+ if (!b) {
97
+ return 1;
98
+ }
99
+ let len1 = a.length;
100
+ let len2 = b.length;
101
+ if (len1 === len2) {
102
+ for (let i = 0; i < len1; i++) {
103
+ let res = strcmp(a[i], b[i]);
104
+ if (res !== 0) {
105
+ return res;
106
+ }
107
+ }
108
+ return 0;
109
+ }
110
+ return len1 - len2;
111
+ }
112
+ function isValidHexColor(hex) {
113
+ if (/^#[0-9a-f]{6}$/i.test(hex)) {
114
+ return true;
115
+ }
116
+ if (/^#[0-9a-f]{8}$/i.test(hex)) {
117
+ return true;
118
+ }
119
+ if (/^#[0-9a-f]{3}$/i.test(hex)) {
120
+ return true;
121
+ }
122
+ if (/^#[0-9a-f]{4}$/i.test(hex)) {
123
+ return true;
124
+ }
125
+ return false;
126
+ }
127
+ function escapeRegExpCharacters(value) {
128
+ return value.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
129
+ }
130
+ var CachedFn = class {
131
+ constructor(fn) {
132
+ this.fn = fn;
133
+ }
134
+ cache = /* @__PURE__ */ new Map();
135
+ get(key) {
136
+ if (this.cache.has(key)) {
137
+ return this.cache.get(key);
138
+ }
139
+ const value = this.fn(key);
140
+ this.cache.set(key, value);
141
+ return value;
142
+ }
143
+ };
144
+
145
+ // src/theme.ts
146
+ var Theme = class {
147
+ constructor(_colorMap, _defaults, _root) {
148
+ this._colorMap = _colorMap;
149
+ this._defaults = _defaults;
150
+ this._root = _root;
151
+ }
152
+ static createFromRawTheme(source, colorMap) {
153
+ return this.createFromParsedTheme(parseTheme(source), colorMap);
154
+ }
155
+ static createFromParsedTheme(source, colorMap) {
156
+ return resolveParsedThemeRules(source, colorMap);
157
+ }
158
+ _cachedMatchRoot = new CachedFn(
159
+ (scopeName) => this._root.match(scopeName)
160
+ );
161
+ getColorMap() {
162
+ return this._colorMap.getColorMap();
163
+ }
164
+ getDefaults() {
165
+ return this._defaults;
166
+ }
167
+ match(scopePath) {
168
+ if (scopePath === null) {
169
+ return this._defaults;
170
+ }
171
+ const scopeName = scopePath.scopeName;
172
+ const matchingTrieElements = this._cachedMatchRoot.get(scopeName);
173
+ const effectiveRule = matchingTrieElements.find(
174
+ (v) => _scopePathMatchesParentScopes(scopePath.parent, v.parentScopes)
175
+ );
176
+ if (!effectiveRule) {
177
+ return null;
178
+ }
179
+ return new StyleAttributes(
180
+ effectiveRule.fontStyle,
181
+ effectiveRule.foreground,
182
+ effectiveRule.background
183
+ );
184
+ }
185
+ };
186
+ var ScopeStack = class _ScopeStack {
187
+ constructor(parent, scopeName) {
188
+ this.parent = parent;
189
+ this.scopeName = scopeName;
190
+ }
191
+ static push(path, scopeNames) {
192
+ for (const name of scopeNames) {
193
+ path = new _ScopeStack(path, name);
194
+ }
195
+ return path;
196
+ }
197
+ static from(...segments) {
198
+ let result = null;
199
+ for (let i = 0; i < segments.length; i++) {
200
+ result = new _ScopeStack(result, segments[i]);
201
+ }
202
+ return result;
203
+ }
204
+ push(scopeName) {
205
+ return new _ScopeStack(this, scopeName);
206
+ }
207
+ getSegments() {
208
+ let item = this;
209
+ const result = [];
210
+ while (item) {
211
+ result.push(item.scopeName);
212
+ item = item.parent;
213
+ }
214
+ result.reverse();
215
+ return result;
216
+ }
217
+ toString() {
218
+ return this.getSegments().join(" ");
219
+ }
220
+ extends(other) {
221
+ if (this === other) {
222
+ return true;
223
+ }
224
+ if (this.parent === null) {
225
+ return false;
226
+ }
227
+ return this.parent.extends(other);
228
+ }
229
+ getExtensionIfDefined(base) {
230
+ const result = [];
231
+ let item = this;
232
+ while (item && item !== base) {
233
+ result.push(item.scopeName);
234
+ item = item.parent;
235
+ }
236
+ return item === base ? result.reverse() : void 0;
237
+ }
238
+ };
239
+ function _scopePathMatchesParentScopes(scopePath, parentScopes) {
240
+ if (parentScopes.length === 0) {
241
+ return true;
242
+ }
243
+ for (let index = 0; index < parentScopes.length; index++) {
244
+ let scopePattern = parentScopes[index];
245
+ let scopeMustMatch = false;
246
+ if (scopePattern === ">") {
247
+ if (index === parentScopes.length - 1) {
248
+ return false;
249
+ }
250
+ scopePattern = parentScopes[++index];
251
+ scopeMustMatch = true;
252
+ }
253
+ while (scopePath) {
254
+ if (_matchesScope(scopePath.scopeName, scopePattern)) {
255
+ break;
256
+ }
257
+ if (scopeMustMatch) {
258
+ return false;
259
+ }
260
+ scopePath = scopePath.parent;
261
+ }
262
+ if (!scopePath) {
263
+ return false;
264
+ }
265
+ scopePath = scopePath.parent;
266
+ }
267
+ return true;
268
+ }
269
+ function _matchesScope(scopeName, scopePattern) {
270
+ return scopePattern === scopeName || scopeName.startsWith(scopePattern) && scopeName[scopePattern.length] === ".";
271
+ }
272
+ var StyleAttributes = class {
273
+ constructor(fontStyle, foregroundId, backgroundId) {
274
+ this.fontStyle = fontStyle;
275
+ this.foregroundId = foregroundId;
276
+ this.backgroundId = backgroundId;
277
+ }
278
+ };
279
+ function parseTheme(source) {
280
+ if (!source) {
281
+ return [];
282
+ }
283
+ if (!source.settings || !Array.isArray(source.settings)) {
284
+ return [];
285
+ }
286
+ let settings = source.settings;
287
+ let result = [], resultLen = 0;
288
+ for (let i = 0, len = settings.length; i < len; i++) {
289
+ let entry = settings[i];
290
+ if (!entry.settings) {
291
+ continue;
292
+ }
293
+ let scopes;
294
+ if (typeof entry.scope === "string") {
295
+ let _scope = entry.scope;
296
+ _scope = _scope.replace(/^[,]+/, "");
297
+ _scope = _scope.replace(/[,]+$/, "");
298
+ scopes = _scope.split(",");
299
+ } else if (Array.isArray(entry.scope)) {
300
+ scopes = entry.scope;
301
+ } else {
302
+ scopes = [""];
303
+ }
304
+ let fontStyle = -1 /* NotSet */;
305
+ if (typeof entry.settings.fontStyle === "string") {
306
+ fontStyle = 0 /* None */;
307
+ let segments = entry.settings.fontStyle.split(" ");
308
+ for (let j = 0, lenJ = segments.length; j < lenJ; j++) {
309
+ let segment = segments[j];
310
+ switch (segment) {
311
+ case "italic":
312
+ fontStyle = fontStyle | 1 /* Italic */;
313
+ break;
314
+ case "bold":
315
+ fontStyle = fontStyle | 2 /* Bold */;
316
+ break;
317
+ case "underline":
318
+ fontStyle = fontStyle | 4 /* Underline */;
319
+ break;
320
+ case "strikethrough":
321
+ fontStyle = fontStyle | 8 /* Strikethrough */;
322
+ break;
323
+ }
324
+ }
325
+ }
326
+ let foreground = null;
327
+ if (typeof entry.settings.foreground === "string" && isValidHexColor(entry.settings.foreground)) {
328
+ foreground = entry.settings.foreground;
329
+ }
330
+ let background = null;
331
+ if (typeof entry.settings.background === "string" && isValidHexColor(entry.settings.background)) {
332
+ background = entry.settings.background;
333
+ }
334
+ for (let j = 0, lenJ = scopes.length; j < lenJ; j++) {
335
+ let _scope = scopes[j].trim();
336
+ let segments = _scope.split(" ");
337
+ let scope = segments[segments.length - 1];
338
+ let parentScopes = null;
339
+ if (segments.length > 1) {
340
+ parentScopes = segments.slice(0, segments.length - 1);
341
+ parentScopes.reverse();
342
+ }
343
+ result[resultLen++] = new ParsedThemeRule(
344
+ scope,
345
+ parentScopes,
346
+ i,
347
+ fontStyle,
348
+ foreground,
349
+ background
350
+ );
351
+ }
352
+ }
353
+ return result;
354
+ }
355
+ var ParsedThemeRule = class {
356
+ constructor(scope, parentScopes, index, fontStyle, foreground, background) {
357
+ this.scope = scope;
358
+ this.parentScopes = parentScopes;
359
+ this.index = index;
360
+ this.fontStyle = fontStyle;
361
+ this.foreground = foreground;
362
+ this.background = background;
363
+ }
364
+ };
365
+ var FontStyle = /* @__PURE__ */ ((FontStyle2) => {
366
+ FontStyle2[FontStyle2["NotSet"] = -1] = "NotSet";
367
+ FontStyle2[FontStyle2["None"] = 0] = "None";
368
+ FontStyle2[FontStyle2["Italic"] = 1] = "Italic";
369
+ FontStyle2[FontStyle2["Bold"] = 2] = "Bold";
370
+ FontStyle2[FontStyle2["Underline"] = 4] = "Underline";
371
+ FontStyle2[FontStyle2["Strikethrough"] = 8] = "Strikethrough";
372
+ return FontStyle2;
373
+ })(FontStyle || {});
374
+ function resolveParsedThemeRules(parsedThemeRules, _colorMap) {
375
+ parsedThemeRules.sort((a, b) => {
376
+ let r = strcmp(a.scope, b.scope);
377
+ if (r !== 0) {
378
+ return r;
379
+ }
380
+ r = strArrCmp(a.parentScopes, b.parentScopes);
381
+ if (r !== 0) {
382
+ return r;
383
+ }
384
+ return a.index - b.index;
385
+ });
386
+ let defaultFontStyle = 0 /* None */;
387
+ let defaultForeground = "#000000";
388
+ let defaultBackground = "#ffffff";
389
+ while (parsedThemeRules.length >= 1 && parsedThemeRules[0].scope === "") {
390
+ let incomingDefaults = parsedThemeRules.shift();
391
+ if (incomingDefaults.fontStyle !== -1 /* NotSet */) {
392
+ defaultFontStyle = incomingDefaults.fontStyle;
393
+ }
394
+ if (incomingDefaults.foreground !== null) {
395
+ defaultForeground = incomingDefaults.foreground;
396
+ }
397
+ if (incomingDefaults.background !== null) {
398
+ defaultBackground = incomingDefaults.background;
399
+ }
400
+ }
401
+ let colorMap = new ColorMap(_colorMap);
402
+ let defaults = new StyleAttributes(defaultFontStyle, colorMap.getId(defaultForeground), colorMap.getId(defaultBackground));
403
+ let root = new ThemeTrieElement(new ThemeTrieElementRule(0, null, -1 /* NotSet */, 0, 0), []);
404
+ for (let i = 0, len = parsedThemeRules.length; i < len; i++) {
405
+ let rule = parsedThemeRules[i];
406
+ root.insert(0, rule.scope, rule.parentScopes, rule.fontStyle, colorMap.getId(rule.foreground), colorMap.getId(rule.background));
407
+ }
408
+ return new Theme(colorMap, defaults, root);
409
+ }
410
+ var ColorMap = class {
411
+ _isFrozen;
412
+ _lastColorId;
413
+ _id2color;
414
+ _color2id;
415
+ constructor(_colorMap) {
416
+ this._lastColorId = 0;
417
+ this._id2color = [];
418
+ this._color2id = /* @__PURE__ */ Object.create(null);
419
+ if (Array.isArray(_colorMap)) {
420
+ this._isFrozen = true;
421
+ for (let i = 0, len = _colorMap.length; i < len; i++) {
422
+ this._color2id[_colorMap[i]] = i;
423
+ this._id2color[i] = _colorMap[i];
424
+ }
425
+ } else {
426
+ this._isFrozen = false;
427
+ }
428
+ }
429
+ getId(color) {
430
+ if (color === null) {
431
+ return 0;
432
+ }
433
+ color = color.toUpperCase();
434
+ let value = this._color2id[color];
435
+ if (value) {
436
+ return value;
437
+ }
438
+ if (this._isFrozen) {
439
+ throw new Error(`Missing color in color map - ${color}`);
440
+ }
441
+ value = ++this._lastColorId;
442
+ this._color2id[color] = value;
443
+ this._id2color[value] = color;
444
+ return value;
445
+ }
446
+ getColorMap() {
447
+ return this._id2color.slice(0);
448
+ }
449
+ };
450
+ var emptyParentScopes = Object.freeze([]);
451
+ var ThemeTrieElementRule = class _ThemeTrieElementRule {
452
+ scopeDepth;
453
+ parentScopes;
454
+ fontStyle;
455
+ foreground;
456
+ background;
457
+ constructor(scopeDepth, parentScopes, fontStyle, foreground, background) {
458
+ this.scopeDepth = scopeDepth;
459
+ this.parentScopes = parentScopes || emptyParentScopes;
460
+ this.fontStyle = fontStyle;
461
+ this.foreground = foreground;
462
+ this.background = background;
463
+ }
464
+ clone() {
465
+ return new _ThemeTrieElementRule(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
466
+ }
467
+ static cloneArr(arr) {
468
+ let r = [];
469
+ for (let i = 0, len = arr.length; i < len; i++) {
470
+ r[i] = arr[i].clone();
471
+ }
472
+ return r;
473
+ }
474
+ acceptOverwrite(scopeDepth, fontStyle, foreground, background) {
475
+ if (this.scopeDepth > scopeDepth) {
476
+ console.log("how did this happen?");
477
+ } else {
478
+ this.scopeDepth = scopeDepth;
479
+ }
480
+ if (fontStyle !== -1 /* NotSet */) {
481
+ this.fontStyle = fontStyle;
482
+ }
483
+ if (foreground !== 0) {
484
+ this.foreground = foreground;
485
+ }
486
+ if (background !== 0) {
487
+ this.background = background;
488
+ }
489
+ }
490
+ };
491
+ var ThemeTrieElement = class _ThemeTrieElement {
492
+ constructor(_mainRule, rulesWithParentScopes = [], _children = {}) {
493
+ this._mainRule = _mainRule;
494
+ this._children = _children;
495
+ this._rulesWithParentScopes = rulesWithParentScopes;
496
+ }
497
+ _rulesWithParentScopes;
498
+ static _cmpBySpecificity(a, b) {
499
+ if (a.scopeDepth !== b.scopeDepth) {
500
+ return b.scopeDepth - a.scopeDepth;
501
+ }
502
+ let aParentIndex = 0;
503
+ let bParentIndex = 0;
504
+ while (true) {
505
+ if (a.parentScopes[aParentIndex] === ">") {
506
+ aParentIndex++;
507
+ }
508
+ if (b.parentScopes[bParentIndex] === ">") {
509
+ bParentIndex++;
510
+ }
511
+ if (aParentIndex >= a.parentScopes.length || bParentIndex >= b.parentScopes.length) {
512
+ break;
513
+ }
514
+ const parentScopeLengthDiff = b.parentScopes[bParentIndex].length - a.parentScopes[aParentIndex].length;
515
+ if (parentScopeLengthDiff !== 0) {
516
+ return parentScopeLengthDiff;
517
+ }
518
+ aParentIndex++;
519
+ bParentIndex++;
520
+ }
521
+ return b.parentScopes.length - a.parentScopes.length;
522
+ }
523
+ match(scope) {
524
+ if (scope !== "") {
525
+ let dotIndex = scope.indexOf(".");
526
+ let head;
527
+ let tail;
528
+ if (dotIndex === -1) {
529
+ head = scope;
530
+ tail = "";
531
+ } else {
532
+ head = scope.substring(0, dotIndex);
533
+ tail = scope.substring(dotIndex + 1);
534
+ }
535
+ if (this._children.hasOwnProperty(head)) {
536
+ return this._children[head].match(tail);
537
+ }
538
+ }
539
+ const rules = this._rulesWithParentScopes.concat(this._mainRule);
540
+ rules.sort(_ThemeTrieElement._cmpBySpecificity);
541
+ return rules;
542
+ }
543
+ insert(scopeDepth, scope, parentScopes, fontStyle, foreground, background) {
544
+ if (scope === "") {
545
+ this._doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background);
546
+ return;
547
+ }
548
+ let dotIndex = scope.indexOf(".");
549
+ let head;
550
+ let tail;
551
+ if (dotIndex === -1) {
552
+ head = scope;
553
+ tail = "";
554
+ } else {
555
+ head = scope.substring(0, dotIndex);
556
+ tail = scope.substring(dotIndex + 1);
557
+ }
558
+ let child;
559
+ if (this._children.hasOwnProperty(head)) {
560
+ child = this._children[head];
561
+ } else {
562
+ child = new _ThemeTrieElement(this._mainRule.clone(), ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes));
563
+ this._children[head] = child;
564
+ }
565
+ child.insert(scopeDepth + 1, tail, parentScopes, fontStyle, foreground, background);
566
+ }
567
+ _doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background) {
568
+ if (parentScopes === null) {
569
+ this._mainRule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
570
+ return;
571
+ }
572
+ for (let i = 0, len = this._rulesWithParentScopes.length; i < len; i++) {
573
+ let rule = this._rulesWithParentScopes[i];
574
+ if (strArrCmp(rule.parentScopes, parentScopes) === 0) {
575
+ rule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
576
+ return;
577
+ }
578
+ }
579
+ if (fontStyle === -1 /* NotSet */) {
580
+ fontStyle = this._mainRule.fontStyle;
581
+ }
582
+ if (foreground === 0) {
583
+ foreground = this._mainRule.foreground;
584
+ }
585
+ if (background === 0) {
586
+ background = this._mainRule.background;
587
+ }
588
+ this._rulesWithParentScopes.push(new ThemeTrieElementRule(scopeDepth, parentScopes, fontStyle, foreground, background));
589
+ }
590
+ };
591
+
592
+ // src/encodedTokenAttributes.ts
593
+ var EncodedTokenMetadata = class _EncodedTokenMetadata {
594
+ static toBinaryStr(encodedTokenAttributes) {
595
+ return encodedTokenAttributes.toString(2).padStart(32, "0");
596
+ }
597
+ static print(encodedTokenAttributes) {
598
+ const languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
599
+ const tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
600
+ const fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
601
+ const foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
602
+ const background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
603
+ console.log({
604
+ languageId,
605
+ tokenType,
606
+ fontStyle,
607
+ foreground,
608
+ background
609
+ });
610
+ }
611
+ static getLanguageId(encodedTokenAttributes) {
612
+ return (encodedTokenAttributes & 255 /* LANGUAGEID_MASK */) >>> 0 /* LANGUAGEID_OFFSET */;
613
+ }
614
+ static getTokenType(encodedTokenAttributes) {
615
+ return (encodedTokenAttributes & 768 /* TOKEN_TYPE_MASK */) >>> 8 /* TOKEN_TYPE_OFFSET */;
616
+ }
617
+ static containsBalancedBrackets(encodedTokenAttributes) {
618
+ return (encodedTokenAttributes & 1024 /* BALANCED_BRACKETS_MASK */) !== 0;
619
+ }
620
+ static getFontStyle(encodedTokenAttributes) {
621
+ return (encodedTokenAttributes & 30720 /* FONT_STYLE_MASK */) >>> 11 /* FONT_STYLE_OFFSET */;
622
+ }
623
+ static getForeground(encodedTokenAttributes) {
624
+ return (encodedTokenAttributes & 16744448 /* FOREGROUND_MASK */) >>> 15 /* FOREGROUND_OFFSET */;
625
+ }
626
+ static getBackground(encodedTokenAttributes) {
627
+ return (encodedTokenAttributes & 4278190080 /* BACKGROUND_MASK */) >>> 24 /* BACKGROUND_OFFSET */;
628
+ }
629
+ /**
630
+ * Updates the fields in `metadata`.
631
+ * A value of `0`, `NotSet` or `null` indicates that the corresponding field should be left as is.
632
+ */
633
+ static set(encodedTokenAttributes, languageId, tokenType, containsBalancedBrackets, fontStyle, foreground, background) {
634
+ let _languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
635
+ let _tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
636
+ let _containsBalancedBracketsBit = _EncodedTokenMetadata.containsBalancedBrackets(encodedTokenAttributes) ? 1 : 0;
637
+ let _fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
638
+ let _foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
639
+ let _background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
640
+ if (languageId !== 0) {
641
+ _languageId = languageId;
642
+ }
643
+ if (tokenType !== 8 /* NotSet */) {
644
+ _tokenType = fromOptionalTokenType(tokenType);
645
+ }
646
+ if (containsBalancedBrackets !== null) {
647
+ _containsBalancedBracketsBit = containsBalancedBrackets ? 1 : 0;
648
+ }
649
+ if (fontStyle !== -1 /* NotSet */) {
650
+ _fontStyle = fontStyle;
651
+ }
652
+ if (foreground !== 0) {
653
+ _foreground = foreground;
654
+ }
655
+ if (background !== 0) {
656
+ _background = background;
657
+ }
658
+ return (_languageId << 0 /* LANGUAGEID_OFFSET */ | _tokenType << 8 /* TOKEN_TYPE_OFFSET */ | _containsBalancedBracketsBit << 10 /* BALANCED_BRACKETS_OFFSET */ | _fontStyle << 11 /* FONT_STYLE_OFFSET */ | _foreground << 15 /* FOREGROUND_OFFSET */ | _background << 24 /* BACKGROUND_OFFSET */) >>> 0;
659
+ }
660
+ };
661
+ function toOptionalTokenType(standardType) {
662
+ return standardType;
663
+ }
664
+ function fromOptionalTokenType(standardType) {
665
+ return standardType;
666
+ }
667
+
668
+ // src/matcher.ts
669
+ function createMatchers(selector, matchesName) {
670
+ const results = [];
671
+ const tokenizer = newTokenizer(selector);
672
+ let token = tokenizer.next();
673
+ while (token !== null) {
674
+ let priority = 0;
675
+ if (token.length === 2 && token.charAt(1) === ":") {
676
+ switch (token.charAt(0)) {
677
+ case "R":
678
+ priority = 1;
679
+ break;
680
+ case "L":
681
+ priority = -1;
682
+ break;
683
+ default:
684
+ console.log(`Unknown priority ${token} in scope selector`);
685
+ }
686
+ token = tokenizer.next();
687
+ }
688
+ let matcher = parseConjunction();
689
+ results.push({ matcher, priority });
690
+ if (token !== ",") {
691
+ break;
692
+ }
693
+ token = tokenizer.next();
694
+ }
695
+ return results;
696
+ function parseOperand() {
697
+ if (token === "-") {
698
+ token = tokenizer.next();
699
+ const expressionToNegate = parseOperand();
700
+ return (matcherInput) => !!expressionToNegate && !expressionToNegate(matcherInput);
701
+ }
702
+ if (token === "(") {
703
+ token = tokenizer.next();
704
+ const expressionInParents = parseInnerExpression();
705
+ if (token === ")") {
706
+ token = tokenizer.next();
707
+ }
708
+ return expressionInParents;
709
+ }
710
+ if (isIdentifier(token)) {
711
+ const identifiers = [];
712
+ do {
713
+ identifiers.push(token);
714
+ token = tokenizer.next();
715
+ } while (isIdentifier(token));
716
+ return (matcherInput) => matchesName(identifiers, matcherInput);
717
+ }
718
+ return null;
719
+ }
720
+ function parseConjunction() {
721
+ const matchers = [];
722
+ let matcher = parseOperand();
723
+ while (matcher) {
724
+ matchers.push(matcher);
725
+ matcher = parseOperand();
726
+ }
727
+ return (matcherInput) => matchers.every((matcher2) => matcher2(matcherInput));
728
+ }
729
+ function parseInnerExpression() {
730
+ const matchers = [];
731
+ let matcher = parseConjunction();
732
+ while (matcher) {
733
+ matchers.push(matcher);
734
+ if (token === "|" || token === ",") {
735
+ do {
736
+ token = tokenizer.next();
737
+ } while (token === "|" || token === ",");
738
+ } else {
739
+ break;
740
+ }
741
+ matcher = parseConjunction();
742
+ }
743
+ return (matcherInput) => matchers.some((matcher2) => matcher2(matcherInput));
744
+ }
745
+ }
746
+ function isIdentifier(token) {
747
+ return !!token && !!token.match(/[\w\.:]+/);
748
+ }
749
+ function newTokenizer(input) {
750
+ let regex = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g;
751
+ let match = regex.exec(input);
752
+ return {
753
+ next: () => {
754
+ if (!match) {
755
+ return null;
756
+ }
757
+ const res = match[0];
758
+ match = regex.exec(input);
759
+ return res;
760
+ }
761
+ };
762
+ }
763
+
764
+ // src/onigLib.ts
765
+ var FindOption = /* @__PURE__ */ ((FindOption2) => {
766
+ FindOption2[FindOption2["None"] = 0] = "None";
767
+ FindOption2[FindOption2["NotBeginString"] = 1] = "NotBeginString";
768
+ FindOption2[FindOption2["NotEndString"] = 2] = "NotEndString";
769
+ FindOption2[FindOption2["NotBeginPosition"] = 4] = "NotBeginPosition";
770
+ FindOption2[FindOption2["DebugCall"] = 8] = "DebugCall";
771
+ return FindOption2;
772
+ })(FindOption || {});
773
+ function disposeOnigString(str) {
774
+ if (typeof str.dispose === "function") {
775
+ str.dispose();
776
+ }
777
+ }
778
+
779
+ // src/grammar/grammarDependencies.ts
780
+ var TopLevelRuleReference = class {
781
+ constructor(scopeName) {
782
+ this.scopeName = scopeName;
783
+ }
784
+ toKey() {
785
+ return this.scopeName;
786
+ }
787
+ };
788
+ var TopLevelRepositoryRuleReference = class {
789
+ constructor(scopeName, ruleName) {
790
+ this.scopeName = scopeName;
791
+ this.ruleName = ruleName;
792
+ }
793
+ toKey() {
794
+ return `${this.scopeName}#${this.ruleName}`;
795
+ }
796
+ };
797
+ var ExternalReferenceCollector = class {
798
+ _references = [];
799
+ _seenReferenceKeys = /* @__PURE__ */ new Set();
800
+ get references() {
801
+ return this._references;
802
+ }
803
+ visitedRule = /* @__PURE__ */ new Set();
804
+ add(reference) {
805
+ const key = reference.toKey();
806
+ if (this._seenReferenceKeys.has(key)) {
807
+ return;
808
+ }
809
+ this._seenReferenceKeys.add(key);
810
+ this._references.push(reference);
811
+ }
812
+ };
813
+ var ScopeDependencyProcessor = class {
814
+ constructor(repo, initialScopeName) {
815
+ this.repo = repo;
816
+ this.initialScopeName = initialScopeName;
817
+ this.seenFullScopeRequests.add(this.initialScopeName);
818
+ this.Q = [new TopLevelRuleReference(this.initialScopeName)];
819
+ }
820
+ seenFullScopeRequests = /* @__PURE__ */ new Set();
821
+ seenPartialScopeRequests = /* @__PURE__ */ new Set();
822
+ Q;
823
+ processQueue() {
824
+ const q = this.Q;
825
+ this.Q = [];
826
+ const deps = new ExternalReferenceCollector();
827
+ for (const dep of q) {
828
+ collectReferencesOfReference(dep, this.initialScopeName, this.repo, deps);
829
+ }
830
+ for (const dep of deps.references) {
831
+ if (dep instanceof TopLevelRuleReference) {
832
+ if (this.seenFullScopeRequests.has(dep.scopeName)) {
833
+ continue;
834
+ }
835
+ this.seenFullScopeRequests.add(dep.scopeName);
836
+ this.Q.push(dep);
837
+ } else {
838
+ if (this.seenFullScopeRequests.has(dep.scopeName)) {
839
+ continue;
840
+ }
841
+ if (this.seenPartialScopeRequests.has(dep.toKey())) {
842
+ continue;
843
+ }
844
+ this.seenPartialScopeRequests.add(dep.toKey());
845
+ this.Q.push(dep);
846
+ }
847
+ }
848
+ }
849
+ };
850
+ function collectReferencesOfReference(reference, baseGrammarScopeName, repo, result) {
851
+ const selfGrammar = repo.lookup(reference.scopeName);
852
+ if (!selfGrammar) {
853
+ if (reference.scopeName === baseGrammarScopeName) {
854
+ throw new Error(`No grammar provided for <${baseGrammarScopeName}>`);
855
+ }
856
+ return;
857
+ }
858
+ const baseGrammar = repo.lookup(baseGrammarScopeName);
859
+ if (reference instanceof TopLevelRuleReference) {
860
+ collectExternalReferencesInTopLevelRule({ baseGrammar, selfGrammar }, result);
861
+ } else {
862
+ collectExternalReferencesInTopLevelRepositoryRule(
863
+ reference.ruleName,
864
+ { baseGrammar, selfGrammar, repository: selfGrammar.repository },
865
+ result
866
+ );
867
+ }
868
+ const injections = repo.injections(reference.scopeName);
869
+ if (injections) {
870
+ for (const injection of injections) {
871
+ result.add(new TopLevelRuleReference(injection));
872
+ }
873
+ }
874
+ }
875
+ function collectExternalReferencesInTopLevelRepositoryRule(ruleName, context, result) {
876
+ if (context.repository && context.repository[ruleName]) {
877
+ const rule = context.repository[ruleName];
878
+ collectExternalReferencesInRules([rule], context, result);
879
+ }
880
+ }
881
+ function collectExternalReferencesInTopLevelRule(context, result) {
882
+ if (context.selfGrammar.patterns && Array.isArray(context.selfGrammar.patterns)) {
883
+ collectExternalReferencesInRules(
884
+ context.selfGrammar.patterns,
885
+ { ...context, repository: context.selfGrammar.repository },
886
+ result
887
+ );
888
+ }
889
+ if (context.selfGrammar.injections) {
890
+ collectExternalReferencesInRules(
891
+ Object.values(context.selfGrammar.injections),
892
+ { ...context, repository: context.selfGrammar.repository },
893
+ result
894
+ );
895
+ }
896
+ }
897
+ function collectExternalReferencesInRules(rules, context, result) {
898
+ for (const rule of rules) {
899
+ if (result.visitedRule.has(rule)) {
900
+ continue;
901
+ }
902
+ result.visitedRule.add(rule);
903
+ const patternRepository = rule.repository ? mergeObjects({}, context.repository, rule.repository) : context.repository;
904
+ if (Array.isArray(rule.patterns)) {
905
+ collectExternalReferencesInRules(rule.patterns, { ...context, repository: patternRepository }, result);
906
+ }
907
+ const include = rule.include;
908
+ if (!include) {
909
+ continue;
910
+ }
911
+ const reference = parseInclude(include);
912
+ switch (reference.kind) {
913
+ case 0 /* Base */:
914
+ collectExternalReferencesInTopLevelRule({ ...context, selfGrammar: context.baseGrammar }, result);
915
+ break;
916
+ case 1 /* Self */:
917
+ collectExternalReferencesInTopLevelRule(context, result);
918
+ break;
919
+ case 2 /* RelativeReference */:
920
+ collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, { ...context, repository: patternRepository }, result);
921
+ break;
922
+ case 3 /* TopLevelReference */:
923
+ case 4 /* TopLevelRepositoryReference */:
924
+ const selfGrammar = reference.scopeName === context.selfGrammar.scopeName ? context.selfGrammar : reference.scopeName === context.baseGrammar.scopeName ? context.baseGrammar : void 0;
925
+ if (selfGrammar) {
926
+ const newContext = { baseGrammar: context.baseGrammar, selfGrammar, repository: patternRepository };
927
+ if (reference.kind === 4 /* TopLevelRepositoryReference */) {
928
+ collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, newContext, result);
929
+ } else {
930
+ collectExternalReferencesInTopLevelRule(newContext, result);
931
+ }
932
+ } else {
933
+ if (reference.kind === 4 /* TopLevelRepositoryReference */) {
934
+ result.add(new TopLevelRepositoryRuleReference(reference.scopeName, reference.ruleName));
935
+ } else {
936
+ result.add(new TopLevelRuleReference(reference.scopeName));
937
+ }
938
+ }
939
+ break;
940
+ }
941
+ }
942
+ }
943
+ var BaseReference = class {
944
+ kind = 0 /* Base */;
945
+ };
946
+ var SelfReference = class {
947
+ kind = 1 /* Self */;
948
+ };
949
+ var RelativeReference = class {
950
+ constructor(ruleName) {
951
+ this.ruleName = ruleName;
952
+ }
953
+ kind = 2 /* RelativeReference */;
954
+ };
955
+ var TopLevelReference = class {
956
+ constructor(scopeName) {
957
+ this.scopeName = scopeName;
958
+ }
959
+ kind = 3 /* TopLevelReference */;
960
+ };
961
+ var TopLevelRepositoryReference = class {
962
+ constructor(scopeName, ruleName) {
963
+ this.scopeName = scopeName;
964
+ this.ruleName = ruleName;
965
+ }
966
+ kind = 4 /* TopLevelRepositoryReference */;
967
+ };
968
+ function parseInclude(include) {
969
+ if (include === "$base") {
970
+ return new BaseReference();
971
+ } else if (include === "$self") {
972
+ return new SelfReference();
973
+ }
974
+ const indexOfSharp = include.indexOf("#");
975
+ if (indexOfSharp === -1) {
976
+ return new TopLevelReference(include);
977
+ } else if (indexOfSharp === 0) {
978
+ return new RelativeReference(include.substring(1));
979
+ } else {
980
+ const scopeName = include.substring(0, indexOfSharp);
981
+ const ruleName = include.substring(indexOfSharp + 1);
982
+ return new TopLevelRepositoryReference(scopeName, ruleName);
983
+ }
984
+ }
985
+
986
+ // src/rule.ts
987
+ var HAS_BACK_REFERENCES = /\\(\d+)/;
988
+ var BACK_REFERENCING_END = /\\(\d+)/g;
989
+ var ruleIdSymbol = Symbol("RuleId");
990
+ var endRuleId = -1;
991
+ var whileRuleId = -2;
992
+ function ruleIdFromNumber(id) {
993
+ return id;
994
+ }
995
+ function ruleIdToNumber(id) {
996
+ return id;
997
+ }
998
+ var Rule = class {
999
+ $location;
1000
+ id;
1001
+ _nameIsCapturing;
1002
+ _name;
1003
+ _contentNameIsCapturing;
1004
+ _contentName;
1005
+ constructor($location, id, name, contentName) {
1006
+ this.$location = $location;
1007
+ this.id = id;
1008
+ this._name = name || null;
1009
+ this._nameIsCapturing = RegexSource.hasCaptures(this._name);
1010
+ this._contentName = contentName || null;
1011
+ this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
1012
+ }
1013
+ get debugName() {
1014
+ const location = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
1015
+ return `${this.constructor.name}#${this.id} @ ${location}`;
1016
+ }
1017
+ getName(lineText, captureIndices) {
1018
+ if (!this._nameIsCapturing || this._name === null || lineText === null || captureIndices === null) {
1019
+ return this._name;
1020
+ }
1021
+ return RegexSource.replaceCaptures(this._name, lineText, captureIndices);
1022
+ }
1023
+ getContentName(lineText, captureIndices) {
1024
+ if (!this._contentNameIsCapturing || this._contentName === null) {
1025
+ return this._contentName;
1026
+ }
1027
+ return RegexSource.replaceCaptures(this._contentName, lineText, captureIndices);
1028
+ }
1029
+ };
1030
+ var CaptureRule = class extends Rule {
1031
+ retokenizeCapturedWithRuleId;
1032
+ constructor($location, id, name, contentName, retokenizeCapturedWithRuleId) {
1033
+ super($location, id, name, contentName);
1034
+ this.retokenizeCapturedWithRuleId = retokenizeCapturedWithRuleId;
1035
+ }
1036
+ dispose() {
1037
+ }
1038
+ collectPatterns(grammar, out) {
1039
+ throw new Error("Not supported!");
1040
+ }
1041
+ compile(grammar, endRegexSource) {
1042
+ throw new Error("Not supported!");
1043
+ }
1044
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1045
+ throw new Error("Not supported!");
1046
+ }
1047
+ };
1048
+ var MatchRule = class extends Rule {
1049
+ _match;
1050
+ captures;
1051
+ _cachedCompiledPatterns;
1052
+ constructor($location, id, name, match, captures) {
1053
+ super($location, id, name, null);
1054
+ this._match = new RegExpSource(match, this.id);
1055
+ this.captures = captures;
1056
+ this._cachedCompiledPatterns = null;
1057
+ }
1058
+ dispose() {
1059
+ if (this._cachedCompiledPatterns) {
1060
+ this._cachedCompiledPatterns.dispose();
1061
+ this._cachedCompiledPatterns = null;
1062
+ }
1063
+ }
1064
+ get debugMatchRegExp() {
1065
+ return `${this._match.source}`;
1066
+ }
1067
+ collectPatterns(grammar, out) {
1068
+ out.push(this._match);
1069
+ }
1070
+ compile(grammar, endRegexSource) {
1071
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1072
+ }
1073
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1074
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1075
+ }
1076
+ _getCachedCompiledPatterns(grammar) {
1077
+ if (!this._cachedCompiledPatterns) {
1078
+ this._cachedCompiledPatterns = new RegExpSourceList();
1079
+ this.collectPatterns(grammar, this._cachedCompiledPatterns);
1080
+ }
1081
+ return this._cachedCompiledPatterns;
1082
+ }
1083
+ };
1084
+ var IncludeOnlyRule = class extends Rule {
1085
+ hasMissingPatterns;
1086
+ patterns;
1087
+ _cachedCompiledPatterns;
1088
+ constructor($location, id, name, contentName, patterns) {
1089
+ super($location, id, name, contentName);
1090
+ this.patterns = patterns.patterns;
1091
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1092
+ this._cachedCompiledPatterns = null;
1093
+ }
1094
+ dispose() {
1095
+ if (this._cachedCompiledPatterns) {
1096
+ this._cachedCompiledPatterns.dispose();
1097
+ this._cachedCompiledPatterns = null;
1098
+ }
1099
+ }
1100
+ collectPatterns(grammar, out) {
1101
+ for (const pattern of this.patterns) {
1102
+ const rule = grammar.getRule(pattern);
1103
+ rule.collectPatterns(grammar, out);
1104
+ }
1105
+ }
1106
+ compile(grammar, endRegexSource) {
1107
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1108
+ }
1109
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1110
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1111
+ }
1112
+ _getCachedCompiledPatterns(grammar) {
1113
+ if (!this._cachedCompiledPatterns) {
1114
+ this._cachedCompiledPatterns = new RegExpSourceList();
1115
+ this.collectPatterns(grammar, this._cachedCompiledPatterns);
1116
+ }
1117
+ return this._cachedCompiledPatterns;
1118
+ }
1119
+ };
1120
+ var BeginEndRule = class extends Rule {
1121
+ _begin;
1122
+ beginCaptures;
1123
+ _end;
1124
+ endHasBackReferences;
1125
+ endCaptures;
1126
+ applyEndPatternLast;
1127
+ hasMissingPatterns;
1128
+ patterns;
1129
+ _cachedCompiledPatterns;
1130
+ constructor($location, id, name, contentName, begin, beginCaptures, end, endCaptures, applyEndPatternLast, patterns) {
1131
+ super($location, id, name, contentName);
1132
+ this._begin = new RegExpSource(begin, this.id);
1133
+ this.beginCaptures = beginCaptures;
1134
+ this._end = new RegExpSource(end ? end : "\uFFFF", -1);
1135
+ this.endHasBackReferences = this._end.hasBackReferences;
1136
+ this.endCaptures = endCaptures;
1137
+ this.applyEndPatternLast = applyEndPatternLast || false;
1138
+ this.patterns = patterns.patterns;
1139
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1140
+ this._cachedCompiledPatterns = null;
1141
+ }
1142
+ dispose() {
1143
+ if (this._cachedCompiledPatterns) {
1144
+ this._cachedCompiledPatterns.dispose();
1145
+ this._cachedCompiledPatterns = null;
1146
+ }
1147
+ }
1148
+ get debugBeginRegExp() {
1149
+ return `${this._begin.source}`;
1150
+ }
1151
+ get debugEndRegExp() {
1152
+ return `${this._end.source}`;
1153
+ }
1154
+ getEndWithResolvedBackReferences(lineText, captureIndices) {
1155
+ return this._end.resolveBackReferences(lineText, captureIndices);
1156
+ }
1157
+ collectPatterns(grammar, out) {
1158
+ out.push(this._begin);
1159
+ }
1160
+ compile(grammar, endRegexSource) {
1161
+ return this._getCachedCompiledPatterns(grammar, endRegexSource).compile(grammar);
1162
+ }
1163
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1164
+ return this._getCachedCompiledPatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
1165
+ }
1166
+ _getCachedCompiledPatterns(grammar, endRegexSource) {
1167
+ if (!this._cachedCompiledPatterns) {
1168
+ this._cachedCompiledPatterns = new RegExpSourceList();
1169
+ for (const pattern of this.patterns) {
1170
+ const rule = grammar.getRule(pattern);
1171
+ rule.collectPatterns(grammar, this._cachedCompiledPatterns);
1172
+ }
1173
+ if (this.applyEndPatternLast) {
1174
+ this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end);
1175
+ } else {
1176
+ this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
1177
+ }
1178
+ }
1179
+ if (this._end.hasBackReferences) {
1180
+ if (this.applyEndPatternLast) {
1181
+ this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, endRegexSource);
1182
+ } else {
1183
+ this._cachedCompiledPatterns.setSource(0, endRegexSource);
1184
+ }
1185
+ }
1186
+ return this._cachedCompiledPatterns;
1187
+ }
1188
+ };
1189
+ var BeginWhileRule = class extends Rule {
1190
+ _begin;
1191
+ beginCaptures;
1192
+ whileCaptures;
1193
+ _while;
1194
+ whileHasBackReferences;
1195
+ hasMissingPatterns;
1196
+ patterns;
1197
+ _cachedCompiledPatterns;
1198
+ _cachedCompiledWhilePatterns;
1199
+ constructor($location, id, name, contentName, begin, beginCaptures, _while, whileCaptures, patterns) {
1200
+ super($location, id, name, contentName);
1201
+ this._begin = new RegExpSource(begin, this.id);
1202
+ this.beginCaptures = beginCaptures;
1203
+ this.whileCaptures = whileCaptures;
1204
+ this._while = new RegExpSource(_while, whileRuleId);
1205
+ this.whileHasBackReferences = this._while.hasBackReferences;
1206
+ this.patterns = patterns.patterns;
1207
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1208
+ this._cachedCompiledPatterns = null;
1209
+ this._cachedCompiledWhilePatterns = null;
1210
+ }
1211
+ dispose() {
1212
+ if (this._cachedCompiledPatterns) {
1213
+ this._cachedCompiledPatterns.dispose();
1214
+ this._cachedCompiledPatterns = null;
1215
+ }
1216
+ if (this._cachedCompiledWhilePatterns) {
1217
+ this._cachedCompiledWhilePatterns.dispose();
1218
+ this._cachedCompiledWhilePatterns = null;
1219
+ }
1220
+ }
1221
+ get debugBeginRegExp() {
1222
+ return `${this._begin.source}`;
1223
+ }
1224
+ get debugWhileRegExp() {
1225
+ return `${this._while.source}`;
1226
+ }
1227
+ getWhileWithResolvedBackReferences(lineText, captureIndices) {
1228
+ return this._while.resolveBackReferences(lineText, captureIndices);
1229
+ }
1230
+ collectPatterns(grammar, out) {
1231
+ out.push(this._begin);
1232
+ }
1233
+ compile(grammar, endRegexSource) {
1234
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1235
+ }
1236
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1237
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1238
+ }
1239
+ _getCachedCompiledPatterns(grammar) {
1240
+ if (!this._cachedCompiledPatterns) {
1241
+ this._cachedCompiledPatterns = new RegExpSourceList();
1242
+ for (const pattern of this.patterns) {
1243
+ const rule = grammar.getRule(pattern);
1244
+ rule.collectPatterns(grammar, this._cachedCompiledPatterns);
1245
+ }
1246
+ }
1247
+ return this._cachedCompiledPatterns;
1248
+ }
1249
+ compileWhile(grammar, endRegexSource) {
1250
+ return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compile(grammar);
1251
+ }
1252
+ compileWhileAG(grammar, endRegexSource, allowA, allowG) {
1253
+ return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
1254
+ }
1255
+ _getCachedCompiledWhilePatterns(grammar, endRegexSource) {
1256
+ if (!this._cachedCompiledWhilePatterns) {
1257
+ this._cachedCompiledWhilePatterns = new RegExpSourceList();
1258
+ this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while);
1259
+ }
1260
+ if (this._while.hasBackReferences) {
1261
+ this._cachedCompiledWhilePatterns.setSource(0, endRegexSource ? endRegexSource : "\uFFFF");
1262
+ }
1263
+ return this._cachedCompiledWhilePatterns;
1264
+ }
1265
+ };
1266
+ var RuleFactory = class _RuleFactory {
1267
+ static createCaptureRule(helper, $location, name, contentName, retokenizeCapturedWithRuleId) {
1268
+ return helper.registerRule((id) => {
1269
+ return new CaptureRule($location, id, name, contentName, retokenizeCapturedWithRuleId);
1270
+ });
1271
+ }
1272
+ static getCompiledRuleId(desc, helper, repository) {
1273
+ if (!desc.id) {
1274
+ helper.registerRule((id) => {
1275
+ desc.id = id;
1276
+ if (desc.match) {
1277
+ return new MatchRule(
1278
+ desc.$vscodeTextmateLocation,
1279
+ desc.id,
1280
+ desc.name,
1281
+ desc.match,
1282
+ _RuleFactory._compileCaptures(desc.captures, helper, repository)
1283
+ );
1284
+ }
1285
+ if (typeof desc.begin === "undefined") {
1286
+ if (desc.repository) {
1287
+ repository = mergeObjects({}, repository, desc.repository);
1288
+ }
1289
+ let patterns = desc.patterns;
1290
+ if (typeof patterns === "undefined" && desc.include) {
1291
+ patterns = [{ include: desc.include }];
1292
+ }
1293
+ return new IncludeOnlyRule(
1294
+ desc.$vscodeTextmateLocation,
1295
+ desc.id,
1296
+ desc.name,
1297
+ desc.contentName,
1298
+ _RuleFactory._compilePatterns(patterns, helper, repository)
1299
+ );
1300
+ }
1301
+ if (desc.while) {
1302
+ return new BeginWhileRule(
1303
+ desc.$vscodeTextmateLocation,
1304
+ desc.id,
1305
+ desc.name,
1306
+ desc.contentName,
1307
+ desc.begin,
1308
+ _RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
1309
+ desc.while,
1310
+ _RuleFactory._compileCaptures(desc.whileCaptures || desc.captures, helper, repository),
1311
+ _RuleFactory._compilePatterns(desc.patterns, helper, repository)
1312
+ );
1313
+ }
1314
+ return new BeginEndRule(
1315
+ desc.$vscodeTextmateLocation,
1316
+ desc.id,
1317
+ desc.name,
1318
+ desc.contentName,
1319
+ desc.begin,
1320
+ _RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
1321
+ desc.end,
1322
+ _RuleFactory._compileCaptures(desc.endCaptures || desc.captures, helper, repository),
1323
+ desc.applyEndPatternLast,
1324
+ _RuleFactory._compilePatterns(desc.patterns, helper, repository)
1325
+ );
1326
+ });
1327
+ }
1328
+ return desc.id;
1329
+ }
1330
+ static _compileCaptures(captures, helper, repository) {
1331
+ let r = [];
1332
+ if (captures) {
1333
+ let maximumCaptureId = 0;
1334
+ for (const captureId in captures) {
1335
+ if (captureId === "$vscodeTextmateLocation") {
1336
+ continue;
1337
+ }
1338
+ const numericCaptureId = parseInt(captureId, 10);
1339
+ if (numericCaptureId > maximumCaptureId) {
1340
+ maximumCaptureId = numericCaptureId;
1341
+ }
1342
+ }
1343
+ for (let i = 0; i <= maximumCaptureId; i++) {
1344
+ r[i] = null;
1345
+ }
1346
+ for (const captureId in captures) {
1347
+ if (captureId === "$vscodeTextmateLocation") {
1348
+ continue;
1349
+ }
1350
+ const numericCaptureId = parseInt(captureId, 10);
1351
+ let retokenizeCapturedWithRuleId = 0;
1352
+ if (captures[captureId].patterns) {
1353
+ retokenizeCapturedWithRuleId = _RuleFactory.getCompiledRuleId(captures[captureId], helper, repository);
1354
+ }
1355
+ r[numericCaptureId] = _RuleFactory.createCaptureRule(helper, captures[captureId].$vscodeTextmateLocation, captures[captureId].name, captures[captureId].contentName, retokenizeCapturedWithRuleId);
1356
+ }
1357
+ }
1358
+ return r;
1359
+ }
1360
+ static _compilePatterns(patterns, helper, repository) {
1361
+ let r = [];
1362
+ if (patterns) {
1363
+ for (let i = 0, len = patterns.length; i < len; i++) {
1364
+ const pattern = patterns[i];
1365
+ let ruleId = -1;
1366
+ if (pattern.include) {
1367
+ const reference = parseInclude(pattern.include);
1368
+ switch (reference.kind) {
1369
+ case 0 /* Base */:
1370
+ case 1 /* Self */:
1371
+ ruleId = _RuleFactory.getCompiledRuleId(repository[pattern.include], helper, repository);
1372
+ break;
1373
+ case 2 /* RelativeReference */:
1374
+ let localIncludedRule = repository[reference.ruleName];
1375
+ if (localIncludedRule) {
1376
+ ruleId = _RuleFactory.getCompiledRuleId(localIncludedRule, helper, repository);
1377
+ } else {
1378
+ }
1379
+ break;
1380
+ case 3 /* TopLevelReference */:
1381
+ case 4 /* TopLevelRepositoryReference */:
1382
+ const externalGrammarName = reference.scopeName;
1383
+ const externalGrammarInclude = reference.kind === 4 /* TopLevelRepositoryReference */ ? reference.ruleName : null;
1384
+ const externalGrammar = helper.getExternalGrammar(externalGrammarName, repository);
1385
+ if (externalGrammar) {
1386
+ if (externalGrammarInclude) {
1387
+ let externalIncludedRule = externalGrammar.repository[externalGrammarInclude];
1388
+ if (externalIncludedRule) {
1389
+ ruleId = _RuleFactory.getCompiledRuleId(externalIncludedRule, helper, externalGrammar.repository);
1390
+ } else {
1391
+ }
1392
+ } else {
1393
+ ruleId = _RuleFactory.getCompiledRuleId(externalGrammar.repository.$self, helper, externalGrammar.repository);
1394
+ }
1395
+ } else {
1396
+ }
1397
+ break;
1398
+ }
1399
+ } else {
1400
+ ruleId = _RuleFactory.getCompiledRuleId(pattern, helper, repository);
1401
+ }
1402
+ if (ruleId !== -1) {
1403
+ const rule = helper.getRule(ruleId);
1404
+ let skipRule = false;
1405
+ if (rule instanceof IncludeOnlyRule || rule instanceof BeginEndRule || rule instanceof BeginWhileRule) {
1406
+ if (rule.hasMissingPatterns && rule.patterns.length === 0) {
1407
+ skipRule = true;
1408
+ }
1409
+ }
1410
+ if (skipRule) {
1411
+ continue;
1412
+ }
1413
+ r.push(ruleId);
1414
+ }
1415
+ }
1416
+ }
1417
+ return {
1418
+ patterns: r,
1419
+ hasMissingPatterns: (patterns ? patterns.length : 0) !== r.length
1420
+ };
1421
+ }
1422
+ };
1423
+ var RegExpSource = class _RegExpSource {
1424
+ source;
1425
+ ruleId;
1426
+ hasAnchor;
1427
+ hasBackReferences;
1428
+ _anchorCache;
1429
+ constructor(regExpSource, ruleId) {
1430
+ if (regExpSource && typeof regExpSource === "string") {
1431
+ const len = regExpSource.length;
1432
+ let lastPushedPos = 0;
1433
+ let output = [];
1434
+ let hasAnchor = false;
1435
+ for (let pos = 0; pos < len; pos++) {
1436
+ const ch = regExpSource.charAt(pos);
1437
+ if (ch === "\\") {
1438
+ if (pos + 1 < len) {
1439
+ const nextCh = regExpSource.charAt(pos + 1);
1440
+ if (nextCh === "z") {
1441
+ output.push(regExpSource.substring(lastPushedPos, pos));
1442
+ output.push("$(?!\\n)(?<!\\n)");
1443
+ lastPushedPos = pos + 2;
1444
+ } else if (nextCh === "A" || nextCh === "G") {
1445
+ hasAnchor = true;
1446
+ }
1447
+ pos++;
1448
+ }
1449
+ }
1450
+ }
1451
+ this.hasAnchor = hasAnchor;
1452
+ if (lastPushedPos === 0) {
1453
+ this.source = regExpSource;
1454
+ } else {
1455
+ output.push(regExpSource.substring(lastPushedPos, len));
1456
+ this.source = output.join("");
1457
+ }
1458
+ } else {
1459
+ this.hasAnchor = false;
1460
+ this.source = regExpSource;
1461
+ }
1462
+ if (this.hasAnchor) {
1463
+ this._anchorCache = this._buildAnchorCache();
1464
+ } else {
1465
+ this._anchorCache = null;
1466
+ }
1467
+ this.ruleId = ruleId;
1468
+ if (typeof this.source === "string") {
1469
+ this.hasBackReferences = HAS_BACK_REFERENCES.test(this.source);
1470
+ } else {
1471
+ this.hasBackReferences = false;
1472
+ }
1473
+ }
1474
+ clone() {
1475
+ return new _RegExpSource(this.source, this.ruleId);
1476
+ }
1477
+ setSource(newSource) {
1478
+ if (this.source === newSource) {
1479
+ return;
1480
+ }
1481
+ this.source = newSource;
1482
+ if (this.hasAnchor) {
1483
+ this._anchorCache = this._buildAnchorCache();
1484
+ }
1485
+ }
1486
+ resolveBackReferences(lineText, captureIndices) {
1487
+ if (typeof this.source !== "string") {
1488
+ throw new Error("This method should only be called if the source is a string");
1489
+ }
1490
+ let capturedValues = captureIndices.map((capture) => {
1491
+ return lineText.substring(capture.start, capture.end);
1492
+ });
1493
+ BACK_REFERENCING_END.lastIndex = 0;
1494
+ return this.source.replace(BACK_REFERENCING_END, (match, g1) => {
1495
+ return escapeRegExpCharacters(capturedValues[parseInt(g1, 10)] || "");
1496
+ });
1497
+ }
1498
+ _buildAnchorCache() {
1499
+ if (typeof this.source !== "string") {
1500
+ throw new Error("This method should only be called if the source is a string");
1501
+ }
1502
+ let A0_G0_result = [];
1503
+ let A0_G1_result = [];
1504
+ let A1_G0_result = [];
1505
+ let A1_G1_result = [];
1506
+ let pos, len, ch, nextCh;
1507
+ for (pos = 0, len = this.source.length; pos < len; pos++) {
1508
+ ch = this.source.charAt(pos);
1509
+ A0_G0_result[pos] = ch;
1510
+ A0_G1_result[pos] = ch;
1511
+ A1_G0_result[pos] = ch;
1512
+ A1_G1_result[pos] = ch;
1513
+ if (ch === "\\") {
1514
+ if (pos + 1 < len) {
1515
+ nextCh = this.source.charAt(pos + 1);
1516
+ if (nextCh === "A") {
1517
+ A0_G0_result[pos + 1] = "\uFFFF";
1518
+ A0_G1_result[pos + 1] = "\uFFFF";
1519
+ A1_G0_result[pos + 1] = "A";
1520
+ A1_G1_result[pos + 1] = "A";
1521
+ } else if (nextCh === "G") {
1522
+ A0_G0_result[pos + 1] = "\uFFFF";
1523
+ A0_G1_result[pos + 1] = "G";
1524
+ A1_G0_result[pos + 1] = "\uFFFF";
1525
+ A1_G1_result[pos + 1] = "G";
1526
+ } else {
1527
+ A0_G0_result[pos + 1] = nextCh;
1528
+ A0_G1_result[pos + 1] = nextCh;
1529
+ A1_G0_result[pos + 1] = nextCh;
1530
+ A1_G1_result[pos + 1] = nextCh;
1531
+ }
1532
+ pos++;
1533
+ }
1534
+ }
1535
+ }
1536
+ return {
1537
+ A0_G0: A0_G0_result.join(""),
1538
+ A0_G1: A0_G1_result.join(""),
1539
+ A1_G0: A1_G0_result.join(""),
1540
+ A1_G1: A1_G1_result.join("")
1541
+ };
1542
+ }
1543
+ resolveAnchors(allowA, allowG) {
1544
+ if (!this.hasAnchor || !this._anchorCache || typeof this.source !== "string") {
1545
+ return this.source;
1546
+ }
1547
+ if (allowA) {
1548
+ if (allowG) {
1549
+ return this._anchorCache.A1_G1;
1550
+ } else {
1551
+ return this._anchorCache.A1_G0;
1552
+ }
1553
+ } else {
1554
+ if (allowG) {
1555
+ return this._anchorCache.A0_G1;
1556
+ } else {
1557
+ return this._anchorCache.A0_G0;
1558
+ }
1559
+ }
1560
+ }
1561
+ };
1562
+ var RegExpSourceList = class {
1563
+ _items;
1564
+ _hasAnchors;
1565
+ _cached;
1566
+ _anchorCache;
1567
+ constructor() {
1568
+ this._items = [];
1569
+ this._hasAnchors = false;
1570
+ this._cached = null;
1571
+ this._anchorCache = {
1572
+ A0_G0: null,
1573
+ A0_G1: null,
1574
+ A1_G0: null,
1575
+ A1_G1: null
1576
+ };
1577
+ }
1578
+ dispose() {
1579
+ this._disposeCaches();
1580
+ }
1581
+ _disposeCaches() {
1582
+ if (this._cached) {
1583
+ this._cached.dispose();
1584
+ this._cached = null;
1585
+ }
1586
+ if (this._anchorCache.A0_G0) {
1587
+ this._anchorCache.A0_G0.dispose();
1588
+ this._anchorCache.A0_G0 = null;
1589
+ }
1590
+ if (this._anchorCache.A0_G1) {
1591
+ this._anchorCache.A0_G1.dispose();
1592
+ this._anchorCache.A0_G1 = null;
1593
+ }
1594
+ if (this._anchorCache.A1_G0) {
1595
+ this._anchorCache.A1_G0.dispose();
1596
+ this._anchorCache.A1_G0 = null;
1597
+ }
1598
+ if (this._anchorCache.A1_G1) {
1599
+ this._anchorCache.A1_G1.dispose();
1600
+ this._anchorCache.A1_G1 = null;
1601
+ }
1602
+ }
1603
+ push(item) {
1604
+ this._items.push(item);
1605
+ this._hasAnchors = this._hasAnchors || item.hasAnchor;
1606
+ }
1607
+ unshift(item) {
1608
+ this._items.unshift(item);
1609
+ this._hasAnchors = this._hasAnchors || item.hasAnchor;
1610
+ }
1611
+ length() {
1612
+ return this._items.length;
1613
+ }
1614
+ setSource(index, newSource) {
1615
+ if (this._items[index].source !== newSource) {
1616
+ this._disposeCaches();
1617
+ this._items[index].setSource(newSource);
1618
+ }
1619
+ }
1620
+ compile(onigLib) {
1621
+ if (!this._cached) {
1622
+ let regExps = this._items.map((e) => e.source);
1623
+ this._cached = new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
1624
+ }
1625
+ return this._cached;
1626
+ }
1627
+ compileAG(onigLib, allowA, allowG) {
1628
+ if (!this._hasAnchors) {
1629
+ return this.compile(onigLib);
1630
+ } else {
1631
+ if (allowA) {
1632
+ if (allowG) {
1633
+ if (!this._anchorCache.A1_G1) {
1634
+ this._anchorCache.A1_G1 = this._resolveAnchors(onigLib, allowA, allowG);
1635
+ }
1636
+ return this._anchorCache.A1_G1;
1637
+ } else {
1638
+ if (!this._anchorCache.A1_G0) {
1639
+ this._anchorCache.A1_G0 = this._resolveAnchors(onigLib, allowA, allowG);
1640
+ }
1641
+ return this._anchorCache.A1_G0;
1642
+ }
1643
+ } else {
1644
+ if (allowG) {
1645
+ if (!this._anchorCache.A0_G1) {
1646
+ this._anchorCache.A0_G1 = this._resolveAnchors(onigLib, allowA, allowG);
1647
+ }
1648
+ return this._anchorCache.A0_G1;
1649
+ } else {
1650
+ if (!this._anchorCache.A0_G0) {
1651
+ this._anchorCache.A0_G0 = this._resolveAnchors(onigLib, allowA, allowG);
1652
+ }
1653
+ return this._anchorCache.A0_G0;
1654
+ }
1655
+ }
1656
+ }
1657
+ }
1658
+ _resolveAnchors(onigLib, allowA, allowG) {
1659
+ let regExps = this._items.map((e) => e.resolveAnchors(allowA, allowG));
1660
+ return new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
1661
+ }
1662
+ };
1663
+ var CompiledRule = class {
1664
+ constructor(onigLib, regExps, rules) {
1665
+ this.regExps = regExps;
1666
+ this.rules = rules;
1667
+ this.scanner = onigLib.createOnigScanner(regExps);
1668
+ }
1669
+ scanner;
1670
+ dispose() {
1671
+ if (typeof this.scanner.dispose === "function") {
1672
+ this.scanner.dispose();
1673
+ }
1674
+ }
1675
+ toString() {
1676
+ const r = [];
1677
+ for (let i = 0, len = this.rules.length; i < len; i++) {
1678
+ r.push(" - " + this.rules[i] + ": " + this.regExps[i]);
1679
+ }
1680
+ return r.join("\n");
1681
+ }
1682
+ findNextMatchSync(string, startPosition, options) {
1683
+ const result = this.scanner.findNextMatchSync(string, startPosition, options);
1684
+ if (!result) {
1685
+ return null;
1686
+ }
1687
+ return {
1688
+ ruleId: this.rules[result.index],
1689
+ captureIndices: result.captureIndices
1690
+ };
1691
+ }
1692
+ };
1693
+
1694
+ // src/grammar/basicScopesAttributeProvider.ts
1695
+ var BasicScopeAttributes = class {
1696
+ constructor(languageId, tokenType) {
1697
+ this.languageId = languageId;
1698
+ this.tokenType = tokenType;
1699
+ }
1700
+ };
1701
+ var BasicScopeAttributesProvider = class _BasicScopeAttributesProvider {
1702
+ _defaultAttributes;
1703
+ _embeddedLanguagesMatcher;
1704
+ constructor(initialLanguageId, embeddedLanguages) {
1705
+ this._defaultAttributes = new BasicScopeAttributes(initialLanguageId, 8 /* NotSet */);
1706
+ this._embeddedLanguagesMatcher = new ScopeMatcher(Object.entries(embeddedLanguages || {}));
1707
+ }
1708
+ getDefaultAttributes() {
1709
+ return this._defaultAttributes;
1710
+ }
1711
+ getBasicScopeAttributes(scopeName) {
1712
+ if (scopeName === null) {
1713
+ return _BasicScopeAttributesProvider._NULL_SCOPE_METADATA;
1714
+ }
1715
+ return this._getBasicScopeAttributes.get(scopeName);
1716
+ }
1717
+ static _NULL_SCOPE_METADATA = new BasicScopeAttributes(0, 0);
1718
+ _getBasicScopeAttributes = new CachedFn((scopeName) => {
1719
+ const languageId = this._scopeToLanguage(scopeName);
1720
+ const standardTokenType = this._toStandardTokenType(scopeName);
1721
+ return new BasicScopeAttributes(languageId, standardTokenType);
1722
+ });
1723
+ /**
1724
+ * Given a produced TM scope, return the language that token describes or null if unknown.
1725
+ * e.g. source.html => html, source.css.embedded.html => css, punctuation.definition.tag.html => null
1726
+ */
1727
+ _scopeToLanguage(scope) {
1728
+ return this._embeddedLanguagesMatcher.match(scope) || 0;
1729
+ }
1730
+ _toStandardTokenType(scopeName) {
1731
+ const m = scopeName.match(_BasicScopeAttributesProvider.STANDARD_TOKEN_TYPE_REGEXP);
1732
+ if (!m) {
1733
+ return 8 /* NotSet */;
1734
+ }
1735
+ switch (m[1]) {
1736
+ case "comment":
1737
+ return 1 /* Comment */;
1738
+ case "string":
1739
+ return 2 /* String */;
1740
+ case "regex":
1741
+ return 3 /* RegEx */;
1742
+ case "meta.embedded":
1743
+ return 0 /* Other */;
1744
+ }
1745
+ throw new Error("Unexpected match for standard token type!");
1746
+ }
1747
+ static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
1748
+ };
1749
+ var ScopeMatcher = class {
1750
+ values;
1751
+ scopesRegExp;
1752
+ constructor(values) {
1753
+ if (values.length === 0) {
1754
+ this.values = null;
1755
+ this.scopesRegExp = null;
1756
+ } else {
1757
+ this.values = new Map(values);
1758
+ const escapedScopes = values.map(
1759
+ ([scopeName, value]) => escapeRegExpCharacters(scopeName)
1760
+ );
1761
+ escapedScopes.sort();
1762
+ escapedScopes.reverse();
1763
+ this.scopesRegExp = new RegExp(
1764
+ `^((${escapedScopes.join(")|(")}))($|\\.)`,
1765
+ ""
1766
+ );
1767
+ }
1768
+ }
1769
+ match(scope) {
1770
+ if (!this.scopesRegExp) {
1771
+ return void 0;
1772
+ }
1773
+ const m = scope.match(this.scopesRegExp);
1774
+ if (!m) {
1775
+ return void 0;
1776
+ }
1777
+ return this.values.get(m[1]);
1778
+ }
1779
+ };
1780
+
1781
+ // src/debug.ts
1782
+ var DebugFlags = {
1783
+ InDebugMode: typeof process !== "undefined" && !!process.env["VSCODE_TEXTMATE_DEBUG"]
1784
+ };
1785
+ var UseOnigurumaFindOptions = false;
1786
+
1787
+ // src/grammar/tokenizeString.ts
1788
+ var TokenizeStringResult = class {
1789
+ constructor(stack, stoppedEarly) {
1790
+ this.stack = stack;
1791
+ this.stoppedEarly = stoppedEarly;
1792
+ }
1793
+ };
1794
+ function _tokenizeString(grammar, lineText, isFirstLine, linePos, stack, lineTokens, checkWhileConditions, timeLimit) {
1795
+ const lineLength = lineText.content.length;
1796
+ let STOP = false;
1797
+ let anchorPosition = -1;
1798
+ if (checkWhileConditions) {
1799
+ const whileCheckResult = _checkWhileConditions(
1800
+ grammar,
1801
+ lineText,
1802
+ isFirstLine,
1803
+ linePos,
1804
+ stack,
1805
+ lineTokens
1806
+ );
1807
+ stack = whileCheckResult.stack;
1808
+ linePos = whileCheckResult.linePos;
1809
+ isFirstLine = whileCheckResult.isFirstLine;
1810
+ anchorPosition = whileCheckResult.anchorPosition;
1811
+ }
1812
+ const startTime = Date.now();
1813
+ while (!STOP) {
1814
+ if (timeLimit !== 0) {
1815
+ const elapsedTime = Date.now() - startTime;
1816
+ if (elapsedTime > timeLimit) {
1817
+ return new TokenizeStringResult(stack, true);
1818
+ }
1819
+ }
1820
+ scanNext();
1821
+ }
1822
+ return new TokenizeStringResult(stack, false);
1823
+ function scanNext() {
1824
+ if (false) {
1825
+ console.log("");
1826
+ console.log(
1827
+ `@@scanNext ${linePos}: |${lineText.content.substr(linePos).replace(/\n$/, "\\n")}|`
1828
+ );
1829
+ }
1830
+ const r = matchRuleOrInjections(
1831
+ grammar,
1832
+ lineText,
1833
+ isFirstLine,
1834
+ linePos,
1835
+ stack,
1836
+ anchorPosition
1837
+ );
1838
+ if (!r) {
1839
+ lineTokens.produce(stack, lineLength);
1840
+ STOP = true;
1841
+ return;
1842
+ }
1843
+ const captureIndices = r.captureIndices;
1844
+ const matchedRuleId = r.matchedRuleId;
1845
+ const hasAdvanced = captureIndices && captureIndices.length > 0 ? captureIndices[0].end > linePos : false;
1846
+ if (matchedRuleId === endRuleId) {
1847
+ const poppedRule = stack.getRule(grammar);
1848
+ if (false) {
1849
+ console.log(
1850
+ " popping " + poppedRule.debugName + " - " + poppedRule.debugEndRegExp
1851
+ );
1852
+ }
1853
+ lineTokens.produce(stack, captureIndices[0].start);
1854
+ stack = stack.withContentNameScopesList(stack.nameScopesList);
1855
+ handleCaptures(
1856
+ grammar,
1857
+ lineText,
1858
+ isFirstLine,
1859
+ stack,
1860
+ lineTokens,
1861
+ poppedRule.endCaptures,
1862
+ captureIndices
1863
+ );
1864
+ lineTokens.produce(stack, captureIndices[0].end);
1865
+ const popped = stack;
1866
+ stack = stack.parent;
1867
+ anchorPosition = popped.getAnchorPos();
1868
+ if (!hasAdvanced && popped.getEnterPos() === linePos) {
1869
+ if (false) {
1870
+ console.error(
1871
+ "[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"
1872
+ );
1873
+ }
1874
+ stack = popped;
1875
+ lineTokens.produce(stack, lineLength);
1876
+ STOP = true;
1877
+ return;
1878
+ }
1879
+ } else {
1880
+ const _rule = grammar.getRule(matchedRuleId);
1881
+ lineTokens.produce(stack, captureIndices[0].start);
1882
+ const beforePush = stack;
1883
+ const scopeName = _rule.getName(lineText.content, captureIndices);
1884
+ const nameScopesList = stack.contentNameScopesList.pushAttributed(
1885
+ scopeName,
1886
+ grammar
1887
+ );
1888
+ stack = stack.push(
1889
+ matchedRuleId,
1890
+ linePos,
1891
+ anchorPosition,
1892
+ captureIndices[0].end === lineLength,
1893
+ null,
1894
+ nameScopesList,
1895
+ nameScopesList
1896
+ );
1897
+ if (_rule instanceof BeginEndRule) {
1898
+ const pushedRule = _rule;
1899
+ if (false) {
1900
+ console.log(
1901
+ " pushing " + pushedRule.debugName + " - " + pushedRule.debugBeginRegExp
1902
+ );
1903
+ }
1904
+ handleCaptures(
1905
+ grammar,
1906
+ lineText,
1907
+ isFirstLine,
1908
+ stack,
1909
+ lineTokens,
1910
+ pushedRule.beginCaptures,
1911
+ captureIndices
1912
+ );
1913
+ lineTokens.produce(stack, captureIndices[0].end);
1914
+ anchorPosition = captureIndices[0].end;
1915
+ const contentName = pushedRule.getContentName(
1916
+ lineText.content,
1917
+ captureIndices
1918
+ );
1919
+ const contentNameScopesList = nameScopesList.pushAttributed(
1920
+ contentName,
1921
+ grammar
1922
+ );
1923
+ stack = stack.withContentNameScopesList(contentNameScopesList);
1924
+ if (pushedRule.endHasBackReferences) {
1925
+ stack = stack.withEndRule(
1926
+ pushedRule.getEndWithResolvedBackReferences(
1927
+ lineText.content,
1928
+ captureIndices
1929
+ )
1930
+ );
1931
+ }
1932
+ if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
1933
+ if (false) {
1934
+ console.error(
1935
+ "[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
1936
+ );
1937
+ }
1938
+ stack = stack.pop();
1939
+ lineTokens.produce(stack, lineLength);
1940
+ STOP = true;
1941
+ return;
1942
+ }
1943
+ } else if (_rule instanceof BeginWhileRule) {
1944
+ const pushedRule = _rule;
1945
+ if (false) {
1946
+ console.log(" pushing " + pushedRule.debugName);
1947
+ }
1948
+ handleCaptures(
1949
+ grammar,
1950
+ lineText,
1951
+ isFirstLine,
1952
+ stack,
1953
+ lineTokens,
1954
+ pushedRule.beginCaptures,
1955
+ captureIndices
1956
+ );
1957
+ lineTokens.produce(stack, captureIndices[0].end);
1958
+ anchorPosition = captureIndices[0].end;
1959
+ const contentName = pushedRule.getContentName(
1960
+ lineText.content,
1961
+ captureIndices
1962
+ );
1963
+ const contentNameScopesList = nameScopesList.pushAttributed(
1964
+ contentName,
1965
+ grammar
1966
+ );
1967
+ stack = stack.withContentNameScopesList(contentNameScopesList);
1968
+ if (pushedRule.whileHasBackReferences) {
1969
+ stack = stack.withEndRule(
1970
+ pushedRule.getWhileWithResolvedBackReferences(
1971
+ lineText.content,
1972
+ captureIndices
1973
+ )
1974
+ );
1975
+ }
1976
+ if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
1977
+ if (false) {
1978
+ console.error(
1979
+ "[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
1980
+ );
1981
+ }
1982
+ stack = stack.pop();
1983
+ lineTokens.produce(stack, lineLength);
1984
+ STOP = true;
1985
+ return;
1986
+ }
1987
+ } else {
1988
+ const matchingRule = _rule;
1989
+ if (false) {
1990
+ console.log(
1991
+ " matched " + matchingRule.debugName + " - " + matchingRule.debugMatchRegExp
1992
+ );
1993
+ }
1994
+ handleCaptures(
1995
+ grammar,
1996
+ lineText,
1997
+ isFirstLine,
1998
+ stack,
1999
+ lineTokens,
2000
+ matchingRule.captures,
2001
+ captureIndices
2002
+ );
2003
+ lineTokens.produce(stack, captureIndices[0].end);
2004
+ stack = stack.pop();
2005
+ if (!hasAdvanced) {
2006
+ if (false) {
2007
+ console.error(
2008
+ "[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"
2009
+ );
2010
+ }
2011
+ stack = stack.safePop();
2012
+ lineTokens.produce(stack, lineLength);
2013
+ STOP = true;
2014
+ return;
2015
+ }
2016
+ }
2017
+ }
2018
+ if (captureIndices[0].end > linePos) {
2019
+ linePos = captureIndices[0].end;
2020
+ isFirstLine = false;
2021
+ }
2022
+ }
2023
+ }
2024
+ function _checkWhileConditions(grammar, lineText, isFirstLine, linePos, stack, lineTokens) {
2025
+ let anchorPosition = stack.beginRuleCapturedEOL ? 0 : -1;
2026
+ const whileRules = [];
2027
+ for (let node = stack; node; node = node.pop()) {
2028
+ const nodeRule = node.getRule(grammar);
2029
+ if (nodeRule instanceof BeginWhileRule) {
2030
+ whileRules.push({
2031
+ rule: nodeRule,
2032
+ stack: node
2033
+ });
2034
+ }
2035
+ }
2036
+ for (let whileRule = whileRules.pop(); whileRule; whileRule = whileRules.pop()) {
2037
+ const { ruleScanner, findOptions } = prepareRuleWhileSearch(whileRule.rule, grammar, whileRule.stack.endRule, isFirstLine, linePos === anchorPosition);
2038
+ const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2039
+ if (false) {
2040
+ console.log(" scanning for while rule");
2041
+ console.log(ruleScanner.toString());
2042
+ }
2043
+ if (r) {
2044
+ const matchedRuleId = r.ruleId;
2045
+ if (matchedRuleId !== whileRuleId) {
2046
+ stack = whileRule.stack.pop();
2047
+ break;
2048
+ }
2049
+ if (r.captureIndices && r.captureIndices.length) {
2050
+ lineTokens.produce(whileRule.stack, r.captureIndices[0].start);
2051
+ handleCaptures(grammar, lineText, isFirstLine, whileRule.stack, lineTokens, whileRule.rule.whileCaptures, r.captureIndices);
2052
+ lineTokens.produce(whileRule.stack, r.captureIndices[0].end);
2053
+ anchorPosition = r.captureIndices[0].end;
2054
+ if (r.captureIndices[0].end > linePos) {
2055
+ linePos = r.captureIndices[0].end;
2056
+ isFirstLine = false;
2057
+ }
2058
+ }
2059
+ } else {
2060
+ if (false) {
2061
+ console.log(" popping " + whileRule.rule.debugName + " - " + whileRule.rule.debugWhileRegExp);
2062
+ }
2063
+ stack = whileRule.stack.pop();
2064
+ break;
2065
+ }
2066
+ }
2067
+ return { stack, linePos, anchorPosition, isFirstLine };
2068
+ }
2069
+ function matchRuleOrInjections(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2070
+ const matchResult = matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
2071
+ const injections = grammar.getInjections();
2072
+ if (injections.length === 0) {
2073
+ return matchResult;
2074
+ }
2075
+ const injectionResult = matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
2076
+ if (!injectionResult) {
2077
+ return matchResult;
2078
+ }
2079
+ if (!matchResult) {
2080
+ return injectionResult;
2081
+ }
2082
+ const matchResultScore = matchResult.captureIndices[0].start;
2083
+ const injectionResultScore = injectionResult.captureIndices[0].start;
2084
+ if (injectionResultScore < matchResultScore || injectionResult.priorityMatch && injectionResultScore === matchResultScore) {
2085
+ return injectionResult;
2086
+ }
2087
+ return matchResult;
2088
+ }
2089
+ function matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2090
+ const rule = stack.getRule(grammar);
2091
+ const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, stack.endRule, isFirstLine, linePos === anchorPosition);
2092
+ const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2093
+ if (r) {
2094
+ return {
2095
+ captureIndices: r.captureIndices,
2096
+ matchedRuleId: r.ruleId
2097
+ };
2098
+ }
2099
+ return null;
2100
+ }
2101
+ function matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2102
+ let bestMatchRating = Number.MAX_VALUE;
2103
+ let bestMatchCaptureIndices = null;
2104
+ let bestMatchRuleId;
2105
+ let bestMatchResultPriority = 0;
2106
+ const scopes = stack.contentNameScopesList.getScopeNames();
2107
+ for (let i = 0, len = injections.length; i < len; i++) {
2108
+ const injection = injections[i];
2109
+ if (!injection.matcher(scopes)) {
2110
+ continue;
2111
+ }
2112
+ const rule = grammar.getRule(injection.ruleId);
2113
+ const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, null, isFirstLine, linePos === anchorPosition);
2114
+ const matchResult = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2115
+ if (!matchResult) {
2116
+ continue;
2117
+ }
2118
+ if (false) {
2119
+ console.log(` matched injection: ${injection.debugSelector}`);
2120
+ console.log(ruleScanner.toString());
2121
+ }
2122
+ const matchRating = matchResult.captureIndices[0].start;
2123
+ if (matchRating >= bestMatchRating) {
2124
+ continue;
2125
+ }
2126
+ bestMatchRating = matchRating;
2127
+ bestMatchCaptureIndices = matchResult.captureIndices;
2128
+ bestMatchRuleId = matchResult.ruleId;
2129
+ bestMatchResultPriority = injection.priority;
2130
+ if (bestMatchRating === linePos) {
2131
+ break;
2132
+ }
2133
+ }
2134
+ if (bestMatchCaptureIndices) {
2135
+ return {
2136
+ priorityMatch: bestMatchResultPriority === -1,
2137
+ captureIndices: bestMatchCaptureIndices,
2138
+ matchedRuleId: bestMatchRuleId
2139
+ };
2140
+ }
2141
+ return null;
2142
+ }
2143
+ function prepareRuleSearch(rule, grammar, endRegexSource, allowA, allowG) {
2144
+ if (UseOnigurumaFindOptions) {
2145
+ const ruleScanner2 = rule.compile(grammar, endRegexSource);
2146
+ const findOptions = getFindOptions(allowA, allowG);
2147
+ return { ruleScanner: ruleScanner2, findOptions };
2148
+ }
2149
+ const ruleScanner = rule.compileAG(grammar, endRegexSource, allowA, allowG);
2150
+ return { ruleScanner, findOptions: 0 /* None */ };
2151
+ }
2152
+ function prepareRuleWhileSearch(rule, grammar, endRegexSource, allowA, allowG) {
2153
+ if (UseOnigurumaFindOptions) {
2154
+ const ruleScanner2 = rule.compileWhile(grammar, endRegexSource);
2155
+ const findOptions = getFindOptions(allowA, allowG);
2156
+ return { ruleScanner: ruleScanner2, findOptions };
2157
+ }
2158
+ const ruleScanner = rule.compileWhileAG(grammar, endRegexSource, allowA, allowG);
2159
+ return { ruleScanner, findOptions: 0 /* None */ };
2160
+ }
2161
+ function getFindOptions(allowA, allowG) {
2162
+ let options = 0 /* None */;
2163
+ if (!allowA) {
2164
+ options |= 1 /* NotBeginString */;
2165
+ }
2166
+ if (!allowG) {
2167
+ options |= 4 /* NotBeginPosition */;
2168
+ }
2169
+ return options;
2170
+ }
2171
+ function handleCaptures(grammar, lineText, isFirstLine, stack, lineTokens, captures, captureIndices) {
2172
+ if (captures.length === 0) {
2173
+ return;
2174
+ }
2175
+ const lineTextContent = lineText.content;
2176
+ const len = Math.min(captures.length, captureIndices.length);
2177
+ const localStack = [];
2178
+ const maxEnd = captureIndices[0].end;
2179
+ for (let i = 0; i < len; i++) {
2180
+ const captureRule = captures[i];
2181
+ if (captureRule === null) {
2182
+ continue;
2183
+ }
2184
+ const captureIndex = captureIndices[i];
2185
+ if (captureIndex.length === 0) {
2186
+ continue;
2187
+ }
2188
+ if (captureIndex.start > maxEnd) {
2189
+ break;
2190
+ }
2191
+ while (localStack.length > 0 && localStack[localStack.length - 1].endPos <= captureIndex.start) {
2192
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
2193
+ localStack.pop();
2194
+ }
2195
+ if (localStack.length > 0) {
2196
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, captureIndex.start);
2197
+ } else {
2198
+ lineTokens.produce(stack, captureIndex.start);
2199
+ }
2200
+ if (captureRule.retokenizeCapturedWithRuleId) {
2201
+ const scopeName = captureRule.getName(lineTextContent, captureIndices);
2202
+ const nameScopesList = stack.contentNameScopesList.pushAttributed(scopeName, grammar);
2203
+ const contentName = captureRule.getContentName(lineTextContent, captureIndices);
2204
+ const contentNameScopesList = nameScopesList.pushAttributed(contentName, grammar);
2205
+ const stackClone = stack.push(captureRule.retokenizeCapturedWithRuleId, captureIndex.start, -1, false, null, nameScopesList, contentNameScopesList);
2206
+ const onigSubStr = grammar.createOnigString(lineTextContent.substring(0, captureIndex.end));
2207
+ _tokenizeString(
2208
+ grammar,
2209
+ onigSubStr,
2210
+ isFirstLine && captureIndex.start === 0,
2211
+ captureIndex.start,
2212
+ stackClone,
2213
+ lineTokens,
2214
+ false,
2215
+ /* no time limit */
2216
+ 0
2217
+ );
2218
+ disposeOnigString(onigSubStr);
2219
+ continue;
2220
+ }
2221
+ const captureRuleScopeName = captureRule.getName(lineTextContent, captureIndices);
2222
+ if (captureRuleScopeName !== null) {
2223
+ const base = localStack.length > 0 ? localStack[localStack.length - 1].scopes : stack.contentNameScopesList;
2224
+ const captureRuleScopesList = base.pushAttributed(captureRuleScopeName, grammar);
2225
+ localStack.push(new LocalStackElement(captureRuleScopesList, captureIndex.end));
2226
+ }
2227
+ }
2228
+ while (localStack.length > 0) {
2229
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
2230
+ localStack.pop();
2231
+ }
2232
+ }
2233
+ var LocalStackElement = class {
2234
+ scopes;
2235
+ endPos;
2236
+ constructor(scopes, endPos) {
2237
+ this.scopes = scopes;
2238
+ this.endPos = endPos;
2239
+ }
2240
+ };
2241
+
2242
+ // src/grammar/grammar.ts
2243
+ function createGrammar(scopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, onigLib) {
2244
+ return new Grammar(
2245
+ scopeName,
2246
+ grammar,
2247
+ initialLanguage,
2248
+ embeddedLanguages,
2249
+ tokenTypes,
2250
+ balancedBracketSelectors,
2251
+ grammarRepository,
2252
+ onigLib
2253
+ );
2254
+ }
2255
+ function collectInjections(result, selector, rule, ruleFactoryHelper, grammar) {
2256
+ const matchers = createMatchers(selector, nameMatcher);
2257
+ const ruleId = RuleFactory.getCompiledRuleId(rule, ruleFactoryHelper, grammar.repository);
2258
+ for (const matcher of matchers) {
2259
+ result.push({
2260
+ debugSelector: selector,
2261
+ matcher: matcher.matcher,
2262
+ ruleId,
2263
+ grammar,
2264
+ priority: matcher.priority
2265
+ });
2266
+ }
2267
+ }
2268
+ function nameMatcher(identifers, scopes) {
2269
+ if (scopes.length < identifers.length) {
2270
+ return false;
2271
+ }
2272
+ let lastIndex = 0;
2273
+ return identifers.every((identifier) => {
2274
+ for (let i = lastIndex; i < scopes.length; i++) {
2275
+ if (scopesAreMatching(scopes[i], identifier)) {
2276
+ lastIndex = i + 1;
2277
+ return true;
2278
+ }
2279
+ }
2280
+ return false;
2281
+ });
2282
+ }
2283
+ function scopesAreMatching(thisScopeName, scopeName) {
2284
+ if (!thisScopeName) {
2285
+ return false;
2286
+ }
2287
+ if (thisScopeName === scopeName) {
2288
+ return true;
2289
+ }
2290
+ const len = scopeName.length;
2291
+ return thisScopeName.length > len && thisScopeName.substr(0, len) === scopeName && thisScopeName[len] === ".";
2292
+ }
2293
+ var Grammar = class {
2294
+ constructor(_rootScopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, _onigLib) {
2295
+ this._rootScopeName = _rootScopeName;
2296
+ this.balancedBracketSelectors = balancedBracketSelectors;
2297
+ this._onigLib = _onigLib;
2298
+ this._basicScopeAttributesProvider = new BasicScopeAttributesProvider(
2299
+ initialLanguage,
2300
+ embeddedLanguages
2301
+ );
2302
+ this._rootId = -1;
2303
+ this._lastRuleId = 0;
2304
+ this._ruleId2desc = [null];
2305
+ this._includedGrammars = {};
2306
+ this._grammarRepository = grammarRepository;
2307
+ this._grammar = initGrammar(grammar, null);
2308
+ this._injections = null;
2309
+ this._tokenTypeMatchers = [];
2310
+ if (tokenTypes) {
2311
+ for (const selector of Object.keys(tokenTypes)) {
2312
+ const matchers = createMatchers(selector, nameMatcher);
2313
+ for (const matcher of matchers) {
2314
+ this._tokenTypeMatchers.push({
2315
+ matcher: matcher.matcher,
2316
+ type: tokenTypes[selector]
2317
+ });
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ _rootId;
2323
+ _lastRuleId;
2324
+ _ruleId2desc;
2325
+ _includedGrammars;
2326
+ _grammarRepository;
2327
+ _grammar;
2328
+ _injections;
2329
+ _basicScopeAttributesProvider;
2330
+ _tokenTypeMatchers;
2331
+ get themeProvider() {
2332
+ return this._grammarRepository;
2333
+ }
2334
+ dispose() {
2335
+ for (const rule of this._ruleId2desc) {
2336
+ if (rule) {
2337
+ rule.dispose();
2338
+ }
2339
+ }
2340
+ }
2341
+ createOnigScanner(sources) {
2342
+ return this._onigLib.createOnigScanner(sources);
2343
+ }
2344
+ createOnigString(sources) {
2345
+ return this._onigLib.createOnigString(sources);
2346
+ }
2347
+ getMetadataForScope(scope) {
2348
+ return this._basicScopeAttributesProvider.getBasicScopeAttributes(scope);
2349
+ }
2350
+ _collectInjections() {
2351
+ const grammarRepository = {
2352
+ lookup: (scopeName2) => {
2353
+ if (scopeName2 === this._rootScopeName) {
2354
+ return this._grammar;
2355
+ }
2356
+ return this.getExternalGrammar(scopeName2);
2357
+ },
2358
+ injections: (scopeName2) => {
2359
+ return this._grammarRepository.injections(scopeName2);
2360
+ }
2361
+ };
2362
+ const result = [];
2363
+ const scopeName = this._rootScopeName;
2364
+ const grammar = grammarRepository.lookup(scopeName);
2365
+ if (grammar) {
2366
+ const rawInjections = grammar.injections;
2367
+ if (rawInjections) {
2368
+ for (let expression in rawInjections) {
2369
+ collectInjections(
2370
+ result,
2371
+ expression,
2372
+ rawInjections[expression],
2373
+ this,
2374
+ grammar
2375
+ );
2376
+ }
2377
+ }
2378
+ const injectionScopeNames = this._grammarRepository.injections(scopeName);
2379
+ if (injectionScopeNames) {
2380
+ injectionScopeNames.forEach((injectionScopeName) => {
2381
+ const injectionGrammar = this.getExternalGrammar(injectionScopeName);
2382
+ if (injectionGrammar) {
2383
+ const selector = injectionGrammar.injectionSelector;
2384
+ if (selector) {
2385
+ collectInjections(
2386
+ result,
2387
+ selector,
2388
+ injectionGrammar,
2389
+ this,
2390
+ injectionGrammar
2391
+ );
2392
+ }
2393
+ }
2394
+ });
2395
+ }
2396
+ }
2397
+ result.sort((i1, i2) => i1.priority - i2.priority);
2398
+ return result;
2399
+ }
2400
+ getInjections() {
2401
+ if (this._injections === null) {
2402
+ this._injections = this._collectInjections();
2403
+ }
2404
+ return this._injections;
2405
+ }
2406
+ registerRule(factory) {
2407
+ const id = ++this._lastRuleId;
2408
+ const result = factory(ruleIdFromNumber(id));
2409
+ this._ruleId2desc[id] = result;
2410
+ return result;
2411
+ }
2412
+ getRule(ruleId) {
2413
+ return this._ruleId2desc[ruleIdToNumber(ruleId)];
2414
+ }
2415
+ getExternalGrammar(scopeName, repository) {
2416
+ if (this._includedGrammars[scopeName]) {
2417
+ return this._includedGrammars[scopeName];
2418
+ } else if (this._grammarRepository) {
2419
+ const rawIncludedGrammar = this._grammarRepository.lookup(scopeName);
2420
+ if (rawIncludedGrammar) {
2421
+ this._includedGrammars[scopeName] = initGrammar(
2422
+ rawIncludedGrammar,
2423
+ repository && repository.$base
2424
+ );
2425
+ return this._includedGrammars[scopeName];
2426
+ }
2427
+ }
2428
+ return void 0;
2429
+ }
2430
+ tokenizeLine(lineText, prevState, timeLimit = 0) {
2431
+ const r = this._tokenize(lineText, prevState, false, timeLimit);
2432
+ return {
2433
+ tokens: r.lineTokens.getResult(r.ruleStack, r.lineLength),
2434
+ ruleStack: r.ruleStack,
2435
+ stoppedEarly: r.stoppedEarly
2436
+ };
2437
+ }
2438
+ tokenizeLine2(lineText, prevState, timeLimit = 0) {
2439
+ const r = this._tokenize(lineText, prevState, true, timeLimit);
2440
+ return {
2441
+ tokens: r.lineTokens.getBinaryResult(r.ruleStack, r.lineLength),
2442
+ ruleStack: r.ruleStack,
2443
+ stoppedEarly: r.stoppedEarly
2444
+ };
2445
+ }
2446
+ _tokenize(lineText, prevState, emitBinaryTokens, timeLimit) {
2447
+ if (this._rootId === -1) {
2448
+ this._rootId = RuleFactory.getCompiledRuleId(
2449
+ this._grammar.repository.$self,
2450
+ this,
2451
+ this._grammar.repository
2452
+ );
2453
+ this.getInjections();
2454
+ }
2455
+ let isFirstLine;
2456
+ if (!prevState || prevState === StateStackImpl.NULL) {
2457
+ isFirstLine = true;
2458
+ const rawDefaultMetadata = this._basicScopeAttributesProvider.getDefaultAttributes();
2459
+ const defaultStyle = this.themeProvider.getDefaults();
2460
+ const defaultMetadata = EncodedTokenMetadata.set(
2461
+ 0,
2462
+ rawDefaultMetadata.languageId,
2463
+ rawDefaultMetadata.tokenType,
2464
+ null,
2465
+ defaultStyle.fontStyle,
2466
+ defaultStyle.foregroundId,
2467
+ defaultStyle.backgroundId
2468
+ );
2469
+ const rootScopeName = this.getRule(this._rootId).getName(
2470
+ null,
2471
+ null
2472
+ );
2473
+ let scopeList;
2474
+ if (rootScopeName) {
2475
+ scopeList = AttributedScopeStack.createRootAndLookUpScopeName(
2476
+ rootScopeName,
2477
+ defaultMetadata,
2478
+ this
2479
+ );
2480
+ } else {
2481
+ scopeList = AttributedScopeStack.createRoot(
2482
+ "unknown",
2483
+ defaultMetadata
2484
+ );
2485
+ }
2486
+ prevState = new StateStackImpl(
2487
+ null,
2488
+ this._rootId,
2489
+ -1,
2490
+ -1,
2491
+ false,
2492
+ null,
2493
+ scopeList,
2494
+ scopeList
2495
+ );
2496
+ } else {
2497
+ isFirstLine = false;
2498
+ prevState.reset();
2499
+ }
2500
+ lineText = lineText + "\n";
2501
+ const onigLineText = this.createOnigString(lineText);
2502
+ const lineLength = onigLineText.content.length;
2503
+ const lineTokens = new LineTokens(
2504
+ emitBinaryTokens,
2505
+ lineText,
2506
+ this._tokenTypeMatchers,
2507
+ this.balancedBracketSelectors
2508
+ );
2509
+ const r = _tokenizeString(
2510
+ this,
2511
+ onigLineText,
2512
+ isFirstLine,
2513
+ 0,
2514
+ prevState,
2515
+ lineTokens,
2516
+ true,
2517
+ timeLimit
2518
+ );
2519
+ disposeOnigString(onigLineText);
2520
+ return {
2521
+ lineLength,
2522
+ lineTokens,
2523
+ ruleStack: r.stack,
2524
+ stoppedEarly: r.stoppedEarly
2525
+ };
2526
+ }
2527
+ };
2528
+ function initGrammar(grammar, base) {
2529
+ grammar = clone(grammar);
2530
+ grammar.repository = grammar.repository || {};
2531
+ grammar.repository.$self = {
2532
+ $vscodeTextmateLocation: grammar.$vscodeTextmateLocation,
2533
+ patterns: grammar.patterns,
2534
+ name: grammar.scopeName
2535
+ };
2536
+ grammar.repository.$base = base || grammar.repository.$self;
2537
+ return grammar;
2538
+ }
2539
+ var AttributedScopeStack = class _AttributedScopeStack {
2540
+ /**
2541
+ * Invariant:
2542
+ * ```
2543
+ * if (parent && !scopePath.extends(parent.scopePath)) {
2544
+ * throw new Error();
2545
+ * }
2546
+ * ```
2547
+ */
2548
+ constructor(parent, scopePath, tokenAttributes) {
2549
+ this.parent = parent;
2550
+ this.scopePath = scopePath;
2551
+ this.tokenAttributes = tokenAttributes;
2552
+ }
2553
+ static fromExtension(namesScopeList, contentNameScopesList) {
2554
+ let current = namesScopeList;
2555
+ let scopeNames = namesScopeList?.scopePath ?? null;
2556
+ for (const frame of contentNameScopesList) {
2557
+ scopeNames = ScopeStack.push(scopeNames, frame.scopeNames);
2558
+ current = new _AttributedScopeStack(current, scopeNames, frame.encodedTokenAttributes);
2559
+ }
2560
+ return current;
2561
+ }
2562
+ static createRoot(scopeName, tokenAttributes) {
2563
+ return new _AttributedScopeStack(null, new ScopeStack(null, scopeName), tokenAttributes);
2564
+ }
2565
+ static createRootAndLookUpScopeName(scopeName, tokenAttributes, grammar) {
2566
+ const rawRootMetadata = grammar.getMetadataForScope(scopeName);
2567
+ const scopePath = new ScopeStack(null, scopeName);
2568
+ const rootStyle = grammar.themeProvider.themeMatch(scopePath);
2569
+ const resolvedTokenAttributes = _AttributedScopeStack.mergeAttributes(
2570
+ tokenAttributes,
2571
+ rawRootMetadata,
2572
+ rootStyle
2573
+ );
2574
+ return new _AttributedScopeStack(null, scopePath, resolvedTokenAttributes);
2575
+ }
2576
+ get scopeName() {
2577
+ return this.scopePath.scopeName;
2578
+ }
2579
+ toString() {
2580
+ return this.getScopeNames().join(" ");
2581
+ }
2582
+ equals(other) {
2583
+ return _AttributedScopeStack.equals(this, other);
2584
+ }
2585
+ static equals(a, b) {
2586
+ do {
2587
+ if (a === b) {
2588
+ return true;
2589
+ }
2590
+ if (!a && !b) {
2591
+ return true;
2592
+ }
2593
+ if (!a || !b) {
2594
+ return false;
2595
+ }
2596
+ if (a.scopeName !== b.scopeName || a.tokenAttributes !== b.tokenAttributes) {
2597
+ return false;
2598
+ }
2599
+ a = a.parent;
2600
+ b = b.parent;
2601
+ } while (true);
2602
+ }
2603
+ static mergeAttributes(existingTokenAttributes, basicScopeAttributes, styleAttributes) {
2604
+ let fontStyle = -1 /* NotSet */;
2605
+ let foreground = 0;
2606
+ let background = 0;
2607
+ if (styleAttributes !== null) {
2608
+ fontStyle = styleAttributes.fontStyle;
2609
+ foreground = styleAttributes.foregroundId;
2610
+ background = styleAttributes.backgroundId;
2611
+ }
2612
+ return EncodedTokenMetadata.set(
2613
+ existingTokenAttributes,
2614
+ basicScopeAttributes.languageId,
2615
+ basicScopeAttributes.tokenType,
2616
+ null,
2617
+ fontStyle,
2618
+ foreground,
2619
+ background
2620
+ );
2621
+ }
2622
+ pushAttributed(scopePath, grammar) {
2623
+ if (scopePath === null) {
2624
+ return this;
2625
+ }
2626
+ if (scopePath.indexOf(" ") === -1) {
2627
+ return _AttributedScopeStack._pushAttributed(this, scopePath, grammar);
2628
+ }
2629
+ const scopes = scopePath.split(/ /g);
2630
+ let result = this;
2631
+ for (const scope of scopes) {
2632
+ result = _AttributedScopeStack._pushAttributed(result, scope, grammar);
2633
+ }
2634
+ return result;
2635
+ }
2636
+ static _pushAttributed(target, scopeName, grammar) {
2637
+ const rawMetadata = grammar.getMetadataForScope(scopeName);
2638
+ const newPath = target.scopePath.push(scopeName);
2639
+ const scopeThemeMatchResult = grammar.themeProvider.themeMatch(newPath);
2640
+ const metadata = _AttributedScopeStack.mergeAttributes(
2641
+ target.tokenAttributes,
2642
+ rawMetadata,
2643
+ scopeThemeMatchResult
2644
+ );
2645
+ return new _AttributedScopeStack(target, newPath, metadata);
2646
+ }
2647
+ getScopeNames() {
2648
+ return this.scopePath.getSegments();
2649
+ }
2650
+ getExtensionIfDefined(base) {
2651
+ const result = [];
2652
+ let self = this;
2653
+ while (self && self !== base) {
2654
+ result.push({
2655
+ encodedTokenAttributes: self.tokenAttributes,
2656
+ scopeNames: self.scopePath.getExtensionIfDefined(self.parent?.scopePath ?? null)
2657
+ });
2658
+ self = self.parent;
2659
+ }
2660
+ return self === base ? result.reverse() : void 0;
2661
+ }
2662
+ };
2663
+ var StateStackImpl = class _StateStackImpl {
2664
+ /**
2665
+ * Invariant:
2666
+ * ```
2667
+ * if (contentNameScopesList !== nameScopesList && contentNameScopesList?.parent !== nameScopesList) {
2668
+ * throw new Error();
2669
+ * }
2670
+ * if (this.parent && !nameScopesList.extends(this.parent.contentNameScopesList)) {
2671
+ * throw new Error();
2672
+ * }
2673
+ * ```
2674
+ */
2675
+ constructor(parent, ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
2676
+ this.parent = parent;
2677
+ this.ruleId = ruleId;
2678
+ this.beginRuleCapturedEOL = beginRuleCapturedEOL;
2679
+ this.endRule = endRule;
2680
+ this.nameScopesList = nameScopesList;
2681
+ this.contentNameScopesList = contentNameScopesList;
2682
+ this.depth = this.parent ? this.parent.depth + 1 : 1;
2683
+ this._enterPos = enterPos;
2684
+ this._anchorPos = anchorPos;
2685
+ }
2686
+ _stackElementBrand = void 0;
2687
+ // TODO remove me
2688
+ static NULL = new _StateStackImpl(
2689
+ null,
2690
+ 0,
2691
+ 0,
2692
+ 0,
2693
+ false,
2694
+ null,
2695
+ null,
2696
+ null
2697
+ );
2698
+ /**
2699
+ * The position on the current line where this state was pushed.
2700
+ * This is relevant only while tokenizing a line, to detect endless loops.
2701
+ * Its value is meaningless across lines.
2702
+ */
2703
+ _enterPos;
2704
+ /**
2705
+ * The captured anchor position when this stack element was pushed.
2706
+ * This is relevant only while tokenizing a line, to restore the anchor position when popping.
2707
+ * Its value is meaningless across lines.
2708
+ */
2709
+ _anchorPos;
2710
+ /**
2711
+ * The depth of the stack.
2712
+ */
2713
+ depth;
2714
+ equals(other) {
2715
+ if (other === null) {
2716
+ return false;
2717
+ }
2718
+ return _StateStackImpl._equals(this, other);
2719
+ }
2720
+ static _equals(a, b) {
2721
+ if (a === b) {
2722
+ return true;
2723
+ }
2724
+ if (!this._structuralEquals(a, b)) {
2725
+ return false;
2726
+ }
2727
+ return AttributedScopeStack.equals(a.contentNameScopesList, b.contentNameScopesList);
2728
+ }
2729
+ /**
2730
+ * A structural equals check. Does not take into account `scopes`.
2731
+ */
2732
+ static _structuralEquals(a, b) {
2733
+ do {
2734
+ if (a === b) {
2735
+ return true;
2736
+ }
2737
+ if (!a && !b) {
2738
+ return true;
2739
+ }
2740
+ if (!a || !b) {
2741
+ return false;
2742
+ }
2743
+ if (a.depth !== b.depth || a.ruleId !== b.ruleId || a.endRule !== b.endRule) {
2744
+ return false;
2745
+ }
2746
+ a = a.parent;
2747
+ b = b.parent;
2748
+ } while (true);
2749
+ }
2750
+ clone() {
2751
+ return this;
2752
+ }
2753
+ static _reset(el) {
2754
+ while (el) {
2755
+ el._enterPos = -1;
2756
+ el._anchorPos = -1;
2757
+ el = el.parent;
2758
+ }
2759
+ }
2760
+ reset() {
2761
+ _StateStackImpl._reset(this);
2762
+ }
2763
+ pop() {
2764
+ return this.parent;
2765
+ }
2766
+ safePop() {
2767
+ if (this.parent) {
2768
+ return this.parent;
2769
+ }
2770
+ return this;
2771
+ }
2772
+ push(ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
2773
+ return new _StateStackImpl(
2774
+ this,
2775
+ ruleId,
2776
+ enterPos,
2777
+ anchorPos,
2778
+ beginRuleCapturedEOL,
2779
+ endRule,
2780
+ nameScopesList,
2781
+ contentNameScopesList
2782
+ );
2783
+ }
2784
+ getEnterPos() {
2785
+ return this._enterPos;
2786
+ }
2787
+ getAnchorPos() {
2788
+ return this._anchorPos;
2789
+ }
2790
+ getRule(grammar) {
2791
+ return grammar.getRule(this.ruleId);
2792
+ }
2793
+ toString() {
2794
+ const r = [];
2795
+ this._writeString(r, 0);
2796
+ return "[" + r.join(",") + "]";
2797
+ }
2798
+ _writeString(res, outIndex) {
2799
+ if (this.parent) {
2800
+ outIndex = this.parent._writeString(res, outIndex);
2801
+ }
2802
+ res[outIndex++] = `(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`;
2803
+ return outIndex;
2804
+ }
2805
+ withContentNameScopesList(contentNameScopeStack) {
2806
+ if (this.contentNameScopesList === contentNameScopeStack) {
2807
+ return this;
2808
+ }
2809
+ return this.parent.push(
2810
+ this.ruleId,
2811
+ this._enterPos,
2812
+ this._anchorPos,
2813
+ this.beginRuleCapturedEOL,
2814
+ this.endRule,
2815
+ this.nameScopesList,
2816
+ contentNameScopeStack
2817
+ );
2818
+ }
2819
+ withEndRule(endRule) {
2820
+ if (this.endRule === endRule) {
2821
+ return this;
2822
+ }
2823
+ return new _StateStackImpl(
2824
+ this.parent,
2825
+ this.ruleId,
2826
+ this._enterPos,
2827
+ this._anchorPos,
2828
+ this.beginRuleCapturedEOL,
2829
+ endRule,
2830
+ this.nameScopesList,
2831
+ this.contentNameScopesList
2832
+ );
2833
+ }
2834
+ // Used to warn of endless loops
2835
+ hasSameRuleAs(other) {
2836
+ let el = this;
2837
+ while (el && el._enterPos === other._enterPos) {
2838
+ if (el.ruleId === other.ruleId) {
2839
+ return true;
2840
+ }
2841
+ el = el.parent;
2842
+ }
2843
+ return false;
2844
+ }
2845
+ toStateStackFrame() {
2846
+ return {
2847
+ ruleId: ruleIdToNumber(this.ruleId),
2848
+ beginRuleCapturedEOL: this.beginRuleCapturedEOL,
2849
+ endRule: this.endRule,
2850
+ nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
2851
+ contentNameScopesList: this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList) ?? []
2852
+ };
2853
+ }
2854
+ static pushFrame(self, frame) {
2855
+ const namesScopeList = AttributedScopeStack.fromExtension(self?.nameScopesList ?? null, frame.nameScopesList);
2856
+ return new _StateStackImpl(
2857
+ self,
2858
+ ruleIdFromNumber(frame.ruleId),
2859
+ frame.enterPos ?? -1,
2860
+ frame.anchorPos ?? -1,
2861
+ frame.beginRuleCapturedEOL,
2862
+ frame.endRule,
2863
+ namesScopeList,
2864
+ AttributedScopeStack.fromExtension(namesScopeList, frame.contentNameScopesList)
2865
+ );
2866
+ }
2867
+ };
2868
+ var BalancedBracketSelectors = class {
2869
+ balancedBracketScopes;
2870
+ unbalancedBracketScopes;
2871
+ allowAny = false;
2872
+ constructor(balancedBracketScopes, unbalancedBracketScopes) {
2873
+ this.balancedBracketScopes = balancedBracketScopes.flatMap(
2874
+ (selector) => {
2875
+ if (selector === "*") {
2876
+ this.allowAny = true;
2877
+ return [];
2878
+ }
2879
+ return createMatchers(selector, nameMatcher).map((m) => m.matcher);
2880
+ }
2881
+ );
2882
+ this.unbalancedBracketScopes = unbalancedBracketScopes.flatMap(
2883
+ (selector) => createMatchers(selector, nameMatcher).map((m) => m.matcher)
2884
+ );
2885
+ }
2886
+ get matchesAlways() {
2887
+ return this.allowAny && this.unbalancedBracketScopes.length === 0;
2888
+ }
2889
+ get matchesNever() {
2890
+ return this.balancedBracketScopes.length === 0 && !this.allowAny;
2891
+ }
2892
+ match(scopes) {
2893
+ for (const excluder of this.unbalancedBracketScopes) {
2894
+ if (excluder(scopes)) {
2895
+ return false;
2896
+ }
2897
+ }
2898
+ for (const includer of this.balancedBracketScopes) {
2899
+ if (includer(scopes)) {
2900
+ return true;
2901
+ }
2902
+ }
2903
+ return this.allowAny;
2904
+ }
2905
+ };
2906
+ var LineTokens = class {
2907
+ constructor(emitBinaryTokens, lineText, tokenTypeOverrides, balancedBracketSelectors) {
2908
+ this.balancedBracketSelectors = balancedBracketSelectors;
2909
+ this._emitBinaryTokens = emitBinaryTokens;
2910
+ this._tokenTypeOverrides = tokenTypeOverrides;
2911
+ if (false) {
2912
+ this._lineText = lineText;
2913
+ } else {
2914
+ this._lineText = null;
2915
+ }
2916
+ this._tokens = [];
2917
+ this._binaryTokens = [];
2918
+ this._lastTokenEndIndex = 0;
2919
+ }
2920
+ _emitBinaryTokens;
2921
+ /**
2922
+ * defined only if `false`.
2923
+ */
2924
+ _lineText;
2925
+ /**
2926
+ * used only if `_emitBinaryTokens` is false.
2927
+ */
2928
+ _tokens;
2929
+ /**
2930
+ * used only if `_emitBinaryTokens` is true.
2931
+ */
2932
+ _binaryTokens;
2933
+ _lastTokenEndIndex;
2934
+ _tokenTypeOverrides;
2935
+ produce(stack, endIndex) {
2936
+ this.produceFromScopes(stack.contentNameScopesList, endIndex);
2937
+ }
2938
+ produceFromScopes(scopesList, endIndex) {
2939
+ if (this._lastTokenEndIndex >= endIndex) {
2940
+ return;
2941
+ }
2942
+ if (this._emitBinaryTokens) {
2943
+ let metadata = scopesList?.tokenAttributes ?? 0;
2944
+ let containsBalancedBrackets = false;
2945
+ if (this.balancedBracketSelectors?.matchesAlways) {
2946
+ containsBalancedBrackets = true;
2947
+ }
2948
+ if (this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
2949
+ const scopes2 = scopesList?.getScopeNames() ?? [];
2950
+ for (const tokenType of this._tokenTypeOverrides) {
2951
+ if (tokenType.matcher(scopes2)) {
2952
+ metadata = EncodedTokenMetadata.set(
2953
+ metadata,
2954
+ 0,
2955
+ toOptionalTokenType(tokenType.type),
2956
+ null,
2957
+ -1 /* NotSet */,
2958
+ 0,
2959
+ 0
2960
+ );
2961
+ }
2962
+ }
2963
+ if (this.balancedBracketSelectors) {
2964
+ containsBalancedBrackets = this.balancedBracketSelectors.match(scopes2);
2965
+ }
2966
+ }
2967
+ if (containsBalancedBrackets) {
2968
+ metadata = EncodedTokenMetadata.set(
2969
+ metadata,
2970
+ 0,
2971
+ 8 /* NotSet */,
2972
+ containsBalancedBrackets,
2973
+ -1 /* NotSet */,
2974
+ 0,
2975
+ 0
2976
+ );
2977
+ }
2978
+ if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === metadata) {
2979
+ this._lastTokenEndIndex = endIndex;
2980
+ return;
2981
+ }
2982
+ this._binaryTokens.push(this._lastTokenEndIndex);
2983
+ this._binaryTokens.push(metadata);
2984
+ this._lastTokenEndIndex = endIndex;
2985
+ return;
2986
+ }
2987
+ const scopes = scopesList?.getScopeNames() ?? [];
2988
+ this._tokens.push({
2989
+ startIndex: this._lastTokenEndIndex,
2990
+ endIndex,
2991
+ // value: lineText.substring(lastTokenEndIndex, endIndex),
2992
+ scopes
2993
+ });
2994
+ this._lastTokenEndIndex = endIndex;
2995
+ }
2996
+ getResult(stack, lineLength) {
2997
+ if (this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex === lineLength - 1) {
2998
+ this._tokens.pop();
2999
+ }
3000
+ if (this._tokens.length === 0) {
3001
+ this._lastTokenEndIndex = -1;
3002
+ this.produce(stack, lineLength);
3003
+ this._tokens[this._tokens.length - 1].startIndex = 0;
3004
+ }
3005
+ return this._tokens;
3006
+ }
3007
+ getBinaryResult(stack, lineLength) {
3008
+ if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] === lineLength - 1) {
3009
+ this._binaryTokens.pop();
3010
+ this._binaryTokens.pop();
3011
+ }
3012
+ if (this._binaryTokens.length === 0) {
3013
+ this._lastTokenEndIndex = -1;
3014
+ this.produce(stack, lineLength);
3015
+ this._binaryTokens[this._binaryTokens.length - 2] = 0;
3016
+ }
3017
+ const result = new Uint32Array(this._binaryTokens.length);
3018
+ for (let i = 0, len = this._binaryTokens.length; i < len; i++) {
3019
+ result[i] = this._binaryTokens[i];
3020
+ }
3021
+ return result;
3022
+ }
3023
+ };
3024
+
3025
+ // src/registry.ts
3026
+ var SyncRegistry = class {
3027
+ constructor(theme, _onigLib) {
3028
+ this._onigLib = _onigLib;
3029
+ this._theme = theme;
3030
+ }
3031
+ _grammars = /* @__PURE__ */ new Map();
3032
+ _rawGrammars = /* @__PURE__ */ new Map();
3033
+ _injectionGrammars = /* @__PURE__ */ new Map();
3034
+ _theme;
3035
+ dispose() {
3036
+ for (const grammar of this._grammars.values()) {
3037
+ grammar.dispose();
3038
+ }
3039
+ }
3040
+ setTheme(theme) {
3041
+ this._theme = theme;
3042
+ }
3043
+ getColorMap() {
3044
+ return this._theme.getColorMap();
3045
+ }
3046
+ /**
3047
+ * Add `grammar` to registry and return a list of referenced scope names
3048
+ */
3049
+ addGrammar(grammar, injectionScopeNames) {
3050
+ this._rawGrammars.set(grammar.scopeName, grammar);
3051
+ if (injectionScopeNames) {
3052
+ this._injectionGrammars.set(grammar.scopeName, injectionScopeNames);
3053
+ }
3054
+ }
3055
+ /**
3056
+ * Lookup a raw grammar.
3057
+ */
3058
+ lookup(scopeName) {
3059
+ return this._rawGrammars.get(scopeName);
3060
+ }
3061
+ /**
3062
+ * Returns the injections for the given grammar
3063
+ */
3064
+ injections(targetScope) {
3065
+ return this._injectionGrammars.get(targetScope);
3066
+ }
3067
+ /**
3068
+ * Get the default theme settings
3069
+ */
3070
+ getDefaults() {
3071
+ return this._theme.getDefaults();
3072
+ }
3073
+ /**
3074
+ * Match a scope in the theme.
3075
+ */
3076
+ themeMatch(scopePath) {
3077
+ return this._theme.match(scopePath);
3078
+ }
3079
+ /**
3080
+ * Lookup a grammar.
3081
+ */
3082
+ grammarForScopeName(scopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
3083
+ if (!this._grammars.has(scopeName)) {
3084
+ let rawGrammar = this._rawGrammars.get(scopeName);
3085
+ if (!rawGrammar) {
3086
+ return null;
3087
+ }
3088
+ this._grammars.set(scopeName, createGrammar(
3089
+ scopeName,
3090
+ rawGrammar,
3091
+ initialLanguage,
3092
+ embeddedLanguages,
3093
+ tokenTypes,
3094
+ balancedBracketSelectors,
3095
+ this,
3096
+ this._onigLib
3097
+ ));
3098
+ }
3099
+ return this._grammars.get(scopeName);
3100
+ }
3101
+ };
3102
+
3103
+ // src/index.ts
3104
+ var Registry = class {
3105
+ _options;
3106
+ _syncRegistry;
3107
+ _ensureGrammarCache;
3108
+ constructor(options) {
3109
+ this._options = options;
3110
+ this._syncRegistry = new SyncRegistry(
3111
+ Theme.createFromRawTheme(options.theme, options.colorMap),
3112
+ options.onigLib
3113
+ );
3114
+ this._ensureGrammarCache = /* @__PURE__ */ new Map();
3115
+ }
3116
+ dispose() {
3117
+ this._syncRegistry.dispose();
3118
+ }
3119
+ /**
3120
+ * Change the theme. Once called, no previous `ruleStack` should be used anymore.
3121
+ */
3122
+ setTheme(theme, colorMap) {
3123
+ this._syncRegistry.setTheme(Theme.createFromRawTheme(theme, colorMap));
3124
+ }
3125
+ /**
3126
+ * Returns a lookup array for color ids.
3127
+ */
3128
+ getColorMap() {
3129
+ return this._syncRegistry.getColorMap();
3130
+ }
3131
+ /**
3132
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3133
+ * Please do not use language id 0.
3134
+ */
3135
+ loadGrammarWithEmbeddedLanguages(initialScopeName, initialLanguage, embeddedLanguages) {
3136
+ return this.loadGrammarWithConfiguration(initialScopeName, initialLanguage, { embeddedLanguages });
3137
+ }
3138
+ /**
3139
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3140
+ * Please do not use language id 0.
3141
+ */
3142
+ loadGrammarWithConfiguration(initialScopeName, initialLanguage, configuration) {
3143
+ return this._loadGrammar(
3144
+ initialScopeName,
3145
+ initialLanguage,
3146
+ configuration.embeddedLanguages,
3147
+ configuration.tokenTypes,
3148
+ new BalancedBracketSelectors(
3149
+ configuration.balancedBracketSelectors || [],
3150
+ configuration.unbalancedBracketSelectors || []
3151
+ )
3152
+ );
3153
+ }
3154
+ /**
3155
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3156
+ */
3157
+ loadGrammar(initialScopeName) {
3158
+ return this._loadGrammar(initialScopeName, 0, null, null, null);
3159
+ }
3160
+ _loadGrammar(initialScopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
3161
+ const dependencyProcessor = new ScopeDependencyProcessor(this._syncRegistry, initialScopeName);
3162
+ while (dependencyProcessor.Q.length > 0) {
3163
+ dependencyProcessor.Q.map((request) => this._loadSingleGrammar(request.scopeName));
3164
+ dependencyProcessor.processQueue();
3165
+ }
3166
+ return this._grammarForScopeName(
3167
+ initialScopeName,
3168
+ initialLanguage,
3169
+ embeddedLanguages,
3170
+ tokenTypes,
3171
+ balancedBracketSelectors
3172
+ );
3173
+ }
3174
+ _loadSingleGrammar(scopeName) {
3175
+ if (!this._ensureGrammarCache.has(scopeName)) {
3176
+ this._doLoadSingleGrammar(scopeName);
3177
+ this._ensureGrammarCache.set(scopeName, true);
3178
+ }
3179
+ }
3180
+ _doLoadSingleGrammar(scopeName) {
3181
+ const grammar = this._options.loadGrammar(scopeName);
3182
+ if (grammar) {
3183
+ const injections = typeof this._options.getInjections === "function" ? this._options.getInjections(scopeName) : void 0;
3184
+ this._syncRegistry.addGrammar(grammar, injections);
3185
+ }
3186
+ }
3187
+ /**
3188
+ * Adds a rawGrammar.
3189
+ */
3190
+ addGrammar(rawGrammar, injections = [], initialLanguage = 0, embeddedLanguages = null) {
3191
+ this._syncRegistry.addGrammar(rawGrammar, injections);
3192
+ return this._grammarForScopeName(rawGrammar.scopeName, initialLanguage, embeddedLanguages);
3193
+ }
3194
+ /**
3195
+ * Get the grammar for `scopeName`. The grammar must first be created via `loadGrammar` or `addGrammar`.
3196
+ */
3197
+ _grammarForScopeName(scopeName, initialLanguage = 0, embeddedLanguages = null, tokenTypes = null, balancedBracketSelectors = null) {
3198
+ return this._syncRegistry.grammarForScopeName(
3199
+ scopeName,
3200
+ initialLanguage,
3201
+ embeddedLanguages,
3202
+ tokenTypes,
3203
+ balancedBracketSelectors
3204
+ );
3205
+ }
3206
+ };
3207
+ var INITIAL = StateStackImpl.NULL;
3208
+ export {
3209
+ EncodedTokenMetadata,
3210
+ FindOption,
3211
+ FontStyle,
3212
+ INITIAL,
3213
+ Registry,
3214
+ Theme,
3215
+ disposeOnigString
3216
+ };