@nuxt/hints 1.0.0-alpha.9 → 1.0.1

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 (278) hide show
  1. package/README.md +50 -3
  2. package/dist/client/200.html +1 -1
  3. package/dist/client/404.html +1 -1
  4. package/dist/client/_nuxt/2UxHyX5q.js +1 -0
  5. package/dist/client/_nuxt/4A_iFExJ.js +1 -0
  6. package/dist/client/_nuxt/85-TOEBH.js +1 -0
  7. package/dist/client/_nuxt/B1yitclQ.js +1 -0
  8. package/dist/client/_nuxt/B7c-h3xW.js +1 -0
  9. package/dist/client/_nuxt/{BS0rITwE.js → BAtxTl2q.js} +1 -1
  10. package/dist/client/_nuxt/BBf5iR-q.js +1 -0
  11. package/dist/client/_nuxt/BERRCDM3.js +1 -0
  12. package/dist/client/_nuxt/BETggiCN.js +1 -0
  13. package/dist/client/_nuxt/BEwlwnbL.js +1 -0
  14. package/dist/client/_nuxt/BFfxhgS-.js +1 -0
  15. package/dist/client/_nuxt/BGHnOYBU.js +1 -0
  16. package/dist/client/_nuxt/BH7IYjvW.js +1 -0
  17. package/dist/client/_nuxt/BJDFO7_C.js +1 -0
  18. package/dist/client/_nuxt/BM1_JUlF.js +1 -0
  19. package/dist/client/_nuxt/BMWR74SV.js +1 -0
  20. package/dist/client/_nuxt/BQ8w6xss.js +1 -0
  21. package/dist/client/_nuxt/BR5kRUq4.js +1 -0
  22. package/dist/client/_nuxt/BRHolxvo.js +1 -0
  23. package/dist/client/_nuxt/BRZ36xJF.js +1 -0
  24. package/dist/client/_nuxt/BTJTHyun.js +1 -0
  25. package/dist/client/_nuxt/BTifaqeh.js +1 -0
  26. package/dist/client/_nuxt/BV7otONQ.js +1 -0
  27. package/dist/client/_nuxt/BVQ-GDCI.js +1 -0
  28. package/dist/client/_nuxt/BWvSN4gD.js +1 -0
  29. package/dist/client/_nuxt/{BKRej55Q.js → BY2SE5zy.js} +1 -1
  30. package/dist/client/_nuxt/BYV0-3_D.js +1 -0
  31. package/dist/client/_nuxt/BYunw83y.js +1 -0
  32. package/dist/client/_nuxt/BZvkOJ9d.js +1 -0
  33. package/dist/client/_nuxt/B_m7g4N7.js +1 -0
  34. package/dist/client/_nuxt/BcOcwvcX.js +1 -0
  35. package/dist/client/_nuxt/BcVCzyr7.js +1 -0
  36. package/dist/client/_nuxt/BdImnpbu.js +1 -0
  37. package/dist/client/_nuxt/BdnUsdx6.js +1 -0
  38. package/dist/client/_nuxt/BdyeT68K.js +1 -0
  39. package/dist/client/_nuxt/BeH2EWoN.js +1 -0
  40. package/dist/client/_nuxt/BhOHFoWU.js +1 -0
  41. package/dist/client/_nuxt/BkioyH1T.js +1 -0
  42. package/dist/client/_nuxt/BmXAJ9_W.js +1 -0
  43. package/dist/client/_nuxt/Bmn6On1c.js +1 -0
  44. package/dist/client/_nuxt/Bp6g37R7.js +1 -0
  45. package/dist/client/_nuxt/BqTXFGrv.js +1 -0
  46. package/dist/client/_nuxt/BqWnGSMi.js +1 -0
  47. package/dist/client/_nuxt/BqYA7rlc.js +1 -0
  48. package/dist/client/_nuxt/{DOJAAXAk.js → BsJUmJIm.js} +1 -1
  49. package/dist/client/_nuxt/BsS91CYL.js +1 -0
  50. package/dist/client/_nuxt/BspZqrRM.js +1 -0
  51. package/dist/client/_nuxt/BtCnVYZw.js +1 -0
  52. package/dist/client/_nuxt/BtOb2qkB.js +1 -0
  53. package/dist/client/_nuxt/BtqSS_iP.js +1 -0
  54. package/dist/client/_nuxt/BuQSe7zV.js +13 -0
  55. package/dist/client/_nuxt/Bv_4Rxtq.js +1 -0
  56. package/dist/client/_nuxt/BvzEVeQv.js +1 -0
  57. package/dist/client/_nuxt/BxgE0vQu.js +1 -0
  58. package/dist/client/_nuxt/{CuE35eZa.js → Bz59FrZb.js} +1 -1
  59. package/dist/client/_nuxt/BzTr9Aqm.js +1 -0
  60. package/dist/client/_nuxt/C-HG3fhB.js +1 -0
  61. package/dist/client/_nuxt/C-SQnVFl.js +1 -0
  62. package/dist/client/_nuxt/C0HS_06l.js +1 -0
  63. package/dist/client/_nuxt/C0hk2d4L.js +1 -0
  64. package/dist/client/_nuxt/C151Ov-r.js +1 -0
  65. package/dist/client/_nuxt/C2t-YnRu.js +1 -0
  66. package/dist/client/_nuxt/C3B-1QV4.js +1 -0
  67. package/dist/client/_nuxt/C4EeE6gA.js +1 -0
  68. package/dist/client/_nuxt/C4IJs8-o.js +1 -0
  69. package/dist/client/_nuxt/C5BYcBs_.js +1 -0
  70. package/dist/client/_nuxt/C5YyOfLZ.js +1 -0
  71. package/dist/client/_nuxt/C7zT0LnQ.js +1 -0
  72. package/dist/client/_nuxt/{CTf7BuVz.js → C8XNfCrI.js} +1 -1
  73. package/dist/client/_nuxt/C8lEn-DE.js +1 -0
  74. package/dist/client/_nuxt/C98Dy4si.js +1 -0
  75. package/dist/client/_nuxt/C9XAeP06.js +1 -0
  76. package/dist/client/_nuxt/CDx5xZoG.js +1 -0
  77. package/dist/client/_nuxt/CEL-wOlO.js +1 -0
  78. package/dist/client/_nuxt/CENFIVCM.js +1 -0
  79. package/dist/client/_nuxt/CEu0bR-o.js +1 -0
  80. package/dist/client/_nuxt/CF10PKvl.js +1 -0
  81. package/dist/client/_nuxt/CG8Ifv2g.js +1 -0
  82. package/dist/client/_nuxt/CHLpvVh8.js +1 -0
  83. package/dist/client/_nuxt/CHM0blh-.js +1 -0
  84. package/dist/client/_nuxt/CJc9bBzg.js +1 -0
  85. package/dist/client/_nuxt/CKIfxQSi.js +1 -0
  86. package/dist/client/_nuxt/CLZrNe3w.js +1 -0
  87. package/dist/client/_nuxt/CLxacb5B.js +1 -0
  88. package/dist/client/_nuxt/CO1LY3CK.js +1 -0
  89. package/dist/client/_nuxt/COcwbKMJ.js +1 -0
  90. package/dist/client/_nuxt/COkxafJQ.js +1 -0
  91. package/dist/client/_nuxt/CSXwinHm.js +1 -0
  92. package/dist/client/_nuxt/CXDyekYo.js +3 -0
  93. package/dist/client/_nuxt/CYpkKp66.js +1 -0
  94. package/dist/client/_nuxt/{BFRyJUvr.js → CZ1OMT3Z.js} +1 -1
  95. package/dist/client/_nuxt/CZhp0h8q.js +1 -0
  96. package/dist/client/_nuxt/CbFg5uaA.js +1 -0
  97. package/dist/client/_nuxt/CeAyd5Ju.js +1 -0
  98. package/dist/client/_nuxt/CeZK1NFH.js +1 -0
  99. package/dist/client/_nuxt/CenWIFCC.js +1 -0
  100. package/dist/client/_nuxt/Cg-RD9OK.js +1 -0
  101. package/dist/client/_nuxt/CgK0fS9t.js +1 -0
  102. package/dist/client/_nuxt/CgrjxMR_.js +6 -0
  103. package/dist/client/_nuxt/ChMvpjG-.js +1 -0
  104. package/dist/client/_nuxt/CkByrt1z.js +1 -0
  105. package/dist/client/_nuxt/CklMAg4u.js +1 -0
  106. package/dist/client/_nuxt/Cl_HNi2c.js +4 -0
  107. package/dist/client/_nuxt/Cn7AkR1O.js +1 -0
  108. package/dist/client/_nuxt/CnnmHF94.js +1 -0
  109. package/dist/client/_nuxt/CnsnAmq5.js +1 -0
  110. package/dist/client/_nuxt/Co6uUVPk.js +1 -0
  111. package/dist/client/_nuxt/CoDkCxhg.js +1 -0
  112. package/dist/client/_nuxt/CpOuai2O.js +1 -0
  113. package/dist/client/_nuxt/Cq5zzVJU.js +1 -0
  114. package/dist/client/_nuxt/CquLrc37.js +1 -0
  115. package/dist/client/_nuxt/CsfeWuGM.js +1 -0
  116. package/dist/client/_nuxt/CuPHTKiy.js +1 -0
  117. package/dist/client/_nuxt/CwoSXNpI.js +1 -0
  118. package/dist/client/_nuxt/CxGSJlkm.js +1 -0
  119. package/dist/client/_nuxt/CxLEBnE3.js +1 -0
  120. package/dist/client/_nuxt/Cz2AlsmD.js +1 -0
  121. package/dist/client/_nuxt/CzTSHFRz.js +1 -0
  122. package/dist/client/_nuxt/D0YGMca9.js +1 -0
  123. package/dist/client/_nuxt/D17OF-Vu.js +1 -0
  124. package/dist/client/_nuxt/D1j8_8rp.js +1 -0
  125. package/dist/client/_nuxt/D3lLCCz7.js +1 -0
  126. package/dist/client/_nuxt/D5-asLiD.js +1 -0
  127. package/dist/client/_nuxt/D53aC0YG.js +1 -0
  128. package/dist/client/_nuxt/D7o27uSR.js +1 -0
  129. package/dist/client/_nuxt/D82EKSYY.js +1 -0
  130. package/dist/client/_nuxt/D82vCrfD.js +1 -0
  131. package/dist/client/_nuxt/D8_7TLub.js +1 -0
  132. package/dist/client/_nuxt/D8l8udqQ.js +1 -0
  133. package/dist/client/_nuxt/D93ZcfNL.js +1 -0
  134. package/dist/client/_nuxt/D97Zzqfu.js +1 -0
  135. package/dist/client/_nuxt/DDvzSYfr.js +1 -0
  136. package/dist/client/_nuxt/DFQXde-d.js +1 -0
  137. package/dist/client/_nuxt/DFXneXwc.js +1 -0
  138. package/dist/client/_nuxt/DHCkPAjA.js +1 -0
  139. package/dist/client/_nuxt/DM8c43g1.js +1 -0
  140. package/dist/client/_nuxt/DMLP1f5n.js +24 -0
  141. package/dist/client/_nuxt/DMzUqQB5.js +1 -0
  142. package/dist/client/_nuxt/{DOHcV6MR.js → DO_IqDaw.js} +1 -1
  143. package/dist/client/_nuxt/DPOp833l.js +1 -0
  144. package/dist/client/_nuxt/DRJZaHtK.js +1 -0
  145. package/dist/client/_nuxt/DRg8JJMk.js +1 -0
  146. package/dist/client/_nuxt/DV7GczEv.js +1 -0
  147. package/dist/client/_nuxt/DVFEvuxE.js +1 -0
  148. package/dist/client/_nuxt/DVxCFoDh.js +1 -0
  149. package/dist/client/_nuxt/DWrx1Km3.js +1 -0
  150. package/dist/client/_nuxt/DXmwc3jG.js +1 -0
  151. package/dist/client/_nuxt/DXvB9xmW.js +1 -0
  152. package/dist/client/_nuxt/DZf3V79B.js +1 -0
  153. package/dist/client/_nuxt/DZu-aV2c.js +1 -0
  154. package/dist/client/_nuxt/D_Q5rh1f.js +1 -0
  155. package/dist/client/_nuxt/Da5cRb03.js +1 -0
  156. package/dist/client/_nuxt/Dd19v3D-.js +1 -0
  157. package/dist/client/_nuxt/DdkO51Og.js +1 -0
  158. package/dist/client/_nuxt/Df6bDoY_.js +1 -0
  159. package/dist/client/_nuxt/DhmSosst.js +1 -0
  160. package/dist/client/_nuxt/DjAJT7YJ.js +1 -0
  161. package/dist/client/_nuxt/DkFqJrB1.js +1 -0
  162. package/dist/client/_nuxt/DkwncUOv.js +1 -0
  163. package/dist/client/_nuxt/Dpen1YoG.js +1 -0
  164. package/dist/client/_nuxt/Dph4kLrZ.js +1 -0
  165. package/dist/client/_nuxt/{BHYWC4mf.js → Dq5iEy-J.js} +1 -1
  166. package/dist/client/_nuxt/DsOJ9woJ.js +1 -0
  167. package/dist/client/_nuxt/DsumFeuD.js +1 -0
  168. package/dist/client/_nuxt/{BMheLZQI.js → DuO5kjlf.js} +1 -1
  169. package/dist/client/_nuxt/DvAmuSmV.js +1 -0
  170. package/dist/client/_nuxt/DyxjwDmM.js +1 -0
  171. package/dist/client/_nuxt/Dzze3sRP.js +1 -0
  172. package/dist/client/_nuxt/FtFNcQmh.js +1 -0
  173. package/dist/client/_nuxt/IF9eRakj.js +1 -0
  174. package/dist/client/_nuxt/IeuSbFQv.js +1 -0
  175. package/dist/client/_nuxt/LCb0JLof.js +1 -0
  176. package/dist/client/_nuxt/P80f7IUj.js +1 -0
  177. package/dist/client/_nuxt/Pmp26Uib.js +1 -0
  178. package/dist/client/_nuxt/QIJgUcNo.js +1 -0
  179. package/dist/client/_nuxt/RxLv4Mw1.js +1 -0
  180. package/dist/client/_nuxt/VOosw3JB.js +1 -0
  181. package/dist/client/_nuxt/Ve4PFQV2.js +1 -0
  182. package/dist/client/_nuxt/YqXBG_HV.js +1 -0
  183. package/dist/client/_nuxt/_H4v1dQx.js +1 -0
  184. package/dist/client/_nuxt/_ykCGR6B.js +1 -0
  185. package/dist/client/_nuxt/{BZWgH84o.js → a9uSpr3S.js} +1 -1
  186. package/dist/client/_nuxt/bCR0ucgS.js +1 -0
  187. package/dist/client/_nuxt/builds/latest.json +1 -1
  188. package/dist/client/_nuxt/builds/meta/99ecb9ec-79bf-4090-9942-9ce383dac370.json +1 -0
  189. package/dist/client/_nuxt/dwOrl1Do.js +1 -0
  190. package/dist/client/_nuxt/{entry.bXb283Sw.css → entry.D5OyC1nV.css} +1 -1
  191. package/dist/client/_nuxt/eo99z4R2.js +1 -0
  192. package/dist/client/_nuxt/error-404.B6ZMX39t.css +1 -0
  193. package/dist/client/_nuxt/error-500.dS86tDkg.css +1 -0
  194. package/dist/client/_nuxt/fKv21gyL.js +1 -0
  195. package/dist/client/_nuxt/gcz8RCvz.js +1 -0
  196. package/dist/client/_nuxt/hydration.BczHrsb5.css +1 -0
  197. package/dist/client/_nuxt/k_qm7-4y.js +1 -0
  198. package/dist/client/_nuxt/lXgVvXCa.js +1 -0
  199. package/dist/client/_nuxt/mWjccvbQ.js +1 -0
  200. package/dist/client/_nuxt/mjskCLCv.js +1 -0
  201. package/dist/client/_nuxt/n2N0HUVH.js +1 -0
  202. package/dist/client/_nuxt/oH_c3LbQ.js +1 -0
  203. package/dist/client/_nuxt/rGO070M0.js +1 -0
  204. package/dist/client/_nuxt/rZm6bMo-.js +1 -0
  205. package/dist/client/_nuxt/u5AG7uiY.js +1 -0
  206. package/dist/client/_nuxt/uYugtg8r.js +1 -0
  207. package/dist/client/_nuxt/vGWfd6FD.js +1 -0
  208. package/dist/client/_nuxt/yv6CvBhz.js +1 -0
  209. package/dist/client/component-lazy-load/index.html +1 -1
  210. package/dist/client/html-validate/index.html +1 -0
  211. package/dist/client/hydration/index.html +1 -1
  212. package/dist/client/index.html +1 -1
  213. package/dist/client/third-party-scripts/index.html +1 -1
  214. package/dist/client/web-vitals/index.html +1 -1
  215. package/dist/module.d.mts +5 -1
  216. package/dist/module.json +1 -1
  217. package/dist/module.mjs +75 -37
  218. package/dist/runtime/core/components/nuxt-island.d.ts +136 -1
  219. package/dist/runtime/core/features.d.ts +6 -0
  220. package/dist/runtime/core/features.js +17 -0
  221. package/dist/runtime/core/plugins/features.client.d.ts +2 -0
  222. package/dist/runtime/core/plugins/features.client.js +16 -0
  223. package/dist/runtime/core/plugins/vue-tracer-state.client.d.ts +1 -1
  224. package/dist/runtime/core/types.d.ts +17 -0
  225. package/dist/runtime/core/types.js +0 -0
  226. package/dist/runtime/feature-options.d.ts +8 -0
  227. package/dist/runtime/feature-options.js +0 -0
  228. package/dist/runtime/html-validate/handlers/delete.d.ts +1 -0
  229. package/dist/runtime/html-validate/handlers/delete.js +17 -0
  230. package/dist/runtime/html-validate/handlers/get.d.ts +2 -0
  231. package/dist/runtime/html-validate/handlers/get.js +5 -0
  232. package/dist/runtime/html-validate/handlers/nitro-handlers.plugin.d.ts +3 -0
  233. package/dist/runtime/html-validate/handlers/nitro-handlers.plugin.js +36 -0
  234. package/dist/runtime/html-validate/nitro.plugin.d.ts +3 -0
  235. package/dist/runtime/html-validate/nitro.plugin.js +54 -0
  236. package/dist/runtime/html-validate/plugin.client.d.ts +2 -0
  237. package/dist/runtime/html-validate/plugin.client.js +28 -0
  238. package/dist/runtime/html-validate/storage.d.ts +1 -0
  239. package/dist/runtime/html-validate/storage.js +2 -0
  240. package/dist/runtime/html-validate/types.d.ts +8 -0
  241. package/dist/runtime/html-validate/types.js +0 -0
  242. package/dist/runtime/html-validate/utils.d.ts +3 -0
  243. package/dist/runtime/html-validate/utils.js +12 -0
  244. package/dist/runtime/hydration/composables.js +15 -13
  245. package/dist/runtime/hydration/plugin.client.d.ts +1 -1
  246. package/dist/runtime/hydration/utils.d.ts +1 -0
  247. package/dist/runtime/hydration/utils.js +2 -0
  248. package/dist/runtime/lazy-load/plugin.client.d.ts +1 -1
  249. package/dist/runtime/lazy-load/plugin.client.js +3 -3
  250. package/dist/runtime/lazy-load/utils.d.ts +1 -0
  251. package/dist/runtime/lazy-load/utils.js +2 -0
  252. package/dist/runtime/logger.d.ts +2 -0
  253. package/dist/runtime/logger.js +6 -0
  254. package/dist/runtime/third-party-scripts/plugin.client.d.ts +1 -1
  255. package/dist/runtime/third-party-scripts/plugin.client.js +28 -8
  256. package/dist/runtime/third-party-scripts/types.d.ts +6 -0
  257. package/dist/runtime/third-party-scripts/types.js +0 -0
  258. package/dist/runtime/third-party-scripts/utils.d.ts +1 -0
  259. package/dist/runtime/third-party-scripts/utils.js +2 -0
  260. package/dist/runtime/types.d.ts +12 -0
  261. package/dist/runtime/web-vitals/plugin.client.d.ts +1 -1
  262. package/dist/runtime/web-vitals/plugin.client.js +124 -94
  263. package/dist/runtime/web-vitals/types.d.ts +4 -0
  264. package/dist/runtime/web-vitals/types.js +0 -0
  265. package/dist/runtime/web-vitals/utils.d.ts +1 -0
  266. package/dist/runtime/web-vitals/utils.js +2 -0
  267. package/package.json +21 -17
  268. package/dist/client/_nuxt/16LZ-2rN.js +0 -1
  269. package/dist/client/_nuxt/BOWvZIQC.js +0 -4
  270. package/dist/client/_nuxt/BY53PIN5.js +0 -1
  271. package/dist/client/_nuxt/BYo9cb9R.js +0 -36
  272. package/dist/client/_nuxt/D7xuZOu8.js +0 -1
  273. package/dist/client/_nuxt/DaNrdrhj.js +0 -1
  274. package/dist/client/_nuxt/GiOWC8es.js +0 -6
  275. package/dist/client/_nuxt/builds/meta/9cd25584-d8cd-4e50-8973-949eec6b2524.json +0 -1
  276. package/dist/client/_nuxt/error-404.LspKb3Ne.css +0 -1
  277. package/dist/client/_nuxt/error-500.B_qDdXYW.css +0 -1
  278. package/dist/client/_nuxt/hydration.CLUG10u4.css +0 -1
@@ -0,0 +1,24 @@
1
+ import{q as y}from"./Cl_HNi2c.js";let L=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Sn(n){return Ye(n)}function Ye(n){return Array.isArray(n)?vn(n):n instanceof RegExp?n:typeof n=="object"?wn(n):n}function vn(n){let e=[];for(let t=0,r=n.length;t<r;t++)e[t]=Ye(n[t]);return e}function wn(n){let e={};for(let t in n)e[t]=Ye(n[t]);return e}function It(n,...e){return e.forEach(t=>{for(let r in t)n[r]=t[r]}),n}function xt(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?xt(n.substring(0,n.length-1)):n.substr(~e+1)}var Te=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ae=class{static hasCaptures(n){return n===null?!1:(Te.lastIndex=0,Te.test(n))}static replaceCaptures(n,e,t){return n.replace(Te,(r,o,s,i)=>{let l=t[parseInt(o||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(i){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function Ot(n,e){return n<e?-1:n>e?1:0}function Dt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let o=0;o<t;o++){let s=Ot(n[o],e[o]);if(s!==0)return s}return 0}return t-r}function ct(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function Mt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Bt=class{constructor(n){this.fn=n}cache=new Map;get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},fe=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(Rn(n),e)}static createFromParsedTheme(n,e){return Ln(n,e)}_cachedMatchRoot=new Bt(n=>this._root.match(n));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(o=>kn(n.parent,o.parentScopes));return r?new Gt(r.fontStyle,r.foreground,r.background):null}},Pe=class he{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new he(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new he(t,e[r]);return t}push(e){return new he(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function kn(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],o=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],o=!0}for(;n&&!Cn(n.scopeName,r);){if(o)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Cn(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Gt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Rn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let o=0,s=e.length;o<s;o++){let i=e[o];if(!i.settings)continue;let l;if(typeof i.scope=="string"){let h=i.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(i.scope)?l=i.scope:l=[""];let a=-1;if(typeof i.settings.fontStyle=="string"){a=0;let h=i.settings.fontStyle.split(" ");for(let f=0,d=h.length;f<d;f++)switch(h[f]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let c=null;typeof i.settings.foreground=="string"&&ct(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&ct(i.settings.background)&&(u=i.settings.background);for(let h=0,f=l.length;h<f;h++){let p=l[h].trim().split(" "),b=p[p.length-1],v=null;p.length>1&&(v=p.slice(0,p.length-1),v.reverse()),t[r++]=new En(b,v,o,a,c,u)}}return t}var En=class{constructor(n,e,t,r,o,s){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=o,this.background=s}},I=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(I||{});function Ln(n,e){n.sort((a,c)=>{let u=Ot(a.scope,c.scope);return u!==0||(u=Dt(a.parentScopes,c.parentScopes),u!==0)?u:a.index-c.index});let t=0,r="#000000",o="#ffffff";for(;n.length>=1&&n[0].scope==="";){let a=n.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(o=a.background)}let s=new An(e),i=new Gt(t,s.getId(r),s.getId(o)),l=new Pn(new Be(0,null,-1,0,0),[]);for(let a=0,c=n.length;a<c;a++){let u=n[a];l.insert(0,u.scope,u.parentScopes,u.fontStyle,s.getId(u.foreground),s.getId(u.background))}return new fe(s,i,l)}var An=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Tn=Object.freeze([]),Be=class $t{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,o,s){this.scopeDepth=e,this.parentScopes=t||Tn,this.fontStyle=r,this.foreground=o,this.background=s}clone(){return new $t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,o){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},Pn=class Ge{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,o=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[o]===">"&&o++,!(r>=e.parentScopes.length||o>=t.parentScopes.length);){const s=t.parentScopes[o].length-e.parentScopes[r].length;if(s!==0)return s;r++,o++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),o,s;if(r===-1?(o=e,s=""):(o=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ge._cmpBySpecificity),t}insert(e,t,r,o,s,i){if(t===""){this._doInsertHere(e,r,o,s,i);return}let l=t.indexOf("."),a,c;l===-1?(a=t,c=""):(a=t.substring(0,l),c=t.substring(l+1));let u;this._children.hasOwnProperty(a)?u=this._children[a]:(u=new Ge(this._mainRule.clone(),Be.cloneArr(this._rulesWithParentScopes)),this._children[a]=u),u.insert(e+1,c,r,o,s,i)}_doInsertHere(e,t,r,o,s){if(t===null){this._mainRule.acceptOverwrite(e,r,o,s);return}for(let i=0,l=this._rulesWithParentScopes.length;i<l;i++){let a=this._rulesWithParentScopes[i];if(Dt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,o,s);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Be(e,t,r,o,s))}},Y=class M{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=M.getLanguageId(e),r=M.getTokenType(e),o=M.getFontStyle(e),s=M.getForeground(e),i=M.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:o,foreground:s,background:i})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,o,s,i,l){let a=M.getLanguageId(e),c=M.getTokenType(e),u=M.containsBalancedBrackets(e)?1:0,h=M.getFontStyle(e),f=M.getForeground(e),d=M.getBackground(e);return t!==0&&(a=t),r!==8&&(c=r),o!==null&&(u=o?1:0),s!==-1&&(h=s),i!==0&&(f=i),l!==0&&(d=l),(a<<0|c<<8|u<<10|h<<11|f<<15|d<<24)>>>0}};function pe(n,e){const t=[],r=Nn(n);let o=r.next();for(;o!==null;){let a=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let c=i();if(t.push({matcher:c,priority:a}),o!==",")break;o=r.next()}return t;function s(){if(o==="-"){o=r.next();const a=s();return c=>!!a&&!a(c)}if(o==="("){o=r.next();const a=l();return o===")"&&(o=r.next()),a}if(ut(o)){const a=[];do a.push(o),o=r.next();while(ut(o));return c=>e(a,c)}return null}function i(){const a=[];let c=s();for(;c;)a.push(c),c=s();return u=>a.every(h=>h(u))}function l(){const a=[];let c=i();for(;c&&(a.push(c),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");c=i()}return u=>a.some(h=>h(u))}}function ut(n){return!!n&&!!n.match(/[\w\.:]+/)}function Nn(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Ut(n){typeof n.dispose=="function"&&n.dispose()}var te=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},In=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},xn=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},On=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new te(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const n=this.Q;this.Q=[];const e=new xn;for(const t of n)Dn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof te){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Dn(n,e,t,r){const o=t.lookup(n.scopeName);if(!o){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);n instanceof te?de({baseGrammar:s,selfGrammar:o},r):$e(n.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const i=t.injections(n.scopeName);if(i)for(const l of i)r.add(new te(l))}function $e(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];me([r],e,t)}}function de(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&me(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&me(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function me(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const o=r.repository?It({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&me(r.patterns,{...e,repository:o},t);const s=r.include;if(!s)continue;const i=jt(s);switch(i.kind){case 0:de({...e,selfGrammar:e.baseGrammar},t);break;case 1:de(e,t);break;case 2:$e(i.ruleName,{...e,repository:o},t);break;case 3:case 4:const l=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:o};i.kind===4?$e(i.ruleName,a,t):de(a,t)}else i.kind===4?t.add(new In(i.scopeName,i.ruleName)):t.add(new te(i.scopeName));break}}}var Mn=class{kind=0},Bn=class{kind=1},Gn=class{constructor(n){this.ruleName=n}kind=2},$n=class{constructor(n){this.scopeName=n}kind=3},Un=class{constructor(n,e){this.scopeName=n,this.ruleName=e}kind=4};function jt(n){if(n==="$base")return new Mn;if(n==="$self")return new Bn;const e=n.indexOf("#");if(e===-1)return new $n(n);if(e===0)return new Gn(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new Un(t,r)}}var jn=/\\(\d+)/,ht=/\\(\d+)/g,Vn=-1,Vt=-2;var se=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=ae.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ae.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${xt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:ae.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ae.replaceCaptures(this._contentName,n,e)}},Fn=class extends se{retokenizeCapturedWithRuleId;constructor(n,e,t,r,o){super(n,e,t,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},Hn=class extends se{_match;captures;_cachedCompiledPatterns;constructor(n,e,t,r,o){super(n,e,t,null),this._match=new ne(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new re,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dt=class extends se{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,o){super(n,e,t,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new re,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ue=class extends se{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,o,s,i,l,a,c){super(n,e,t,r),this._begin=new ne(o,this.id),this.beginCaptures=s,this._end=new ne(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new re;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},ge=class extends se{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(n,e,t,r,o,s,i,l,a){super(n,e,t,r),this._begin=new ne(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new ne(i,Vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new re;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new re,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Ft=class N{static createCaptureRule(e,t,r,o,s){return e.registerRule(i=>new Fn(t,i,r,o,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(o=>{if(e.id=o,e.match)return new Hn(e.$vscodeTextmateLocation,e.id,e.name,e.match,N._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=It({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new dt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,N._compilePatterns(s,t,r))}return e.while?new ge(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,N._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,N._compileCaptures(e.whileCaptures||e.captures,t,r),N._compilePatterns(e.patterns,t,r)):new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,N._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,N._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,N._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let o=[];if(e){let s=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);l>s&&(s=l)}for(let i=0;i<=s;i++)o[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);let a=0;e[i].patterns&&(a=N.getCompiledRuleId(e[i],t,r)),o[l]=N.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return o}static _compilePatterns(e,t,r){let o=[];if(e)for(let s=0,i=e.length;s<i;s++){const l=e[s];let a=-1;if(l.include){const c=jt(l.include);switch(c.kind){case 0:case 1:a=N.getCompiledRuleId(r[l.include],t,r);break;case 2:let u=r[c.ruleName];u&&(a=N.getCompiledRuleId(u,t,r));break;case 3:case 4:const h=c.scopeName,f=c.kind===4?c.ruleName:null,d=t.getExternalGrammar(h,r);if(d)if(f){let p=d.repository[f];p&&(a=N.getCompiledRuleId(p,t,d.repository))}else a=N.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else a=N.getCompiledRuleId(l,t,r);if(a!==-1){const c=t.getRule(a);let u=!1;if((c instanceof dt||c instanceof Ue||c instanceof ge)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;o.push(a)}}return{patterns:o,hasMissingPatterns:(e?e.length:0)!==o.length}}},ne=class Ht{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const r=e.length;let o=0,s=[],i=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(s.push(e.substring(o,l)),s.push("$(?!\\n)(?<!\\n)"),o=l+2):(c==="A"||c==="G")&&(i=!0),l++}this.hasAnchor=i,o===0?this.source=e:(s.push(e.substring(o,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=jn.test(this.source):this.hasBackReferences=!1}clone(){return new Ht(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(o=>e.substring(o.start,o.end));return ht.lastIndex=0,this.source.replace(ht,(o,s)=>Mt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],o=[],s,i,l,a;for(s=0,i=this.source.length;s<i;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,o[s]=l,l==="\\"&&s+1<i&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",t[s+1]="￿",r[s+1]="A",o[s+1]="A"):a==="G"?(e[s+1]="￿",t[s+1]="G",r[s+1]="￿",o[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,o[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},re=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new ft(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(o=>o.resolveAnchors(e,t));return new ft(n,r,this._items.map(o=>o.ruleId))}},ft=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
2
+ `)}findNextMatchSync(n,e,t){const r=this.scanner.findNextMatchSync(n,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ne=class{constructor(n,e){this.languageId=n,this.tokenType=e}},zn=class je{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Ne(e,8),this._embeddedLanguagesMatcher=new Wn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?je._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Ne(0,0);_getBasicScopeAttributes=new Bt(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Ne(t,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(je.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Wn=class{values;scopesRegExp;constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>Mt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},pt=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function zt(n,e,t,r,o,s,i,l){const a=e.content.length;let c=!1,u=-1;if(i){const d=qn(n,e,t,r,o,s);o=d.stack,r=d.linePos,t=d.isFirstLine,u=d.anchorPosition}const h=Date.now();for(;!c;){if(l!==0&&Date.now()-h>l)return new pt(o,!0);f()}return new pt(o,!1);function f(){const d=Kn(n,e,t,r,o,u);if(!d){s.produce(o,a),c=!0;return}const p=d.captureIndices,b=d.matchedRuleId,v=p&&p.length>0?p[0].end>r:!1;if(b===Vn){const _=o.getRule(n);s.produce(o,p[0].start),o=o.withContentNameScopesList(o.nameScopesList),Q(n,e,t,o,s,_.endCaptures,p),s.produce(o,p[0].end);const S=o;if(o=o.parent,u=S.getAnchorPos(),!v&&S.getEnterPos()===r){o=S,s.produce(o,a),c=!0;return}}else{const _=n.getRule(b);s.produce(o,p[0].start);const S=o,g=_.getName(e.content,p),k=o.contentNameScopesList.pushAttributed(g,n);if(o=o.push(b,r,u,p[0].end===a,null,k,k),_ instanceof Ue){const R=_;Q(n,e,t,o,s,R.beginCaptures,p),s.produce(o,p[0].end),u=p[0].end;const O=R.getContentName(e.content,p),j=k.pushAttributed(O,n);if(o=o.withContentNameScopesList(j),R.endHasBackReferences&&(o=o.withEndRule(R.getEndWithResolvedBackReferences(e.content,p))),!v&&S.hasSameRuleAs(o)){o=o.pop(),s.produce(o,a),c=!0;return}}else if(_ instanceof ge){const R=_;Q(n,e,t,o,s,R.beginCaptures,p),s.produce(o,p[0].end),u=p[0].end;const O=R.getContentName(e.content,p),j=k.pushAttributed(O,n);if(o=o.withContentNameScopesList(j),R.whileHasBackReferences&&(o=o.withEndRule(R.getWhileWithResolvedBackReferences(e.content,p))),!v&&S.hasSameRuleAs(o)){o=o.pop(),s.produce(o,a),c=!0;return}}else if(Q(n,e,t,o,s,_.captures,p),s.produce(o,p[0].end),o=o.pop(),!v){o=o.safePop(),s.produce(o,a),c=!0;return}}p[0].end>r&&(r=p[0].end,t=!1)}}function qn(n,e,t,r,o,s){let i=o.beginRuleCapturedEOL?0:-1;const l=[];for(let a=o;a;a=a.pop()){const c=a.getRule(n);c instanceof ge&&l.push({rule:c,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:c,findOptions:u}=Jn(a.rule,n,a.stack.endRule,t,r===i),h=c.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==Vt){o=a.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(a.stack,h.captureIndices[0].start),Q(n,e,t,a.stack,s,a.rule.whileCaptures,h.captureIndices),s.produce(a.stack,h.captureIndices[0].end),i=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,t=!1))}else{o=a.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:i,isFirstLine:t}}function Kn(n,e,t,r,o,s){const i=Yn(n,e,t,r,o,s),l=n.getInjections();if(l.length===0)return i;const a=Xn(l,n,e,t,r,o,s);if(!a)return i;if(!i)return a;const c=i.captureIndices[0].start,u=a.captureIndices[0].start;return u<c||a.priorityMatch&&u===c?a:i}function Yn(n,e,t,r,o,s){const i=o.getRule(n),{ruleScanner:l,findOptions:a}=Wt(i,n,o.endRule,t,r===s),c=l.findNextMatchSync(e,r,a);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Xn(n,e,t,r,o,s,i){let l=Number.MAX_VALUE,a=null,c,u=0;const h=s.contentNameScopesList.getScopeNames();for(let f=0,d=n.length;f<d;f++){const p=n[f];if(!p.matcher(h))continue;const b=e.getRule(p.ruleId),{ruleScanner:v,findOptions:_}=Wt(b,e,null,r,o===i),S=v.findNextMatchSync(t,o,_);if(!S)continue;const g=S.captureIndices[0].start;if(!(g>=l)&&(l=g,a=S.captureIndices,c=S.ruleId,u=p.priority,l===o))break}return a?{priorityMatch:u===-1,captureIndices:a,matchedRuleId:c}:null}function Wt(n,e,t,r,o){return{ruleScanner:n.compileAG(e,t,r,o),findOptions:0}}function Jn(n,e,t,r,o){return{ruleScanner:n.compileWhileAG(e,t,r,o),findOptions:0}}function Q(n,e,t,r,o,s,i){if(s.length===0)return;const l=e.content,a=Math.min(s.length,i.length),c=[],u=i[0].end;for(let h=0;h<a;h++){const f=s[h];if(f===null)continue;const d=i[h];if(d.length===0)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,d.start):o.produce(r,d.start),f.retokenizeCapturedWithRuleId){const b=f.getName(l,i),v=r.contentNameScopesList.pushAttributed(b,n),_=f.getContentName(l,i),S=v.pushAttributed(_,n),g=r.push(f.retokenizeCapturedWithRuleId,d.start,-1,!1,null,v,S),k=n.createOnigString(l.substring(0,d.end));zt(n,k,t&&d.start===0,d.start,g,o,!1,0),Ut(k);continue}const p=f.getName(l,i);if(p!==null){const v=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,n);c.push(new Zn(v,d.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Zn=class{scopes;endPos;constructor(n,e){this.scopes=n,this.endPos=e}};function Qn(n,e,t,r,o,s,i,l){return new tr(n,e,t,r,o,s,i,l)}function mt(n,e,t,r,o){const s=pe(e,_e),i=Ft.getCompiledRuleId(t,r,o.repository);for(const l of s)n.push({debugSelector:e,matcher:l.matcher,ruleId:i,grammar:o,priority:l.priority})}function _e(n,e){if(e.length<n.length)return!1;let t=0;return n.every(r=>{for(let o=t;o<e.length;o++)if(er(e[o],r))return t=o+1,!0;return!1})}function er(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var tr=class{constructor(n,e,t,r,o,s,i,l){if(this._rootScopeName=n,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new zn(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=gt(e,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const a of Object.keys(o)){const c=pe(a,_e);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:o[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const o=r.injections;if(o)for(let i in o)mt(e,i,o[i],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(i=>{const l=this.getExternalGrammar(i);if(l){const a=l.injectionSelector;a&&mt(e,a,l,this,l)}})}return e.sort((o,s)=>o.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=gt(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=Ft.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!e||e===Ve.NULL){o=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Y.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),f=this.getRule(this._rootId).getName(null,null);let d;f?d=ee.createRootAndLookUpScopeName(f,h,this):d=ee.createRoot("unknown",h),e=new Ve(null,this._rootId,-1,-1,!1,null,d,d)}else o=!1,e.reset();n=n+`
3
+ `;const s=this.createOnigString(n),i=s.content.length,l=new rr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),a=zt(this,s,o,0,e,l,!0,r);return Ut(s),{lineLength:i,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function gt(n,e){return n=Sn(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var ee=class B{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,o=e?.scopePath??null;for(const s of t)o=Pe.push(o,s.scopeNames),r=new B(r,o,s.encodedTokenAttributes);return r}static createRoot(e,t){return new B(null,new Pe(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const o=r.getMetadataForScope(e),s=new Pe(null,e),i=r.themeProvider.themeMatch(s),l=B.mergeAttributes(t,o,i);return new B(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return B.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let o=-1,s=0,i=0;return r!==null&&(o=r.fontStyle,s=r.foregroundId,i=r.backgroundId),Y.set(e,t.languageId,t.tokenType,null,o,s,i)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return B._pushAttributed(this,e,t);const r=e.split(/ /g);let o=this;for(const s of r)o=B._pushAttributed(o,s,t);return o}static _pushAttributed(e,t,r){const o=r.getMetadataForScope(t),s=e.scopePath.push(t),i=r.themeProvider.themeMatch(s),l=B.mergeAttributes(e.tokenAttributes,o,i);return new B(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},Ve=class V{constructor(e,t,r,o,s,i,l,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new V(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:V._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ee.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){V._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,o,s,i,l){return new V(this,e,t,r,o,s,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new V(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const r=ee.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new V(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,ee.fromExtension(r,t.contentNameScopesList))}},nr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(n,e){this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):pe(t,_e).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>pe(t,_e).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},rr=class{constructor(n,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=n?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=n?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(s)&&(r=Y.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(r=Y.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const t=n?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)t[r]=this._binaryTokens[r];return t}},or=class{constructor(n,e){this._onigLib=e,this._theme=n}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,r,o){if(!this._grammars.has(n)){let s=this._rawGrammars.get(n);if(!s)return null;this._grammars.set(n,Qn(n,s,e,t,r,o,this,this._onigLib))}return this._grammars.get(n)}},sr=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new or(fe.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(fe.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new nr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,o,s){const i=new On(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(l=>this._loadSingleGrammar(l.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,o,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,o)}_grammarForScopeName(e,t=0,r=null,o=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,o,s)}},Fe=Ve.NULL;const ir=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ie{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}}ie.prototype.normal={};ie.prototype.property={};ie.prototype.space=void 0;function qt(n,e){const t={},r={};for(const o of n)Object.assign(t,o.property),Object.assign(r,o.normal);return new ie(t,r,e)}function He(n){return n.toLowerCase()}class x{constructor(e,t){this.attribute=t,this.property=e}}x.prototype.attribute="";x.prototype.booleanish=!1;x.prototype.boolean=!1;x.prototype.commaOrSpaceSeparated=!1;x.prototype.commaSeparated=!1;x.prototype.defined=!1;x.prototype.mustUseProperty=!1;x.prototype.number=!1;x.prototype.overloadedBoolean=!1;x.prototype.property="";x.prototype.spaceSeparated=!1;x.prototype.space=void 0;let ar=0;const w=H(),E=H(),ze=H(),m=H(),C=H(),q=H(),D=H();function H(){return 2**++ar}const We=Object.freeze(Object.defineProperty({__proto__:null,boolean:w,booleanish:E,commaOrSpaceSeparated:D,commaSeparated:q,number:m,overloadedBoolean:ze,spaceSeparated:C},Symbol.toStringTag,{value:"Module"})),Ie=Object.keys(We);class Xe extends x{constructor(e,t,r,o){let s=-1;if(super(e,t),_t(this,"space",o),typeof r=="number")for(;++s<Ie.length;){const i=Ie[s];_t(this,Ie[s],(r&We[i])===We[i])}}}Xe.prototype.defined=!0;function _t(n,e,t){t&&(n[e]=t)}function X(n){const e={},t={};for(const[r,o]of Object.entries(n.properties)){const s=new Xe(r,n.transform(n.attributes||{},r),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,t[He(r)]=r,t[He(s.attribute)]=r}return new ie(e,t,n.space)}const Kt=X({properties:{ariaActiveDescendant:null,ariaAtomic:E,ariaAutoComplete:null,ariaBusy:E,ariaChecked:E,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:C,ariaCurrent:null,ariaDescribedBy:C,ariaDetails:null,ariaDisabled:E,ariaDropEffect:C,ariaErrorMessage:null,ariaExpanded:E,ariaFlowTo:C,ariaGrabbed:E,ariaHasPopup:null,ariaHidden:E,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:C,ariaLevel:m,ariaLive:null,ariaModal:E,ariaMultiLine:E,ariaMultiSelectable:E,ariaOrientation:null,ariaOwns:C,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:E,ariaReadOnly:E,ariaRelevant:null,ariaRequired:E,ariaRoleDescription:C,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:E,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Yt(n,e){return e in n?n[e]:e}function Xt(n,e){return Yt(n,e.toLowerCase())}const lr=X({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:q,acceptCharset:C,accessKey:C,action:null,allow:null,allowFullScreen:w,allowPaymentRequest:w,allowUserMedia:w,alt:null,as:null,async:w,autoCapitalize:null,autoComplete:C,autoFocus:w,autoPlay:w,blocking:C,capture:null,charSet:null,checked:w,cite:null,className:C,cols:m,colSpan:null,content:null,contentEditable:E,controls:w,controlsList:C,coords:m|q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:w,defer:w,dir:null,dirName:null,disabled:w,download:ze,draggable:E,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:w,formTarget:null,headers:C,height:m,hidden:ze,high:m,href:null,hrefLang:null,htmlFor:C,httpEquiv:C,id:null,imageSizes:null,imageSrcSet:null,inert:w,inputMode:null,integrity:null,is:null,isMap:w,itemId:null,itemProp:C,itemRef:C,itemScope:w,itemType:C,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:w,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:w,muted:w,name:null,nonce:null,noModule:w,noValidate:w,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:w,optimum:m,pattern:null,ping:C,placeholder:null,playsInline:w,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:w,referrerPolicy:null,rel:C,required:w,reversed:w,rows:m,rowSpan:m,sandbox:C,scope:null,scoped:w,seamless:w,selected:w,shadowRootClonable:w,shadowRootDelegatesFocus:w,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:E,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:w,useMap:null,value:E,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:C,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:w,declare:w,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:w,noHref:w,noShade:w,noWrap:w,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:E,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:w,disableRemotePlayback:w,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:Xt}),cr=X({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:D,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:C,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:w,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:q,g2:q,glyphName:q,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:C,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Yt}),Jt=X({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()}}),Zt=X({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xt}),Qt=X({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()}}),ur=/[A-Z]/g,yt=/-[a-z]/g,hr=/^data[-\w.:]+$/i;function dr(n,e){const t=He(e);let r=e,o=x;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&hr.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(yt,pr);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!yt.test(s)){let i=s.replace(ur,fr);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}o=Xe}return new o(r,e)}function fr(n){return"-"+n.toLowerCase()}function pr(n){return n.charAt(1).toUpperCase()}const mr=qt([Kt,lr,Jt,Zt,Qt],"html"),en=qt([Kt,cr,Jt,Zt,Qt],"svg"),bt={}.hasOwnProperty;function gr(n,e){const t=e||{};function r(o,...s){let i=r.invalid;const l=r.handlers;if(o&&bt.call(o,n)){const a=String(o[n]);i=bt.call(l,a)?l[a]:r.unknown}if(i)return i.call(this,o,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const _r=/["&'<>`]/g,yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Sr=/[|\\{}()[\]^$+*?.]/g,St=new WeakMap;function vr(n,e){if(n=n.replace(e.subset?wr(e.subset):_r,r),e.subset||e.escapeOnly)return n;return n.replace(yr,t).replace(br,r);function t(o,s,i){return e.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,i.charCodeAt(s+2),e)}function r(o,s,i){return e.format(o.charCodeAt(0),i.charCodeAt(s+1),e)}}function wr(n){let e=St.get(n);return e||(e=kr(n),St.set(n,e)),e}function kr(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(Sr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Cr=/[\dA-Fa-f]/;function Rr(n,e,t){const r="&#x"+n.toString(16).toUpperCase();return t&&e&&!Cr.test(String.fromCharCode(e))?r:r+";"}const Er=/\d/;function Lr(n,e,t){const r="&#"+String(n);return t&&e&&!Er.test(String.fromCharCode(e))?r:r+";"}const Ar=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],xe={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Tr=["cent","copy","divide","gt","lt","not","para","times"],tn={}.hasOwnProperty,qe={};let le;for(le in xe)tn.call(xe,le)&&(qe[xe[le]]=le);const Pr=/[^\dA-Za-z]/;function Nr(n,e,t,r){const o=String.fromCharCode(n);if(tn.call(qe,o)){const s=qe[o],i="&"+s;return t&&Ar.includes(s)&&!Tr.includes(s)&&(!r||e&&e!==61&&Pr.test(String.fromCharCode(e)))?i:i+";"}return""}function Ir(n,e,t){let r=Rr(n,e,t.omitOptionalSemicolons),o;if((t.useNamedReferences||t.useShortestReferences)&&(o=Nr(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!o)&&t.useShortestReferences){const s=Lr(n,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return o&&(!t.useShortestReferences||o.length<r.length)?o:r}function K(n,e){return vr(n,Object.assign({format:Ir},e))}const xr=/^>|^->|<!--|-->|--!>|<!-$/g,Or=[">"],Dr=["<",">"];function Mr(n,e,t,r){return r.settings.bogusComments?"<?"+K(n.value,Object.assign({},r.settings.characterReferences,{subset:Or}))+">":"<!--"+n.value.replace(xr,o)+"-->";function o(s){return K(s,Object.assign({},r.settings.characterReferences,{subset:Dr}))}}function Br(n,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function vt(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,o=t.indexOf(e);for(;o!==-1;)r++,o=t.indexOf(e,o+e.length);return r}function Gr(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function $r(n){return n.join(" ").trim()}const Ur=/[ \t\n\f\r]/g;function Je(n){return typeof n=="object"?n.type==="text"?wt(n.value):!1:wt(n)}function wt(n){return n.replace(Ur,"")===""}const T=rn(1),nn=rn(-1),jr=[];function rn(n){return e;function e(t,r,o){const s=t?t.children:jr;let i=(r||0)+n,l=s[i];if(!o)for(;l&&Je(l);)i+=n,l=s[i];return l}}const Vr={}.hasOwnProperty;function on(n){return e;function e(t,r,o){return Vr.call(n,t.tagName)&&n[t.tagName](t,r,o)}}const Ze=on({body:Hr,caption:Oe,colgroup:Oe,dd:Kr,dt:qr,head:Oe,html:Fr,li:Wr,optgroup:Yr,option:Xr,p:zr,rp:kt,rt:kt,tbody:Zr,td:Ct,tfoot:Qr,th:Ct,thead:Jr,tr:eo});function Oe(n,e,t){const r=T(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Je(r.value.charAt(0)))}function Fr(n,e,t){const r=T(t,e);return!r||r.type!=="comment"}function Hr(n,e,t){const r=T(t,e);return!r||r.type!=="comment"}function zr(n,e,t){const r=T(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Wr(n,e,t){const r=T(t,e);return!r||r.type==="element"&&r.tagName==="li"}function qr(n,e,t){const r=T(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Kr(n,e,t){const r=T(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function kt(n,e,t){const r=T(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Yr(n,e,t){const r=T(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Xr(n,e,t){const r=T(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Jr(n,e,t){const r=T(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Zr(n,e,t){const r=T(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Qr(n,e,t){return!T(t,e)}function eo(n,e,t){const r=T(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function Ct(n,e,t){const r=T(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const to=on({body:oo,colgroup:so,head:ro,html:no,tbody:io});function no(n){const e=T(n,-1);return!e||e.type!=="comment"}function ro(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function oo(n){const e=T(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Je(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function so(n,e,t){const r=nn(t,e),o=T(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ze(r,t.children.indexOf(r),t)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function io(n,e,t){const r=nn(t,e),o=T(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ze(r,t.children.indexOf(r),t)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const ce={name:[[`
4
+ \f\r &/=>`.split(""),`
5
+ \f\r "&'/=>\``.split("")],[`\0
6
+ \f\r "&'/<=>`.split(""),`\0
7
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
8
+ \f\r &>`.split(""),`\0
9
+ \f\r "&'<=>\``.split("")],[`\0
10
+ \f\r "&'<=>\``.split(""),`\0
11
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ao(n,e,t,r){const o=r.schema,s=o.space==="svg"?!1:r.settings.omitOptionalTags;let i=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(n.tagName.toLowerCase());const l=[];let a;o.space==="html"&&n.tagName==="svg"&&(r.schema=en);const c=lo(r,n.properties),u=r.all(o.space==="html"&&n.tagName==="template"?n.content:n);return r.schema=o,u&&(i=!1),(c||!s||!to(n,e,t))&&(l.push("<",n.tagName,c?" "+c:""),i&&(o.space==="svg"||r.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!i&&(!s||!Ze(n,e,t))&&l.push("</"+n.tagName+">"),l.join("")}function lo(n,e){const t=[];let r=-1,o;if(e){for(o in e)if(e[o]!==null&&e[o]!==void 0){const s=co(n,o,e[o]);s&&t.push(s)}}for(;++r<t.length;){const s=n.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&s!=='"'&&s!=="'"&&(t[r]+=" ")}return t.join("")}function co(n,e,t){const r=dr(n.schema,e),o=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,s=n.settings.allowDangerousCharacters?0:1;let i=n.quote,l;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=K(r.attribute,Object.assign({},n.settings.characterReferences,{subset:ce.name[o][s]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?Gr:$r)(t,{padLeft:!n.settings.tightCommaSeparatedLists}):String(t),n.settings.collapseEmptyAttributes&&!t)?a:(n.settings.preferUnquoted&&(l=K(t,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:ce.unquoted[o][s]}))),l!==t&&(n.settings.quoteSmart&&vt(t,i)>vt(t,n.alternative)&&(i=n.alternative),l=i+K(t,Object.assign({},n.settings.characterReferences,{subset:(i==="'"?ce.single:ce.double)[o][s],attribute:!0}))+i),a+(l&&"="+l))}const uo=["<","&"];function sn(n,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:K(n.value,Object.assign({},r.settings.characterReferences,{subset:uo}))}function ho(n,e,t,r){return r.settings.allowDangerousHtml?n.value:sn(n,e,t,r)}function fo(n,e,t,r){return r.all(n)}const po=gr("type",{invalid:mo,unknown:go,handlers:{comment:Mr,doctype:Br,element:ao,raw:ho,root:fo,text:sn}});function mo(n){throw new Error("Expected node, not `"+n+"`")}function go(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const _o={},yo={},bo=[];function So(n,e){const t=e||_o,r=t.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:vo,all:wo,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||ir,characterReferences:t.characterReferences||yo,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?en:mr,quote:r,alternative:o}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function vo(n,e,t){return po(n,e,t,this)}function wo(n){const e=[],t=n&&n.children||bo;let r=-1;for(;++r<t.length;)e[r]=this.one(t[r],r,n);return e.join("")}function ye(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},r=typeof n=="string"?n:n.name;for(const[o,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?t[o]=s:o===r&&Object.assign(t,s);return t}function U(n,e){return n&&(e?.[n?.toLowerCase()]||n)}function ko(n){return Array.isArray(n)?n:[n]}async function an(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function Qe(n){return!n||["plaintext","txt","text","plain"].includes(n)}function ln(n){return n==="ansi"||Qe(n)}function et(n){return n==="none"}function cn(n){return et(n)}function un(n,e){if(!e)return n;n.properties||={},n.properties.class||=[],typeof n.properties.class=="string"&&(n.properties.class=n.properties.class.split(/\s+/g)),Array.isArray(n.properties.class)||(n.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const r of t)r&&!n.properties.class.includes(r)&&n.properties.class.push(r);return n}function ke(n,e=!1){if(n.length===0)return[["",0]];const t=n.split(/(\r?\n)/g);let r=0;const o=[];for(let s=0;s<t.length;s+=2){const i=e?t[s]+(t[s+1]||""):t[s];o.push([i,r]),r+=t[s].length,r+=t[s+1]?.length||0}return o}function Co(n){const e=ke(n,!0).map(([o])=>o);function t(o){if(o===n.length)return{line:e.length-1,character:e[e.length-1].length};let s=o,i=0;for(const l of e){if(s<l.length)break;s-=l.length,i++}return{line:i,character:s}}function r(o,s){let i=0;for(let l=0;l<o;l++)i+=e[l].length;return i+=s,i}return{lines:e,indexToPos:t,posToIndex:r}}function Ms(n,e,t){const r=new Set;for(const s of n.matchAll(/:?lang=["']([^"']+)["']/g)){const i=s[1].toLowerCase().trim();i&&r.add(i)}for(const s of n.matchAll(/(?:```|~~~)([\w-]+)/g)){const i=s[1].toLowerCase().trim();i&&r.add(i)}for(const s of n.matchAll(/\\begin\{([\w-]+)\}/g)){const i=s[1].toLowerCase().trim();i&&r.add(i)}for(const s of n.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const i=s[1].toLowerCase().trim(),l=i.includes("/")?i.split("/").pop():i;l&&r.add(l)}if(!t)return Array.from(r);const o=t.getBundledLanguages();return Array.from(r).filter(s=>s&&o[s])}const tt="light-dark()",Ro=["color","background-color"];function Eo(n,e){let t=0;const r=[];for(const o of e)o>t&&r.push({...n,content:n.content.slice(t,o),offset:n.offset+t}),t=o;return t<n.content.length&&r.push({...n,content:n.content.slice(t),offset:n.offset+t}),r}function Lo(n,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((r,o)=>r-o);return t.length?n.map(r=>r.flatMap(o=>{const s=t.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,l)=>i-l);return s.length?Eo(o,s):o})):n}function Ao(n,e,t,r,o="css-vars"){const s={content:n.content,explanation:n.explanation,offset:n.offset},i=e.map(u=>be(n.variants[u])),l=new Set(i.flatMap(u=>Object.keys(u))),a={},c=(u,h)=>{const f=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return t+e[u]+(h==="color"?"":f)};return i.forEach((u,h)=>{for(const f of l){const d=u[f]||"inherit";if(h===0&&r&&Ro.includes(f))if(r===tt&&i.length>1){const p=e.findIndex(S=>S==="light"),b=e.findIndex(S=>S==="dark");if(p===-1||b===-1)throw new L('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=i[p][f]||"inherit",_=i[b][f]||"inherit";a[f]=`light-dark(${v}, ${_})`,o==="css-vars"&&(a[c(h,f)]=d)}else a[f]=d;else o==="css-vars"&&(a[c(h,f)]=d)}}),s.htmlStyle=a,s}function be(n){const e={};if(n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle){n.fontStyle&I.Italic&&(e["font-style"]="italic"),n.fontStyle&I.Bold&&(e["font-weight"]="bold");const t=[];n.fontStyle&I.Underline&&t.push("underline"),n.fontStyle&I.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function Ke(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}const hn=new WeakMap;function Ce(n,e){hn.set(n,e)}function oe(n){return hn.get(n)}class J{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new J(Object.fromEntries(ko(t).map(r=>[r,Fe])),e)}constructor(...e){if(e.length===2){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,o]=e;this.lang=r,this._stacks={[o]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return To(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function To(n){const e=[],t=new Set;function r(o){if(t.has(o))return;t.add(o);const s=o?.nameScopesList?.scopeName;s&&e.push(s),o.parent&&r(o.parent)}return r(n),e}function Po(n,e){if(!(n instanceof J))throw new L("Invalid grammar state");return n.getInternalStack(e)}function No(){const n=new WeakMap;function e(t){if(!n.has(t.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>t.source.length)throw new L(`Invalid decoration offset: ${i}. Code length: ${t.source.length}`);return{...o.indexToPos(i),offset:i}}else{const l=o.lines[i.line];if(l===void 0)throw new L(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);let a=i.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new L(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${l.length}`);return{...i,character:a,offset:o.posToIndex(i.line,a)}}};const o=Co(t.source),s=(t.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));Io(s),n.set(t.meta,{decorations:s,converter:o,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const o=e(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return Lo(t,o)},code(t){if(!this.options.decorations?.length)return;const r=e(this),o=Array.from(t.children).filter(u=>u.type==="element"&&u.tagName==="span");if(o.length!==r.converter.lines.length)throw new L(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(u,h,f,d){const p=o[u];let b="",v=-1,_=-1;if(h===0&&(v=0),f===0&&(_=0),f===Number.POSITIVE_INFINITY&&(_=p.children.length),v===-1||_===-1)for(let g=0;g<p.children.length;g++)b+=dn(p.children[g]),v===-1&&b.length===h&&(v=g+1),_===-1&&b.length===f&&(_=g+1);if(v===-1)throw new L(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(_===-1)throw new L(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const S=p.children.slice(v,_);if(!d.alwaysWrap&&S.length===p.children.length)l(p,d,"line");else if(!d.alwaysWrap&&S.length===1&&S[0].type==="element")l(S[0],d,"token");else{const g={type:"element",tagName:"span",properties:{},children:S};l(g,d,"wrapper"),p.children.splice(v,S.length,g)}}function i(u,h){o[u]=l(o[u],h,"line")}function l(u,h,f){const d=h.properties||{},p=h.transform||(b=>b);return u.tagName=h.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},h.properties?.class&&un(u,h.properties.class),u=p(u,f)||u,u}const a=[],c=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(const u of c){const{start:h,end:f}=u;if(h.line===f.line)s(h.line,h.character,f.character,u);else if(h.line<f.line){s(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let d=h.line+1;d<f.line;d++)a.unshift(()=>i(d,u));s(f.line,0,f.character,u)}}a.forEach(u=>u())}}}function Io(n){for(let e=0;e<n.length;e++){const t=n[e];if(t.start.offset>t.end.offset)throw new L(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;r<n.length;r++){const o=n[r],s=t.start.offset<=o.start.offset&&o.start.offset<t.end.offset,i=t.start.offset<o.end.offset&&o.end.offset<=t.end.offset,l=o.start.offset<=t.start.offset&&t.start.offset<o.end.offset,a=o.start.offset<t.end.offset&&t.end.offset<=o.end.offset;if(s||i||l||a){if(s&&i||l&&a||l&&t.start.offset===t.end.offset||i&&o.start.offset===o.end.offset)continue;throw new L(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function dn(n){return n.type==="text"?n.value:n.type==="element"?n.children.map(dn).join(""):""}const xo=[No()];function Se(n){const e=Oo(n.transformers||[]);return[...e.pre,...e.normal,...e.post,...xo]}function Oo(n){const e=[],t=[],r=[];for(const o of n)switch(o.enforce){case"pre":e.push(o);break;case"post":t.push(o);break;default:r.push(o)}return{pre:e,post:t,normal:r}}var F=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],De={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Do(n,e){const t=n.indexOf("\x1B",e);if(t!==-1&&n[t+1]==="["){const r=n.indexOf("m",t);if(r!==-1)return{sequence:n.substring(t+2,r).split(";"),startPosition:t,position:r+1}}return{position:n.length}}function Rt(n){const e=n.shift();if(e==="2"){const t=n.splice(0,3).map(r=>Number.parseInt(r));return t.length!==3||t.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=n.shift();if(t)return{type:"table",index:Number(t)}}}function Mo(n){const e=[];for(;n.length>0;){const t=n.shift();if(!t)continue;const r=Number.parseInt(t);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)De[r]&&e.push({type:"setDecoration",value:De[r]});else if(r<=29){const o=De[r-20];o&&(e.push({type:"resetDecoration",value:o}),o==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:F[r-30]}});else if(r===38){const o=Rt(n);o&&e.push({type:"setForegroundColor",value:o})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:F[r-40]}});else if(r===48){const o=Rt(n);o&&e.push({type:"setBackgroundColor",value:o})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:F[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:F[r-100+8]}})}return e}function Bo(){let n=null,e=null,t=new Set;return{parse(r){const o=[];let s=0;do{const i=Do(r,s),l=i.sequence?r.substring(s,i.startPosition):r.substring(s);if(l.length>0&&o.push({value:l,foreground:n,background:e,decorations:new Set(t)}),i.sequence){const a=Mo(i.sequence);for(const c of a)c.type==="resetAll"?(n=null,e=null,t.clear()):c.type==="resetForegroundColor"?n=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&t.delete(c.value);for(const c of a)c.type==="setForegroundColor"?n=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&t.add(c.value)}s=i.position}while(s<r.length);return o}}}var Go={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function $o(n=Go){function e(l){return n[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let c=0;c<F.length;c++)r.push(e(F[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(t([l[c],l[u],l[h]]));let a=8;for(let c=0;c<24;c++,a+=10)r.push(t([a,a,a]));return r}function s(l){return o()[l]}function i(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return s(l.index)}}return{value:i}}const Uo={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function jo(n,e,t){const r=ye(n,t),o=ke(e),s=Object.fromEntries(F.map(a=>{const c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,u=n.colors?.[c];return[a,u||Uo[a]]})),i=$o(s),l=Bo();return o.map(a=>l.parse(a[0]).map(c=>{let u,h;c.decorations.has("reverse")?(u=c.background?i.value(c.background):n.bg,h=c.foreground?i.value(c.foreground):n.fg):(u=c.foreground?i.value(c.foreground):n.fg,h=c.background?i.value(c.background):void 0),u=U(u,r),h=U(h,r),c.decorations.has("dim")&&(u=Vo(u));let f=I.None;return c.decorations.has("bold")&&(f|=I.Bold),c.decorations.has("italic")&&(f|=I.Italic),c.decorations.has("underline")&&(f|=I.Underline),c.decorations.has("strikethrough")&&(f|=I.Strikethrough),{content:c.value,offset:a[1],color:u,bgColor:h,fontStyle:f}}))}function Vo(n){const e=n.match(/#([0-9a-f]{3,8})/i);if(e){const r=e[1];if(r.length===8){const o=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${o}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const o=r[0],s=r[1],i=r[2],l=r[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${o}${o}${s}${s}${i}${i}${a}`}else if(r.length===3){const o=r[0],s=r[1],i=r[2];return`#${o}${o}${s}${s}${i}${i}80`}}}const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function nt(n,e,t={}){const{theme:r=n.getLoadedThemes()[0]}=t,o=n.resolveLangAlias(t.lang||"text");if(Qe(o)||et(r))return ke(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:s,colorMap:i}=n.setTheme(r);if(o==="ansi")return jo(s,e,t);const l=n.getLanguage(t.lang||"text");if(t.grammarState){if(t.grammarState.lang!==l.name)throw new L(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${l.name}"`);if(!t.grammarState.themes.includes(s.name))throw new L(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Ho(e,l,s,i,t)}function Fo(...n){if(n.length===2)return oe(n[1]);const[e,t,r={}]=n,{lang:o="text",theme:s=e.getLoadedThemes()[0]}=r;if(Qe(o)||et(s))throw new L("Plain language does not have grammar state");if(o==="ansi")throw new L("ANSI language does not have grammar state");const{theme:i,colorMap:l}=e.setTheme(s),a=e.getLanguage(o);return new J(rt(t,a,i,l,r).stateStack,a.name,i.name)}function Ho(n,e,t,r,o){const s=rt(n,e,t,r,o),i=new J(s.stateStack,e.name,t.name);return Ce(s.tokens,i),s.tokens}function rt(n,e,t,r,o){const s=ye(t,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:l=500}=o,a=ke(n);let c=o.grammarState?Po(o.grammarState,t.name)??Fe:o.grammarContextCode!=null?rt(o.grammarContextCode,e,t,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:Fe,u=[];const h=[];for(let f=0,d=a.length;f<d;f++){const[p,b]=a[f];if(p===""){u=[],h.push([]);continue}if(i>0&&p.length>=i){u=[],h.push([{content:p,offset:b,color:"",fontStyle:0}]);continue}let v,_,S;o.includeExplanation&&(v=e.tokenizeLine(p,c,l),_=v.tokens,S=0);const g=e.tokenizeLine2(p,c,l),k=g.tokens.length/2;for(let R=0;R<k;R++){const O=g.tokens[2*R],j=R+1<k?g.tokens[2*R+2]:p.length;if(O===j)continue;const it=g.tokens[2*R+1],yn=U(r[Y.getForeground(it)],s),bn=Y.getFontStyle(it),Le={content:p.substring(O,j),offset:b+O,color:yn,fontStyle:bn};if(o.includeExplanation){const at=[];if(o.includeExplanation!=="scopeName")for(const $ of t.settings){let z;switch(typeof $.scope){case"string":z=$.scope.split(/,/).map(Ae=>Ae.trim());break;case"object":z=$.scope;break;default:continue}at.push({settings:$,selectors:z.map(Ae=>Ae.split(/ /))})}Le.explanation=[];let lt=0;for(;O+lt<j;){const $=_[S],z=p.substring($.startIndex,$.endIndex);lt+=z.length,Le.explanation.push({content:z,scopes:o.includeExplanation==="scopeName"?zo($.scopes):Wo(at,$.scopes)}),S+=1}}u.push(Le)}h.push(u),u=[],c=g.ruleStack}return{tokens:h,stateStack:c}}function zo(n){return n.map(e=>({scopeName:e}))}function Wo(n,e){const t=[];for(let r=0,o=e.length;r<o;r++){const s=e[r];t[r]={scopeName:s,themeMatches:Ko(n,s,e.slice(0,r))}}return t}function Et(n,e){return n===e||e.substring(0,n.length)===n&&e[n.length]==="."}function qo(n,e,t){if(!Et(n[n.length-1],e))return!1;let r=n.length-2,o=t.length-1;for(;r>=0&&o>=0;)Et(n[r],t[o])&&(r-=1),o-=1;return r===-1}function Ko(n,e,t){const r=[];for(const{selectors:o,settings:s}of n)for(const i of o)if(qo(i,e,t)){r.push(s);break}return r}function fn(n,e,t){const r=Object.entries(t.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),o=r.map(a=>{const c=nt(n,e,{...t,theme:a.theme}),u=oe(c),h=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:c,state:u,theme:h}}),s=Yo(...o.map(a=>a.tokens)),i=s[0].map((a,c)=>a.map((u,h)=>{const f={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in t&&t.includeExplanation&&(f.explanation=u.explanation),s.forEach((d,p)=>{const{content:b,explanation:v,offset:_,...S}=d[c][h];f.variants[r[p].color]=S}),f})),l=o[0].state?new J(Object.fromEntries(o.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),o[0].state.lang):void 0;return l&&Ce(i,l),i}function Yo(...n){const e=n.map(()=>[]),t=n.length;for(let r=0;r<n[0].length;r++){const o=n.map(a=>a[r]),s=e.map(()=>[]);e.forEach((a,c)=>a.push(s[c]));const i=o.map(()=>0),l=o.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(c=>c.content.length));for(let c=0;c<t;c++){const u=l[c];u.content.length===a?(s[c].push(u),i[c]+=1,l[c]=o[c][i[c]]):(s[c].push({...u,content:u.content.slice(0,a)}),l[c]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return e}function ve(n,e,t){let r,o,s,i,l,a;if("themes"in t){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=t,f=Object.entries(t.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,S)=>_.color===c?-1:S.color===c?1:0);if(f.length===0)throw new L("`themes` option must not be empty");const d=fn(n,e,t);if(a=oe(d),c&&tt!==c&&!f.find(_=>_.color===c))throw new L(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=f.map(_=>n.getTheme(_.theme)),b=f.map(_=>_.color);s=d.map(_=>_.map(S=>Ao(S,b,u,c,h))),a&&Ce(s,a);const v=f.map(_=>ye(_.theme,t));o=Lt(f,p,v,u,c,"fg",h),r=Lt(f,p,v,u,c,"bg",h),i=`shiki-themes ${p.map(_=>_.name).join(" ")}`,l=c?void 0:[o,r].join(";")}else if("theme"in t){const c=ye(t.theme,t);s=nt(n,e,t);const u=n.getTheme(t.theme);r=U(u.bg,c),o=U(u.fg,c),i=u.name,a=oe(s)}else throw new L("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:o,bg:r,themeName:i,rootStyle:l,grammarState:a}}function Lt(n,e,t,r,o,s,i){return n.map((l,a)=>{const c=U(e[a][s],t[a])||"inherit",u=`${r+l.color}${s==="bg"?"-bg":""}:${c}`;if(a===0&&o){if(o===tt&&n.length>1){const h=n.findIndex(b=>b.color==="light"),f=n.findIndex(b=>b.color==="dark");if(h===-1||f===-1)throw new L('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=U(e[h][s],t[h])||"inherit",p=U(e[f][s],t[f])||"inherit";return`light-dark(${d}, ${p});${u}`}return c}return i==="css-vars"?u:null}).filter(l=>!!l).join(";")}function we(n,e,t,r={meta:{},options:t,codeToHast:(o,s)=>we(n,o,s),codeToTokens:(o,s)=>ve(n,o,s)}){let o=e;for(const p of Se(t))o=p.preprocess?.call(r,o,t)||o;let{tokens:s,fg:i,bg:l,themeName:a,rootStyle:c,grammarState:u}=ve(n,o,t);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:f=!1}=t;h===!0?s=Jo(s):h==="never"&&(s=Zo(s)),f&&(s=Qo(s));const d={...r,get source(){return o}};for(const p of Se(t))s=p.tokens?.call(d,s)||s;return Xo(s,{...t,fg:i,bg:l,themeName:a,rootStyle:t.rootStyle===!1?!1:t.rootStyle??c},d,u)}function Xo(n,e,t,r=oe(n)){const o=Se(e),s=[],i={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),a!==!1&&a!=null&&(c.tabindex=a.toString());for(const[b,v]of Object.entries(e.meta||{}))b.startsWith("_")||(c[b]=v);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:s};const f=[],d={...t,structure:l,addClassToHast:un,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return i},get pre(){return u},get code(){return h},get lines(){return f}};if(n.forEach((b,v)=>{v&&(l==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&s.push({type:"text",value:`
12
+ `}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},S=0;for(const g of b){let k={type:"element",tagName:"span",properties:{...g.htmlAttrs},children:[{type:"text",value:g.content}]};const R=Ke(g.htmlStyle||be(g));R&&(k.properties.style=R);for(const O of o)k=O?.span?.call(d,k,v+1,S,_,g)||k;l==="inline"?i.children.push(k):l==="classic"&&_.children.push(k),S+=g.content.length}if(l==="classic"){for(const g of o)_=g?.line?.call(d,_,v+1)||_;f.push(_),s.push(_)}else l==="inline"&&f.push(_)}),l==="classic"){for(const b of o)h=b?.code?.call(d,h)||h;u.children.push(h);for(const b of o)u=b?.pre?.call(d,u)||u;i.children.push(u)}else if(l==="inline"){const b=[];let v={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const g of i.children)g.type==="element"&&g.tagName==="br"?(b.push(v),v={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&v.children.push(g);b.push(v);let S={type:"element",tagName:"code",properties:{},children:b};for(const g of o)S=g?.code?.call(d,S)||S;i.children=[];for(let g=0;g<S.children.length;g++){g>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=S.children[g];k.type==="element"&&i.children.push(...k.children)}}let p=i;for(const b of o)p=b?.root?.call(d,p)||p;return r&&Ce(p,r),p}function Jo(n){return n.map(e=>{const t=[];let r="",o;return e.forEach((s,i)=>{const a=!(s.fontStyle&&(s.fontStyle&I.Underline||s.fontStyle&I.Strikethrough));a&&s.content.match(/^\s+$/)&&e[i+1]?(o===void 0&&(o=s.offset),r+=s.content):r?(a?t.push({...s,offset:o,content:r+s.content}):t.push({content:r,offset:o},s),o=void 0,r=""):t.push(s)}),t})}function Zo(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,o,s,i]=r;if(!o&&!i)return t;const l=[{...t,offset:t.offset+o.length,content:s}];return o&&l.unshift({content:o,offset:t.offset}),i&&l.push({content:i,offset:t.offset+o.length+s.length}),l}))}function Qo(n){return n.map(e=>{const t=[];for(const r of e){if(t.length===0){t.push({...r});continue}const o=t[t.length-1],s=Ke(o.htmlStyle||be(o)),i=Ke(r.htmlStyle||be(r)),l=o.fontStyle&&(o.fontStyle&I.Underline||o.fontStyle&I.Strikethrough),a=r.fontStyle&&(r.fontStyle&I.Underline||r.fontStyle&I.Strikethrough);!l&&!a&&s===i?o.content+=r.content:t.push({...r})}return t})}const es=So;function ts(n,e,t){const r={meta:{},options:t,codeToHast:(s,i)=>we(n,s,i),codeToTokens:(s,i)=>ve(n,s,i)};let o=es(we(n,e,t,r));for(const s of Se(t))o=s.postprocess?.call(r,o,t)||o;return o}const At={light:"#333333",dark:"#bbbbbb"},Tt={light:"#fffffe",dark:"#1e1e1e"},Pt="__shiki_resolved";function ot(n){if(n?.[Pt])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:r}=e;if(!t||!r){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(t=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?At.light:At.dark),t||(t=e.type==="light"?Tt.light:Tt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let o=0;const s=new Map;function i(l){if(s.has(l))return s.get(l);o+=1;const a=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?i(l):(s.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!c)return l;const u={...l,settings:{...l.settings}};if(a){const h=i(l.settings.foreground);e.colorReplacements[h]=l.settings.foreground,u.settings.foreground=h}if(c){const h=i(l.settings.background);e.colorReplacements[h]=l.settings.background,u.settings.background=h}return u});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=i(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,Pt,{enumerable:!1,writable:!1,value:!0}),e}async function pn(n){return Array.from(new Set((await Promise.all(n.filter(e=>!ln(e)).map(async e=>await an(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function mn(n){return(await Promise.all(n.map(async t=>cn(t)?null:ot(await an(t))))).filter(t=>!!t)}let ns=3;function rs(n,e=3){e>ns||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let W=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function gn(n,e){if(!e)return n;if(e[n]){const t=new Set([n]);for(;e[n];){if(n=e[n],t.has(n))throw new W(`Circular alias \`${Array.from(t).join(" -> ")} -> ${n}\``);t.add(n)}}return n}class os extends sr{constructor(e,t,r,o={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=o,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=ot(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=fe.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=gn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const o=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,t.size)for(const s of t)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const o of e)this.resolveEmbeddedLanguages(o);const t=Array.from(this._langGraph.entries()),r=t.filter(([o,s])=>!s);if(r.length){const o=t.filter(([s,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(a=>r.map(([c])=>c).includes(a)):!1).filter(s=>!r.includes(s));throw new W(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of t)this._resolver.addLanguage(s);for(const[o,s]of t)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const r of t)this._langGraph.set(r,this._langMap.get(r))}}class ss{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let o=1;o<=t.length;o++){const s=t.slice(0,o).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Z=0;function is(n){Z+=1,n.warnings!==!1&&Z>=10&&Z%10===0&&console.warn(`[Shiki] ${Z} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new W("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),r=(n.themes||[]).flat(1).map(ot),o=new ss(n.engine,t),s=new os(o,r,t,n.langAlias);let i;function l(g){return gn(g,n.langAlias)}function a(g){_();const k=s.getGrammar(typeof g=="string"?g:g.name);if(!k)throw new W(`Language \`${g}\` not found, you may need to load it first`);return k}function c(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const k=s.getTheme(g);if(!k)throw new W(`Theme \`${g}\` not found, you may need to load it first`);return k}function u(g){_();const k=c(g);i!==g&&(s.setTheme(k),i=g);const R=s.getColorMap();return{theme:k,colorMap:R}}function h(){return _(),s.getLoadedThemes()}function f(){return _(),s.getLoadedLanguages()}function d(...g){_(),s.loadLanguages(g.flat(1))}async function p(...g){return d(await pn(g))}function b(...g){_();for(const k of g.flat(1))s.loadTheme(k)}async function v(...g){return _(),b(await mn(g))}function _(){if(e)throw new W("Shiki instance has been disposed")}function S(){e||(e=!0,s.dispose(),Z-=1)}return{setTheme:u,getTheme:c,getLanguage:a,getLoadedThemes:h,getLoadedLanguages:f,resolveLangAlias:l,loadLanguage:p,loadLanguageSync:d,loadTheme:v,loadThemeSync:b,dispose:S,[Symbol.dispose]:S}}async function as(n){n.engine||rs("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([mn(n.themes||[]),pn(n.langs||[]),n.engine]);return is({...n,themes:e,langs:t,engine:r})}async function ls(n){const e=await as(n);return{getLastGrammarState:(...t)=>Fo(e,...t),codeToTokensBase:(t,r)=>nt(e,t,r),codeToTokensWithThemes:(t,r)=>fn(e,t,r),codeToTokens:(t,r)=>ve(e,t,r),codeToHast:(t,r)=>we(e,t,r),codeToHtml:(t,r)=>ts(e,t,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Gs(n){const e=n.langs,t=n.themes,r=n.engine;async function o(s){function i(h){if(typeof h=="string"){if(h=s.langAlias?.[h]||h,ln(h))return[];const f=e[h];if(!f)throw new L(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}function l(h){if(cn(h))return"none";if(typeof h=="string"){const f=t[h];if(!f)throw new L(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}const a=(s.themes??[]).map(h=>l(h)),c=(s.langs??[]).map(h=>i(h)),u=await ls({engine:s.engine??r(),...s,themes:a,langs:c});return{...u,loadLanguage(...h){return u.loadLanguage(...h.map(i))},loadTheme(...h){return u.loadTheme(...h.map(l))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return o}function cs(n){let e;async function t(r={}){if(e){const o=await e;return await Promise.all([o.loadTheme(...r.themes||[]),o.loadLanguage(...r.langs||[])]),o}else{e=n({...r,themes:[],langs:[]});const o=await e;return await Promise.all([o.loadTheme(...r.themes||[]),o.loadLanguage(...r.langs||[])]),o}}return t}function $s(n,e){const t=cs(n);async function r(o,s){const i=await t({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),l=await e?.guessEmbeddedLanguages?.(o,s.lang,i);return l&&await i.loadLanguage(...l),i}return{getSingletonHighlighter(o){return t(o)},async codeToHtml(o,s){return(await r(o,s)).codeToHtml(o,s)},async codeToHast(o,s){return(await r(o,s)).codeToHast(o,s)},async codeToTokens(o,s){return(await r(o,s)).codeToTokens(o,s)},async codeToTokensBase(o,s){return(await r(o,s)).codeToTokensBase(o,s)},async codeToTokensWithThemes(o,s){return(await r(o,s)).codeToTokensWithThemes(o,s)},async getLastGrammarState(o,s){return(await t({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(o,s)}}}const us=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>y(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>y(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>y(()=>import("./DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>y(()=>import("./BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>y(()=>import("./32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>y(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>y(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>y(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>y(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>y(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>y(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>y(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>y(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>y(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>y(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>y(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>y(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>y(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>y(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>y(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>y(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>y(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>y(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>y(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>y(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>y(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>y(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>y(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>y(()=>import("./Cn-bp-IR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>y(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>y(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>y(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>y(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>y(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>y(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>y(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>y(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>y(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>y(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>y(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>y(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>y(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>y(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>y(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>y(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>y(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>y(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>y(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>y(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>y(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>y(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>y(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>y(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>y(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>y(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>y(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>y(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>y(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>y(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>y(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>y(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>y(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>y(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>y(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>y(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],Us=Object.fromEntries(us.map(n=>[n.id,n.import]));class st extends Error{constructor(e){super(e),this.name="ShikiError"}}function hs(){return 2147483648}function ds(){return typeof performance<"u"?performance.now():Date.now()}const fs=(n,e)=>n+(e-n%e)%e;async function ps(n){let e,t;const r={};function o(d){t=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function s(d,p,b){r.HEAPU8.copyWithin(d,p,p+b)}function i(d){try{return e.grow(d-t.byteLength+65535>>>16),o(e.buffer),1}catch{}}function l(d){const p=r.HEAPU8.length;d=d>>>0;const b=hs();if(d>b)return!1;for(let v=1;v<=4;v*=2){let _=p*(1+.2/v);_=Math.min(_,d+100663296);const S=Math.min(b,fs(Math.max(d,_),65536));if(i(S))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,p,b=1024){const v=p+b;let _=p;for(;d[_]&&!(_>=v);)++_;if(_-p>16&&d.buffer&&a)return a.decode(d.subarray(p,_));let S="";for(;p<_;){let g=d[p++];if(!(g&128)){S+=String.fromCharCode(g);continue}const k=d[p++]&63;if((g&224)===192){S+=String.fromCharCode((g&31)<<6|k);continue}const R=d[p++]&63;if((g&240)===224?g=(g&15)<<12|k<<6|R:g=(g&7)<<18|k<<12|R<<6|d[p++]&63,g<65536)S+=String.fromCharCode(g);else{const O=g-65536;S+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return S}function u(d,p){return d?c(r.HEAPU8,d,p):""}const h={emscripten_get_now:ds,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const p=await n({env:h,wasi_snapshot_preview1:h});e=p.memory,o(e.buffer),Object.assign(r,p),r.UTF8ToString=u}return await f(),r}var ms=Object.defineProperty,gs=(n,e,t)=>e in n?ms(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e,t)=>gs(n,typeof e!="symbol"?e+"":e,t);let P=null;function _s(n){throw new st(n.UTF8ToString(n.getLastOnigError()))}class Re{constructor(e){A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16Value"),A(this,"utf8Value"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16");const t=e.length,r=Re._utf8ByteLength(e),o=r!==t,s=o?new Uint32Array(t+1):null;o&&(s[t]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=t);const l=new Uint8Array(r);let a=0;for(let c=0;c<t;c++){const u=e.charCodeAt(c);let h=u,f=!1;if(u>=55296&&u<=56319&&c+1<t){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(h=(u-55296<<10)+65536|d-56320,f=!0)}o&&(s[c]=a,f&&(s[c+1]=a),h<=127?i[a+0]=c:h<=2047?(i[a+0]=c,i[a+1]=c):h<=65535?(i[a+0]=c,i[a+1]=c,i[a+2]=c):(i[a+0]=c,i[a+1]=c,i[a+2]=c,i[a+3]=c)),h<=127?l[a++]=h:h<=2047?(l[a++]=192|(h&1984)>>>6,l[a++]=128|(h&63)>>>0):h<=65535?(l[a++]=224|(h&61440)>>>12,l[a++]=128|(h&4032)>>>6,l[a++]=128|(h&63)>>>0):(l[a++]=240|(h&1835008)>>>18,l[a++]=128|(h&258048)>>>12,l[a++]=128|(h&4032)>>>6,l[a++]=128|(h&63)>>>0),f&&c++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let r=0,o=e.length;r<o;r++){const s=e.charCodeAt(r);let i=s,l=!1;if(s>=55296&&s<=56319&&r+1<o){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(s-55296<<10)+65536|a-56320,l=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,l&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const Ee=class G{constructor(e){if(A(this,"id",++G.LAST_ID),A(this,"_onigBinding"),A(this,"content"),A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16"),A(this,"ptr"),!P)throw new st("Must invoke loadWasm first.");this._onigBinding=P,this.content=e;const t=new Re(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!G._sharedPtrInUse?(G._sharedPtr||(G._sharedPtr=P.omalloc(1e4)),G._sharedPtrInUse=!0,P.HEAPU8.set(t.utf8Value,G._sharedPtr),this.ptr=G._sharedPtr):this.ptr=t.createString(P)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===G._sharedPtr?G._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};A(Ee,"LAST_ID",0);A(Ee,"_sharedPtr",0);A(Ee,"_sharedPtrInUse",!1);let _n=Ee;class ys{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new st("Must invoke loadWasm first.");const t=[],r=[];for(let l=0,a=e.length;l<a;l++){const c=new Re(e[l]);t[l]=c.createString(P),r[l]=c.utf8Length}const o=P.omalloc(4*e.length);P.HEAPU32.set(t,o/4);const s=P.omalloc(4*e.length);P.HEAPU32.set(r,s/4);const i=P.createOnigScanner(o,s,e.length);for(let l=0,a=e.length;l<a;l++)P.ofree(t[l]);P.ofree(s),P.ofree(o),i===0&&_s(P),this._onigBinding=P,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let o=0;if(typeof r=="number"&&(o=r),typeof e=="string"){e=new _n(e);const s=this._findNextMatchSync(e,t,!1,o);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,o)}_findNextMatchSync(e,t,r,o){const s=this._onigBinding,i=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),o);if(i===0)return null;const l=s.HEAPU32;let a=i/4;const c=l[a++],u=l[a++],h=[];for(let f=0;f<u;f++){const d=e.convertUtf8OffsetToUtf16(l[a++]),p=e.convertUtf8OffsetToUtf16(l[a++]);h[f]={start:d,end:p,length:p-d}}return{index:c,captureIndices:h}}}function bs(n){return typeof n.instantiator=="function"}function Ss(n){return typeof n.default=="function"}function vs(n){return typeof n.data<"u"}function ws(n){return typeof Response<"u"&&n instanceof Response}function ks(n){return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&Buffer.isBuffer?.(n)||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let ue;function Cs(n){if(ue)return ue;async function e(){P=await ps(async t=>{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),bs(r)?r=await r.instantiator(t):Ss(r)?r=await r.default(t):(vs(r)&&(r=r.data),ws(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Rs(r)(t):r=await Es(r)(t):ks(r)?r=await Me(r)(t):r instanceof WebAssembly.Module?r=await Me(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Me(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ue=e(),ue}function Me(n){return e=>WebAssembly.instantiate(n,e)}function Rs(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Es(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function js(n){return n&&await Cs(n),{createScanner(e){return new ys(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new _n(e)}}}const Ls=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","path","circle","rect","line","polyline","polygon","ellipse"]),As=new RegExp("<([a-zA-Z][a-zA-Z0-9\\-_:.]*)[^>]*(?<!\\/)>","g"),Ts=/<\/([a-zA-Z][a-zA-Z0-9\-_:.]*)\s*>/g,Ps=/<([a-zA-Z][a-zA-Z0-9\-_:.]*)[^>]*\/>/g;function Vs(n={}){const{classPrefix:e="shiki-fold",foldLevel:t=0}=n;return{name:"shiki-transformer-html-fold",tokens(r){const o=Ns(r),s=new Map(o.map(l=>[l.startLine,l])),i=new Map;if(t>0){for(const l of o)if(l.level===t){i.set(l.startLine,{hiddenCount:l.endLine-l.startLine});for(let a=l.startLine+1;a<=l.endLine;a++)i.set(a,{hiddenCount:-1})}}return this.meta.transformerHtmlFold={foldRegions:o,foldStartLines:s,foldedRanges:i,__lineIdCounter:0,foldLevel:t},r},pre(r){r.children.unshift({type:"element",tagName:"style",properties:{},children:[{type:"text",value:Is(e)}]})},line(r,o){const{transformerHtmlFold:s}=this.meta,i=`${e}-${s.__lineIdCounter++}`;r.properties["data-fold-line"]=i;const l=s.foldedRanges.get(o);l&&l.hiddenCount===-1&&(r.properties.class=`${r.properties.class||""} ${e}-hidden`.trim());const a=s.foldStartLines.get(o);if(a){const c=`${e}-${a.endLine-1}`,u=s.foldLevel>0&&a.level===s.foldLevel;if(r.properties["data-fold-end-id"]=c,r.properties["data-fold-level"]=String(a.level),r.properties["data-folded"]=u?"true":"false",r.properties.class=`${r.properties.class||""} ${e}-foldable`.trim(),u&&l&&l.hiddenCount>0){const h=l.hiddenCount;r.children.push({type:"element",tagName:"span",properties:{class:`${e}-summary`},children:[{type:"text",value:`... ${h} line${h>1?"s":""} hidden`}]})}}return r}}}function Ns(n){const e=[],t=[];for(const[r,o]of n.entries()){const s=o.map(a=>a.content).join(""),i=r+1,l=new Set;for(const a of s.matchAll(Ps))l.add(a.index);for(const a of s.matchAll(As)){const[c,u]=a;if(!u||l.has(a.index))continue;const h=u.toLowerCase();if(!Ls.has(h)){const f=t.length+1;t.push({tagName:h,line:i,level:f})}}for(const a of s.matchAll(Ts)){const[c,u]=a;if(!u)continue;const h=u.toLowerCase();for(let f=t.length-1;f>=0;f--)if(t[f]?.tagName===h){const d=t[f].line,p=t[f].level;i>d&&e.push({startLine:d,endLine:i,level:p}),t.splice(f,1);break}}}return e}function Is(n){return`
13
+ .shiki code { display: grid; }
14
+ .${n}-foldable { cursor: pointer; }
15
+ .${n}-foldable:hover { background: rgba(255, 255, 255, 0.05); }
16
+ .${n}-hidden { display: none !important; }
17
+ .${n}-summary {
18
+ display: inline;
19
+ opacity: 0.5;
20
+ font-style: italic;
21
+ margin-left: 0.5em;
22
+ user-select: none;
23
+ pointer-events: none;
24
+ }`.trim()}let Nt=!1;function Fs(n="shiki-fold"){if(typeof document>"u"||Nt)return;Nt=!0;const e=`${n}-hidden`,t=`${n}-summary`;document.addEventListener("click",r=>{const o=r.target.closest(`.${n}-foldable`);if(!o)return;const s=o.dataset.foldEndId;if(!s)return;const i=o.dataset.folded==="true";o.dataset.folded=String(!i);const l=[];let a=o.nextElementSibling;for(;a;){const u=a.dataset.foldLine;if(l.push(a),u===s)break;a=a.nextElementSibling}const c=o.querySelector(`.${t}`);if(i)c?.remove();else{const u=l.length,h=document.createElement("span");h.className=t,h.textContent=`... ${u} line${u>1?"s":""} hidden`,o.append(h)}for(const u of l)u.classList.toggle(e,!i)})}export{Gs as a,Us as b,$s as c,js as d,Fs as e,Ms as g,Vs as t};
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse('{"displayName":"AWK","fileTypes":["awk"],"name":"awk","patterns":[{"include":"#comment"},{"include":"#procedure"},{"include":"#pattern"}],"repository":{"builtin-pattern":{"match":"\\\\b(BEGINFILE|BEGIN|ENDFILE|END)\\\\b","name":"constant.language.awk"},"command":{"patterns":[{"match":"\\\\b(?:next|printf??)\\\\b","name":"keyword.other.command.awk"},{"match":"\\\\b(?:close|getline|delete|system)\\\\b","name":"keyword.other.command.nawk"},{"match":"\\\\b(?:fflush|nextfile)\\\\b","name":"keyword.other.command.bell-awk"}]},"comment":{"match":"#.*","name":"comment.line.number-sign.awk"},"constant":{"patterns":[{"include":"#numeric-constant"},{"include":"#string-constant"}]},"escaped-char":{"match":"\\\\\\\\(?:[\\"/\\\\\\\\abfnrtv]|x\\\\h{2}|[0-7]{3})","name":"constant.character.escape.awk"},"expression":{"patterns":[{"include":"#command"},{"include":"#function"},{"include":"#constant"},{"include":"#variable"},{"include":"#regexp-in-expression"},{"include":"#operator"},{"include":"#groupings"}]},"function":{"patterns":[{"match":"\\\\b(?:exp|int|log|sqrt|index|length|split|sprintf|substr)\\\\b","name":"support.function.awk"},{"match":"\\\\b(?:atan2|cos|rand|sin|srand|gsub|match|sub|tolower|toupper)\\\\b","name":"support.function.nawk"},{"match":"\\\\b(?:gensub|strftime|systime)\\\\b","name":"support.function.gawk"}]},"function-definition":{"begin":"\\\\b(function)\\\\s+(\\\\w+)(\\\\()","beginCaptures":{"1":{"name":"storage.type.function.awk"},"2":{"name":"entity.name.function.awk"},"3":{"name":"punctuation.definition.parameters.begin.awk"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.awk"}},"patterns":[{"match":"\\\\b(\\\\w+)\\\\b","name":"variable.parameter.function.awk"},{"match":"\\\\b(,)\\\\b","name":"punctuation.separator.parameters.awk"}]},"groupings":{"patterns":[{"match":"\\\\(","name":"meta.brace.round.awk"},{"match":"\\\\)","name":"meta.brace.round.awk"},{"match":",","name":"punctuation.separator.parameters.awk"}]},"keyword":{"match":"\\\\b(?:break|continue|do|while|exit|for|if|else|return)\\\\b","name":"keyword.control.awk"},"numeric-constant":{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)?(?:e[-+][0-9]+)?\\\\b","name":"constant.numeric.awk"},"operator":{"patterns":[{"match":"(!?~|[!<=>]=|[<>])","name":"keyword.operator.comparison.awk"},{"match":"\\\\b(in)\\\\b","name":"keyword.operator.comparison.awk"},{"match":"([-%*+/^]=|\\\\+\\\\+|--|>>|=)","name":"keyword.operator.assignment.awk"},{"match":"(\\\\|\\\\||&&|!)","name":"keyword.operator.boolean.awk"},{"match":"([-%*+/^])","name":"keyword.operator.arithmetic.awk"},{"match":"([:?])","name":"keyword.operator.trinary.awk"},{"match":"([]\\\\[])","name":"keyword.operator.index.awk"}]},"pattern":{"patterns":[{"include":"#regexp-as-pattern"},{"include":"#function-definition"},{"include":"#builtin-pattern"},{"include":"#expression"}]},"procedure":{"begin":"\\\\{","end":"}","patterns":[{"include":"#comment"},{"include":"#procedure"},{"include":"#keyword"},{"include":"#expression"}]},"regex-as-assignment":{"begin":"([^-!%*+/<=>^]=)\\\\s*(/)","beginCaptures":{"1":{"name":"keyword.operator.assignment.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-comparison":{"begin":"(!?~)\\\\s*(/)","beginCaptures":{"1":{"name":"keyword.operator.comparison.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-first-argument":{"begin":"(\\\\()\\\\s*(/)","beginCaptures":{"1":{"name":"meta.brace.round.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-nth-argument":{"begin":"(,)\\\\s*(/)","beginCaptures":{"1":{"name":"punctuation.separator.parameters.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regexp-as-pattern":{"begin":"/","beginCaptures":{"0":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regexp-in-expression":{"patterns":[{"include":"#regex-as-assignment"},{"include":"#regex-as-comparison"},{"include":"#regex-as-first-argument"},{"include":"#regex-as-nth-argument"}]},"string-constant":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.awk"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.awk"}},"name":"string.quoted.double.awk","patterns":[{"include":"#escaped-char"}]},"variable":{"patterns":[{"match":"\\\\$[0-9]+","name":"variable.language.awk"},{"match":"\\\\b(?:FILENAME|FS|NF|NR|OFMT|OFS|ORS|RS)\\\\b","name":"variable.language.awk"},{"match":"\\\\b(?:ARGC|ARGV|CONVFMT|ENVIRON|FNR|RLENGTH|RSTART|SUBSEP)\\\\b","name":"variable.language.nawk"},{"match":"\\\\b(?:ARGIND|ERRNO|FIELDWIDTHS|IGNORECASE|RT)\\\\b","name":"variable.language.gawk"}]}},"scopeName":"source.awk"}')),n=[e];export{n as default};
@@ -1 +1 @@
1
- import{u as a,e as s,h as u,i as r,f as h}from"./BOWvZIQC.js";function i(t){const e=t||s();return e.ssrContext?.head||e.runWithContext(()=>{if(u()){const n=r(h);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function d(t,e={}){const n=e.head||i(e.nuxt);return a(t,{head:n,...e})}export{d as u};
1
+ import{u as a,e as s,h as u,i as r,f as h}from"./Cl_HNi2c.js";function i(t){const e=t||s();return e.ssrContext?.head||e.runWithContext(()=>{if(u()){const n=r(h);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function d(t,e={}){const n=e.head||i(e.nuxt);return a(t,{head:n,...e})}export{d as u};
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse(`{"displayName":"BIRD2 Configuration","fileTypes":["conf","bird","bird2","bird3","bird.conf","bird2.conf","bird3.conf"],"foldingStartMarker":"\\\\{\\\\s*$","foldingStopMarker":"^\\\\s*}","name":"bird2","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#ip-addresses"},{"include":"#vpn-rd"},{"include":"#bytestrings"},{"include":"#bgp-paths"},{"include":"#prefixes"},{"include":"#template-definitions"},{"include":"#filter-definitions"},{"include":"#function-definitions"},{"include":"#protocol-definitions"},{"include":"#next-hop-statements"},{"include":"#neighbor-statements"},{"include":"#import-export-statements"},{"include":"#structural-keywords"},{"include":"#functional-keywords"},{"include":"#semantic-modifiers"},{"include":"#builtin-functions"},{"include":"#method-properties"},{"include":"#route-attributes"},{"include":"#data-types"},{"include":"#operators"},{"include":"#constants"},{"include":"#filter-names"},{"include":"#user-variables"},{"include":"#function-calls"},{"include":"#method-calls"},{"include":"#variable-declarations"},{"include":"#symbols"},{"include":"#blocks"},{"include":"#print-statements"}],"repository":{"bgp-paths":{"patterns":[{"begin":"\\\\[=","beginCaptures":{"0":{"name":"punctuation.definition.bgp-path.begin.bird"}},"end":"=]","endCaptures":{"0":{"name":"punctuation.definition.bgp-path.end.bird"}},"name":"meta.bgp-path.bird","patterns":[{"match":"[*+?]","name":"keyword.operator.wildcard.bird"},{"match":"\\\\b[0-9]+\\\\b","name":"constant.numeric.asn.bird"},{"include":"#numbers"}]}]},"blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.begin.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.block.bird","patterns":[{"include":"$self"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.set.begin.bird"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.set.end.bird"}},"name":"meta.set.bird","patterns":[{"include":"$self"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.tuple.begin.bird"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.tuple.end.bird"}},"name":"meta.tuple.bird","patterns":[{"include":"$self"}]},{"match":";","name":"punctuation.terminator.statement.bird"},{"match":",","name":"punctuation.separator.bird"}]},"builtin-functions":{"patterns":[{"match":"\\\\b(?:defined|unset|printn??|roa_check|aspa_check|aspa_check_downstream|aspa_check_upstream|from_hex|format|prepend|add|delete|filter|empty|reset|bt_assert|bt_test_suite|bt_test_same)\\\\b","name":"support.function.builtin.bird"}]},"bytestrings":{"patterns":[{"match":"\\\\b(?:hex:)?(?:\\\\h{2}[-.:\\\\s]*){2,}\\\\h{2}\\\\b","name":"constant.numeric.bytestring.bird"},{"match":"\\\\b\\\\h{32,}\\\\b","name":"constant.numeric.bytestring.bird"}]},"comments":{"patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.bird"}},"end":"$","name":"comment.line.number-sign.bird"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.bird"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.bird"}},"name":"comment.block.bird"}]},"constants":{"patterns":[{"match":"\\\\b(?:on|off|yes|no|true|false)\\\\b","name":"constant.language.boolean.bird"},{"match":"\\\\b(?:empty|unknown|generic|rt|ro|one|ten)\\\\b","name":"constant.language.special.bird"},{"match":"\\\\bSCOPE_(?:HOST|LINK|SITE|ORGANIZATION|UNIVERSE)\\\\b","name":"constant.language.scope.bird"},{"match":"\\\\bRTS_(?:STATIC|INHERIT|DEVICE|RIP|OSPF|OSPF_IA|OSPF_EXT1|OSPF_EXT2|BGP|PIPE|BABEL)\\\\b","name":"constant.language.source.bird"},{"match":"\\\\bRTD_(?:ROUTER|DEVICE|MULTIPATH|BLACKHOLE|UNREACHABLE|PROHIBIT)\\\\b","name":"constant.language.dest.bird"},{"match":"\\\\bROA_(?:UNKNOWN|INVALID|VALID)\\\\b","name":"constant.language.roa.bird"},{"match":"\\\\bASPA_(?:UNKNOWN|INVALID|VALID)\\\\b","name":"constant.language.aspa.bird"},{"match":"\\\\bNET_(?:IP4|IP6|IP6_SADR|VPN4|VPN6|ROA4|ROA6|FLOW4|FLOW6|MPLS)\\\\b","name":"constant.language.net-type.bird"},{"match":"\\\\bMPLS_POLICY_(?:NONE|STATIC|PREFIX|AGGREGATE|VRF)\\\\b","name":"constant.language.mpls.bird"}]},"data-types":{"patterns":[{"match":"\\\\b(?:int|bool|ip|prefix|rd|pair|quad|ec|lc|string|bytestring|bgpmask|bgppath|clist|eclist|lclist|set|enum|route)\\\\b","name":"storage.type.bird"}]},"filter-definitions":{"patterns":[{"begin":"\\\\b(filter)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.filter.bird"},"2":{"name":"entity.name.function.filter.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.filter-definition.bird","patterns":[{"include":"$self"}]}]},"filter-names":{"patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*_filter\\\\b","name":"entity.name.function.filter.bird"}]},"function-calls":{"patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.call.bird"}},"end":"\\\\)","name":"meta.function-call.bird","patterns":[{"include":"$self"}]}]},"function-definitions":{"patterns":[{"begin":"\\\\b(function)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"keyword.control.function.bird"},"2":{"name":"entity.name.function.user-defined.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.function-definition.bird","patterns":[{"begin":"\\\\G(?=\\\\()","end":"\\\\)","name":"meta.function-parameters.bird","patterns":[{"include":"#data-types"},{"include":"#symbols"}]},{"begin":"->","beginCaptures":{"0":{"name":"keyword.operator.return-type.bird"}},"end":"(?=\\\\{)","name":"meta.function-return-type.bird","patterns":[{"include":"#data-types"}]},{"include":"$self"}]}]},"functional-keywords":{"patterns":[{"match":"\\\\b(?:static|rip|ospf|bgp|babel|rpki|bfd|device|direct|kernel|pipe|perf|mrt|aggregator|l3vpn|radv)\\\\b","name":"keyword.control.protocol-type.bird"},{"match":"\\\\b(?:graceful|restart|preference|disabled|hold|keepalive|connect|retry|start|delay|error|wait|forget|scan|randomize|router|id)\\\\b","name":"keyword.control.routing.bird"},{"match":"\\\\b(?:interface|type|wired|wireless|tunnel|rxcost|limit|hello|update|interval|port|tx|class|dscp|priority|rx|buffer|length|check|link|rtt|cost|min|max|decay|send|timestamps)\\\\b","name":"keyword.other.interface.bird"},{"match":"\\\\b(?:authentication|none|mac|permissive|password|generate|accept|from|to|algorithm|hmac|sha1|sha256|sha384|sha512|blake2s128|blake2s256|blake2b256|blake2b512)\\\\b","name":"keyword.other.auth.bird"},{"match":"\\\\btime\\\\b","name":"keyword.other.time.bird"},{"match":"\\\\b(?:hostname|description|debug|log|syslog|stderr|bird|protocols|tables|channels|timeouts|passwords|bfd|confederation|cluster|stub|dead|neighbors|area|md5|multihop|passive|rfc1583compat|tick|ls|retransmit|transmit|ack|state|database|summary|external|nssa|translator|always|candidate|never|role|stability|election|action|warn|block|disable|keep|filtered|receive|modify|add|delete|withdraw|unreachable|blackhole|prohibit|unreach|igp_metric|localpref|med|origin|community|large_community|ext_community|as_path|prepend|weight|gateway|scope|onlink|recursive|multipath|igp|channel|sadr|src|learn|persist|via|ng)\\\\b","name":"keyword.other.config.bird"},{"match":"\\\\b(?:flow4|flow6|dst|src|proto|header|dport|sport|icmp|code|tcp|flags|dscp|dont_fragment|is_fragment|first_fragment|last_fragment|fragment|label|offset)\\\\b","name":"keyword.other.flowspec.bird"},{"match":"\\\\b(?:vpn|mpls|aspa|roa6??)\\\\b","name":"keyword.other.address.bird"},{"match":"\\\\b(?:all|none)\\\\b","name":"keyword.other.quick-declaration.bird"}]},"import-export-statements":{"patterns":[{"captures":{"1":{"name":"keyword.control.import-export.bird"},"2":{"name":"keyword.control.filter.bird"},"3":{"name":"entity.name.function.filter.bird"}},"match":"\\\\b(import)\\\\s+(filter)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"meta.import-statement.bird"},{"begin":"\\\\b(import)\\\\s+(filter)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.import-export.bird"},"2":{"name":"keyword.control.filter.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.import-filter-inline.bird","patterns":[{"include":"$self"}]},{"begin":"\\\\b(export)\\\\s+(where)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import-export.bird"},"2":{"name":"keyword.control.where.bird"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.bird"}},"name":"meta.export-where-clause.bird","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"keyword.control.import-export.bird"},"2":{"name":"keyword.control.filter.bird"},"3":{"name":"entity.name.function.filter.bird"}},"match":"\\\\b(export)\\\\s+(filter)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"meta.export-statement.bird"}]},"ip-addresses":{"patterns":[{"match":"\\\\b(?:[0-9]{1,3}\\\\.){3}[0-9]{1,3}(?:/[0-9]{1,2})?\\\\b","name":"constant.numeric.ip.ipv4.bird"},{"match":"\\\\b(?:\\\\h{0,4}:){2,7}\\\\h{0,4}(?:/[0-9]{1,3})?\\\\b","name":"constant.numeric.ip.ipv6.bird"},{"match":"::(?:\\\\h{0,4}:){0,6}\\\\h{0,4}(?:/[0-9]{1,3})?\\\\b","name":"constant.numeric.ip.ipv6.bird"},{"match":"(?:\\\\h{0,4}:){1,6}::(?:\\\\h{0,4}:){0,5}\\\\h{0,4}(?:/[0-9]{1,3})?\\\\b","name":"constant.numeric.ip.ipv6.bird"}]},"method-calls":{"patterns":[{"begin":"\\\\.\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.method.bird"}},"end":"\\\\)","name":"meta.method-call.bird","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"variable.other.property.bird"}},"match":"\\\\.\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","name":"meta.method-access.bird"}]},"method-properties":{"patterns":[{"match":"\\\\b(?:first|last|last_nonaggregated|len|asn|data1??|data2|is_v4|ip|src|dst|rd|maxlen|type|mask|min|max)\\\\b","name":"support.variable.property.bird"}]},"neighbor-statements":{"patterns":[{"captures":{"1":{"name":"keyword.control.neighbor.bird"},"2":{"name":"constant.numeric.ip-address.bird"},"3":{"name":"meta.interface-reference.bird"},"4":{"name":"string.quoted.single.interface.bird"},"5":{"name":"keyword.control.as.bird"},"6":{"name":"constant.numeric.asn.bird"}},"match":"\\\\b(neighbor)\\\\s+([.:\\\\h]+)\\\\s*(%\\\\s*'([^']+)')?\\\\s+(as)\\\\s+([0-9]+)\\\\b","name":"meta.neighbor-statement.bird"},{"captures":{"1":{"name":"keyword.control.source.bird"},"2":{"name":"constant.numeric.ip-address.bird"}},"match":"\\\\b(source address)\\\\s+([.:\\\\h]+)\\\\b","name":"meta.source-address-statement.bird"}]},"next-hop-statements":{"patterns":[{"captures":{"1":{"name":"keyword.control.routing.bird"},"2":{"name":"keyword.other.ip-version.bird"},"3":{"name":"constant.numeric.ip-address.bird"}},"match":"\\\\b(next hop)\\\\s+(ipv4)\\\\s+([.0-9]+)\\\\b","name":"meta.next-hop-ipv4.bird"},{"captures":{"1":{"name":"keyword.control.routing.bird"},"2":{"name":"keyword.other.ip-version.bird"},"3":{"name":"constant.numeric.ip-address.bird"}},"match":"\\\\b(next hop)\\\\s+(ipv6)\\\\s+([:\\\\h]+)\\\\b","name":"meta.next-hop-ipv6.bird"},{"captures":{"1":{"name":"keyword.control.routing.bird"},"2":{"name":"keyword.other.semantic-modifier.bird"}},"match":"\\\\b(next hop)\\\\s+(self)\\\\b","name":"meta.next-hop-simple.bird"},{"captures":{"1":{"name":"keyword.control.routing.bird"},"2":{"name":"keyword.other.semantic-modifier.bird"}},"match":"\\\\b(extended next hop)\\\\s+(o(?:n|ff))\\\\b","name":"meta.extended-next-hop-statement.bird"}]},"numbers":{"patterns":[{"match":"\\\\b0x\\\\h+\\\\b","name":"constant.numeric.hex.bird"},{"match":"\\\\b[0-9]+\\\\b","name":"constant.numeric.decimal.bird"},{"captures":{"1":{"name":"keyword.other.unit.bird"}},"match":"\\\\b[0-9]+\\\\s*([mu]??s)\\\\b","name":"constant.numeric.time.bird"}]},"operators":{"patterns":[{"match":"==|!=|<=|>=|[<=>~]|!~","name":"keyword.operator.comparison.bird"},{"match":"&&|\\\\|\\\\||!|->","name":"keyword.operator.logical.bird"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.bird"},{"match":"\\\\.\\\\.","name":"keyword.operator.range.bird"},{"match":"=","name":"keyword.operator.assignment.bird"},{"match":"\\\\.","name":"keyword.operator.accessor.bird"}]},"prefixes":{"patterns":[{"match":"\\\\b(?:(?:[0-9]{1,3}\\\\.){3}[0-9]{1,3}|(?:\\\\h{0,4}:)+\\\\h{0,4})/[0-9]{1,3}(?:[-+]|\\\\{[0-9]+,[0-9]+})?\\\\b","name":"constant.numeric.prefix.bird"}]},"print-statements":{"patterns":[{"begin":"\\\\b(printn??)\\\\b","beginCaptures":{"1":{"name":"keyword.other.print.bird"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.bird"}},"name":"meta.print-statement.bird","patterns":[{"include":"$self"}]}]},"protocol-definitions":{"patterns":[{"begin":"\\\\b(protocol)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s+(from)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.protocol.bird"},"2":{"name":"entity.name.type.protocol.bird"},"3":{"name":"entity.name.function.protocol.bird"},"4":{"name":"keyword.control.template-reference.bird"},"5":{"name":"entity.name.function.template.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.protocol-definition-with-template.bird","patterns":[{"include":"$self"}]},{"begin":"\\\\b(protocol)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.protocol.bird"},"2":{"name":"entity.name.type.protocol.bird"},"3":{"name":"entity.name.function.protocol.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.protocol-definition-with-name.bird","patterns":[{"include":"$self"}]},{"begin":"\\\\b(protocol)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.protocol.bird"},"2":{"name":"entity.name.type.protocol.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.protocol-definition-anonymous.bird","patterns":[{"include":"$self"}]}]},"route-attributes":{"patterns":[{"match":"\\\\b(?:net|scope|preference|from|gw|proto|source|dest|ifname|ifindex|weight|gw_mpls|gw_mpls_stack|onlink|igp_metric|mpls_label|mpls_policy|mpls_class|bgp_path|bgp_origin|bgp_next_hop|bgp_med|bgp_local_pref|bgp_community|bgp_ext_community|bgp_large_community|bgp_originator_id|bgp_cluster_list|ospf_metric1|ospf_metric2|ospf_tag|ospf_router_id|rip_metric|rip_tag|mypath|mylclist)\\\\b","name":"support.variable.route-attribute.bird"}]},"semantic-modifiers":{"patterns":[{"match":"\\\\b(?:self|on|off|remote|extended)\\\\b","name":"keyword.other.semantic-modifier.bird"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bird"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.bird"}},"name":"string.quoted.double.bird","patterns":[{"match":"\\\\.","name":"constant.character.escape.bird"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bird"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.bird"}},"name":"string.quoted.single.bird"}]},"structural-keywords":{"patterns":[{"match":"\\\\b(?:if|then|else|case|for|do|while|break|continue|return|in)\\\\b","name":"keyword.control.bird"},{"match":"\\\\belse\\\\s*:","name":"keyword.control.case.else.bird"},{"match":"\\\\b(?:accept|reject|error)\\\\b","name":"keyword.control.flow.bird"},{"match":"\\\\b(?:protocol|table|define|include|attribute|eval|ipv4|ipv6|local|as|from|where|cost|limit|action)\\\\b","name":"keyword.control.structure.bird"}]},"symbols":{"patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.other.bird"}]},"template-definitions":{"patterns":[{"begin":"\\\\b(template)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.template.bird"},"2":{"name":"entity.name.type.protocol.bird"},"3":{"name":"entity.name.function.template.bird"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.bird"}},"name":"meta.template-definition.bird","patterns":[{"include":"$self"}]}]},"user-variables":{"patterns":[{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"variable.other.user-defined.bird"}]},"variable-declarations":{"patterns":[{"captures":{"1":{"name":"storage.type.bird"},"2":{"name":"variable.other.declaration.bird"}},"match":"\\\\b(int|bool|ip|prefix|rd|pair|quad|ec|lc|string|bytestring|bgpmask|bgppath|clist|eclist|lclist|set|enum|route)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*=|;)","name":"meta.variable-declaration.bird"}]},"vpn-rd":{"match":"\\\\b(?:[0-9]+:[0-9]+|[012]:[0-9]+:[0-9]+|(?:[0-9]{1,3}\\\\.){3}[0-9]{1,3}:[0-9]+)\\\\b","name":"constant.numeric.vpn-rd.bird"}},"scopeName":"source.bird2","aliases":["bird"]}`)),t=[e];export{t as default};
@@ -0,0 +1 @@
1
+ import e from"./BeH2EWoN.js";const n=Object.freeze(JSON.parse('{"displayName":"Nextflow","name":"nextflow","patterns":[{"include":"#nextflow"}],"repository":{"enum-def":{"begin":"^\\\\s*(enum)\\\\s+(\\\\w+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"storage.type.groovy"}},"end":"}","patterns":[{"include":"source.nextflow-groovy#groovy"},{"include":"#enum-values"}]},"enum-values":{"patterns":[{"begin":"(?<=;|^)\\\\s*\\\\b([0-9A-Z_]+)(?=\\\\s*(?:[(,}]|$))","beginCaptures":{"1":{"name":"constant.enum.name.groovy"}},"end":",|(?=})|^(?!\\\\s*\\\\w+\\\\s*(?:,|$))","patterns":[{"begin":"\\\\(","end":"\\\\)","name":"meta.enum.value.groovy","patterns":[{"match":",","name":"punctuation.definition.seperator.parameter.groovy"},{"include":"#groovy-code"}]}]}]},"function-body":{"patterns":[{"match":"\\\\s"},{"begin":"(?=[<\\\\w][^(]*\\\\s+[$<\\\\w]+\\\\s*\\\\()","end":"(?=[$\\\\w]+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"source.nextflow-groovy#types"}]},{"begin":"([$\\\\w]+)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.nextflow"}},"end":"\\\\)","name":"meta.definition.method.signature.java","patterns":[{"begin":"(?=[^)])","end":"(?=\\\\))","name":"meta.method.parameters.groovy","patterns":[{"begin":"(?=[^),])","end":"(?=[),])","name":"meta.method.parameter.groovy","patterns":[{"match":",","name":"punctuation.definition.separator.groovy"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}},"end":"(?=[),])","name":"meta.parameter.default.groovy","patterns":[{"include":"source.nextflow-groovy#groovy-code"}]},{"include":"source.nextflow-groovy#parameters"}]}]}]},{"begin":"(?=<)","end":"(?=\\\\s)","name":"meta.method.paramerised-type.groovy","patterns":[{"begin":"<","end":">","name":"storage.type.parameters.groovy","patterns":[{"include":"source.nextflow-groovy#types"},{"match":",","name":"punctuation.definition.seperator.groovy"}]}]},{"begin":"\\\\{","end":"(?=})","name":"meta.method.body.java","patterns":[{"include":"source.nextflow-groovy#groovy-code"}]}]},"function-def":{"applyEndPatternLast":1,"begin":"(?<=;|^|\\\\{)(?=\\\\s*(?:def|(?:(?:boolean|byte|char|short|int|float|long|double)|@?(?:[A-Za-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)[]\\\\[]*(?:<.*>)?n)\\\\s+([^=]+\\\\s+)?\\\\w+\\\\s*\\\\()","end":"}|(?=[^{])","name":"meta.definition.method.groovy","patterns":[{"include":"#function-body"}]},"include-decl":{"patterns":[{"match":"^\\\\b(include)\\\\b","name":"keyword.nextflow"},{"match":"\\\\b(from)\\\\b","name":"keyword.nextflow"}]},"nextflow":{"patterns":[{"include":"#record-def"},{"include":"#enum-def"},{"include":"#function-def"},{"include":"#process-def"},{"include":"#workflow-def"},{"include":"#params-def"},{"include":"#output-def"},{"include":"#include-decl"},{"include":"source.nextflow-groovy"}]},"output-def":{"begin":"^\\\\s*(output)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"}},"end":"}","name":"output.nextflow","patterns":[{"include":"source.nextflow-groovy#groovy"}]},"params-def":{"begin":"^\\\\s*(params)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"}},"end":"}","name":"params.nextflow","patterns":[{"include":"source.nextflow-groovy#groovy"}]},"process-body":{"patterns":[{"match":"(?:input|output|when|script|shell|exec):","name":"constant.block.nextflow"},{"match":"\\\\b(val|env|file|path|stdin|stdout|tuple)([(\\\\s])","name":"entity.name.function.nextflow"},{"include":"source.nextflow-groovy#groovy"}]},"process-def":{"begin":"^\\\\s*(process)\\\\s+(\\\\w+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"entity.name.function.nextflow"}},"end":"}","name":"process.nextflow","patterns":[{"include":"#process-body"}]},"record-def":{"begin":"^\\\\s*(record)\\\\s+(\\\\w+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"storage.type.groovy"}},"end":"}","name":"record.nextflow","patterns":[{"include":"source.nextflow-groovy#groovy"}]},"workflow-body":{"patterns":[{"match":"(?:take|main|emit|publish):","name":"constant.block.nextflow"},{"include":"source.nextflow-groovy#groovy"}]},"workflow-def":{"begin":"^\\\\s*(workflow)(?:\\\\s+(\\\\w+))?\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"entity.name.function.nextflow"}},"end":"}","name":"workflow.nextflow","patterns":[{"include":"#workflow-body"}]}},"scopeName":"source.nextflow","embeddedLangs":["nextflow-groovy"],"aliases":["nf"]}')),t=[...e,n];export{t as default};
@@ -0,0 +1 @@
1
+ const a=Object.freeze(JSON.parse('{"displayName":"Narrat Language","name":"narrat","patterns":[{"include":"#comments"},{"include":"#expression"}],"repository":{"commands":{"patterns":[{"match":"\\\\b(set|var)\\\\b","name":"keyword.commands.variables.narrat"},{"match":"\\\\b(t(?:alk|hink))\\\\b","name":"keyword.commands.text.narrat"},{"match":"\\\\b(jump|run|wait|return|save|save_prompt)","name":"keyword.commands.flow.narrat"},{"match":"\\\\b((?:|clear_dia)log)\\\\b","name":"keyword.commands.helpers.narrat"},{"match":"\\\\b(set_screen|empty_layer|set_button)","name":"keyword.commands.screens.narrat"},{"match":"\\\\b(play|pause|stop)\\\\b","name":"keyword.commands.audio.narrat"},{"match":"\\\\b(notify|enable_notifications|disable_notifications)\\\\b","name":"keyword.commands.notifications.narrat"},{"match":"\\\\b(set_stat|get_stat_value|add_stat)","name":"keyword.commands.stats.narrat"},{"match":"\\\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\\\b","name":"keyword.commands.math.narrat"},{"match":"\\\\b(concat|join)\\\\b","name":"keyword.commands.string.narrat"},{"match":"\\\\b(text_field)\\\\b","name":"keyword.commands.text_field.narrat"},{"match":"\\\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\\\b","name":"keyword.commands.skills.narrat"},{"match":"\\\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)","name":"keyword.commands.inventory.narrat"},{"match":"\\\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)","name":"keyword.commands.quests.narrat"}]},"comments":{"patterns":[{"match":"//.*$","name":"comment.line.narrat"}]},"expression":{"patterns":[{"include":"#keywords"},{"include":"#commands"},{"include":"#operators"},{"include":"#primitives"},{"include":"#strings"},{"include":"#paren-expression"}]},"interpolation":{"patterns":[{"match":"([.\\\\w])+","name":"variable.interpolation.narrat"}]},"keywords":{"patterns":[{"match":"\\\\b(if|else|choice)\\\\b","name":"keyword.control.narrat"},{"match":"\\\\$[.|\\\\w]+\\\\b","name":"variable.value.narrat"},{"match":"^\\\\w+(?=([\\\\s\\\\w])*:)","name":"entity.name.function.narrat"},{"match":"^\\\\w+(?!([\\\\s\\\\w])*:)","name":"invalid.label.narrat"},{"match":"(?<=\\\\w)[^^]\\\\b(\\\\w+)\\\\b(?=([\\\\s\\\\w])*:)","name":"entity.other.attribute-name"}]},"operators":{"patterns":[{"match":"(&&|\\\\|\\\\||!=|==|>=|<=|[!<>?])\\\\s","name":"keyword.operator.logic.narrat"},{"match":"([-*+/])\\\\s","name":"keyword.operator.arithmetic.narrat"}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.paren.open"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.paren.close"}},"name":"expression.group","patterns":[{"include":"#expression"}]},"primitives":{"patterns":[{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.narrat"},{"match":"\\\\btrue\\\\b","name":"constant.language.true.narrat"},{"match":"\\\\bfalse\\\\b","name":"constant.language.false.narrat"},{"match":"\\\\bnull\\\\b","name":"constant.language.null.narrat"},{"match":"\\\\bundefined\\\\b","name":"constant.language.undefined.narrat"}]},"strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.narrat","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.narrat"},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.template.open"}},"end":"}","endCaptures":{"0":{"name":"punctuation.template.close.narrat"}},"name":"expression.template","patterns":[{"include":"#expression"},{"include":"#interpolation"}]}]}},"scopeName":"source.narrat","aliases":["nar"]}')),e=[a];export{e as default};
@@ -0,0 +1 @@
1
+ const n=Object.freeze(JSON.parse('{"displayName":"KDL","name":"kdl","patterns":[{"include":"#forbidden_ident"},{"include":"#null"},{"include":"#boolean"},{"include":"#float_keyword"},{"include":"#float_fraction"},{"include":"#float_exp"},{"include":"#decimal"},{"include":"#hexadecimal"},{"include":"#octal"},{"include":"#binary"},{"include":"#raw-string"},{"include":"#string_multi_line"},{"include":"#string_single_line"},{"include":"#block_comment"},{"include":"#block_doc_comment"},{"include":"#slashdash_block_comment"},{"include":"#slashdash_comment"},{"include":"#slashdash_node_comment"},{"include":"#slashdash_node_with_children_comment"},{"include":"#line_comment"},{"include":"#attribute"},{"include":"#node_name"},{"include":"#ident_string"}],"repository":{"attribute":{"captures":{"1":{"name":"punctuation.separator.key-value.kdl"}},"match":"(?![]#/;=\\\\[\\\\\\\\{}])[!$-.:<>?@^_`|~\\\\w]+\\\\d*[!$-.:<>?@^_`|~\\\\w]*(=)","name":"entity.other.attribute-name.kdl"},"binary":{"match":"\\\\b0b[01][01_]*\\\\b","name":"constant.numeric.integer.binary.rust"},"block_comment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.kdl","patterns":[{"include":"#block_doc_comment"},{"include":"#block_comment"}]},"block_doc_comment":{"begin":"/\\\\*[!*](?![*/])","end":"\\\\*/","name":"comment.block.documentation.kdl","patterns":[{"include":"#block_doc_comment"},{"include":"#block_comment"}]},"boolean":{"match":"#(?:true|false)","name":"constant.language.boolean.kdl"},"decimal":{"match":"\\\\b[-+0-9][0-9_]*\\\\b","name":"constant.numeric.integer.decimal.rust"},"float_exp":{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?[Ee][-+]?[0-9_]+\\\\b","name":"constant.numeric.float.rust"},"float_fraction":{"match":"\\\\b([-+0-9])[0-9_]*\\\\.[0-9][0-9_]*([Ee][-+]?[0-9_]+)?\\\\b","name":"constant.numeric.float.rust"},"float_keyword":{"match":"#(?:nan|inf|-inf)","name":"constant.language.other.kdl"},"forbidden_ident":{"match":"(?<!#)(?:true|false|null|nan|-?inf)","name":"invalid.illegal.kdl.bad-ident"},"hexadecimal":{"match":"\\\\b0x\\\\h[_\\\\h]*\\\\b","name":"constant.numeric.integer.hexadecimal.rust"},"ident_string":{"match":"(?![]#/;=\\\\[\\\\\\\\{}])[!$-.:<>?@^_`|~\\\\w]+\\\\d*[!$-.:<>?@^_`|~\\\\w]*","name":"string.unquoted"},"line_comment":{"begin":"//","end":"$","name":"comment.line.double-slash.kdl"},"node_name":{"match":"((?<=[;{])|^)\\\\s*(?![]#/;=\\\\[\\\\\\\\{}])[!$-.:<>?@^_`|~\\\\w]+\\\\d*[!$-.:<>?@^_`|~\\\\w]*","name":"entity.name.tag"},"null":{"match":"#null","name":"constant.language.null.kdl"},"octal":{"match":"\\\\b0o[0-7][0-7_]*\\\\b","name":"constant.numeric.integer.octal.rust"},"raw-string":{"begin":"(#+)(\\"(?:\\"\\"|))","end":"\\\\2\\\\1","name":"string.quoted.other.raw.kdl"},"slashdash_block_comment":{"begin":"/-\\\\s*\\\\{","end":"}","name":"comment.block.slashdash.kdl"},"slashdash_comment":{"begin":"(?<!^)\\\\s*/-\\\\s*","end":"\\\\s","name":"comment.block.slashdash.kdl"},"slashdash_node_comment":{"begin":"(?<=^)\\\\s*/-[^{]+$","end":";|(?<!\\\\\\\\)$","name":"comment.block.slashdash.kdl"},"slashdash_node_with_children_comment":{"begin":"(?<=^)\\\\s*/-[^{]+\\\\{","end":"}","name":"comment.block.slashdash.kdl"},"string_multi_line":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.triple.kdl","patterns":[{"match":"\\\\\\\\(:?[\\"\\\\\\\\bfnrst]|u\\\\{\\\\h{1,6}})","name":"constant.character.escape.kdl"}]},"string_single_line":{"begin":"\\"","end":"\\"","name":"string.quoted.double.kdl","patterns":[{"match":"\\\\\\\\(:?[\\"\\\\\\\\bfnrst]|u\\\\{\\\\h{1,6}})","name":"constant.character.escape.kdl"}]}},"scopeName":"source.kdl"}')),e=[n];export{e as default};
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse(`{"displayName":"ZenScript","fileTypes":["zs"],"name":"zenscript","patterns":[{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdflu]|UL|ul)?\\\\b","name":"constant.numeric.zenscript"},{"match":"\\\\b-?(0[BOXbox])(0|[1-9A-Fa-f][_\\\\h]*)[A-Z_a-z]*\\\\b","name":"constant.numeric.zenscript"},{"include":"#code"},{"match":"\\\\b((?:[a-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)(?=\\\\[)","name":"storage.type.object.array.zenscript"}],"repository":{"brackets":{"patterns":[{"captures":{"1":{"name":"keyword.control.zenscript"},"2":{"name":"keyword.other.zenscript"},"3":{"name":"keyword.control.zenscript"},"4":{"name":"variable.other.zenscript"},"5":{"name":"keyword.control.zenscript"},"6":{"name":"constant.numeric.zenscript"},"7":{"name":"keyword.control.zenscript"}},"match":"(<)\\\\b(.*?)(:(.*?(:(\\\\*|\\\\d+)?)?)?)(>)","name":"keyword.other.zenscript"}]},"class":{"captures":{"1":{"name":"storage.type.zenscript"},"2":{"name":"entity.name.type.class.zenscript"}},"match":"(zenClass)\\\\s+(\\\\w+)","name":"meta.class.zenscript"},"code":{"patterns":[{"include":"#class"},{"include":"#functions"},{"include":"#dots"},{"include":"#quotes"},{"include":"#brackets"},{"include":"#comments"},{"include":"#var"},{"include":"#keywords"},{"include":"#constants"},{"include":"#operators"}]},"comments":{"patterns":[{"match":"//[^\\\\n]*","name":"comment.line.double=slash"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"comment.block"}},"end":"\\\\*/","endCaptures":{"0":{"name":"comment.block"}},"name":"comment.block"}]},"dots":{"captures":{"1":{"name":"storage.type.zenscript"},"2":{"name":"keyword.control.zenscript"},"5":{"name":"keyword.control.zenscript"}},"match":"\\\\b(\\\\w+)(\\\\.)(\\\\w+)((\\\\.)(\\\\w+))*","name":"plain.text.zenscript"},"functions":{"captures":{"0":{"name":"storage.type.function.zenscript"},"1":{"name":"entity.name.function.zenscript"}},"match":"function\\\\s+([$A-Z_a-z][$\\\\w]*)\\\\s*(?=\\\\()","name":"meta.function.zenscript"},"keywords":{"patterns":[{"match":"\\\\b(instanceof|get|implements|set|import|function|override|const|if|else|do|while|for|throw|panic|lock|try|catch|finally|return|break|continue|switch|case|default|in|is|as|match|throws|super|new)\\\\b","name":"keyword.control.zenscript"},{"match":"\\\\b(zenClass|zenConstructor|alias|class|interface|enum|struct|expand|variant|set|void|bool|byte|sbyte|short|ushort|int|uint|long|ulong|usize|float|double|char|string)\\\\b","name":"storage.type.zenscript"},{"match":"\\\\b(variant|abstract|final|private|public|export|internal|static|protected|implicit|virtual|extern|immutable)\\\\b","name":"storage.modifier.zenscript"},{"match":"\\\\b(Native|Precondition)\\\\b","name":"entity.other.attribute-name"},{"match":"\\\\b(null|true|false)\\\\b","name":"constant.language"}]},"operators":{"patterns":[{"match":"\\\\b(\\\\.\\\\.??|\\\\.\\\\.\\\\.|[+,]|\\\\+=|\\\\+\\\\+|-=??|--|~=??|\\\\*=??|/=??|%=??|\\\\|=??|\\\\|\\\\||&=??|&&|\\\\^=??|\\\\?\\\\.??|\\\\?\\\\?|<=??|<<=??|>=??|>>=??|>>>=??|=>?|===??|!=??|!==|[$\`])\\\\b","name":"keyword.control"},{"match":"\\\\b([:;])\\\\b","name":"keyword.control"}]},"quotes":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.zenscript"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.zenscript"}},"name":"string.quoted.double.zenscript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.zenscript"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.zenscript"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.zenscript"}},"name":"string.quoted.single.zenscript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.zenscript"}]}]},"var":{"match":"\\\\b(va[lr])\\\\b","name":"storage.type"}},"scopeName":"source.zenscript"}`)),t=[e];export{t as default};
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse('{"displayName":"1C (Query)","fileTypes":["sdbl","query"],"firstLineMatch":"(?i)Выбрать|Select(\\\\s+Разрешенные|\\\\s+Allowed)?(\\\\s+Различные|\\\\s+Distinct)?(\\\\s+Первые|\\\\s+Top)?.*","name":"sdbl","patterns":[{"match":"^(\\\\s*//.*)$","name":"comment.line.double-slash.sdbl"},{"begin":"//","end":"$","name":"comment.line.double-slash.sdbl"},{"begin":"\\"","end":"\\"(?!\\")","name":"string.quoted.double.sdbl","patterns":[{"match":"\\"\\"","name":"constant.character.escape.sdbl"},{"match":"^(\\\\s*//.*)$","name":"comment.line.double-slash.sdbl"}]},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Неопределено|Undefined|Истина|True|Ложь|False|NULL)(?=[^.а-яё\\\\w]|$)","name":"constant.language.sdbl"},{"match":"(?<=[^.а-яё\\\\w]|^)(\\\\d+\\\\.?\\\\d*)(?=[^.а-яё\\\\w]|$)","name":"constant.numeric.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Выбор|Case|Когда|When|Тогда|Then|Иначе|Else|Конец|End)(?=[^.а-яё\\\\w]|$)","name":"keyword.control.conditional.sdbl"},{"match":"(?i)(?<!КАК\\\\s|AS\\\\s)(?<=[^.а-яё\\\\w]|^)(НЕ|NOT|И|AND|ИЛИ|OR|В\\\\s+ИЕРАРХИИ|IN\\\\s+HIERARCHY|В|In|Между|Between|Есть(\\\\s+НЕ)?\\\\s+NULL|Is(\\\\s+NOT)?\\\\s+NULL|Ссылка|Refs|Подобно|Like)(?=[^.а-яё\\\\w]|$)","name":"keyword.operator.logical.sdbl"},{"match":"<=|>=|[<=>]","name":"keyword.operator.comparison.sdbl"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.sdbl"},{"match":"([,;])","name":"keyword.operator.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EmptyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\\\\s+(Внешнее\\\\s+|Outer\\\\s+)?Соединение|Join)|((Внутреннее|Inner)\\\\s+Соединение|Join)|Где|Where|(Сгруппировать\\\\s+По(\\\\s+Группирующим\\\\s+Наборам)?)|(Group\\\\s+By(\\\\s+Grouping\\\\s+Set)?)|Имеющие|Having|Объединить(\\\\s+Все)?|Union(\\\\s+All)?|(Упорядочить\\\\s+По)|(Order\\\\s+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\\\\s+Общие)?|By(\\\\s+Overall)?|(Только\\\\s+)?Иерархия|(Only\\\\s+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\\\\s+Изменения|(For\\\\s+Update(\\\\s+Of)?)|Спецсимвол|Escape|СгруппированоПо|GroupedBy)(?=[^.а-яё\\\\w]|$)","name":"keyword.control.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Значение|Value|ДатаВремя|DateTime|Тип|Type)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Подстрока|Substring|НРег|Lower|ВРег|Upper|Лев|Left|Прав|Right|ДлинаСтроки|StringLength|СтрНайти|StrFind|СтрЗаменить|StrReplace|СокрЛП|TrimAll|СокрЛ|TrimL|СокрП|TrimR)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff|Полугодие|HalfYear|Декада|TenDays)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|Цел|Int|Окр|Round|SQRT)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(Сумма|Sum|Среднее|Avg|Минимум|Min|Максимум|Max|Количество|Count)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w]|^)(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType|АвтономерЗаписи|RecordAutoNumber|РазмерХранимыхДанных|StoredDataSize|УникальныйИдентификатор|UUID)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.а-яё\\\\w])(Число|Number|Строка|String|Дата|Date|Булево|Boolean)(?=[^.а-яё\\\\w]|$)","name":"support.type.sdbl"},{"match":"(&[а-яё\\\\w]+)","name":"variable.parameter.sdbl"}],"scopeName":"source.sdbl","aliases":["1c-query"]}')),s=[e];export{s as default};
@@ -0,0 +1 @@
1
+ import e from"./CzTSHFRz.js";const n=Object.freeze(JSON.parse('{"displayName":"HXML","fileTypes":["hxml"],"foldingStartMarker":"--next","foldingStopMarker":"\\\\n\\\\n","name":"hxml","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.hxml"}},"match":"(#).*$\\\\n?","name":"comment.line.number-sign.hxml"},{"begin":"(?<!\\\\w)(--macro)\\\\b","beginCaptures":{"1":{"name":"keyword.other.hxml"}},"end":"\\\\n","patterns":[{"include":"source.hx#block-contents"}]},{"captures":{"1":{"name":"keyword.other.hxml"},"2":{"name":"support.package.hx"},"4":{"name":"entity.name.type.hx"}},"match":"(?<!\\\\w)(-(?:m|main|-main|-run))\\\\b\\\\s*\\\\b(?:(([a-z][0-9A-Za-z]*\\\\.)*)(_*[A-Z]\\\\w*))?\\\\b"},{"captures":{"1":{"name":"keyword.other.hxml"}},"match":"(?<!\\\\w)(-(?:cppia|cpp?|js|as3|swf-(header|version|lib(-extern)?)|swf9?|neko|python|php|cs|java-lib|java|xml|lua|hl|x|lib|D|resource|exclude|version|v|debug|prompt|cmd|dce\\\\s+(std|full|no)?|-flash-strict|-no-traces|-flash-use-stage|-neko-source|-gen-hx-classes|net-lib|net-std|c-arg|-each|-next|-display|-no-output|-times|-no-inline|-no-opt|-php-front|-php-lib|-php-prefix|-remap|-help-defines|-help-metas|help|-help|java|cs|-js-modern|-interp|-eval|-dce|-wait|-connect|-cwd|-run)).*$"},{"captures":{"1":{"name":"keyword.other.hxml"}},"match":"(?<!\\\\w)(-(?:-js(on)?|-lua|-swf-(header|version|lib(-extern)?)|-swf|-as3|-neko|-php|-cppia|-cpp|-cppia|-cs|-java-lib(-extern)?|-java|-jvm|-python|-hl|p|-class-path|L|-library|-define|r|-resource|-cmd|C|-verbose|-debug|-prompt|-xml|-json|-net-lib|-net-std|-c-arg|-version|-haxelib-global|h|-main|-server-connect|-server-listen)).*$"}],"scopeName":"source.hxml","embeddedLangs":["haxe"]}')),t=[...e,n];export{t as default};